@font-face{font-family:Inter;src:url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:Inter;src:url("assets/fonts/inter-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");font-weight:700;font-display:swap}

.terrain-mobile-nav{display:none!important}
@media(max-width:900px){
  .shell-v2-active .terrain-mobile-nav{display:grid!important;text-decoration:none}
  .shell-v2-active .r2k-nav-home{margin-bottom:12px;padding-bottom:10px}
  .shell-v2-active .terrain-mobile-nav{margin-top:7px;background:linear-gradient(100deg,rgba(237,13,47,.22),rgba(255,255,255,.06));color:#fff}
  .shell-v2-active .terrain-mobile-nav .r2k-nav-icon{background:rgba(237,13,47,.3)}
  .terrain-nav-badge{grid-column:3;padding:3px 6px;border-radius:999px;background:#ed0d2f;color:#fff;font:800 7px/1 Inter,sans-serif;letter-spacing:.08em}
}

:root{--terrain-purple:#490154;--terrain-dark:#26002e;--terrain-red:#ed0d2f;--terrain-bg:#eee9e5;--terrain-card:#fff;--terrain-ink:#241c2a;--terrain-muted:#756c7b;--terrain-border:#d8cfd8;--terrain-green:#16835b;--terrain-amber:#b76a00;--terrain-safe-bottom:max(18px,env(safe-area-inset-bottom));color-scheme:light}
*{box-sizing:border-box}
[hidden]{display:none!important}
.terrain-page{min-height:100vh;margin:0;background:radial-gradient(circle at 100% 0,rgba(102,12,117,.13),transparent 31%),linear-gradient(155deg,#f0ece9 0,#e4dcda 100%);color:var(--terrain-ink);font-family:"Source Sans 3","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
.terrain-page button,.terrain-page input,.terrain-page textarea,.terrain-page select{font:inherit}
.terrain-page button,.terrain-page a{-webkit-touch-callout:none}
.terrain-topbar{position:sticky;top:0;z-index:40;display:grid;min-height:74px;grid-template-columns:64px 1fr auto;align-items:center;gap:8px;padding:max(10px,env(safe-area-inset-top)) 14px 10px;background:linear-gradient(110deg,#2f0039,#52045f 65%,#6d157a);color:#fff;border-bottom:3px solid var(--terrain-red);box-shadow:0 10px 28px rgba(38,0,46,.22)}
.terrain-back-r2k{display:flex;min-width:56px;min-height:42px;align-items:center;gap:2px;color:#fff;text-decoration:none;font:700 11px/1 Inter,sans-serif;letter-spacing:.04em}
.terrain-back-r2k svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.terrain-brand{display:flex;min-width:0;flex-direction:column;align-items:center}
.terrain-brand strong{font:800 16px/1 Inter,sans-serif;letter-spacing:.075em}
.terrain-brand span{margin-top:4px;color:rgba(255,255,255,.63);font:700 7px/1 Inter,sans-serif;letter-spacing:.18em}
.terrain-network{display:inline-flex;min-width:59px;align-items:center;justify-content:center;gap:5px;padding:6px 8px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.08);font:700 8px/1 Inter,sans-serif;white-space:nowrap}
.terrain-network::before{width:6px;height:6px;border-radius:50%;background:#dfb40a;content:"";box-shadow:0 0 0 3px rgba(223,180,10,.12)}
.terrain-network[data-state="online"]::before{background:#59d89e;box-shadow:0 0 0 3px rgba(89,216,158,.12)}
.terrain-network[data-state="offline"]::before{background:#ff8798;box-shadow:0 0 0 3px rgba(255,135,152,.12)}
.terrain-shell{width:100%;max-width:760px;min-height:calc(100vh - 74px);margin:0 auto;padding:18px 12px calc(40px + var(--terrain-safe-bottom))}
.terrain-boot{display:grid;min-height:55vh;place-items:center;align-content:center;gap:14px;color:var(--terrain-muted);text-align:center}
.terrain-spinner{width:34px;height:34px;border:3px solid rgba(73,1,84,.15);border-top-color:var(--terrain-purple);border-radius:50%;animation:terrain-spin .75s linear infinite}
@keyframes terrain-spin{to{transform:rotate(360deg)}}
.terrain-blocked{display:grid;min-height:70vh;place-items:center}
.terrain-blocked-card{max-width:420px;padding:28px 22px;border:1px solid var(--terrain-border);border-radius:22px;background:#fff;box-shadow:0 18px 50px rgba(50,22,56,.12);text-align:center}
.terrain-blocked-icon{display:grid;width:48px;height:48px;margin:0 auto 14px;place-items:center;border-radius:50%;background:#fae4e8;color:var(--terrain-red);font:800 24px/1 Inter,sans-serif}
.terrain-blocked-card h1{margin:0;font:750 25px/1.1 Inter,sans-serif}
.terrain-blocked-card p{color:var(--terrain-muted);line-height:1.45}
.terrain-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:2px 2px 18px}
.terrain-eyebrow{color:var(--terrain-red);font:800 9px/1 Inter,sans-serif;letter-spacing:.16em}
.terrain-page-head h1{margin:6px 0 5px;font:750 29px/1.05 Inter,sans-serif;letter-spacing:-.035em}
.terrain-page-head p{max-width:430px;margin:0;color:var(--terrain-muted);font-size:14px;line-height:1.35}
.terrain-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.terrain-button{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:8px;padding:11px 15px;border:1px solid transparent;border-radius:12px;cursor:pointer;text-decoration:none;font:700 13px/1.1 Inter,sans-serif;transition:transform .14s,filter .14s,opacity .14s}
.terrain-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.terrain-button:active{transform:translateY(1px)}
.terrain-button:disabled{cursor:not-allowed;opacity:.46}
.terrain-button-primary{background:linear-gradient(115deg,#4a0758,#680977);color:#fff;box-shadow:0 8px 18px rgba(73,1,84,.19)}
.terrain-button-secondary{border-color:#cfc2d1;background:#f4eff5;color:var(--terrain-purple);box-shadow:none}
.terrain-button-success{background:var(--terrain-green);color:#fff}
.terrain-recovery{margin:0 2px 14px;padding:12px 14px;border:1px solid #e4c386;border-radius:12px;background:#fff6df;color:#714b05;font-size:13px}
.terrain-subjects{display:grid;gap:11px}
.terrain-empty{padding:38px 20px;border:1px dashed #bfaebf;border-radius:18px;background:rgba(255,255,255,.58);text-align:center}
.terrain-empty svg{width:44px;height:44px;fill:none;stroke:#8a6c8e;stroke-width:1.4}
.terrain-empty h2{margin:11px 0 5px;font:700 19px/1.2 Inter,sans-serif}
.terrain-empty p{margin:0;color:var(--terrain-muted)}
.terrain-subject-row{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid var(--terrain-border);border-radius:16px;background:rgba(255,255,255,.92);box-shadow:0 7px 20px rgba(52,29,56,.07)}
.terrain-subject-icon{display:grid;width:50px;height:50px;place-items:center;border-radius:13px;background:#eee3f0;color:var(--terrain-purple)}
.terrain-subject-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.terrain-subject-copy{min-width:0}
.terrain-subject-copy strong{display:block;overflow:hidden;font:700 15px/1.2 Inter,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.terrain-subject-copy small{display:block;margin-top:4px;color:var(--terrain-muted);font-size:11px}
.terrain-subject-meta{display:flex;align-items:center;gap:7px;margin-top:7px}
.terrain-subject-state{padding:4px 7px;border-radius:999px;background:#eee9ef;color:#5b4a60;font:700 8px/1 Inter,sans-serif;letter-spacing:.07em}
.terrain-subject-state[data-state="exported"]{background:#dff4ea;color:#0f6a48}
.terrain-subject-state[data-state="pending"]{background:#fff0d4;color:#8a5700}
.terrain-subject-state[data-state="archived"]{background:#e9e3eb;color:#66556a}
.terrain-subject-open{display:grid;width:42px;height:42px;place-items:center;border:0;border-radius:12px;background:#f3edf4;color:var(--terrain-purple)}
.terrain-subject-open svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.terrain-subject-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.terrain-subject-archive{display:grid;width:38px;height:38px;place-items:center;border:1px solid #d5cad6;border-radius:10px;background:#faf8fa;color:#67546b}
.terrain-subject-archive svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.terrain-desktop-downloads{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.terrain-desktop-downloads .terrain-button{min-height:38px;padding:8px 10px;font-size:10px}
.terrain-desktop-downloads>small{color:var(--terrain-muted);font-size:10px}
.terrain-desktop-note{margin:0 0 14px;padding:12px 14px;border-radius:12px;background:#e8e0ea;color:#563c5c;font-size:13px}

.terrain-editor-head{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:end;gap:9px;margin-bottom:13px}
.terrain-icon-button{display:grid;width:42px;height:42px;place-items:center;border:1px solid #cfc4d0;border-radius:12px;background:#fff;color:var(--terrain-purple)}
.terrain-icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.terrain-subject-title{display:flex;min-width:0;flex-direction:column;gap:4px;color:var(--terrain-muted);font-size:9px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.terrain-subject-title input{width:100%;min-height:42px;padding:8px 10px;border:0;border-bottom:2px solid #c8b8ca;background:transparent;color:var(--terrain-ink);font:700 17px/1.2 Inter,sans-serif;outline:none}
.terrain-subject-title input:focus{border-color:var(--terrain-purple)}
.terrain-save-state{align-self:center;color:var(--terrain-muted);font-size:9px;white-space:nowrap}
.terrain-save-state[data-state="saving"]{color:var(--terrain-amber)}
.terrain-save-state[data-state="synced"]{color:var(--terrain-green)}
.terrain-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 13px;padding:5px;border:1px solid #d5cbd5;border-radius:14px;background:rgba(255,255,255,.63)}
.terrain-steps button{display:flex;min-height:40px;align-items:center;justify-content:center;gap:6px;padding:5px;border:0;border-radius:10px;background:transparent;color:#776d7a;font-size:11px;font-weight:700}
.terrain-steps button span{display:grid;width:20px;height:20px;place-items:center;border:1px solid #b9abbc;border-radius:50%;font:700 9px/1 Inter,sans-serif}
.terrain-steps button.is-active{background:#fff;color:var(--terrain-purple);box-shadow:0 5px 13px rgba(54,21,60,.08)}
.terrain-steps button.is-active span{border-color:var(--terrain-purple);background:var(--terrain-purple);color:#fff}
.terrain-panel{display:grid;gap:12px}
.terrain-card{padding:17px 15px;border:1px solid var(--terrain-border);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(47,21,52,.075)}
.terrain-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}
.terrain-card-head>div{display:flex;min-width:0;align-items:center;gap:9px}
.terrain-card-number{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border-radius:8px;background:#eee3ef;color:var(--terrain-purple);font:800 9px/1 Inter,sans-serif}
.terrain-card h2{margin:0;font:730 18px/1.15 Inter,sans-serif;letter-spacing:-.02em}
.terrain-optional,.terrain-required,.terrain-protection,.terrain-ai-state,.terrain-human-check,.terrain-bocir-mark{padding:5px 7px;border-radius:999px;background:#eee9ef;color:#66576b;font:800 7px/1 Inter,sans-serif;letter-spacing:.08em;white-space:nowrap}
.terrain-required{background:#fae4e8;color:#b80724}
.terrain-protection{display:flex;align-items:center;gap:5px;background:#def3e9;color:#126747}
.terrain-protection i{width:6px;height:6px;border-radius:50%;background:#16a06b}
.terrain-human-check{background:#fff0d5;color:#8a5700}
.terrain-bocir-mark{background:#e9e0ee;color:#5c1767}
.terrain-help{margin:0 0 13px;color:var(--terrain-muted);font-size:13px;line-height:1.4}
.terrain-card textarea,.terrain-card input,.terrain-card select{width:100%;border:1px solid #cfc4d0;border-radius:11px;background:#faf8fa;color:var(--terrain-ink);outline:none}
.terrain-card textarea{resize:vertical;padding:11px 12px;font-size:15px;line-height:1.42}
.terrain-card input,.terrain-card select{min-height:45px;padding:9px 11px}
.terrain-card textarea:focus,.terrain-card input:focus,.terrain-card select:focus{border-color:#7a3b83;box-shadow:0 0 0 3px rgba(73,1,84,.09)}
.terrain-inline-action{display:flex;min-height:39px;align-items:center;gap:7px;margin-top:8px;padding:7px 2px;border:0;background:transparent;color:var(--terrain-purple);font-weight:700}
.terrain-inline-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.terrain-photo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.terrain-photo-add{display:flex;min-height:118px;align-items:center;justify-content:center;flex-direction:column;padding:17px;border:1.5px dashed #a98caa;border-radius:14px;background:#f8f3f8;color:var(--terrain-purple);text-align:center;cursor:pointer}
.terrain-photo-add svg{width:31px;height:31px;margin-bottom:7px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.terrain-photo-add strong{font-size:13px}
.terrain-photo-add span{margin-top:4px;color:#88778c;font-size:10px}
.terrain-photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.terrain-photo-thumb{position:relative;min-width:0;overflow:hidden;border:2px solid transparent;border-radius:12px;background:#eee}
.terrain-photo-thumb.is-main{border-color:var(--terrain-red)}
.terrain-photo-thumb img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.terrain-photo-thumb button{position:absolute;top:5px;right:5px;display:grid;width:27px;height:27px;place-items:center;border:0;border-radius:50%;background:rgba(28,5,31,.78);color:#fff;font-size:17px}
.terrain-photo-thumb span{position:absolute;right:5px;bottom:5px;left:5px;overflow:hidden;padding:4px 5px;border-radius:6px;background:rgba(28,5,31,.72);color:#fff;font:700 7px/1 Inter,sans-serif;text-align:center;text-overflow:ellipsis;white-space:nowrap}

.terrain-recorder-card{background:linear-gradient(160deg,#fff 0,#f4eff2 100%)}
.terrain-recorder-settings{display:grid;grid-template-columns:1fr 1.25fr;gap:8px}
.terrain-recorder-settings label,.terrain-bocir-card label,.terrain-article-card label,.terrain-extra-context{display:flex;min-width:0;flex-direction:column;gap:5px;color:#5f5363;font-size:10px;font-weight:700}
.terrain-recorder-settings select{font-size:12px}
.terrain-microphone-name{min-height:17px;margin:8px 1px 10px;color:#6f6473;font-size:11px;text-align:center}
.terrain-deck{position:relative;padding:12px;border:1px solid #978b93;border-radius:16px;background:linear-gradient(145deg,#423a3f,#201b20);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -12px 28px rgba(0,0,0,.28),0 11px 22px rgba(35,15,30,.19);color:#f8f2ee}
.terrain-deck-topline{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;color:#bcb2b8;font:700 8px/1 Inter,sans-serif;letter-spacing:.1em}
.terrain-deck-topline time{color:#fff;font:700 20px/1 "SFMono-Regular",Consolas,monospace;letter-spacing:.04em}
.terrain-deck-topline>span:last-child{text-align:right}
.terrain-rec-lamp{display:flex;align-items:center;gap:5px}
.terrain-rec-lamp i{width:7px;height:7px;border-radius:50%;background:#5f575c}
.terrain-deck[data-state="recording"] .terrain-rec-lamp{color:#ff6179}
.terrain-deck[data-state="recording"] .terrain-rec-lamp i{background:#ff183c;box-shadow:0 0 10px rgba(255,24,60,.9)}
.terrain-cassette{position:relative;display:flex;height:86px;align-items:center;justify-content:space-between;margin:11px 4px 10px;padding:8px 30px;border:1px solid #9b8f95;border-radius:13px;background:linear-gradient(180deg,#ded6d2,#9f9694);box-shadow:inset 0 4px 12px rgba(255,255,255,.48),inset 0 -6px 12px rgba(40,30,35,.22)}
.terrain-tape-window{position:absolute;top:26px;right:33%;bottom:26px;left:33%;border:5px solid #766d70;border-radius:6px;background:#282226}
.terrain-reel{position:relative;z-index:1;display:block;width:58px;height:58px;border:8px solid #71686c;border-radius:50%;background:repeating-conic-gradient(#f2ece8 0 13deg,#8c8386 13deg 24deg);box-shadow:0 0 0 3px #c2b8b5,inset 0 0 0 5px #413a3e}
.terrain-reel i{position:absolute;inset:15px;border-radius:50%;background:#383135}
.terrain-deck[data-state="recording"] .terrain-reel{animation:terrain-reel 1.05s linear infinite}
@keyframes terrain-reel{to{transform:rotate(360deg)}}
.terrain-vu-wrap{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;margin:0 2px;color:#948c91;font:600 7px/1 Inter,sans-serif}
.terrain-vu-wrap>span{text-align:center}
.terrain-vu-track{position:relative;height:11px;grid-column:1/-1;margin-top:3px;overflow:hidden;border-radius:999px;background:linear-gradient(90deg,#30493c 0 72%,#655126 72% 88%,#5d2930 88%)}
.terrain-vu-track i{position:absolute;inset:0 auto 0 0;width:0;border-radius:inherit;background:linear-gradient(90deg,#30cf83 0 72%,#ffba25 72% 88%,#ff3654 88%);transition:width .05s linear;box-shadow:0 0 8px rgba(48,207,131,.36)}
.terrain-vu-track b{position:absolute;top:-2px;bottom:-2px;left:0;width:2px;background:#fff;opacity:.9;transition:left .08s linear}
.terrain-audio-warning{min-height:31px;margin:9px 4px 5px;color:#c8bfc4;font-size:10px;line-height:1.35;text-align:center}
.terrain-audio-warning[data-state="clip"]{color:#ff8395;font-weight:700}
.terrain-audio-warning[data-state="low"]{color:#f5c461}
.terrain-audio-warning[data-state="good"]{color:#6fe1ad}
.terrain-transport{display:flex;justify-content:center;margin-top:8px}
.terrain-record-button,.terrain-stop-button{display:flex;min-width:166px;min-height:49px;align-items:center;justify-content:center;gap:9px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:#f5efec;color:#352d32;box-shadow:0 5px 0 #8f8589,0 9px 15px rgba(0,0,0,.22);font:800 10px/1 Inter,sans-serif;letter-spacing:.08em}
.terrain-record-button i{width:16px;height:16px;border-radius:50%;background:var(--terrain-red);box-shadow:inset 0 -2px 3px rgba(80,0,10,.3)}
.terrain-stop-button{background:#f0dfe2;color:#3d252a}
.terrain-stop-button i{width:14px;height:14px;border-radius:2px;background:var(--terrain-red)}
.terrain-record-button:disabled{opacity:.42;box-shadow:0 3px 0 #777}
.terrain-recorder-foot{margin:10px 2px 0;color:#756b76;font-size:9px;text-align:center}
.terrain-audio-list{display:grid;gap:8px;margin-top:12px}
.terrain-audio-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px;border:1px solid #d4c9d4;border-radius:12px;background:#fff}
.terrain-audio-play{display:grid;width:38px;height:38px;place-items:center;border:0;border-radius:50%;background:#ece2ee;color:var(--terrain-purple)}
.terrain-audio-play svg{width:18px;height:18px;fill:currentColor;stroke:none}
.terrain-audio-copy{min-width:0}
.terrain-audio-copy strong{display:block;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.terrain-audio-copy small{display:block;margin-top:3px;color:#807582;font-size:9px}
.terrain-audio-quality{display:inline-flex;align-items:center;gap:4px;margin-top:5px;color:var(--terrain-green);font:700 8px/1 Inter,sans-serif}
.terrain-audio-quality[data-state="warning"]{color:var(--terrain-amber)}
.terrain-audio-quality[data-state="clip"]{color:var(--terrain-red)}
.terrain-audio-menu{display:flex;gap:5px}
.terrain-audio-menu a,.terrain-audio-menu button{display:grid;width:34px;height:34px;place-items:center;border:1px solid #d5cad6;border-radius:9px;background:#faf8fa;color:#5d4962;text-decoration:none}
.terrain-audio-menu svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.terrain-sticky-action{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px;padding:11px 12px;border:1px solid rgba(83,48,88,.24);border-radius:16px;background:rgba(248,245,247,.94);box-shadow:0 12px 34px rgba(37,8,43,.22);backdrop-filter:blur(13px)}
.terrain-sticky-action>div{display:flex;min-width:0;flex-direction:column}
.terrain-sticky-action strong{font-size:11px}
.terrain-sticky-action span{margin-top:3px;color:var(--terrain-muted);font-size:8px}

.terrain-analysis-progress{display:flex;min-height:84px;align-items:center;justify-content:center;flex-direction:column;gap:9px;border-radius:12px;background:#f3edf4;color:#684c6c}
.terrain-analysis-progress span{width:28px;height:28px;border:3px solid #d7c8d9;border-top-color:var(--terrain-purple);border-radius:50%;animation:terrain-spin .7s linear infinite}
.terrain-analysis-progress p{margin:0;font-size:12px;font-weight:700}
.terrain-check-block{padding:12px;border:1px solid #e6c687;border-radius:12px;background:#fff7e7}
.terrain-check-block h3,.terrain-identities h3{margin:0 0 7px;font:700 14px/1.2 Inter,sans-serif}
.terrain-check-block ul{margin:0;padding-left:20px;color:#765016;font-size:12px;line-height:1.45}
.terrain-identities{margin-top:12px}
.terrain-identities>p{margin:0 0 9px;color:var(--terrain-muted);font-size:11px}
.terrain-identities>div{display:grid;gap:8px}
.terrain-identity-row{display:grid;grid-template-columns:1fr 1fr 37px;gap:6px;align-items:end;padding:9px;border:1px solid #d8cfd8;border-radius:11px;background:#faf8fa}
.terrain-identity-row label{display:flex;min-width:0;flex-direction:column;gap:4px;color:#756878;font-size:8px;font-weight:700;text-transform:uppercase}
.terrain-identity-row input{min-height:39px;font-size:12px}
.terrain-identity-row>label:last-child{display:grid;width:37px;height:39px;place-items:center}
.terrain-identity-row input[type="checkbox"]{width:21px;height:21px;min-height:0;accent-color:var(--terrain-green)}
.terrain-extra-context{margin-top:12px}
.terrain-validation-check{display:flex;align-items:flex-start;gap:9px;margin:12px 0;padding:11px;border:1px solid #d4c7d5;border-radius:11px;background:#f5f0f5;color:#554859;font-size:11px;font-weight:600;line-height:1.35}
.terrain-validation-check input{width:19px;height:19px;min-height:0;flex:0 0 19px;margin:0;accent-color:var(--terrain-green)}
.terrain-analysis-card>.terrain-button,.terrain-article-card>.terrain-button,.terrain-bocir-card>.terrain-button{width:100%}
.terrain-article-card label{margin-bottom:11px;font-size:11px}
.terrain-ai-reminder{padding:10px;border-left:3px solid var(--terrain-amber);background:#fff7e7;color:#765016;font-size:11px}
.terrain-transcript-choices{display:grid;gap:10px;margin:12px 0;padding:12px;border:1px solid #cdbfd0;border-radius:13px;background:#f7f2f8}
.terrain-transcript-choices>h3{margin:0;font:700 14px/1.25 Inter,sans-serif}
.terrain-transcript-choices>p{margin:0;color:var(--terrain-muted);font-size:10px;line-height:1.4}
.terrain-transcript-choices>div{display:grid;gap:10px}
.terrain-transcript-choice-group{display:grid;gap:7px}
.terrain-transcript-choice-group>strong{font:700 12px/1.2 Inter,sans-serif}
.terrain-transcript-segments{display:grid;max-height:330px;gap:5px;overflow:auto;padding:4px;border-radius:10px;background:#eae3eb}
.terrain-transcript-segment{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:8px;padding:8px;border:1px solid transparent;border-radius:9px;background:#fff}
.terrain-transcript-segment.is-used{border-color:#7a3b83;background:#eee2f0;box-shadow:inset 3px 0 var(--terrain-purple)}
.terrain-transcript-segment time{padding-top:7px;color:#7b6d7e;font:700 8px/1 Inter,sans-serif}
.terrain-transcript-segment p{margin:0;padding-top:3px;font-size:11px;line-height:1.4}
.terrain-transcript-segment button{min-height:31px;padding:6px 9px;border:1px solid #8a6590;border-radius:8px;background:#fff;color:#51205a;font-size:9px;font-weight:800}
.terrain-transcript-segment.is-used button{border-color:var(--terrain-purple);background:var(--terrain-purple);color:#fff}
.terrain-export-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.terrain-export-photo{position:relative;overflow:hidden;padding:0;border:2px solid transparent;border-radius:13px;background:#eee;cursor:pointer}
.terrain-export-photo.is-selected{border-color:var(--terrain-red);box-shadow:0 0 0 2px rgba(237,13,47,.14)}
.terrain-export-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.terrain-export-photo span{position:absolute;right:6px;bottom:6px;left:6px;padding:5px;border-radius:7px;background:rgba(31,3,35,.77);color:#fff;font:700 8px/1 Inter,sans-serif;text-align:center}
.terrain-export-audios{display:grid;gap:8px}
.terrain-export-interview{display:grid;gap:8px;padding:11px;border:1px solid #d3c7d4;border-radius:14px;background:#f8f4f8}
.terrain-export-interview-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.terrain-export-interview-head>strong{font:700 13px/1.2 Inter,sans-serif}
.terrain-export-interview-head .terrain-button{min-height:36px;padding:7px 10px;font-size:10px}
.terrain-export-audio{display:grid;grid-template-columns:19px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:1px solid #d6ccd7;border-radius:11px;background:#fff;font-size:12px}
.terrain-export-audio input{width:19px;height:19px;min-height:0;flex:0 0 19px;accent-color:var(--terrain-purple)}
.terrain-export-audio-copy{display:flex;min-width:0;flex-direction:column}
.terrain-export-audio-copy input{width:100%;height:auto;min-height:36px;padding:7px 8px;font-size:11px;font-weight:700}
.terrain-export-audio small{margin-top:4px;color:var(--terrain-muted);font-size:9px}
.terrain-export-audio-actions{display:flex;align-items:center;gap:4px}
.terrain-export-audio-actions button{min-height:32px;padding:6px 8px;border:1px solid #d4c8d5;border-radius:8px;background:#f8f4f8;color:#5f4465;font-size:9px;font-weight:700}
.terrain-export-audio-actions button[aria-label]{width:32px;padding:0;font-size:18px}
.terrain-export-status{margin:11px 0;padding:11px;border-radius:11px;background:#f2edf3;color:#66586a;font-size:11px;line-height:1.4}
.terrain-export-status[data-state="error"]{background:#fae5e8;color:#9b1228}
.terrain-export-status[data-state="success"]{background:#e0f4ea;color:#116947}
.terrain-toast{position:fixed;right:14px;bottom:calc(18px + env(safe-area-inset-bottom));left:14px;z-index:100;max-width:520px;margin:auto;padding:12px 14px;border-radius:12px;background:#241228;color:#fff;box-shadow:0 15px 40px rgba(20,0,24,.34);font-size:12px;text-align:center}

@media(max-width:520px){
  .terrain-shell{padding-right:10px;padding-left:10px}
  .terrain-page-head{align-items:stretch;flex-direction:column}
  .terrain-page-actions{display:grid;grid-template-columns:1fr 1fr}
  .terrain-page-head .terrain-button{width:100%}
  .terrain-subject-row{grid-template-columns:44px minmax(0,1fr) auto;padding:11px;gap:9px}
  .terrain-subject-icon{width:44px;height:44px}
  .terrain-recorder-settings{grid-template-columns:1fr}
  .terrain-photo-actions{grid-template-columns:1fr 1fr;gap:7px}
  .terrain-photo-add{min-height:108px;padding:12px 8px}
  .terrain-cassette{padding-right:24px;padding-left:24px}
  .terrain-reel{width:52px;height:52px}
  .terrain-sticky-action .terrain-button{min-height:43px;padding:9px 11px;font-size:11px}
  .terrain-identity-row{grid-template-columns:1fr 1fr 33px}
  .terrain-export-audio{grid-template-columns:19px minmax(0,1fr)}
  .terrain-export-audio-actions{grid-column:2;justify-content:flex-end}
  .terrain-transcript-segment{grid-template-columns:34px minmax(0,1fr)}
  .terrain-transcript-segment button{grid-column:2;justify-self:start}
}
@media(min-width:901px){
  .terrain-shell{max-width:760px;padding-top:30px}
  .terrain-topbar{grid-template-columns:90px 1fr 90px}
  .terrain-page-head h1{font-size:34px}
  .terrain-page[data-desktop="true"] #terrainNewSubject{display:none}
  .terrain-page[data-desktop="true"] .terrain-subject-row{grid-template-columns:56px minmax(0,1fr) auto}
  .terrain-page[data-desktop="true"] .terrain-subject-open::after{content:"Audios";margin-left:7px;font:700 11px Inter,sans-serif}
  .terrain-page[data-desktop="true"] .terrain-subject-open{width:auto;padding:0 12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
