/* DearProf A-v10 shared layout. */
.dp-app-shell{max-width:1180px}

:root{--dp-wide:1180px;--dp-reader:860px;--dp-gutter:clamp(16px,3.5vw,48px)}

main.dp-workspace{box-sizing:border-box;width:100%;max-width:1180px;margin-inline:auto;padding:34px var(--dp-gutter) 110px}
main.dp-workspace.dp-reader{max-width:var(--dp-reader)}
main.dp-workspace.dp-thread{max-width:840px}
main.dp-workspace.dp-setup{max-width:860px}
main.dp-workspace.dp-archive{max-width:1180px}
main.dp-workspace.dp-note-discovery{max-width:1210px}
@media(max-width:820px){main.dp-workspace{padding:28px 24px 106px}}
@media(max-width:600px){main.dp-workspace{padding:24px 16px 104px}.dp-app-shell{border:0;border-radius:0}}

.dp-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:28px}
.dp-page-head h1,.dp-page-head h2{font-size:clamp(25px,2.6vw,34px);font-weight:650;letter-spacing:-.7px;line-height:1.24}
.dp-page-head p{max-width:70ch;margin-top:9px;color:var(--muted);font-size:14px;line-height:1.7}
.dp-eyebrow{margin-bottom:9px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.dp-surface{min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--surface)}

.dp-quiet-list{display:grid;gap:12px}.dp-quiet-list>li{min-width:0}
.dp-quiet-list a{transition:border-color .14s,background-color .14s}
.dp-quiet-list a:hover{border-color:var(--brand);background:var(--teal-soft)}
.dp-results{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;color:var(--muted);font-size:13px}
.dp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}.dp-grid>*{min-width:0}
.dp-quiet-empty{padding:56px 20px;border:1px dashed var(--line);border-radius:18px;background:var(--surface);text-align:center}

.dp-reader-lead{margin-bottom:30px;padding:16px 19px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--muted);font-size:13px;line-height:1.7}
.dp-reader-prose{max-width:76ch;font-size:15px;line-height:1.85}
.dp-reader-prose pre{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.75}
.dp-back-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--brand);font-weight:600;text-decoration:none}
.dp-back-link:hover{text-decoration:underline;text-underline-offset:4px}

.dp-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:650}
.dp-button:hover{border-color:var(--brand);background:var(--teal-soft)}
.dp-button-primary{border-color:var(--action);background:var(--action);color:var(--action-ink)}
.dp-button-primary:hover{background:var(--action);color:var(--action-ink);filter:brightness(.96)}
.dp-meta-strip{padding:15px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--muted);font-size:13px;line-height:1.7}

.dp-warning-panel{padding:18px;border:1px solid var(--coral-ink);border-radius:14px;background:var(--coral-soft);color:var(--coral-ink)}
.dp-login{padding:36px 28px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}
.dp-login .dp-button{width:100%}

.lean-filter[data-enhanced="true"]>select{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}
.lean-filter[data-enhanced="true"]>span{display:none}
.dp-select-trigger{display:none;align-items:center;justify-content:space-between;gap:9px;width:100%;min-height:48px;padding:9px 12px;border:0;border-radius:12px;background:transparent;color:var(--ink);text-align:left;font-size:13px;cursor:pointer}
.lean-filter[data-enhanced="true"]>.dp-select-trigger{display:flex}
.dp-select-name{flex:none;color:var(--muted);font-size:12px}
.dp-select-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}

.dp-select-trigger:hover,.dp-select-trigger[aria-expanded="true"]{background:var(--teal-soft)}
dialog.dp-choice-dialog{position:fixed;inset:auto;margin:0;padding:0;width:min(330px,calc(100vw - 24px));max-height:min(420px,calc(100dvh - 24px));border:1px solid var(--line);border-radius:17px;background:var(--raised);color:var(--ink);box-shadow:0 16px 42px #10251c30}
dialog.dp-choice-dialog::backdrop{background:transparent}

.dp-choice-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;padding:10px 12px 6px 17px}
.dp-choice-head h2{font-size:15px;font-weight:650}
.dp-choice-close{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;color:var(--muted);font-size:23px}
.dp-choice-close:hover{background:var(--teal-soft)}
.dp-choice-options{max-height:min(346px,calc(100dvh - 94px));overflow-y:auto;overscroll-behavior:contain;padding:5px 7px 10px}

.dp-choice-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:45px;padding:10px 12px;border-radius:9px;background:transparent;color:var(--ink);font-size:14px;line-height:1.45;text-align:left}
.dp-choice-option:hover,.dp-choice-option:focus-visible{background:var(--teal-soft)}
.dp-choice-option[aria-selected="true"]{background:var(--teal-soft);color:var(--brand);font-weight:650}
.dp-choice-option[aria-selected="true"]::after{content:"✓";flex:none}
.dp-choice-option[disabled]{opacity:.45;cursor:not-allowed}

@media(max-width:600px){.dp-choice-dialog{top:auto!important;left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:calc(100vw - 16px)!important;max-height:min(76dvh,540px);border-radius:19px}.dp-choice-dialog::backdrop{background:var(--overlay)!important}.dp-choice-option{min-height:48px}}
.dp-select-trigger:focus-visible,.dp-choice-dialog :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.dp-quiet-list a{transition:none}}

main.dp-auth{max-width:540px}
.dp-login [data-turbo="false"] a,.dp-login [data-turbo="false"] button{min-height:48px}
@media(max-width:600px){.dp-grid{grid-template-columns:1fr}.dp-page-head{align-items:flex-start;gap:12px;margin-bottom:23px}.dp-page-head h1,.dp-page-head h2{font-size:27px}.dp-quiet-empty{padding:38px 16px}.dp-login{padding:28px 20px}}
@media(prefers-reduced-motion:reduce){.dp-quiet-list a{transition:none}}

/* Floating-action geometry belongs exclusively to application.css (decision 0130).
   Changing either fixed button's right offset here makes Continue overlap Feedback at wide viewports. */
.dp-workspace :is(button,a,summary):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
