:root{
  color-scheme:dark;
  --bg:#0d0f14;--surface:#191c23;--raised:#242831;--line:#2c3039;
  --text:#f4f5f8;--muted:#9ca3b3;--accent:#78a8ff;--primary:#2864d7;
  --green:#91d4b0;--amber:#e1bb7d;--red:#ffaaa7;
  --bottom:max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);color:var(--text);font-size:16px;-webkit-text-size-adjust:100%;
}
*{box-sizing:border-box}
body{margin:0 auto;max-width:640px;padding:0 22px calc(28px + var(--bottom));-webkit-font-smoothing:antialiased}
body.has-dock{padding-bottom:calc(112px + var(--bottom))}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit;color:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;touch-action:manipulation}
button:disabled{opacity:.45;cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
svg{width:22px;height:22px;flex-shrink:0;vertical-align:middle}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
p{line-height:1.55;margin:0 0 16px}
h1,h2,h3{margin:0;letter-spacing:-.025em;overflow-wrap:anywhere}
h1{font-size:34px;line-height:1.14;font-weight:720}
h2{font-size:22px;line-height:1.25;font-weight:650}
h3{font-size:18px;font-weight:630}
small,.muted{color:var(--muted)}
small{font-size:13px;line-height:1.5;display:block}
.app-header{height:80px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:var(--tg-content-safe-area-inset-top,0px)}
.brand{font-size:15px;letter-spacing:-.02em;display:flex;align-items:center;gap:9px;font-weight:650;white-space:nowrap}
.brand-mark{height:28px;width:28px;display:grid;place-items:center;border-radius:9px;background:#233353;color:#a8c6ff}
.brand-mark svg{width:18px;height:18px;stroke-width:2.5}
.header-right{display:flex;align-items:center;gap:8px}
.identity{font-size:13px;color:var(--muted);max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.icon-button{width:44px;height:44px;display:inline-grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);flex-shrink:0}
.icon-button:hover,.icon-button:active{background:var(--raised);color:var(--text)}
.button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:48px;padding:12px 18px;border:0;border-radius:14px;background:var(--raised);font-weight:600;line-height:1.3;text-align:center;max-width:100%}
.button span{min-width:0;overflow-wrap:anywhere}
.button.primary{background:var(--primary);color:white;min-height:54px;font-size:16px}
.button.secondary{background:var(--raised);color:var(--text)}
.button.text-button{padding:10px 0;background:none;color:var(--accent);font-weight:500}
.button.danger{background:transparent;color:var(--red)}
.button.wide{width:100%}
.page-heading{margin:18px 0 24px}
.page-heading p{color:var(--muted);font-size:15px;margin:10px 0 0;max-width:44ch}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}
.filter-trigger{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:24px;background:var(--surface);font-size:14px;font-weight:550;max-width:calc(100% - 96px)}
.filter-trigger span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.filter-trigger svg{width:15px;height:15px;color:var(--muted)}
.toolbar-meta{display:flex;align-items:center;color:var(--muted);font-size:13px}
.audit-list{display:grid;gap:12px}
.audit-tile{display:flex;flex-direction:column;align-items:stretch;width:100%;border:1px solid #252a34;border-radius:20px;background:var(--surface);text-align:left;padding:18px 19px 0;transition:background .15s ease,transform .15s ease}
.audit-tile:hover{background:#1f232c}
.audit-tile:active{transform:scale(.99)}
.tile-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:20px}
.status{display:inline-flex;align-items:center;gap:7px;font-size:12px;line-height:1.4;font-weight:550;color:var(--muted);letter-spacing:.005em}
.status-dot{width:6px;height:6px;background:currentColor;border-radius:50%;flex-shrink:0}
.status-audit{color:#b0b8cc}.status-presentation{color:#c1b0eb}.status-send{color:var(--green)}.status-feedback{color:var(--amber)}.status-done{color:var(--green)}
.important{font-size:17px;line-height:20px}
.tile-company{display:block;margin:12px 0 8px;font-size:20px;line-height:1.28;font-weight:650;letter-spacing:-.025em;overflow-wrap:anywhere}
.tile-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted);line-height:1.4;margin-bottom:15px}
.tile-next{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:500;padding:13px 0;border-top:1px solid var(--line);color:var(--muted);line-height:1.4}
.tile-next svg{width:16px;height:16px}.tile-next.actionable{color:var(--accent)}
.list-footer{font-size:12px;color:var(--muted);text-align:center;margin-top:24px;line-height:1.5}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;color:var(--muted);font-size:13px}
.pagination .button{font-size:14px;min-width:90px}
.dock{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,640px);z-index:5;padding:20px 22px calc(16px + var(--bottom));background:linear-gradient(transparent,rgba(13,15,20,.96) 24%,var(--bg) 100%)}
.dock>.button{width:100%;box-shadow:0 4px 24px #0003}
.dock:has(.dock-secondary){padding-top:12px}
.dock-secondary{display:flex;justify-content:center;margin-top:2px}
.dock-secondary .button{min-height:44px;font-size:14px;padding:8px 16px}
body:has(.dock-secondary){padding-bottom:calc(150px + var(--bottom))}
.empty-state{text-align:center;padding:52px 16px 48px;max-width:400px;margin:auto}
.empty-symbol{width:78px;height:78px;border:1px solid #31415b;background:radial-gradient(circle at 30% 25%,#293a5a,#1a2332);border-radius:27px;display:grid;place-items:center;color:#9cbbf5;margin:0 auto 24px;box-shadow:0 14px 50px #0002}
.empty-symbol svg{width:32px;height:32px;stroke-width:1.4}
.empty-state h2{font-size:23px}.empty-state p{font-size:15px;color:var(--muted);margin:12px 0 20px}
.empty-state .button{margin-top:4px}
.notice{position:fixed;z-index:20;bottom:calc(100px + var(--bottom));left:50%;transform:translateX(-50%);width:calc(100% - 44px);max-width:596px;padding:14px 16px;border:1px solid #3b465b;border-radius:16px;background:#222c3e;color:#e5edff;box-shadow:0 8px 40px #0005;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.notice.error{border-color:#71423f;background:#3c2428;color:#ffdfda}
.notice.progress:before{content:'';display:inline-block;width:12px;height:12px;border:2px solid #7487a5;border-top-color:transparent;border-radius:50%;margin-right:9px;animation:spin 1s linear infinite}
.sheet{margin:auto auto 0;width:min(100%,640px);max-height:min(88dvh,820px);border:1px solid #363b45;border-bottom:0;border-radius:28px 28px 0 0;background:#1b1e26;color:var(--text);padding:10px 22px calc(24px + var(--bottom));box-shadow:0 -12px 80px #0006;overflow-y:auto;overscroll-behavior:contain}
.sheet::backdrop{background:#0009;backdrop-filter:blur(5px)}
.sheet-handle{height:4px;width:34px;border-radius:4px;background:#4d525d;margin:0 auto 8px}
.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.sheet-heading h2{font-size:22px}
.menu-list{overflow:hidden;border-radius:17px;background:#252932}
.menu-row{display:flex;justify-content:flex-start;width:100%;min-height:58px;border-radius:0;background:none;border:0;border-bottom:1px solid #343943;padding:16px;font-size:16px;font-weight:500;text-align:left}
.menu-row:last-child{border-bottom:0}.menu-row>svg{color:var(--muted);width:20px;height:20px}.menu-row.selected{color:var(--accent);background:#25334e}
.menu-row .selected-check{margin-left:auto}.menu-row.danger{color:var(--red)}
.sheet-note{font-size:13px;color:var(--muted);margin:18px 4px 0}
.filter-details{margin-top:12px}.filter-details summary{padding:16px 4px;min-height:48px;color:var(--muted);font-size:14px;cursor:pointer}
.section-label{font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:28px 4px 11px}
.form-group{background:var(--surface);border:1px solid #272c36;border-radius:20px;overflow:hidden;margin-bottom:16px}
.field{display:block;padding:16px 17px;border-bottom:1px solid var(--line);font-size:13px;color:#c7ccda;font-weight:500}
.field:last-child{border:0}.field-label{display:flex;justify-content:space-between;gap:12px}.optional{font-size:12px;font-weight:400;color:var(--muted)}
input:not([type=checkbox]),textarea,select{display:block;width:100%;max-width:100%;border:0;border-radius:0;background:transparent;padding:12px 0 2px;font-size:16px;line-height:1.5;outline-offset:3px}
input::placeholder,textarea::placeholder{color:#747e92;opacity:1}
textarea{min-height:100px;resize:vertical}
select{appearance:auto;min-height:48px}select option{background:var(--surface)}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 17px;border-bottom:1px solid var(--line);cursor:pointer;min-height:70px}
.toggle-row:last-child{border:0}.toggle-copy{min-width:0;font-size:15px;font-weight:500}.toggle-copy small{font-size:12px;margin-top:4px;font-weight:400}
input[type=checkbox]{appearance:none;flex-shrink:0;width:46px;height:28px;border-radius:20px;margin:0;background:#3b414e;border:1px solid #555d6e;position:relative;cursor:pointer;transition:background .18s}
input[type=checkbox]:before{content:'';position:absolute;width:22px;height:22px;border-radius:50%;background:#f1f3f7;top:2px;left:2px;box-shadow:0 1px 3px #0005;transition:transform .18s}
input[type=checkbox]:checked{background:var(--primary);border-color:var(--primary)}input[type=checkbox]:checked:before{transform:translateX(18px)}
.field-hint{font-size:13px;line-height:1.5;color:var(--muted);margin:10px 4px 22px}
.form-group .field-hint{margin:8px 17px 17px}
.upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px 18px;border:1px dashed #495369;border-radius:20px;background:#19202e;cursor:pointer;text-align:center;min-height:140px}
.upload svg{width:28px;height:28px;color:var(--accent)}.upload strong{font-size:16px;font-weight:550}.upload small{font-size:12px}
.upload input{position:absolute;width:1px;height:1px;opacity:0;padding:0;overflow:hidden}
.upload:focus-within{outline:2px solid var(--accent);outline-offset:4px}
.alternative{font-size:14px;color:var(--muted);margin:20px 0}.alternative summary{cursor:pointer;min-height:44px;padding:10px 2px}.alternative .field{background:var(--surface);border-radius:16px}
.detail-title{margin-top:24px;margin-bottom:24px}.detail-title h1{margin:14px 0 12px;font-size:30px}.detail-title p{font-size:14px;color:var(--muted);margin:0}
.detail-actions{display:grid;gap:10px;margin-bottom:24px}.detail-actions .button{width:100%}
.detail-more{display:flex;justify-content:flex-end;margin-top:-7px}.detail-more .button{font-size:14px}
.resources{display:grid;gap:10px;margin:18px 0 24px}
.resource{display:flex;align-items:center;gap:13px;min-height:70px;padding:14px 16px;background:var(--surface);border:1px solid #29303c;border-radius:17px;width:100%;text-align:left;color:var(--text);font-size:15px;font-weight:550}
.resource:hover{text-decoration:none;background:var(--raised)}.resource>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.resource>svg{color:var(--muted);width:18px;height:18px}
.resource-icon{display:grid;place-items:center;width:38px;height:38px;background:#293650;border-radius:11px;color:#a6c5ff;flex-shrink:0}
.resource small{font-size:12px;font-weight:400;margin-top:4px}
.info-panel{background:var(--surface);border-radius:20px;border:1px solid #262b34;overflow:hidden;margin:16px 0}
.info-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:15px 17px;font-size:14px;line-height:1.5;border-bottom:1px solid var(--line)}
.info-row:last-child{border:0}.info-row dt{color:var(--muted);flex:0 0 44%}.info-row dd{margin:0;text-align:right;overflow-wrap:anywhere;white-space:pre-wrap}
.note-panel{padding:18px;background:var(--surface);border-radius:18px;margin:16px 0;color:#d3d8e3;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.note-panel .section-label{display:block;margin:0 0 9px;font-size:11px;white-space:normal}
.hint-panel{padding:15px 17px;border-left:2px solid #647da8;background:#192130;border-radius:0 12px 12px 0;color:#b9c8e2;font-size:13px;line-height:1.6;margin:16px 0}
.review-list{background:var(--surface);border:1px solid #272c36;border-radius:20px;overflow:hidden;margin-bottom:18px}
.review-row{display:flex;flex-direction:column;gap:7px;padding:16px 18px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;white-space:pre-wrap}
.review-row:last-child{border:0}.review-label{color:var(--muted);font-size:12px}.review-before{color:#a6aebe;font-size:13px;line-height:1.45}.review-row strong{font-size:15px;line-height:1.5;font-weight:550}
.duplicate-panel{padding:18px;background:#2b251c;border:1px solid #54472f;border-radius:20px;margin:20px 0}.duplicate-panel h2{font-size:18px;color:#ebcd9d;margin-bottom:12px}.duplicate-panel p{font-size:14px}
.duplicate-panel .toggle-row{padding:12px 0 0}.duplicate-panel .button{color:#e5c694}
.person-row{display:flex;align-items:center;gap:12px;padding:17px;border-bottom:1px solid var(--line)}.person-row:last-child{border:0}.person-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#2c3445;color:#bdcce8;font-size:17px;flex-shrink:0}
.person-copy{flex:1;min-width:0}.person-copy strong{font-size:15px;font-weight:600}.person-copy small{font-size:12px;margin-top:4px}.person-row .button{padding:10px 0;font-size:13px}
.application{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px;margin:12px 0}.application .field{padding:16px 0}.application p{margin-top:8px;color:var(--muted);font-size:13px}.application>.button{width:100%;margin-top:8px}
.search-box{display:flex;align-items:center;gap:10px;background:var(--raised);border-radius:16px;padding:4px 12px;margin:12px 0}.search-box input{padding:10px 0;min-width:0}.search-box svg{color:var(--muted)}.search-box .icon-button{width:44px}
.search-tag{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-8px 0 18px;padding:4px 0 4px 12px;background:var(--surface);border-radius:14px;font-size:14px}.search-tag span{overflow-wrap:anywhere}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skeleton{display:grid;gap:14px;margin-top:28px}.skeleton div{height:174px;border-radius:20px;background:linear-gradient(90deg,var(--surface),#232936,var(--surface));background-size:200%;animation:shimmer 2s infinite}.skeleton div:first-child{height:58px;width:65%}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes shimmer{to{background-position:-200% 0}}
@media(min-width:700px){body{padding-left:28px;padding-right:28px}.dock{padding-left:28px;padding-right:28px}.app-header{height:88px}.page-heading{margin-top:26px}.sheet{margin:auto;border-radius:28px;border-bottom:1px solid #363b45;max-height:85dvh}}
@media(max-width:350px){body{padding-left:16px;padding-right:16px}.dock{padding-left:16px;padding-right:16px}.identity{display:none}h1{font-size:30px}.tile-company{font-size:19px}.audit-tile{padding-left:16px;padding-right:16px}.info-row{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}
