/* NOUN Update compact TMA workspace. Load AFTER tma-suite.css.
   Scoped to compact pages, avoiding changes to the rest of the website. */
.tma-compact-page{background:#f4f8f5!important;color:#173527}
.tma-compact-page .tma-shell{width:min(1420px,calc(100% - 32px));margin-inline:auto}
.tma-compact-page .tma-shell *{box-sizing:border-box}
.tma-workspace,.tma-archive-workspace{padding-top:12px}
.tma-workspace-crumb{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:#6b8074;margin-bottom:4px}
.tma-workspace-crumb a{color:#146a40;text-decoration:none;font-weight:650}
.tma-workspace-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:6px 2px 14px}
.tma-workspace-title h1,.tma-archive-heading h1{font-size:clamp(23px,2.5vw,31px);line-height:1.17;letter-spacing:-.032em;color:#124e32;margin:0 0 5px!important}
.tma-workspace-title p,.tma-archive-heading p{font-size:13px;color:#62796b;line-height:1.5;margin:0!important}
.tma-balance-pill{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #d4e7da;border-radius:13px;padding:10px 12px;box-shadow:0 4px 20px rgba(12,84,47,.035);font-size:12px;flex-shrink:0}
.tma-balance-pill span{font-weight:600;color:#5e7769}
.tma-balance-pill strong{font-size:19px;color:#067044;white-space:nowrap}
.tma-balance-pill a{padding:7px 10px;background:#e6f6ec;color:#066c3c;border-radius:8px;font-size:12px;font-weight:800;text-decoration:none}
.tma-adfree-label{color:#07804d!important;font-weight:850!important}
.tma-compact-page .tma-workspace-grid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:13px;margin:0;align-items:stretch;height:calc(100dvh - 206px);min-height:520px;max-height:960px}
.tma-compact-page .tma-workspace-panel{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:17px 18px;background:#fff;border:1px solid #dce8df;border-radius:17px;box-shadow:0 6px 30px rgba(10,71,39,.045);scrollbar-width:thin;scrollbar-color:#c4decf transparent}
.tma-workspace-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.tma-workspace-panel-head h2{font-size:18px;line-height:1.25;margin:0!important;color:#145439}
.tma-small-tag{background:#edf7f1;border-radius:20px;padding:5px 9px;color:#40805a;font-size:11px;font-weight:750;white-space:nowrap}
.tma-workspace-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.75fr) minmax(0,1.25fr);gap:10px}
.tma-workspace .tma-form-field{margin-bottom:11px}
.tma-workspace .tma-form-field label{font-size:12px;margin-bottom:5px;font-weight:800}
.tma-workspace .tma-input{font-size:14px;border-radius:9px;padding:10px 11px;min-height:42px}
.tma-workspace .tma-textarea{min-height:0;resize:vertical;font-size:14px;line-height:1.55}
.tma-workspace #tma-question{height:92px;min-height:72px}
.tma-workspace #tma-options{height:117px;min-height:84px}
.tma-workspace .tma-format-note{font-size:11px;margin:0 0 9px;color:#6b7f74}
.tma-workspace .tma-options-preview{padding:10px!important;margin:4px 0 12px!important;border-radius:11px}
.tma-workspace .tma-preview-head{gap:4px}
.tma-workspace .tma-preview-head strong{font-size:12px}
.tma-workspace .tma-preview-head span{font-size:11px}
.tma-workspace .tma-detected-list{max-height:96px;overflow-y:auto;margin:7px 0 0;gap:4px}
.tma-workspace .tma-detected-list li{font-size:12px;padding:5px 8px;line-height:1.35}
.tma-workspace .tma-detected-list strong{width:20px;min-width:20px;height:20px}
.tma-workspace-paybar{position:sticky;bottom:-17px;z-index:2;background:#fff;border-top:1px solid #e7eee9;padding:10px 0 12px;box-shadow:0 -8px 12px rgba(255,255,255,.92)}
.tma-paybar-price{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;color:#6a8172}
.tma-paybar-price strong{font-size:17px;color:#087345}
.tma-workspace .tma-submit-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:7px 0}
.tma-workspace .tma-btn--submit{width:100%;min-height:46px;font-size:14px;padding:11px 12px}
.tma-workspace .tma-next{min-height:46px;font-size:12px;padding:9px 15px}
.tma-workspace-paybar small{display:block;font-size:11px;line-height:1.4;color:#708477}
.tma-workspace .tma-feedback{font-size:12px;margin-top:9px;padding:9px 11px}
.tma-workspace-result{background:#fafdfa!important}
.tma-workspace .tma-answer{margin:0;padding:10px;border-radius:13px;border:0;background:transparent;box-shadow:none}
.tma-workspace .tma-answer .nutma-v16-answer{padding:13px!important}
.tma-workspace .tma-material-help{margin:0;font-size:13px}
.tma-empty-answer{margin:16px 4px 0;border:1px dashed #bbd7c5;border-radius:16px;padding:35px 20px;text-align:center;color:#607b6d;background:#f8fcf9}
.tma-empty-answer[hidden]{display:none!important}
.tma-empty-answer strong{display:block;color:#235840;margin:9px 0 6px}
.tma-empty-answer p{font-size:13px;line-height:1.6;margin:0}
.tma-empty-icon{margin:auto;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#dff3e7;color:#067445;font-size:23px;font-weight:900}
.tma-workspace-note{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:10px 22px;font-size:11px;color:#668071;padding:11px 4px 14px}
.tma-workspace-note a{color:#147449;font-weight:800;text-decoration:none}
.tma-mobile-switch{display:none}
/* The server-side flag prevents ad scripts from rendering when the shared
   ad includes honour it. This is only a visual fallback, not a replacement. */
.tma-funded-adfree ins.adsbygoogle,.tma-funded-adfree .google-auto-placed,.tma-funded-adfree .tma-ad-slot{display:none!important}

/* Archive: search-first design, with a compact premium shortcut. */
.tma-archive-workspace{max-width:1040px;min-height:55vh}
.tma-archive-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:6px 0 15px}
.tma-archive-heading h1{font-size:clamp(24px,3vw,35px)}
.tma-archive-heading p{max-width:640px}
.tma-archive-premium{flex-shrink:0;font-size:13px!important}
.tma-compact-page .tma-archive-search{margin:0;padding:19px 21px;border-radius:18px;scroll-margin-top:85px}
.tma-archive-search>.tma-field-label{margin:0 0 7px;max-width:none;font-size:14px}
.tma-archive-search .tma-search-row{max-width:none;margin:0}
.tma-archive-search .tma-input{font-size:17px;min-height:54px}
.tma-archive-search .tma-field-hint{margin:8px 0 0;max-width:none;font-size:12px}
.tma-archive-search .tma-search-results{margin-top:11px;max-height:58vh;overflow-y:auto;overscroll-behavior:contain}
.tma-archive-shortcuts{margin-top:13px;border-radius:14px;border:1px solid #d3e8dc;background:#ebf7ef;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.tma-archive-shortcuts strong{font-size:14px;color:#12633b}
.tma-archive-shortcuts p{font-size:12px;color:#6a7a70;margin:3px 0 0}
.tma-archive-shortcuts .tma-btn{font-size:12px;white-space:nowrap;min-height:40px}
.tma-archive-help{margin-top:15px;padding:10px 15px;border:1px solid #e0ebe4;background:#fff;border-radius:13px}
.tma-archive-help summary{font-size:13px;font-weight:800;cursor:pointer;color:#285c40}
.tma-archive-help-body{padding:8px 0 3px;font-size:13px;color:#5a7261;line-height:1.6}
.tma-archive-help-body>div{display:flex;flex-wrap:wrap;gap:8px 14px}
.tma-archive-help-body a{font-size:12px;color:#076b41;font-weight:800;text-decoration:none}
.tma-archive-disclaimer{font-size:11px;color:#748278;margin:11px 0 20px}
@media (max-width:900px){
 .tma-workspace-top{gap:9px}
 .tma-workspace .tma-workspace-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .tma-workspace-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .tma-format-field{grid-column:1/-1}
}
@media (max-width:700px){
 .tma-compact-page .tma-shell{width:calc(100% - 22px)}
 .tma-workspace{padding-top:7px}
 .tma-workspace-top{padding:6px 0 10px;gap:8px;align-items:flex-start}
 .tma-workspace-title h1{font-size:20px}
 .tma-workspace-title p{font-size:11px;line-height:1.35}
 .tma-workspace-crumb{font-size:10px}
 .tma-balance-pill{display:flex;flex-direction:column;align-items:end;gap:1px;padding:7px 9px;border-radius:10px}
 .tma-balance-pill span{font-size:10px}
 .tma-balance-pill strong{font-size:16px}
 .tma-balance-pill a{font-size:10px;padding:3px 7px}
 .tma-mobile-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 9px;border:1px solid #d6e8dc;background:#eaf3ed;border-radius:12px}
 .tma-switch-btn{background:transparent;border:0;color:#427057;border-radius:9px;font-family:inherit;font-weight:700;font-size:13px;line-height:1.3;padding:11px 6px;cursor:pointer;min-height:43px}
 .tma-switch-btn.is-active{background:#fff;color:#077243;box-shadow:0 3px 12px rgba(10,65,35,.09)}
 #tma-answer-dot{display:inline-block;width:6px;height:6px;margin-left:2px;border-radius:50%;background:transparent}
 #tma-answer-dot.is-ready{background:#0b9a52}
 .tma-compact-page .tma-workspace-grid{display:block;height:auto;min-height:0;max-height:none;margin:0}
 .tma-compact-page .tma-workspace-panel{height:calc(100dvh - 194px);min-height:365px;max-height:780px;padding:13px;overflow-y:auto;border-radius:13px}
 .tma-compact-page[data-tma-view="question"] #tma-workspace-answer,
 .tma-compact-page[data-tma-view="answer"] #tma-workspace-question{display:none!important}
 .tma-workspace-panel-head{margin-bottom:9px}
 .tma-workspace-panel-head h2{font-size:16px}
 .tma-workspace-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .tma-format-field{grid-column:1/-1}
 .tma-workspace #tma-question{height:85px}
 .tma-workspace #tma-options{height:107px}
 .tma-workspace .tma-form-field{margin-bottom:8px}
 .tma-workspace .tma-input{min-height:40px;padding:8px 9px}
 .tma-workspace .tma-detected-list{max-height:73px}
 .tma-workspace-paybar{bottom:-13px}
 .tma-workspace-note{padding:9px 2px;font-size:10px}
 .tma-archive-heading{flex-direction:column;align-items:stretch;margin-bottom:10px;gap:9px}
 .tma-archive-heading h1{font-size:24px}
 .tma-archive-premium{align-self:start;min-height:40px!important}
 .tma-compact-page .tma-archive-search{padding:14px}
 .tma-archive-search .tma-search-results{max-height:55vh}
 .tma-archive-shortcuts{align-items:stretch;flex-direction:column;padding:12px}
 .tma-archive-shortcuts .tma-btn{align-self:start}
}
@media (max-width:400px){
 .tma-workspace-title p{max-width:170px}
 .tma-balance-pill span{max-width:105px;text-align:right}
 .tma-workspace .tma-submit-actions{grid-template-columns:minmax(0,1fr) 74px}
 .tma-workspace .tma-next{padding:8px}
}
@media (prefers-reduced-motion:reduce){.tma-compact-page *{scroll-behavior:auto!important;transition:none!important}}

/* Dedicated compact navigation for ad-free paid users: no shared ad scripts. */
.tma-focus-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px max(16px,calc((100% - 1420px)/2));min-height:54px;background:#fff;border-bottom:1px solid #d5e9dc}
.tma-focus-brand{text-decoration:none;font-size:16px;font-weight:900;letter-spacing:-.04em;color:#065b37!important;white-space:nowrap}
.tma-focus-brand span{color:#b19116}
.tma-focus-nav>div{display:flex;align-items:center;gap:16px}
.tma-focus-nav>div a{text-decoration:none;font-size:12px;font-weight:750;color:#276647}
.tma-focus-footer{max-width:1420px;margin:0 auto;padding:12px 16px 18px;font-size:11px;color:#657e6f;text-align:center}
.tma-focus-footer a{color:#0b7144;text-decoration:none}
@media(max-width:410px){.tma-focus-nav>div{gap:8px}.tma-focus-nav>div a{font-size:11px}.tma-focus-nav{padding:9px 11px}}
