/* Midnight Dreams — shared across the workspace, settings, email, and login. */
:root{color-scheme:dark;--bg:#002233!important;--panel:#0b3043!important;--line:#325262!important;--muted:#c0d6ea!important;--ink:#f6f2e8!important;--green:#ddff55!important;--accent:#ddff55!important;--clay:#c5c0c9!important}
html body,html body.quasit-layout{background:var(--bg)!important;color:var(--ink)!important}
html body :is(.sidebar,.app-sidebar,.bottomnav,.app-bottom){background:#072b3e!important;border-color:var(--line)!important}
html body :is(h1,h2,h3,h4,strong,.brand,.app-wordmark,.tasktitle,.empty strong){color:var(--ink)!important}
html body :is(p,label,small,.small,.muted,.meta,.qa-intro,.qa-note-meta,.thread-meta,.thread-preview,.footer-note,.preview-note,.identity,.app-identity,.count,.subcount,.eyebrow,.background-status,#app-date,.desktopdate){color:var(--muted)!important}
html body :is(a,.qa-label,.thread-status){color:#c0d6ea!important}
html body :is(.nav button,.app-sidebar nav a,.side-menu-link,.bottomnav button,.app-bottom a){color:var(--muted)!important}
html body :is(.nav button.active,.app-sidebar nav a[aria-current],.bottomnav button.active,.app-bottom a[aria-current]){background:#11425d!important;color:#f6f2e8!important;box-shadow:inset 3px 0 #ddff55!important}
html body :is(.brand,.app-wordmark){color:var(--ink)!important}
html body button,html body .quasit-layout button{background:#11425d!important;color:var(--ink)!important;border-color:#466575!important}
html body :is(button.primary,.app-new,.app-fab,.fab,button[type=submit]:not(.quiet):not(.secondary)),html body.quasit-layout button:not(.secondary):not([data-app-menu]):not([data-app-close]){background:#ddff55!important;color:#fff!important;border-color:#ddff55!important}
html body :is(button.primary,.app-new,.app-fab,.fab):hover,html body.quasit-layout button:not(.secondary):not([data-app-menu]):not([data-app-close]):hover{background:#ddff55!important}
html body :is(button.secondary,#qa-live .secondary){background:#11425d!important;color:#f6f2e8!important;border-color:#466575!important}
html body :is(button.quiet,.taskbody,.edit,.check,.nav button,[data-app-menu],[data-app-close]){background:transparent!important;color:var(--muted)!important}
html body .nav button.active{background:#11425d!important;color:#f6f2e8!important}
html body :is(input,textarea,select,.modal,dialog,#app-menu,.qa-note,.glass,.prefs-panel,.settings-panel){background:#0b3043!important;color:var(--ink)!important;border-color:var(--line)!important}
html body :is(input,textarea)::placeholder{color:#c5c0c9!important;opacity:1}
html body :is(button,a,input,textarea,select):focus-visible{outline-color:#ddff55!important}
html body :is(input,textarea,select):focus{outline-color:#ddff55!important}
html body :is(.task,.topbar,.app-header,.sectionhead,.reviewhead,.sidefoot,.app-tools,.mail-section,.thread,.prefs-section,.background-status,.capture,.qa-row,.qa-tabs,.thread-row,.thread-filters,.qa-section){border-color:var(--line)!important}
html body :is(.capture,.capture input){background:transparent!important}
html body :is(.tag,.pill,.integration-pill,.category-tag,.avatar,.qa-needs-link){background:#11425d!important;color:#f6f2e8!important}
html body :is(.notice,.notice.ok,.notice:not(.error),.toast){background:#11425d!important;color:#f6f2e8!important}
html body :is(.notice.error,.tag.overdue,.overdue,.change,.updatebar){background:#263e4d!important;color:#f6f2e8!important;border-color:#c5c0c9!important}
html body :is(.notice,.updatebar) :is(p,small,.small){color:inherit!important}
html body :is(.qa-tabs,.thread-filters) a[aria-current]{color:#fff!important;border-color:#ddff55!important}
html body .qa-note{border-top-color:#ddff55!important}
html body .check:before{border-color:#c0d6ea!important}html body .check:hover:before{border-color:#ddff55!important;background:#11425d!important}html body .check.done:before{background:#ddff55!important}
html body .task.done .tasktitle{color:#c5c0c9!important}
html body .category-group h3{background:#0b3043!important}html body .category-group h3 span{color:var(--muted)!important}
html body .organize-bar button[aria-pressed=true]{color:#c0d6ea!important}
html body :is(.due,.status-action,.status-waiting,.status-pending){background:#11425d!important;color:#f6f2e8!important}
html body :is(.status-junk,.status-informational,.status-resolved){background:#11425d!important;color:#c0d6ea!important}
html body :is(.login-story,.login-brand,.auth-brand,.auth-aside){background-color:#072b3e!important}
html body :is(.login-form,.auth-form,.auth-main){background-color:#002233!important}
html body .qa-status-wrap .background-status[data-state=attention]{color:#f6f2e8!important}

html body .form-side{background:#002233!important}html body :is(.brand-copy,.brand-footer,.intro,.footnote){color:#c0d6ea!important}html body .submit{background:#ddff55!important;color:#fff!important}
html body .app-header,html body .topbar{background:#002233!important;color:#c0d6ea!important}
/* Compact, line-led workspace. Keep fields and dialogs distinct; flatten content. */
html body :is(#ocean-flat,.glass,.prefs-panel,.settings-panel,.category-group,.qa-summary,.qa-message,.mail-section,.account-section){background:transparent!important;box-shadow:none!important;border-radius:0!important;border-left:0!important;border-right:0!important}
html body .category-group h3{background:transparent!important;padding:10px 0 6px!important;margin:0!important;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:.09em}
html body .glass{border-top:0!important}
html body .task{padding:6px 0!important;gap:8px;border-bottom:1px solid var(--line)!important}
html body .task:last-child{border-bottom:0!important}
html body .taskbody{padding:3px 0!important}
html body :is(.sectionhead,.reviewhead){margin:18px 0 8px!important}
html body .heading{margin-bottom:12px!important}
html body .heading h1,html body .app-title h1{font-size:28px;margin-bottom:6px!important}
html body .topbar{margin-bottom:18px!important;padding-bottom:10px!important;min-height:42px}
html body .app-header{height:58px!important}
html body .shell>main{padding:18px clamp(20px,3vw,44px) 80px!important}
html body.quasit-layout main.app-main{padding:20px clamp(20px,3vw,44px) 64px!important}
html body .app-header{margin-left:clamp(20px,3vw,44px);margin-right:clamp(20px,3vw,44px)}
html body :is(.sidebar,.app-sidebar){padding:22px 16px!important;gap:20px!important}
html body :is(.nav,.app-sidebar nav){gap:2px!important}
html body :is(.nav button,.app-sidebar nav a){padding:9px 12px!important;min-height:44px}
html body .organize-bar{margin:10px 0 14px!important;gap:10px!important}
html body :is(.mail-section,.prefs-section,.account-section,.qa-section){padding:18px 0!important;margin:16px 0!important;border-top:1px solid var(--line)!important}
html body :is(.qa-row,.thread-row,.qa-message){padding:12px 0!important}
html body .qa-summary{padding:12px 0!important}
html body .qa-summary>p{line-height:1.5!important}
html body .qa-tabs{margin-bottom:14px!important;gap:20px}
html body .qa-intro{margin:6px 0 14px!important}
html body :is(.empty,.qa-empty){padding:24px 0!important}
html body .footer-note{margin-top:16px!important}
html body :is(button,input,textarea,select,.app-new){border-radius:4px!important}
html body :is(.tag,.category-tag,.due,.status-action,.status-waiting,.status-pending){background:transparent!important;padding:0!important;color:#c0d6ea!important}
html body .qa-notes{gap:12px 24px!important}
html body :is(#ocean-note,.qa-note){background:transparent!important;border-radius:0!important;border-top:1px solid var(--line)!important;padding:14px 0!important;box-shadow:none!important}
html body .qa-note>p{margin-bottom:12px!important}
@media(max-width:760px){html body .shell>main,html body.quasit-layout main.app-main{padding:16px 16px calc(130px + env(safe-area-inset-bottom))!important}html body .app-header{height:calc(56px + env(safe-area-inset-top))!important;margin:0;padding-left:16px;padding-right:16px}html body .organize-bar{flex-wrap:wrap!important}html body .topbar{margin-bottom:14px!important}html body .task{padding:8px 0!important}html body .qa-notes{grid-template-columns:1fr!important}}

/* Lime is reserved for actions and small active indicators. */
html body :is(button.primary,.app-new,.app-fab,.fab,.submit,button[type=submit]:not(.quiet):not(.secondary)),html body.quasit-layout button:not(.secondary):not([data-app-menu]):not([data-app-close]){color:#002233!important;background:#ddff55!important;border-color:#ddff55!important}
html body :is(button.primary,.app-new,.app-fab,.fab,.submit):hover{background:#e7ff8b!important;color:#002233!important}
html body :is(.nav button,.bottomnav button) .icon{color:inherit!important}
html body :is(.nav button.active,.app-sidebar nav a[aria-current]){color:#f6f2e8!important;box-shadow:inset 3px 0 #ddff55!important}
html body .check.done:before{background:#ddff55!important}html body .check.done .tick{color:#002233!important}
html body :is(.qa-needs-link,.pill,.integration-pill){background:#11425d!important;color:#f6f2e8!important}
html body :is(.waiting-tag,.status-waiting,.thread-status){color:#c5c0c9!important}
html body .calendar-date small{color:#c0d6ea!important}
/* Post-Its are intentionally paper notes, not flat content rows. */
html body #page-content .qa-notes{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;gap:24px!important;align-items:start;padding:12px 2px 28px}
html body #page-content article.qa-note{--paper:#f6f2e8;position:relative;display:flex;flex-direction:column;min-height:240px;padding:24px 20px 14px!important;background:var(--paper)!important;color:#002233!important;border:0!important;border-radius:0!important;box-shadow:2px 7px 12px #0003!important;overflow-wrap:anywhere}
html body #page-content article.qa-note:nth-child(4n+2){--paper:#c0d6ea}
html body #page-content article.qa-note:nth-child(4n+3){--paper:#c5c0c9}
html body #page-content article.qa-note:nth-child(4n){--paper:#e8f5aa}
html body #page-content article.qa-note:before{content:"";position:absolute;inset:0 0 auto;height:12px;background:#0022330a;pointer-events:none}
html body #page-content article.qa-note:after{content:"";position:absolute;right:0;bottom:0;width:17px;height:17px;background:linear-gradient(135deg,#00223326 0 49%,#002233 51%);pointer-events:none}
html body #page-content article.qa-note>p{color:#002233!important;font-size:15px;line-height:1.55;margin:0 0 16px!important;flex:1}
html body #page-content article.qa-note :is(strong,small,.qa-note-meta,a){color:#11425d!important}
html body #page-content article.qa-note .qa-note-meta:empty{display:none}
html body #page-content article.qa-note .qa-actions{margin-top:auto;padding-top:10px;border-top:1px solid #00223326;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
html body #page-content article.qa-note .qa-actions :is(a,button){font-size:12px;min-height:36px;padding:5px 0;display:inline-flex;align-items:center;background:transparent!important;color:#002233!important;border:0!important;font-weight:600;text-decoration:none}
html body #page-content article.qa-note .qa-actions a:hover,html body #page-content article.qa-note .qa-actions button:hover{text-decoration:underline}
html body #page-content article.qa-note .qa-actions form{margin:0 8px 0 auto}
html body #page-content article.qa-note :is(a,button):focus-visible{outline:2px solid #11425d!important;outline-offset:3px}
@media(max-width:540px){html body #page-content .qa-notes{grid-template-columns:1fr!important;gap:18px!important}html body #page-content article.qa-note{min-height:210px}html body #page-content article.qa-note .qa-actions :is(a,button){min-height:44px}}
