/* Main application design system. Public marketing and authentication keep their own layouts. */
body.clarity-workspace,body.clarity-client {
  --text-primary:#282c33; --text-secondary:#707782; --background-app:#fafafb;
  --background-surface:#fff; --background-selected:#f3f4f7; --border-default:#e7e9ee;
  --ai-surface:#f5f4f8; --card-shadow:none; --card-shadow-hover:none;
  --line:var(--border-default); --ink:var(--text-primary); --muted:var(--text-secondary);
  --soft:var(--background-app); --clarity-rail-width:88px;
  background:#fff; color:var(--text-primary); font-family:Manrope,"Segoe UI",system-ui,sans-serif;
  font-size:14px; -webkit-font-smoothing:antialiased;
}
.clarity-shell.app-shell { display:block; min-height:100dvh; grid-template-columns:none; }
.clarity-shell .workspace { margin-left:var(--clarity-rail-width); min-width:0; }
.clarity-shell .app-side.clarity-rail {
  position:fixed; inset:0 auto 0 0; width:var(--clarity-rail-width); height:100dvh; z-index:70;
  display:flex; flex-direction:column; align-items:center; padding:24px 9px 18px;
  background:#f5f5f6; border:0; overflow-y:auto; overflow-x:hidden; scrollbar-width:none;
}
.clarity-rail-brand { display:grid; place-items:center; width:48px; height:48px; border-radius:12px; flex-shrink:0; }
.clarity-rail-brand img { width:40px; height:40px; object-fit:contain; }
.clarity-rail-nav { display:flex; flex-direction:column; gap:15px; margin-top:38px; width:100%; }
.clarity-rail-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; width:100%; min-height:66px; color:#6b707a; font-size:10px; font-weight:500; padding:0; border:0; background:none; border-radius:12px; }
.clarity-rail-symbol { display:grid; place-items:center; width:42px; height:39px; border-radius:12px; transition:background 150ms ease,color 150ms ease; }
.clarity-rail-symbol .icon { width:23px; height:23px; stroke-width:1.6; }
.clarity-rail-item:hover .clarity-rail-symbol,.clarity-rail-item[aria-expanded=true] .clarity-rail-symbol { background:#e9eaee; color:var(--text-primary); }
.clarity-rail-item.is-active { color:var(--brand-primary); }
.clarity-rail-item.is-active .clarity-rail-symbol { background:white; color:var(--brand-primary); box-shadow:0 1px 3px #22222205; }
.clarity-rail-bottom { margin-top:auto; padding-top:24px; }
.clarity-account-button { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#e7e9f0; border:3px solid #fff; color:var(--brand-primary); font-size:11px; font-weight:700; }
.clarity-topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; height:84px; padding:0 36px; background:white; }
.clarity-workspace-identity,.clarity-topbar-actions { display:flex; align-items:center; gap:17px; min-width:0; }
.clarity-wordmark { display:flex; align-items:center; flex-shrink:0; }
.clarity-wordmark img { display:block; object-fit:contain; width:128px; height:36px; }
.clarity-header-context { display:flex; align-items:center; gap:16px; color:#828994; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.clarity-header-context>span { color:#c6c9d1; }
.clarity-role { padding:6px 10px; border:1px solid var(--border-default); border-radius:20px; font-size:10px; color:#858b95; white-space:nowrap; }
.clarity-icon-button { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; flex-shrink:0; padding:0; border:0; border-radius:10px; color:#737a85; background:transparent; }
.clarity-icon-button .icon { width:22px; height:22px; stroke-width:1.6; }
.clarity-icon-button:hover { background:#f3f4f7; color:var(--brand-primary); }
.clarity-content.app-content { width:100%; max-width:1520px; margin:auto; padding:34px 44px 48px; background:#fff; animation:none; min-width:0; }
.clarity-content.clarity-home-content { max-width:1120px; padding:0 46px 34px; }
.clarity-workspace-footer { max-width:1432px; margin:0 auto; padding:12px 44px 25px; display:flex; justify-content:space-between; gap:18px; font-size:9px; color:#9298a2; }
.clarity-workspace-footer>span { display:flex; gap:8px; }
.clarity-workspace-footer a { display:inline-flex; align-items:center; gap:5px; }
.clarity-workspace-footer .icon { width:11px; height:11px; }

/* One control language across matter work, research, review, forms and chamber settings. */
body:is(.clarity-workspace,.clarity-client) .btn { border:1px solid var(--border-default); border-radius:9px; min-height:42px; padding:10px 14px; font-size:12px; font-weight:600; line-height:1.5; background:#fff; color:#525d70; box-shadow:none; transform:none; gap:8px; }
body:is(.clarity-workspace,.clarity-client) .btn:hover { background:#f7f8fa; border-color:#ccd2df; transform:none; box-shadow:none; }
body:is(.clarity-workspace,.clarity-client) .btn.primary { background:var(--brand-primary); border-color:var(--brand-primary); color:white; }
body:is(.clarity-workspace,.clarity-client) .btn.primary:hover { background:var(--button-primary-hover); border-color:var(--button-primary-hover); }
body:is(.clarity-workspace,.clarity-client) .btn.primary:active { background:var(--button-primary-pressed); }
body:is(.clarity-workspace,.clarity-client) .btn.sm { min-height:34px; padding:7px 11px; font-size:11px; }
body:is(.clarity-workspace,.clarity-client) .btn.text { border:0; background:transparent; color:var(--brand-primary); padding:7px 5px; }
body:is(.clarity-workspace,.clarity-client) .btn-icon { width:40px; height:40px; min-height:40px; padding:9px; justify-content:center; border-radius:9px; border:1px solid var(--border-default); background:#fff; color:#737a85; }
body:is(.clarity-workspace,.clarity-client) .btn:disabled { background:var(--disabled-background); color:var(--disabled-text); border-color:var(--disabled-border); box-shadow:none; cursor:not-allowed; }
body:is(.clarity-workspace,.clarity-client) :is(button,a,input,select,textarea,[contenteditable]):focus-visible { outline:2px solid var(--brand-primary); outline-offset:3px; }
.clarity-content .app-pagehead { margin-bottom:29px; gap:24px; align-items:flex-start; }
.clarity-content .app-pagehead .btn { white-space:nowrap; }
.clarity-content h1[tabindex="-1"]:focus { outline:none; }
.clarity-content .app-pagehead h1 { color:var(--text-primary); font-family:"DM Sans",Manrope,sans-serif; font-size:29px; font-weight:600; letter-spacing:-.85px; line-height:1.25; margin-bottom:10px; }
.clarity-content .app-pagehead p { font-size:12px; color:var(--text-secondary); line-height:1.8; max-width:720px; }
.clarity-content h2,.clarity-content h3 { color:var(--text-primary); }
.clarity-content .eyebrow { color:#949aa4; font-size:9px; letter-spacing:1.4px; }
body:is(.clarity-workspace,.clarity-client) :is(.panel,.stat,.source-card,.feature-block,.journey-tile) { border:1px solid var(--border-default); border-radius:14px; background:white; box-shadow:none; min-width:0; }
body:is(.clarity-workspace,.clarity-client) .panel-head { padding:18px 20px; border-bottom:1px solid #eef0f4; background:white; gap:15px; }
body:is(.clarity-workspace,.clarity-client) .panel-head h2,body:is(.clarity-workspace,.clarity-client) .panel-head h3 { margin:0; font-size:14px; font-weight:600; }
body:is(.clarity-workspace,.clarity-client) .panel-body { padding:21px; }
.clarity-content .pad { padding:23px; }
.clarity-content .grid { gap:20px; }
.clarity-content .stack { gap:20px; }
.clarity-content .stat { padding:23px; }
.clarity-content .stat strong { font-family:"DM Sans",Manrope,sans-serif; font-size:28px; color:var(--text-primary); font-weight:600; }
body:is(.clarity-workspace,.clarity-client) .tag { border:0; border-radius:6px; background:#f3f4f7; padding:5px 8px; color:#777e8b; font-size:10px; font-weight:500; }
body:is(.clarity-workspace,.clarity-client) .tag.blue { background:#f0f3fa; color:#536e9f; }
body:is(.clarity-workspace,.clarity-client) .tag.dark { background:#f2f1f6; color:#7d729e; }
body:is(.clarity-workspace,.clarity-client) .data-table { font-size:12px; }
body:is(.clarity-workspace,.clarity-client) .data-table th { background:#fafbfc; color:#8a919d; text-transform:none; font-size:10px; letter-spacing:0; font-weight:500; padding:13px 18px; border-bottom:1px solid var(--border-default); }
body:is(.clarity-workspace,.clarity-client) .data-table td { padding:17px 18px; border-bottom:1px solid #eff0f4; color:#626b79; line-height:1.7; }
body:is(.clarity-workspace,.clarity-client) .data-table td strong { font-size:12px; font-weight:600; color:#3c4658; }
body:is(.clarity-workspace,.clarity-client) .data-table tbody tr:hover { background:#fbfcfe; }
body:is(.clarity-workspace,.clarity-client) .data-table small { color:#9298a2; font-size:10px; }
body:is(.clarity-workspace,.clarity-client) :is(.field input,.field textarea,.field select,.search,.filter) { border:1px solid var(--border-default); border-radius:9px; background:#fff; color:var(--text-primary); padding:11px 12px; min-height:44px; font-family:inherit; font-size:13px; box-shadow:none; max-width:100%; }
body:is(.clarity-workspace,.clarity-client) .field { font-size:11px; color:#5d6778; font-weight:500; line-height:1.6; }
body:is(.clarity-workspace,.clarity-client) .field input:focus,body:is(.clarity-workspace,.clarity-client) .field textarea:focus,body:is(.clarity-workspace,.clarity-client) .field select:focus { border-color:#a6b2cc; }
body:is(.clarity-workspace,.clarity-client) .field textarea { min-height:110px; line-height:1.8; }
body:is(.clarity-workspace,.clarity-client) .field small { font-size:10px; color:#9298a2; font-weight:400; }
body:is(.clarity-workspace,.clarity-client) input::placeholder,body:is(.clarity-workspace,.clarity-client) textarea::placeholder { color:#a0a5ae; }
.clarity-content :is(.record-toolbar,.toolbar) { gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.clarity-content .record-toolbar>.field { flex:0 1 230px; min-width:130px; }
.clarity-content[data-clarity-page="P02"] .record-toolbar>.field { flex:1 1 150px; min-width:140px; }
.clarity-content[data-clarity-page="P02"] .record-toolbar>.field:first-child { flex:2 1 240px; }
.clarity-content :is(.toolbar,.record-toolbar) .search { flex:1 1 200px; min-width:0; }
.clarity-content :is(.toolbar,.record-toolbar) select { min-height:42px; max-width:100%; border:1px solid var(--border-default); border-radius:9px; background:white; padding:10px 12px; }
body:is(.clarity-workspace,.clarity-client) .tabs { gap:12px; border-bottom:1px solid var(--border-default); margin:20px 0 25px; padding-bottom:0; }
body:is(.clarity-workspace,.clarity-client) .tabs :is(button,a) { color:#9298a2; font-size:12px; padding:12px 4px; min-height:44px; background:none; border-radius:0; border-bottom:2px solid transparent; }
body:is(.clarity-workspace,.clarity-client) .tabs .active { color:var(--brand-primary); border-color:var(--brand-primary); font-weight:600; }
.clarity-content .setting-menu a { border-radius:8px; font-size:12px; padding:12px; }
.clarity-content .setting-menu a.active { background:#f3f5f9; color:var(--brand-primary); }
body:is(.clarity-workspace,.clarity-client) .callout { background:#f6f7fa; border-color:#c0c7d7; border-radius:0 9px 9px 0; padding:15px 17px; color:#687386; font-size:12px; line-height:1.8; }
.clarity-content .record-note { background:#fafbfc; color:#8b929e; border:1px solid #eef0f4; border-radius:9px; font-size:10px; line-height:1.8; padding:12px 15px; }
.clarity-content .list-item { padding:16px 0; border-color:#eef0f4; }
.clarity-content .list-item small { color:#949ba6; }
.clarity-content .breadcrumb { font-size:10px; color:#9299a4; margin-bottom:16px; }
.clarity-content .meta-grid small { color:#939ba6; font-size:10px; }
.clarity-content .meta-grid b { font-size:12px; font-weight:500; }
.clarity-content .square,.clarity-content .avatar { background:#f4f5f8; color:#6d7c99; border-color:#eef0f4; }
body.clarity-workspace .dialog { border:1px solid var(--border-default); border-radius:18px; background:white; padding:26px; max-width:calc(100vw - 32px); box-shadow:0 25px 100px #15243a18; }
body.clarity-workspace .dialog::backdrop { background:#25324a38; backdrop-filter:blur(2px); }
body.clarity-workspace .dialog>header { border-bottom:1px solid #eef0f4; padding:0 0 18px; margin-bottom:21px; }
body.clarity-workspace .dialog h2 { font-family:"DM Sans",Manrope,sans-serif; font-size:23px; font-weight:600; letter-spacing:-.6px; }
body.clarity-workspace .dialog p { line-height:1.8; }

/* The editor keeps a paper-first document surface and clear source/review columns. */
.clarity-content .editor-wrap { display:grid; grid-template-columns:190px minmax(0,1fr) 250px; gap:0; border:1px solid var(--border-default); border-radius:14px; background:#f7f8fa; overflow:hidden; }
.clarity-content :is(.editor-left,.editor-right) { display:block; grid-column:auto; padding:23px 18px; background:white; border-color:var(--border-default); font-size:12px; line-height:1.8; min-width:0; }
.clarity-content .editor-left h4 { font-size:9px; font-weight:600; color:#9299a5; letter-spacing:1px; text-transform:uppercase; margin:23px 0 12px; }
.clarity-content .editor-left h4:first-child { margin-top:0; }
.clarity-content .editor-left>.btn.text { justify-content:flex-start; text-align:left; display:flex; width:100%; }
.clarity-content .editor-center { padding:20px; min-width:0; background:#f7f8fa; }
.clarity-content .editor-tools { gap:5px; margin-bottom:13px; background:none; border-color:var(--border-default); padding:0; }
.clarity-content .editor-tools .btn { min-width:30px; padding-inline:8px; }
.clarity-content .draft-sheet { border:1px solid #e7e9ee; border-radius:3px; padding:40px 34px; background:#fff; color:#303743; box-shadow:0 3px 12px #26304405; font-family:Georgia,"Times New Roman",serif; font-size:16px; line-height:1.9; min-height:650px; }
.clarity-content .editor-right h3 { font-size:13px; }
.clarity-content .editor-right>.btn { margin-block:6px; }
.clarity-editor-tabs { display:none; }
.clarity-content .field:has(select[name="draftSaveResponse"]),.clarity-content .field:has(select[name="documentResponse"]) { display:none; }
.clarity-content .finding { background:#fafbfc; border:1px solid var(--border-default); border-radius:9px; padding:14px; margin-block:14px; }
.clarity-content .finding p { font-size:11px; line-height:1.7; }
.clarity-content .document-page { background:white; border-radius:4px; border:1px solid var(--border-default); box-shadow:none; }
.clarity-content .doc-text { background:#fff; color:#455063; border:1px solid var(--border-default); border-radius:9px; padding:20px; line-height:1.9; }
.clarity-content .intake-context { background:#fafbfc; border:1px solid var(--border-default); border-radius:12px; box-shadow:none; }
.clarity-content .intake-context h2 { color:#39475d; font-size:19px; }
.clarity-content .intake-topgrid { gap:20px; }
.clarity-content .run-stage { background:#fff; border:1px solid var(--border-default); border-radius:10px; }
.clarity-review-request { display:flex; align-items:flex-start; gap:20px; justify-content:space-between; border:1px solid var(--border-default); background:#fafbfe; border-radius:12px; padding:18px 20px; margin-bottom:25px; }
.clarity-review-request span { font-size:10px; color:#8b93a1; }
.clarity-review-request p { font-size:12px; line-height:1.8; margin:6px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }

/* The approved prompt-first overview. */
.clarity-start { text-align:center; padding-top:60px; }
.clarity-start h1 { font-family:"DM Sans",Manrope,sans-serif; color:#282b31; font-size:44px; font-weight:600; letter-spacing:-1.8px; line-height:1.16; margin:0; }
.clarity-start>p { margin-top:16px; color:#868c96; font-size:14px; line-height:1.8; }
.clarity-composer { max-width:820px; margin:33px auto 0; border:1px solid #e1e4ea; border-radius:22px; padding:20px 20px 14px; background:#fff; box-shadow:0 10px 38px #212d4b08; text-align:left; }
.clarity-composer:focus-within { border-color:#b8c1d5; box-shadow:0 10px 38px #212d4b0c; }
.clarity-composer textarea { width:100%; min-height:87px; max-height:240px; border:0; background:none; padding:0 2px; font-family:inherit; font-size:17px; line-height:1.6; resize:vertical; color:var(--text-primary); outline:0; }
body.clarity-workspace .clarity-composer textarea:focus-visible { outline:0; }
.clarity-composer textarea::placeholder { color:#a0a5af; }
.clarity-composer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:8px; }
.clarity-composer-options { display:flex; align-items:center; gap:9px; min-width:0; }
.clarity-attach { width:36px; height:36px; border:1px solid var(--border-default); border-radius:50%; }
.clarity-mode { display:flex; align-items:center; gap:5px; height:36px; padding:0 5px 0 11px; border:1px solid var(--border-default); border-radius:20px; }
.clarity-mode>.icon { width:16px; height:16px; color:#8b929e; }
.clarity-mode select { display:block; width:auto; height:32px; min-height:0; padding:0 31px 0 0; border:0; background-color:transparent; color:#6a727e; font-family:inherit; font-size:11px; max-width:135px; margin:0; cursor:pointer; }
.clarity-mode:focus-within { outline:2px solid var(--brand-primary); outline-offset:3px; }
body.clarity-workspace .clarity-mode select:focus-visible { outline:0; }
.clarity-matter-picker { display:flex; align-items:center; gap:7px; min-width:0; height:36px; border:0; border-radius:18px; padding:0 8px; background:none; color:#8a929e; font-family:inherit; font-size:11px; }
.clarity-matter-picker:hover { background:#f6f7fa; }
.clarity-matter-picker>.icon { width:15px; height:15px; }
.clarity-matter-picker>span:not(.clarity-picker-chevron) { max-width:170px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.clarity-picker-chevron { margin-left:3px; }
.clarity-send { display:grid; place-items:center; flex-shrink:0; width:38px; height:38px; border:0; border-radius:50%; background:var(--brand-primary); color:white; }
.clarity-send:disabled { background:#eceef3; color:#a7adba; }
.clarity-send:not(:disabled):hover { background:var(--button-primary-hover); }
.clarity-send .icon { width:23px; height:23px; }
.clarity-start .clarity-composer-note { font-size:10px; color:#969da7; line-height:1.6; margin-top:13px; }
.clarity-suggestions { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; margin-top:24px; }
.clarity-suggestions button { display:flex; align-items:center; gap:10px; background:none; border:1px solid var(--border-default); border-radius:18px; padding:8px 12px; color:#7b838f; font-size:10px; line-height:1.5; }
.clarity-suggestions button:hover { border-color:#c9d1e0; background:#fafbfe; color:var(--brand-primary); }
.clarity-suggestions .icon { width:12px; height:12px; color:#a0a7b3; }
.clarity-tool-suites { display:grid; grid-template-columns:repeat(var(--suite-count,4),minmax(0,1fr)); max-width:940px; margin:43px auto 0; }
.clarity-tool-suite { padding:0 12px; border-right:1px solid var(--border-default); text-align:center; }
.clarity-tool-suite:last-child { border:0; }
.clarity-tool-suite h2 { margin:0 0 19px; font-size:9px; line-height:1.5; font-weight:600; letter-spacing:1.4px; text-transform:uppercase; color:#9299a4; }
.clarity-tool-suite>div { display:flex; justify-content:space-evenly; gap:10px; }
.clarity-tool { display:flex; align-items:center; flex-direction:column; gap:12px; min-width:66px; padding:5px 7px; border:0; border-radius:10px; background:none; color:#747d8b; font-size:11px; }
.clarity-tool:hover { background:#f8f9fb; color:var(--text-primary); }
.clarity-tool-icon .icon { width:29px; height:29px; stroke-width:1.55; }
.clarity-tool-icon.ochre { color:#b49365; }.clarity-tool-icon.blue { color:#6c86b0; }.clarity-tool-icon.violet { color:#9386b7; }.clarity-tool-icon.green { color:#6e9c94; }
.clarity-recent-section { max-width:940px; margin:58px auto 0; }
.clarity-recent-section>header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:17px; }
.clarity-recent-section h2 { margin:0; font-size:15px; font-weight:600; letter-spacing:-.25px; }
.clarity-quiet { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:36px; padding:5px 0; color:#8993a0; font-size:10px; }
.clarity-quiet:hover { color:var(--brand-primary); }
.clarity-quiet .icon { width:14px; height:14px; }
.clarity-recent-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.clarity-recent-card { display:flex; align-items:flex-start; gap:13px; position:relative; text-align:left; min-width:0; padding:20px 18px; background:white; border:1px solid var(--border-default); border-radius:14px; }
.clarity-recent-card:hover { border-color:#cbd2df; background:#fcfcfe; }
.clarity-document-icon { display:grid; place-items:center; width:34px; height:40px; flex-shrink:0; border:1px solid #edf0f6; background:#f8f9fc; border-radius:8px; color:#7b90b5; }
.clarity-document-icon .icon { width:19px; height:19px; }
.clarity-recent-text { display:flex; flex-direction:column; gap:6px; min-width:0; }
.clarity-recent-text strong { font-size:11px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-right:10px; color:#414957; }
.clarity-recent-text>span { font-size:10px; color:#9098a5; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.clarity-recent-text small { display:flex; align-items:center; flex-wrap:wrap; font-size:9px; color:#939caa; margin-top:5px; gap:6px; }
.clarity-recent-text small i { width:4px; height:4px; border-radius:50%; background:#9bacc8; }
.clarity-card-arrow { position:absolute; right:15px; top:20px; color:#b2bac6; }.clarity-card-arrow .icon { width:13px; height:13px; }
.clarity-diary-preview { display:flex; align-items:center; gap:16px; max-width:940px; margin:24px auto 0; border-top:1px solid var(--border-default); padding-top:20px; }
.clarity-diary-date { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; width:43px; height:48px; flex-shrink:0; border-radius:9px; background:#f6f7f9; color:#929aa7; }
.clarity-diary-date strong { font-size:16px; font-weight:600; color:#667181; line-height:1.3; }.clarity-diary-date>span { font-size:8px; text-transform:uppercase; letter-spacing:1px; }
.clarity-diary-kicker { font-size:8px; text-transform:uppercase; letter-spacing:1.1px; color:#949da9; }
.clarity-diary-preview h2 { font-size:11px; font-weight:500; margin:4px 0 0; }
.clarity-diary-preview p { font-size:9px; color:#949da9; margin:5px 0 0; }
.clarity-diary-preview .clarity-quiet { margin-left:auto; white-space:nowrap; }
.clarity-practice-summary { display:flex; justify-content:center; gap:23px; max-width:940px; margin:26px auto 0; }
.clarity-practice-summary .clarity-quiet { font-size:9px; color:#9aa3af; }.clarity-practice-summary .icon { display:none; }
.clarity-empty-start { grid-column:1/-1; text-align:center; padding:30px 25px; border:1px dashed var(--border-default); border-radius:14px; }
.clarity-empty-start>.icon { width:28px; height:28px; margin:0 auto 15px; color:#92a3c0; }
.clarity-empty-start h3 { font-size:15px; font-weight:500; }.clarity-empty-start p { font-size:12px; line-height:1.8; color:#929aa7; max-width:400px; margin:12px auto 20px; }
.clarity-operations-start { max-width:620px; margin:32px auto 0; padding:30px; border:1px solid var(--border-default); border-radius:20px; }.clarity-operations-start p { color:#858f9e; margin:0 0 20px; font-size:13px; }.clarity-operations-start .btn { margin-right:20px; }

/* Context is revealed only when needed, with native dialog focus and Escape behavior. */
.clarity-drawer { position:fixed; inset:0 auto 0 var(--clarity-rail-width); margin:0; width:330px; max-width:calc(100vw - var(--clarity-rail-width)); height:100dvh; max-height:100dvh; border:0; border-right:1px solid var(--border-default); border-radius:0; padding:24px; background:white; color:var(--text-primary); box-shadow:12px 0 45px #15223a0c; }
.clarity-drawer::backdrop { background:#222c3d26; }
.clarity-drawer>header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:23px; }
.clarity-drawer h2 { margin:0; font-family:"DM Sans",Manrope,sans-serif; font-size:21px; letter-spacing:-.5px; font-weight:600; }
#clarity-drawer-search { width:100%; min-height:44px; border:1px solid var(--border-default); border-radius:9px; padding:12px; background:#fafbfc; color:var(--text-primary); font-size:12px; margin-bottom:20px; }
.clarity-drawer-item { display:flex; align-items:flex-start; gap:12px; width:100%; padding:16px 0; text-align:left; line-height:1.6; border:0; border-bottom:1px solid #eff0f4; border-radius:0; background:none; color:#4c5769; }
.clarity-drawer-item:hover { color:var(--brand-primary); }.clarity-drawer-item>.icon { width:19px; height:19px; color:#929fb5; }
.clarity-drawer-item>span { display:flex; flex-direction:column; gap:7px; min-width:0; }
.clarity-drawer-item strong { font-size:12px; font-weight:500; overflow-wrap:anywhere; }.clarity-drawer-item small { font-size:10px; color:#939eac; }
.clarity-drawer-empty { font-size:12px; color:#8c98a9; padding:20px 0; line-height:1.8; }.clarity-drawer-actions { display:flex; gap:12px; flex-direction:column; margin-top:25px; }
.clarity-floating-menu { position:fixed; inset:auto; margin:0; min-width:260px; max-width:calc(100vw - var(--clarity-rail-width) - 16px); border:1px solid #e9ecf1; border-radius:14px; padding:10px; background:white; color:var(--text-primary); box-shadow:0 8px 35px #202b4512; }
.clarity-floating-menu::backdrop { background:transparent; }
.clarity-more { top:120px; left:calc(var(--clarity-rail-width) + 10px); max-height:calc(100dvh - 146px); overflow:auto; scrollbar-width:thin; }
.clarity-floating-menu>a,.clarity-chamber-menu>a { display:flex; align-items:center; gap:12px; width:100%; min-height:42px; padding:10px 12px; border-radius:7px; color:#667184; font-size:12px; }
.clarity-floating-menu a:hover { background:#f5f6f9; color:var(--brand-primary); }.clarity-floating-menu a[aria-current] { background:#f3f5f9; color:var(--brand-primary); }
.clarity-floating-menu a .icon { width:18px; height:18px; color:#909bae; }
.clarity-chamber-menu { margin-top:8px; padding-top:8px; border-top:1px solid var(--border-default); }
.clarity-chamber-menu summary { display:flex; justify-content:space-between; align-items:center; cursor:pointer; min-height:44px; padding:10px 12px; color:#7e8999; font-size:11px; list-style:none; }
.clarity-chamber-menu summary::-webkit-details-marker { display:none; }
.clarity-chamber-menu summary>span { transition:transform 150ms ease; }.clarity-chamber-menu[open] summary>span { transform:rotate(180deg); }
.clarity-menu-caption { display:block; padding:12px 12px 6px; margin:0; font-size:9px; letter-spacing:.8px; text-transform:uppercase; color:#929dac; }
.clarity-account { left:calc(var(--clarity-rail-width) + 10px); bottom:18px; min-width:285px; }
.clarity-account-details { display:flex; align-items:center; gap:15px; justify-content:space-between; padding:12px 7px 17px 12px; border-bottom:1px solid var(--border-default); margin-bottom:5px; }
.clarity-account-details>div { min-width:0; }.clarity-account-details strong { display:block; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.clarity-account-details small { display:flex; flex-wrap:wrap; gap:5px; color:#929dad; margin-top:6px; font-size:9px; }
.clarity-content .public-intent-card { max-width:940px; margin:20px auto 30px; border-radius:14px; background:#fafbfe; box-shadow:none; }

@media(min-width:1600px) { .clarity-content.clarity-home-content { max-width:1200px; }.clarity-start { padding-top:78px; }.clarity-start h1 { font-size:48px; } }
@media(max-width:1250px) { .clarity-content .editor-wrap { grid-template-columns:minmax(0,1fr) 230px; }.clarity-content .editor-left { grid-column:1/-1; display:flex; gap:10px; flex-wrap:wrap; border-right:0; border-bottom:1px solid var(--border-default); }.clarity-content .editor-left h4 { width:100%; margin:5px 0; }.clarity-content .editor-left>.btn.text { width:auto; }.clarity-content .editor-left>.list-item { flex:1 1 220px; } }
@media(max-width:1100px) { .clarity-content.app-content { padding:28px 30px 35px; }.clarity-content.clarity-home-content { padding:0 32px 28px; }.clarity-topbar { padding-inline:24px; }.clarity-header-context { max-width:240px; }.clarity-start h1 { font-size:40px; }.clarity-tool-suite { padding-inline:5px; }.clarity-tool { min-width:58px; padding-inline:3px; }.clarity-recent-card { padding-inline:13px; gap:9px; }.clarity-recent-text strong { font-size:10px; } }
@media(max-width:900px) { .clarity-topbar-actions { gap:8px; }.clarity-role { display:none; }.clarity-header-context { max-width:180px; }.clarity-content .g3,.clarity-content .g4 { grid-template-columns:repeat(2,minmax(0,1fr)); }.clarity-content .intake-topgrid,.clarity-content .detail-grid,.clarity-content .ocr-grid,.clarity-content .assistant-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) {
  body.clarity-workspace { --clarity-rail-width:70px; }
  .clarity-shell .app-side.clarity-rail { padding:19px 5px 14px; }
  .clarity-rail-brand img { width:34px; height:34px; }.clarity-rail-nav { gap:12px; margin-top:27px; }.clarity-rail-item { min-height:60px; font-size:9px; gap:5px; }.clarity-rail-symbol { width:39px; height:36px; }
  .clarity-topbar { height:74px; padding:0 20px; gap:10px; }.clarity-workspace-identity { gap:8px; }.clarity-wordmark img { width:116px; height:32px; }.clarity-header-context { display:none; }.clarity-topbar-actions { gap:1px; }.clarity-topbar-actions .clarity-icon-button { width:34px; height:38px; }
  .clarity-content.app-content { padding:25px 24px 30px; }.clarity-content.clarity-home-content { padding:0 24px 28px; }
  .clarity-content .app-pagehead { flex-direction:column; gap:18px; }.clarity-content .app-pagehead h1 { font-size:25px; }.clarity-content .app-pagehead>div:last-child { flex-wrap:wrap; }
  .clarity-content .editor-wrap { grid-template-columns:minmax(0,1fr); }.clarity-content .editor-left { display:flex; }.clarity-content .editor-right { border-left:0; border-top:1px solid var(--border-default); }.clarity-content .editor-center { padding:13px; }.clarity-content .draft-sheet { padding:27px 20px; min-height:500px; }
  .clarity-editor-tabs { display:flex; gap:5px; padding:4px; background:#f3f4f7; border-radius:10px; margin-bottom:15px; }
  .clarity-editor-tabs button { flex:1; min-height:40px; background:none; border:0; border-radius:7px; font-size:11px; color:#8a94a3; }
  .clarity-editor-tabs button[aria-selected=true] { background:white; color:var(--brand-primary); box-shadow:0 1px 3px #27365308; }
  .clarity-content .g2,.clarity-content .settings-grid { grid-template-columns:minmax(0,1fr); }.clarity-content .record-settings { grid-template-columns:minmax(0,1fr); }.clarity-content .panel-head { padding:16px; flex-wrap:wrap; }.clarity-content .panel-body { padding:17px; }.clarity-content .pad { padding:18px; }
  body.clarity-workspace :is(.field input,.field textarea,.field select,.search,.filter) { font-size:16px; }
  .clarity-content .setting-menu { display:flex; flex-wrap:wrap; gap:4px; }.clarity-content .setting-menu a { flex:1 1 auto; }
  .clarity-workspace-footer { padding:15px 24px 22px; flex-wrap:wrap; font-size:8px; }
  .clarity-start { padding-top:42px; }.clarity-start h1 { font-size:35px; letter-spacing:-1.3px; max-width:450px; margin:auto; }.clarity-start>p { font-size:12px; margin-top:12px; }
  .clarity-composer { margin-top:27px; padding:16px 13px 12px; border-radius:18px; }.clarity-composer textarea { font-size:15px; min-height:98px; }.clarity-composer-options { gap:6px; }.clarity-mode { padding-left:8px; }.clarity-mode>.icon { display:none; }.clarity-mode select { max-width:110px; }
  .clarity-matter-picker>span:not(.clarity-picker-chevron) { max-width:94px; }.clarity-matter-picker>.icon { display:none; }.clarity-start .clarity-composer-note { font-size:9px; }
  .clarity-suggestions { gap:6px; margin-top:20px; }.clarity-suggestions button { font-size:9px; padding:7px 9px; }.clarity-suggestions .icon { display:none; }
  .clarity-tool-suites { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 0; margin-top:36px; }.clarity-tool-suite:nth-child(2n) { border:0; }.clarity-tool-suite h2 { margin-bottom:12px; }.clarity-tool-suite>div { justify-content:center; gap:20px; }.clarity-tool { font-size:10px; gap:9px; }.clarity-tool-icon .icon { width:26px; height:26px; }
  .clarity-recent-section { margin-top:38px; }.clarity-recent-section h2 { font-size:13px; }.clarity-recent-grid { grid-template-columns:1fr; gap:10px; }.clarity-recent-card { padding:17px 14px; }.clarity-recent-text strong { font-size:11px; }
  .clarity-diary-preview { gap:10px; }.clarity-diary-preview>.clarity-quiet { font-size:0; gap:0; min-width:32px; }.clarity-diary-preview>.clarity-quiet .icon { width:17px; height:17px; }.clarity-diary-preview h2 { font-size:10px; }.clarity-diary-preview p { font-size:8px; }
  .clarity-drawer { padding:21px; }.clarity-drawer h2 { font-size:19px; }.clarity-more { top:90px; left:calc(var(--clarity-rail-width) + 5px); min-width:225px; max-height:calc(100dvh - 110px); }.clarity-account { left:calc(var(--clarity-rail-width) + 5px); min-width:225px; }
  .clarity-practice-summary { gap:14px; flex-wrap:wrap; }.clarity-practice-summary .clarity-quiet { font-size:8px; }.clarity-review-request { padding:15px; gap:12px; }
}
@media(max-width:500px) {
  .clarity-content.app-content { padding-inline:17px; }.clarity-content.clarity-home-content { padding-inline:18px; }.clarity-topbar { padding-inline:10px; }.clarity-workspace-identity { gap:3px; }.clarity-wordmark img { width:108px; height:30px; }.clarity-topbar-actions .clarity-icon-button { width:30px; }.clarity-topbar-actions .clarity-icon-button .icon { width:18px; height:18px; }
  .clarity-content .g3,.clarity-content .g4 { grid-template-columns:minmax(0,1fr); }.clarity-content .app-pagehead h1 { font-size:23px; overflow-wrap:anywhere; }.clarity-content .app-pagehead .btn { font-size:11px; padding-inline:10px; }
  .clarity-content .tabs { gap:9px; }.clarity-content .tabs :is(button,a) { font-size:11px; }
  .clarity-start { padding-top:30px; }.clarity-start h1 { font-size:31px; letter-spacing:-1.3px; max-width:285px; }.clarity-start>p { font-size:10px; }
  .clarity-composer textarea { min-height:113px; font-size:14px; }.clarity-composer-toolbar { gap:6px; align-items:flex-start; }.clarity-composer-options { flex:1; flex-wrap:wrap; gap:5px; }.clarity-matter-picker { flex-basis:100%; justify-content:flex-start; height:28px; margin-top:3px; padding-inline:2px; font-size:9px; }.clarity-matter-picker>span:not(.clarity-picker-chevron) { max-width:145px; }.clarity-mode { gap:3px; padding-inline:7px; }.clarity-mode select { font-size:10px; }.clarity-send { width:34px; height:34px; }.clarity-attach { width:32px; height:32px; }
  .clarity-suggestions button { font-size:8px; min-height:36px; padding-inline:8px; }.clarity-tool-suite>div { gap:8px; }.clarity-tool { min-width:55px; font-size:9px; }.clarity-recent-section h2 { font-size:11px; }.clarity-quiet { font-size:9px; }.clarity-recent-text strong { font-size:10px; }.clarity-recent-text>span { font-size:8px; }.clarity-recent-text small { font-size:8px; }.clarity-document-icon { width:28px; height:34px; }.clarity-recent-card { gap:8px; padding-inline:10px; }.clarity-card-arrow { right:8px; }.clarity-diary-preview h2 { font-size:9px; }.clarity-empty-start { padding:25px 16px; }.clarity-empty-start p { font-size:11px; }
  .clarity-workspace-footer { padding-inline:18px; flex-direction:column; gap:8px; }.clarity-operations-start { padding:20px; }.clarity-operations-start .btn { margin:0 0 12px; }
  body.clarity-workspace .dialog { padding:20px 16px; }body.clarity-workspace .dialog h2 { font-size:21px; }
}
@media(max-height:680px) { .clarity-rail-nav { gap:5px; margin-top:20px; }.clarity-rail-item { min-height:54px; }.clarity-rail-bottom { padding-top:14px; } }
@media(prefers-reduced-motion:reduce) { .clarity-shell *,body.clarity-workspace .dialog { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
