

:root { --ink:#191727; --muted:#777487; --line:#e9e7ef; --violet:#6d5be7; --violet-dark:#5142c8; --surface:#fff; --bg:#f8f7fb; }
* { box-sizing:border-box; }
html { background:#eeecf3; }
body { margin:0; color:var(--ink); background:#eeecf3; font-family:Arial, Helvetica, sans-serif; -webkit-font-smoothing:antialiased; }
button, input, textarea, select { font:inherit; }
button { cursor:pointer; }
.app-shell { width:min(100%,440px); min-height:100dvh; margin:0 auto; padding:0 20px 112px; background:var(--bg); box-shadow:0 0 80px rgb(29 25 55 / 12%); }
.app-icon { display:inline-grid; place-items:center; font-style:normal; line-height:1; }

.topbar { height:82px; display:flex; align-items:center; gap:12px; }
.topbar.compact { height:72px; border-bottom:1px solid var(--line); margin:0 -20px 20px; padding:0 20px; background:rgb(248 247 251 / 92%); position:sticky; top:0; z-index:8; backdrop-filter:blur(16px); }
.brand-mark { display:grid; place-items:center; width:40px; height:40px; border-radius:13px; color:#fff; background:var(--violet); font-weight:800; font-size:20px; box-shadow:0 7px 18px rgb(88 69 204 / 20%); }
.brand-copy { display:flex; flex:1; flex-direction:column; gap:2px; }
.brand-copy span { font-size:11px; color:var(--muted); }
.brand-copy strong { font-size:15px; letter-spacing:-.01em; }
.brand-copy .screen-title { font-size:19px; }
.avatar { width:40px; height:40px; border:0; border-radius:50%; background:#ebe8ff; color:var(--violet-dark); font-size:12px; font-weight:800; }
.back-button { display:grid; place-items:center; width:40px; height:40px; padding:0; border:1px solid var(--line); border-radius:13px; background:#fff; color:var(--ink); }
.back-button .app-icon { font-size:34px; transform:translateY(-2px); }

.welcome-card { position:relative; overflow:hidden; padding:27px 24px 24px; border-radius:27px; color:#fff; background:linear-gradient(145deg,#7563ed 0%,#5543c9 100%); box-shadow:0 18px 40px rgb(81 66 200 / 25%); }
.welcome-card::after { content:''; position:absolute; right:-54px; top:-58px; width:180px; height:180px; border:34px solid rgb(255 255 255 / 8%); border-radius:50%; }
.eyebrow { margin:0 0 8px; font-size:13px; color:#ded9ff; }
.welcome-card h1 { position:relative; z-index:1; max-width:280px; margin:0; font-size:28px; line-height:1.08; letter-spacing:-.035em; }
.welcome-card > p:not(.eyebrow) { position:relative; z-index:1; margin:14px 0 22px; max-width:310px; color:#e4e0ff; font-size:13px; line-height:1.48; }
.primary-button { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:51px; border:0; border-radius:16px; background:#fff; color:var(--violet-dark); font-weight:800; box-shadow:0 7px 20px rgb(32 20 109 / 18%); }
.primary-button .app-icon { font-size:23px; font-weight:400; }

.summary { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0 30px; }
.summary button { display:flex; align-items:center; gap:12px; padding:15px; border:1px solid var(--line); border-radius:19px; background:var(--surface); color:inherit; text-align:left; }
.summary-icon { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:13px; font-size:20px; font-weight:700; }
.summary-icon.violet { color:var(--violet); background:#efedff; }
.summary-icon.mint { color:#228f6c; background:#e5f8f1; }
.summary button > span:last-child { display:flex; flex-direction:column; }
.summary strong { font-size:21px; line-height:1; }
.summary small { margin-top:5px; color:var(--muted); font-size:11px; }

.section-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.section-heading h2 { margin:0; font-size:19px; letter-spacing:-.025em; }
.section-heading button { border:0; color:var(--violet); background:none; font-size:12px; font-weight:700; }
.request-card { position:relative; padding:18px; margin-bottom:12px; border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:0 8px 26px rgb(40 35 68 / 5%); transition:border-color .2s, transform .2s; }
.request-card.expanded { border-color:#cdc6ff; }
.card-hit { position:absolute; z-index:1; inset:0; border:0; border-radius:inherit; background:transparent; }
.request-row { display:flex; align-items:center; justify-content:space-between; }
.request-number { color:var(--muted); font-size:11px; font-weight:700; }
.status { padding:6px 9px; border-radius:9px; font-size:10px; font-weight:800; }
.status.progress { color:#5d4ad3; background:#efedff; }
.status.received { color:#96600b; background:#fff2d8; }
.status.completed { color:#19805f; background:#e3f7ef; }
.request-card h3 { margin:14px 0 6px; font-size:16px; letter-spacing:-.015em; }
.request-card > p { display:flex; align-items:center; gap:5px; margin:0; color:var(--muted); font-size:12px; }
.request-card > p .app-icon { color:#a19dac; }
.message-preview { display:flex; align-items:center; gap:10px; margin-top:17px; padding:11px; border-radius:14px; background:#f6f5f9; }
.message-preview > span { display:grid; place-items:center; flex:0 0 33px; height:33px; border-radius:50%; color:#605b78; background:#e5e2ed; font-size:10px; font-weight:800; }
.message-preview p { display:flex; flex-direction:column; gap:3px; min-width:0; margin:0; color:var(--muted); font-size:10px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.message-preview b { color:#49465a; font-size:11px; }
.request-details { position:relative; z-index:2; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.request-details > div:first-child { display:flex; align-items:center; justify-content:space-between; }
.request-details > div:first-child span { color:var(--muted); font-size:11px; }
.request-details > div:first-child b { color:var(--violet); font-size:11px; }
.request-details > p { margin:12px 0 0; color:#555164; font-size:12px; line-height:1.55; }
.review-button { width:100%; margin-top:14px; padding:12px; border:1px solid #d7d1ff; border-radius:13px; color:var(--violet-dark); background:#f6f4ff; font-weight:800; font-size:12px; }
.rating-result { justify-content:flex-start!important; gap:10px; margin-top:13px; padding:10px 12px; border-radius:12px; background:#f4f8f6; }
.rating-result strong { color:#19805f!important; font-size:14px!important; }
.rating-result span { color:#6e766f!important; font-size:10px!important; }

.content-screen { animation:fade-in .22s ease-out; }
.screen-intro { margin:0 0 20px; color:var(--muted); font-size:13px; line-height:1.5; }
.step-label { display:flex; align-items:center; gap:9px; margin:3px 0 12px; font-size:13px; font-weight:800; }
.step-label span { display:grid; place-items:center; width:24px; height:24px; border-radius:8px; color:#fff; background:var(--violet); font-size:11px; }
.step-label.second { margin-top:28px; }
.choice-list { display:flex; flex-direction:column; gap:9px; }
.choice-card { display:grid; grid-template-columns:42px 1fr 24px; align-items:center; gap:11px; width:100%; padding:13px; border:1px solid var(--line); border-radius:17px; color:inherit; background:#fff; text-align:left; }
.choice-card.selected { border-color:#afa5f6; box-shadow:0 0 0 3px rgb(109 91 231 / 8%); }
.choice-card > span:nth-child(2) { display:flex; min-width:0; flex-direction:column; gap:4px; }
.choice-card strong { font-size:13px; }
.choice-card small { overflow:hidden; color:var(--muted); font-size:10px; white-space:nowrap; text-overflow:ellipsis; }
.choice-card i { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; color:#fff; background:var(--violet); font-size:11px; font-style:normal; }
.choice-card:not(.selected) i { border:1px solid #d9d6e0; background:#fff; }
.building-badge { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; color:var(--violet); background:#eeebff; font-weight:900; }
.textarea-wrap { position:relative; display:block; }
.textarea-wrap textarea, .review-modal textarea { width:100%; resize:none; padding:15px; border:1px solid var(--line); border-radius:17px; outline:none; color:var(--ink); background:#fff; font-size:13px; line-height:1.5; }
.textarea-wrap textarea:focus, .review-modal textarea:focus, .form-stack input:focus, .form-stack select:focus { border-color:#a89ef2; box-shadow:0 0 0 3px rgb(109 91 231 / 8%); }
.textarea-wrap > span { position:absolute; right:13px; bottom:10px; color:#aaa6b3; font-size:9px; }
.hint { margin:11px 0 20px; padding:12px 13px; border-radius:13px; color:#6d6878; background:#f0eef6; font-size:10px; line-height:1.45; }
.hint b { color:#4e4960; }
.action-button { width:100%; min-height:51px; border:0; border-radius:16px; color:#fff; background:var(--violet); font-weight:800; box-shadow:0 10px 24px rgb(81 66 200 / 22%); }
.action-button:disabled { opacity:.6; cursor:wait; }

.segmented { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-bottom:22px; padding:4px; border-radius:14px; background:#ebe9f0; }
.segmented button { padding:10px 7px; border:0; border-radius:11px; color:#777284; background:transparent; font-size:11px; font-weight:700; }
.segmented button.active { color:var(--ink); background:#fff; box-shadow:0 3px 10px rgb(31 26 56 / 8%); }
.segmented span { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:4px; padding:0 4px; border-radius:7px; background:#dedbe5; font-size:9px; }
.segmented .active span { color:var(--violet); background:#eeebff; }
.grouped-list > section { margin-bottom:27px; }
.grouped-list > section > h2 { display:flex; align-items:center; gap:7px; margin:0 0 11px; color:#656071; font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.grouped-list > section > h2 span { display:grid; place-items:center; width:20px; height:20px; border-radius:6px; color:var(--violet); background:#ece9ff; font-size:9px; }
.empty-state { padding:55px 24px; text-align:center; }
.empty-state > span { display:grid; place-items:center; width:62px; height:62px; margin:0 auto 18px; border-radius:20px; color:#298767; background:#e4f6ef; font-size:30px; }
.empty-state h2 { margin:0 0 7px; font-size:17px; }
.empty-state p { margin:0; color:var(--muted); font-size:12px; }

.homes-list { display:flex; flex-direction:column; gap:11px; }
.homes-list article { display:flex; align-items:flex-start; gap:14px; padding:17px; border:1px solid var(--line); border-radius:20px; background:#fff; }
.large-building { display:grid; place-items:center; flex:0 0 46px; height:52px; border-radius:14px; color:var(--violet); background:#ece9ff; font-size:18px; font-weight:900; }
.homes-list article > div { flex:1; min-width:0; }
.home-title-row { display:flex; align-items:flex-start; gap:7px; }
.home-title-row h2 { flex:1; margin:1px 0 5px; font-size:14px; line-height:1.25; }
.home-title-row small { padding:4px 6px; border-radius:6px; color:#5a49c8; background:#eeebff; font-size:8px; font-weight:800; }
.homes-list p { margin:0 0 7px; color:var(--muted); font-size:11px; }
.homes-list b { color:#514c5e; font-size:11px; }
.outline-action { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:50px; margin-top:17px; border:1px dashed #aca4e6; border-radius:16px; color:var(--violet-dark); background:#f7f5ff; font-size:12px; font-weight:800; }
.outline-action .app-icon { font-size:20px; }

.form-stack { display:flex; flex-direction:column; gap:16px; }
.form-stack label { display:flex; flex-direction:column; gap:7px; }
.form-stack label > span, .review-modal label > span { color:#504b5d; font-size:11px; font-weight:800; }
.form-stack input, .form-stack select { width:100%; min-height:49px; padding:0 14px; border:1px solid var(--line); border-radius:15px; outline:none; color:var(--ink); background:#fff; font-size:12px; }
.form-stack .action-button { margin-top:4px; }
.demo-note { padding:10px; border-radius:10px; color:#888291; background:#efedf3; text-align:center; font-size:9px; }

.modal-backdrop { position:fixed; z-index:30; inset:0; display:flex; align-items:flex-end; justify-content:center; padding-top:35px; background:rgb(21 18 36 / 55%); backdrop-filter:blur(4px); }
.review-modal { position:relative; width:min(100%,440px); max-height:92dvh; overflow:auto; padding:25px 20px 28px; border-radius:27px 27px 0 0; background:#fff; animation:slide-up .25s ease-out; }
.modal-close { position:absolute; right:17px; top:15px; width:34px; height:34px; border:0; border-radius:50%; color:#777184; background:#f1eff4; font-size:21px; }
.review-illustration { display:grid; place-items:center; width:52px; height:52px; margin:0 auto 13px; border-radius:17px; color:#fff; background:linear-gradient(145deg,#7b69ed,#5b48d2); font-size:25px; box-shadow:0 10px 22px rgb(91 72 210 / 22%); }
.review-modal h2 { margin:0; text-align:center; font-size:21px; }
.review-modal > p { margin:7px 25px 21px; color:var(--muted); text-align:center; font-size:11px; }
.rating-scale { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; }
.rating-scale button { height:38px; border:1px solid var(--line); border-radius:11px; color:#625d6f; background:#fff; font-size:11px; font-weight:800; }
.rating-scale button.active { border-color:var(--violet); color:#fff; background:var(--violet); transform:scale(1.05); }
.rating-labels { display:flex; justify-content:space-between; margin:6px 3px 17px; color:#aaa5b2; font-size:8px; }
.review-modal label { display:flex; flex-direction:column; gap:7px; }
.review-modal .action-button { margin-top:16px; }

.bottom-nav { position:fixed; z-index:10; left:50%; bottom:0; display:grid; grid-template-columns:repeat(3,1fr); width:min(100%,440px); height:83px; padding-bottom:max(0px,env(safe-area-inset-bottom)); transform:translateX(-50%); border-top:1px solid var(--line); background:rgb(255 255 255 / 94%); backdrop-filter:blur(18px); }
.bottom-nav button { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:5px; border:0; color:#9692a3; background:transparent; font-size:10px; font-weight:700; }
.bottom-nav .app-icon { height:22px; font-size:21px; }
.bottom-nav button.active { color:var(--violet); }
.toast { position:fixed; z-index:50; left:50%; bottom:96px; width:max-content; max-width:calc(100% - 38px); padding:11px 16px; transform:translateX(-50%); border-radius:13px; color:#fff; background:#292635; box-shadow:0 10px 30px rgb(0 0 0 / 20%); font-size:11px; font-weight:700; animation:toast-in .2s ease-out; }

.loading-screen { display:flex; align-items:center; flex-direction:column; padding-top:26vh; }
.loader-mark { display:grid; place-items:center; width:58px; height:58px; margin-bottom:23px; border-radius:18px; color:#fff; background:var(--violet); font-size:27px; font-weight:800; animation:pulse 1.4s infinite; }
.loader-line { width:140px; height:9px; margin-bottom:8px; border-radius:6px; background:#e6e3ed; }
.loader-line.wide { width:190px; }
.loader-card { width:100%; height:130px; margin-top:20px; border-radius:23px; background:#efedf3; }
.loading-screen p { color:var(--muted); font-size:11px; }

@keyframes fade-in { from { opacity:0; transform:translateY(5px); } }
@keyframes slide-up { from { transform:translateY(30px); opacity:0; } }
@keyframes toast-in { from { transform:translate(-50%,10px); opacity:0; } }
@keyframes pulse { 50% { transform:scale(.95); opacity:.82; } }
@media (max-width:360px) { .app-shell { padding-inline:14px; } .topbar.compact { margin-inline:-14px; padding-inline:14px; } .welcome-card { padding-inline:20px; } .summary button { gap:8px; padding:12px; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
