@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root{--zv-green:#22c55e;--zv-deep:#0f2d23;--zv-text:#0a0f0e;--zv-muted:#617269;--zv-light:#f8fafc;--zv-border:#e1e7e4;--zv-soft:#eef6f1;--rail-w:220px;--subrail-w:0px}
body{margin:0;background:var(--zv-light);font-family:Inter,system-ui,sans-serif;color:var(--zv-text)}
.app-shell{min-height:100vh;background:var(--zv-light);font-size:14px;line-height:1.5}
.app-shell *, .zv-auth *{box-sizing:border-box}
.app-shell button,.app-shell input,.app-shell select,.app-shell textarea,.zv-auth button,.zv-auth input{font-family:inherit}
.app-shell :focus-visible,.zv-auth :focus-visible{outline:2px solid #16803d;outline-offset:3px}
.app-shell .bg-accent,.zv-auth .bg-accent{background:var(--zv-green);color:var(--zv-text);border-color:var(--zv-green)}
.app-shell .bg-accent:hover,.zv-auth .bg-accent:hover{background:#20b656}
.app-shell .text-accent,.zv-auth .text-accent{color:#18743b}
.app-shell .text-stone-900,.app-shell .text-stone-800{color:var(--zv-text)}
.app-shell .text-stone-700,.app-shell .text-stone-600{color:#40574b}
.app-shell .text-stone-500,.app-shell .text-stone-400{color:var(--zv-muted)}
.app-shell .bg-surface,.app-shell .bg-stone-50{background:var(--zv-light)}
.app-shell .bg-stone-100{background:var(--zv-soft)}
.app-shell .border-stone-200,.app-shell .border-stone-300,.zv-auth .border-stone-200,.zv-auth .border-stone-300{border-color:var(--zv-border)}
.app-shell [class*='accent-[#b4552d]']{accent-color:var(--zv-green)}
.app-shell [class*='border-accent']:hover{border-color:var(--zv-green)}
.app-shell h1{font-size:28px;line-height:1.25;letter-spacing:-.6px;color:var(--zv-deep)}
.app-shell h2{line-height:1.4}
.app-shell input:not([type=checkbox]):not([type=radio]),.app-shell select,.app-shell textarea{min-height:40px;max-width:100%;border-radius:8px}
.app-shell textarea{line-height:1.6}
.app-shell .grid{min-width:0}
.app-shell .grid>*{min-width:0}
.app-shell .rounded-xl{border-radius:12px}
.app-shell .fixed.inset-0{z-index:100}
.app-shell__main{margin:0 0 0 220px;padding:116px 28px 40px;width:auto;max-width:none;min-width:0;container-type:inline-size;container-name:zv-workspace}
.app-rail.zv-sidebar{position:fixed;inset:0 auto 0 0;width:220px;height:100dvh;display:flex;flex-direction:column;align-items:stretch;padding:0;background:var(--zv-deep);color:#c2d9cc;border:0;box-shadow:none;overflow-y:auto;z-index:80}
.app-rail .app-rail__brand{height:88px;width:100%;margin:0;padding:24px 40px;background:white;border-radius:0;display:flex;flex-shrink:0;align-items:center;justify-content:center;border-bottom:1px solid var(--zv-border)}
.app-rail__brand img{display:block;max-width:100%;object-fit:contain}
.app-rail .app-rail__nav{display:flex;flex-direction:column;align-items:stretch;justify-content:start;flex:0 0 auto;gap:4px;padding:12px}
.app-rail .app-rail__item{width:100%;max-width:none;min-height:44px;display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:start;gap:11px;padding:10px 12px;border-radius:8px;font-size:12px;text-align:left;color:#c2d9cc}
.app-rail .app-rail__label{display:block;font-size:12px;line-height:1.5;white-space:normal;opacity:1;position:static;transform:none;pointer-events:auto}
.app-rail .app-rail__item:hover{background:#214734;color:white}
.app-rail .app-rail__item.is-active{background:var(--zv-green);color:var(--zv-text);font-weight:600}
.app-rail .app-rail__item.is-active .app-rail__ico{color:inherit}
.app-rail__ico{width:18px;height:18px;flex-shrink:0}
.zv-project-picker{padding:20px 18px 8px}
.zv-project-picker label{display:block;color:#afc8ba;font-size:11px;margin-bottom:7px}
.zv-project-picker select{width:100%;min-height:38px;background:#1b3b2e;border:1px solid #42614f;border-radius:8px;padding:8px 10px;color:white;font-size:12px}
.zv-nav-label{padding:16px 12px 8px;font-size:11px;color:#9cb9a8}
.zv-side-bottom{margin-top:auto;padding:18px;border-top:1px solid #2d4e3c;font-size:12px}
.zv-side-bottom p{margin:0 0 6px}
.zv-side-link{display:block;font-size:11px;color:#c2d9cc;margin-bottom:12px;text-decoration:underline;text-underline-offset:3px}
.zv-topbar{position:absolute;left:220px;right:0;top:0;height:88px;background:white;border-bottom:1px solid var(--zv-border);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;z-index:60}
.zv-topbar-left{display:flex;align-items:center;gap:12px;min-width:0}
.zv-context{font-size:12px;color:var(--zv-muted);overflow-wrap:anywhere}
.zv-profile{display:flex;align-items:center;gap:12px;color:var(--zv-muted);font-size:12px;text-decoration:none;flex-shrink:0}
.zv-profile-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zv-avatar{display:grid;place-items:center;background:var(--zv-deep);color:white;width:34px;height:34px;border-radius:50%;font-size:11px;font-weight:600}
.zv-menu-button,.zv-menu-backdrop{display:none}
.app-with-sub{display:flex;flex-direction:column;min-height:0;margin:0;gap:20px}
.app-with-sub__body{padding:0!important;max-width:none!important;min-width:0;order:1}
.app-subrail{position:static;width:auto;height:auto;margin:0;padding:0 0 14px;display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;border:0;border-bottom:1px solid var(--zv-border);border-radius:0;background:transparent;box-shadow:none;overflow:visible;order:0}
.app-subrail__title{display:none!important}
.app-subrail .app-subrail__item{width:auto;min-width:0;flex-shrink:1;min-height:38px;display:flex;flex-direction:row;gap:8px;justify-content:start;padding:8px 12px;background:var(--zv-soft);border-radius:7px;color:var(--zv-muted);font-size:12px}
.app-subrail .app-subrail__item.is-active{background:var(--zv-deep);color:white}
.app-subrail__label{font-size:12px;white-space:normal}
.zv-card-nav{order:0;margin-bottom:0}
.zv-card-groups{display:flex;flex-wrap:wrap;gap:22px;border-bottom:1px solid var(--zv-border)}
.zv-card-group{border:0;border-bottom:2px solid transparent;background:none;padding:12px 0;color:var(--zv-muted);font-size:13px;font-weight:500;min-height:42px}
.zv-card-group.is-active{border-color:var(--zv-green);color:var(--zv-text);font-weight:600}
.zv-card-subtabs{display:flex;flex-wrap:wrap;gap:8px;padding-top:16px}
.zv-card-subtab{border:0;background:var(--zv-soft);color:var(--zv-muted);padding:8px 12px;border-radius:7px;font-size:12px;min-height:36px}
.zv-card-subtab.is-active{background:var(--zv-deep);color:white}
.zv-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.zv-heading h1{margin:0 0 8px}
.zv-muted{color:var(--zv-muted);font-size:12px;line-height:1.65;margin:5px 0}
.zv-button{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:38px;padding:8px 12px;border:1px solid var(--zv-border);border-radius:8px;background:white;color:var(--zv-text);font-size:12px;font-weight:500;line-height:1.4;text-align:center;flex-shrink:0}
.zv-button:hover{background:var(--zv-soft)}
.zv-primary{background:var(--zv-green);border-color:var(--zv-green);font-weight:600}
.zv-primary:hover{background:#20b656}
.zv-error{background:#fff1ef;color:#92382b;border:1px solid #e9c9c2;border-radius:8px;padding:16px;margin-bottom:20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.zv-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--zv-border);border-radius:12px;overflow:hidden;margin-bottom:22px}
.zv-metric{padding:18px 20px;border-right:1px solid var(--zv-border);min-width:0}
.zv-metric:last-child{border-right:0}
.zv-metric span,.zv-metric small{display:block;color:var(--zv-muted);font-size:11px}
.zv-metric strong{display:block;color:var(--zv-deep);font-size:26px;line-height:1.4;margin:4px 0}
.zv-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}
.zv-overview-primary,.zv-overview-secondary{display:flex;flex-direction:column;gap:20px;min-width:0}
.zv-panel{padding:20px;background:white;border:1px solid var(--zv-border);border-radius:12px;min-width:0}
.zv-panel h2{font-size:15px;font-weight:600;margin:0}
.zv-panel-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.zv-list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--zv-border)}
.zv-list-row:last-child{border:0;padding-bottom:0}
.zv-list-row>div{min-width:0}
.zv-list-row h3,.zv-attention h3{font-size:14px;font-weight:600;margin:0}
.zv-review-excerpt{font-size:12px;color:#40574b;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.zv-attention{padding:15px 0;border-bottom:1px solid var(--zv-border);margin-bottom:16px;overflow-wrap:anywhere}
.zv-panel>.zv-button{margin-top:16px}
/* Automation uses the same design tokens and responsive geometry. */
.app-shell .ya-studio{--ya-blue:#18743b;--ya-line:var(--zv-border);--ya-muted:var(--zv-muted);max-width:none;padding:0;color:var(--zv-text)}
.ya-primary{background:var(--zv-green);border-color:var(--zv-green);color:var(--zv-text)}
.ya-primary:hover{background:#20b656;border-color:#20b656;color:var(--zv-text)}
.ya-tab.is-active{border-color:var(--zv-green)}
.ya-pill.is-active{background:var(--zv-deep);color:white}
.ya-variant.is-active{border-color:var(--zv-green);background:#eefbf2;color:#18743b}
.ya-button:hover{border-color:#aacfb8;background:var(--zv-soft)}
.ya-primary:hover{background:#20b656}
.ya-job:before{background:var(--zv-green)}
.ya-editor-grid{grid-template-columns:minmax(0,1fr) 280px;gap:24px}
.ya-schedule{padding:18px;border:1px solid var(--zv-border);border-radius:10px;background:var(--zv-light)}
.ya-header,.ya-section-head,.ya-editor-footer{flex-wrap:wrap;row-gap:14px}
.ya-tabs,.ya-subtabs{flex-wrap:wrap}
.ya-cards{grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr))}
.ya-org{display:flex;flex-direction:column}
.ya-org .ya-button{margin-top:auto;align-self:start}
.ya-items{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
.ya-list-layout{grid-template-columns:minmax(0,1fr) 280px}
.zv-auth{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;padding:60px;max-width:1200px;margin:0 auto;align-items:center;background:var(--zv-light)}
.zv-auth-story{padding:40px;border-radius:18px;background:var(--zv-deep);color:white;min-height:480px;display:flex;flex-direction:column;justify-content:space-between;gap:28px}
.zv-auth-story h2{font-size:36px;font-weight:700;line-height:1.2;letter-spacing:-.6px;max-width:11ch;margin:0}
.zv-auth-story p{font-size:14px;color:#c2d8c9;line-height:1.7;max-width:30ch}
.zv-auth-story small{font-size:12px}
.zv-auth-form{width:100%;max-width:360px;margin:auto}
.zv-auth-logo{width:150px;height:auto;display:block;margin:0 auto 40px}
.zv-auth h1{font-size:28px;color:var(--zv-deep);margin-bottom:8px}
.zv-auth input{min-height:44px}
@container zv-workspace (max-width:760px){.zv-overview-grid,.ya-list-layout{grid-template-columns:1fr}.ya-editor-grid{grid-template-columns:minmax(0,1fr) 260px}.app-shell .grid.lg\:grid-cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container zv-workspace (max-width:620px){.ya-editor-grid{grid-template-columns:1fr}.ya-preview{max-width:360px;margin:auto}.zv-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.zv-metric{border-bottom:1px solid var(--zv-border)}.zv-metric:nth-child(2){border-right:0}.zv-metric:nth-last-child(-n+2){border-bottom:0}.app-shell .grid.lg\:grid-cols-3{grid-template-columns:1fr}}
@media(max-width:900px){.app-shell__main{margin-left:0;padding:112px 22px 32px}.zv-topbar{left:0;padding:0 22px}.zv-menu-button{display:grid;place-items:center;width:44px;height:44px;background:white;border:1px solid var(--zv-border);border-radius:8px;flex-shrink:0}.app-rail.zv-sidebar{display:none;top:88px;height:calc(100dvh - 88px);width:250px}.zv-menu-open .zv-sidebar{display:flex}.zv-menu-open .app-rail__brand{display:none}.zv-menu-backdrop{position:fixed;inset:88px 0 0;z-index:70;background:rgba(10,15,14,.35);border:0}.zv-menu-open .zv-menu-backdrop{display:block}.app-shell .fixed.inset-0{z-index:100}}
@media(max-width:600px){.app-shell__main{padding:98px 16px 28px}.zv-topbar{height:76px;padding:0 16px}.app-rail.zv-sidebar{top:76px;height:calc(100dvh - 76px)}.zv-menu-backdrop{top:76px}.zv-profile-name{display:none}.app-shell h1{font-size:25px}.app-shell input:not([type=checkbox]):not([type=radio]),.app-shell select,.app-shell textarea,.zv-auth input{font-size:16px;min-width:0!important}.app-shell .grid.sm\:grid-cols-2{grid-template-columns:1fr}.zv-heading{align-items:start}.zv-panel{padding:16px}.zv-list-row{flex-wrap:wrap;gap:12px}.zv-card-groups{gap:16px}.zv-card-group{font-size:12px;min-height:44px}.zv-card-subtab,.app-subrail .app-subrail__item,.ya-button,.zv-button{min-height:44px}.zv-auth{grid-template-columns:1fr;padding:40px 20px;gap:0}.zv-auth-story{display:none}.zv-auth-form{max-width:360px}.ya-items{grid-template-columns:1fr}.ya-editor-footer{align-items:stretch;flex-direction:column}.ya-editor-footer .ya-button{width:100%}.ya-promotion-dates{grid-template-columns:1fr}.app-shell .min-w-\[220px\]{min-width:0}.app-shell .w-56{max-width:100%}.app-shell .app-subrail{gap:6px}.app-shell .app-subrail__ico{display:none}}
@media(prefers-reduced-motion:reduce){.app-shell *,.zv-auth *{animation:none!important;transition:none!important}}
.zv-auth .my-5{margin:20px 0}.zv-auth .text-stone-500{color:var(--zv-muted)}.app-shell h1{font-weight:700}.app-rail .app-rail__label{font-weight:500}.app-rail .is-active .app-rail__label{font-weight:600}.app-rail.zv-sidebar{scrollbar-width:thin;scrollbar-color:#42614f var(--zv-deep)}
.app-shell article.flex.flex-col>div:last-child{margin-top:auto}
.zv-overview-secondary>.zv-panel h2+.zv-muted{margin-top:12px}
.app-rail.zv-sidebar{overflow:hidden}.app-rail .app-rail__nav{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#42614f var(--zv-deep)}.zv-side-bottom{flex-shrink:0;margin-top:0}.app-rail .app-rail__item{min-height:42px}.zv-side-bottom .app-rail__item{margin-top:8px}
@media(max-width:600px){.app-rail .app-rail__item{min-height:44px}}
