:root{--brand:#7135bd;--brand-hover:#5c249f;--brand-soft:#f0e8fb;--brand-pale:#f8f5fd;--ink:#24222d;--muted:#716d80;--line:#e8e5ed;--surface:#fff;--bg:#f7f7fa;--success:#26714a;--success-bg:#edf7f0;--warn:#986317;--warn-bg:#fff7e9;--error:#b53c4b;--error-bg:#fff0f2;--radius:12px;--shadow:0 12px 38px #28203614;--fast:180ms;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--control-h:40px;--control-h-compact:32px;--field-s:160px;--field-m:240px;--field-l:360px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button,a{transition:background var(--fast),color var(--fast),border-color var(--fast)}button{background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ac84e4;outline-offset:3px}::selection{background:#e1cff8;color:#321454}input,textarea{caret-color:var(--brand)}svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-definitions{width:0;height:0;position:absolute;overflow:hidden}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:24px;line-height:32px;letter-spacing:-.6px;font-weight:660}h2{font-size:23px;font-weight:650;letter-spacing:-.35px}h3{font-size:15px;font-weight:650}small{font-size:12px}code,.key{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;letter-spacing:0;font-variant-numeric:tabular-nums}
.reviewbar{height:35px;background:#29232f;color:#eee8f5;padding:6px 24px;display:flex;justify-content:space-between;align-items:center;font-size:12px}.reviewbar>span{display:flex;align-items:center;gap:16px}.review-detail{color:#c4bacf}.reviewbar>div{display:flex;align-items:center;gap:12px}.reviewbar label{color:#c4bacf}.reviewbar select{background:#403746;color:#fff;border:0;border-radius:4px;font-size:12px;padding:2px 7px}.reviewbar button,.reviewbar a{color:#eee8f5;border:0;font-size:12px;padding:2px 0}.reviewbar button:hover,.reviewbar a:hover{color:white;text-decoration:underline}.app-shell{display:flex;min-height:calc(100vh - 35px)}.sidebar{width:216px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--line);background:var(--surface);padding:28px 16px 20px}.brand{padding:0 14px 33px}.brand img{display:block;width:142px;height:auto}.brand span{display:block;font-size:12px;letter-spacing:2px;color:var(--muted);padding-top:12px}.nav-label{font-size:12px;color:#716080;padding:0 16px 10px;letter-spacing:.7px}.nav-item{width:100%;display:flex;gap:12px;align-items:center;padding:12px 15px;border:0;border-radius:8px;text-align:left;color:#615b6d;margin-bottom:5px;font-weight:540;text-decoration:none;background:none}.nav-item svg{width:19px;height:19px}.nav-item:hover{background:#f7f4fc;color:var(--brand)}.nav-item.selected{color:var(--brand);background:var(--brand-soft);font-weight:650}.system-label{padding-top:29px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 10px 0;display:flex;gap:10px;align-items:center}.app-mark{width:32px;height:32px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-weight:750;border-radius:9px}.sidebar-bottom b{font-size:12px;display:block;font-weight:600}.sidebar-bottom small{font-size:12px;display:block;color:var(--muted);padding-top:2px}.workspace{min-width:0;flex:1}.topbar{height:65px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.crumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.crumb svg{width:13px;height:13px;color:#aaa2b5}.crumb span{color:var(--ink)}.account{display:flex;align-items:center;gap:9px;font-size:12px}.account>svg{width:13px;height:13px;color:var(--muted)}.avatar{height:29px;width:29px;border-radius:50%;display:grid;place-items:center;background:#eee9f6;color:#695282;font-weight:650}main{padding:24px;max-width:1700px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.page-heading p{color:var(--muted);font-size:13px;margin-top:6px}.heading-actions{display:flex;gap:10px;align-items:center}.button{border:1px solid #dcd7e4;border-radius:8px;background:var(--surface);padding:9px 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-weight:560;font-size:14px;line-height:20px;min-height:var(--control-h,40px)}.button svg{width:16px;height:16px}.button:hover:not(:disabled){background:#f6f2fb;border-color:#c5b4da}.button.primary{border-color:var(--brand);background:var(--brand);color:white}.button.primary:hover:not(:disabled){background:var(--brand-hover)}.button.danger{color:var(--error)}.button.small{padding:6px 10px;min-height:var(--control-h-compact,32px);font-size:12px}.text-button{border:0;color:var(--brand);padding:5px 7px;border-radius:5px;font-size:12px;font-weight:550}.text-button:hover{background:var(--brand-soft)}.text-button.muted{color:var(--muted)}.icon-button{border:0;border-radius:6px;height:33px;width:33px;display:inline-grid;place-items:center;color:#7f778b;flex-shrink:0}.icon-button:hover{background:var(--brand-soft);color:var(--brand)}.hint{display:flex;align-items:flex-start;gap:9px;padding:12px 15px;border:1px solid #e8e0f4;border-radius:8px;background:#f1edf8;color:#695581;font-size:12px;margin-bottom:20px}.hint svg{height:16px;width:16px;margin-top:1px}.hint b{font-weight:650;color:#554166}.hint .push{margin-left:auto;white-space:nowrap}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.filters{display:flex;align-items:flex-end;gap:16px;padding:24px}.filter-field{display:flex;flex-direction:column;gap:6px;min-width:0}.filter-field>label{font-size:13px;line-height:18px;font-weight:600;color:#746c82}.control{height:var(--control-h,40px);border:1px solid #ded9e5;border-radius:8px;padding:0 12px;background:white;min-width:145px}.control:hover{border-color:#b5a5ca}.search{display:flex;align-items:center;gap:8px;border:1px solid #ded9e5;border-radius:8px;background:white;height:var(--control-h,40px);padding:0 12px}.search svg{width:16px;height:16px;color:#aaa2b2}.search input{border:0;background:none;width:100%;outline:none;font-size:14px;height:100%;min-width:0}.search:focus-within{border-color:var(--brand);box-shadow:0 0 0 2px #7135bd12}.search input:focus-visible{outline:none}.table-context{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-top:1px solid var(--line);font-size:13px}.table-context b{font-weight:600}.table-context .note{color:var(--muted);display:flex;gap:14px;align-items:center}.tab-line{display:flex;gap:20px}.tab-line button{border:0;padding:4px 0;color:var(--muted);font-size:12px;position:relative}.tab-line button.active{color:var(--brand);font-weight:650}.tab-line button.active:after{content:"";position:absolute;bottom:-13px;left:0;right:0;height:2px;background:var(--brand)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{height:44px;font-size:13px;line-height:18px;color:#716080;font-weight:550;background:#faf9fc;padding:12px 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap}td{height:56px;font-size:14px;line-height:20px;padding:12px 16px;border-bottom:1px solid #f0edf4;vertical-align:middle}tbody tr:hover{background:#fdfbff}tbody tr:last-child td{border-bottom:none}.key-cell .key{color:#514266;font-weight:500}.key-cell small{display:block;font-size:12px;color:#716080;margin-top:5px}.value-cell .value{display:block}.empty-value{color:#716080}.badge{font-size:12px;border-radius:5px;display:inline-flex;align-items:center;gap:5px;padding:3px 7px;font-weight:550;white-space:nowrap}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge.published{color:#42634f;background:#f0f6f2}.badge.changed{color:var(--brand);background:var(--brand-soft)}.badge.missing{color:var(--warn);background:var(--warn-bg)}.coverage{color:#716080;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.row-actions{white-space:nowrap;text-align:right;padding-right:13px}.table-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:13px 20px;color:#716080;font-size:12px}.pagination{display:flex;gap:7px;align-items:center}.page-number{background:var(--brand-soft);color:var(--brand);width:32px;height:32px;display:grid;place-items:center;border-radius:6px}.pagination button{background:none;border:0;color:#8b8298;width:32px;height:32px}.bottom-caption{display:flex;justify-content:space-between;color:#716080;font-size:12px;margin-top:16px}.bottom-caption a{font-size:12px}.empty-state{padding:64px 20px;text-align:center;color:var(--muted)}.empty-state svg{height:30px;width:30px;color:#b2a5c5;display:block;margin:0 auto 14px}.empty-state b{display:block;color:#554c63;margin-bottom:6px}.image-thumb{width:68px;height:54px;border:1px solid #e9e4f0;border-radius:6px;background:var(--brand-pale);display:grid;place-items:center;overflow:hidden;flex-shrink:0}.image-thumb img{width:86%;height:75%;object-fit:contain}.resource-name{display:flex;gap:13px;align-items:center}.resource-name b{font-size:12px;display:block;font-weight:580;margin-bottom:5px}.resource-name .key{font-size:12px;color:#716080}.resource-url{max-width:215px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#716080;font-size:12px}.resource-dim{color:#716080;font-size:12px;margin-top:5px}.role-intro{margin-bottom:22px;max-width:700px;color:var(--muted);font-size:13px}.role-table td,.role-table th{padding:12px 16px}.role-table th:not(:first-child),.role-table td:not(:first-child){text-align:center}.role-yes{color:var(--success)}.role-no{color:#b4abbf}.role-table td:first-child{font-size:13px}.role-note{padding:17px 22px;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
.drawer{margin:0 0 0 auto;padding:0;width:min(610px,92vw);max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;background:white;box-shadow:-12px 0 42px #30233f18;color:var(--ink);overflow:hidden}.drawer[open]{display:flex;flex-direction:column;animation:slide-in var(--fast) ease-out}.drawer::backdrop,.confirm::backdrop,.picker::backdrop{background:#2920345c}.drawer-head{padding:25px 27px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.drawer-head p{font-size:12px;color:#716080;margin-bottom:5px}.drawer-head h2{font-size:23px}.drawer-body{padding:24px 28px;overflow:auto;flex:1}.drawer-footer{padding:17px 27px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fff;align-items:center;min-height:74px}.drawer-footer .footer-note{margin-right:auto;font-size:12px;color:var(--muted)}.field{margin-bottom:20px}.field label,.field legend{font-size:12px;font-weight:600;display:block;margin-bottom:8px}.field label .required{color:var(--brand);margin-left:4px}.field input,.field textarea,.field select{width:100%;border:1px solid #dcd5e4;border-radius:7px;padding:10px 11px;background:#fff;font-size:13px}.field input[readonly]{background:#f8f6fa;color:#7d708a}.field textarea{resize:vertical;line-height:1.7;min-height:120px}.field small{display:block;color:#716080;font-size:12px;margin-top:7px}.field small.error{color:var(--error)}.field.error input,.field.error textarea{border-color:var(--error)}.field-row{display:flex;gap:16px}.field-row .field{flex:1;min-width:0}.drawer-rule{border:0;border-top:1px solid var(--line);margin:25px 0}.field .count{float:right;font-size:12px;color:#716080;font-weight:400}.subheading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.subheading h3{font-size:13px}.subheading span{font-size:12px;color:var(--muted)}.language-preview{display:grid;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.language-preview>div{padding:10px 12px;border-bottom:1px solid #eeebf2;display:flex;gap:14px;font-size:12px}.language-preview>div:last-child{border:0}.language-preview b{font-weight:500;color:#716080;width:66px;flex-shrink:0}.language-preview span{color:#5c526a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inline-notice{font-size:12px;border:1px solid #e8e0f4;background:var(--brand-pale);border-radius:8px;padding:12px 13px;color:#78648b;margin-bottom:20px;line-height:1.7}.inline-notice.warn{background:var(--warn-bg);border-color:#f1dfba;color:#8c661f}.inline-notice.error{background:var(--error-bg);border-color:#efcbd2;color:#a44251}.inline-notice.success{background:var(--success-bg);border-color:#cce5d6;color:var(--success)}.inline-notice button{margin-top:6px;padding:2px 0;border:0;display:block;font-size:12px;text-decoration:underline;color:inherit;text-underline-offset:3px}.translation-options{border:0;padding:0;margin:0 0 20px}.translation-options legend{font-size:12px;font-weight:600;margin-bottom:10px}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check-item{display:flex;gap:8px;padding:11px;border:1px solid var(--line);border-radius:7px;font-size:12px;align-items:center}.check-item input{accent-color:var(--brand);height:15px;width:15px;margin:0}.check-item small{display:block;color:#716080;font-size:12px}.source-preview{padding:13px 15px;background:#f7f5fa;border-radius:7px;margin-bottom:20px;font-size:13px;line-height:1.8}.source-preview small{display:block;color:#716080;font-size:12px;margin-bottom:4px}.dropzone{border:1px dashed #b9a2d4;background:#faf7fe;border-radius:10px;padding:30px 20px;text-align:center;cursor:pointer;display:block;margin-bottom:20px}.dropzone:hover,.dropzone.dragging{background:#f0e8fc;border-color:var(--brand)}.dropzone>svg{width:31px;height:31px;color:var(--brand);display:block;margin:0 auto 10px}.dropzone b{font-size:13px;color:#69517d;font-weight:600}.dropzone p{font-size:12px;color:#716080;margin-top:7px}.selected-file{display:flex;gap:12px;align-items:center;background:#f8f6fb;border-radius:8px;padding:12px;margin-bottom:20px}.selected-file>div:nth-child(2){min-width:0;flex:1}.selected-file b{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-file small{color:var(--muted);font-size:12px}.copy-field{display:flex;gap:8px;align-items:center;padding:11px;background:#f8f5fc;border-radius:7px;font-family:ui-monospace,monospace;font-size:12px;word-break:break-all}.copy-field span{flex:1}.details-list{display:grid;grid-template-columns:100px 1fr;gap:12px 15px;margin:20px 0;font-size:12px}.details-list dt{color:#716080}.details-list dd{margin:0;color:#574563}.big-image{height:190px;border-radius:10px;display:grid;place-items:center;background:var(--brand-pale);border:1px solid var(--line)}.big-image img{max-width:65%;max-height:75%;object-fit:contain}.confirm{border:0;border-radius:14px;padding:26px;width:440px;max-width:calc(100vw - 32px);box-shadow:var(--shadow);color:var(--ink)}.confirm h2{font-size:19px;margin:12px 0}.confirm-icon{display:grid;place-items:center;height:36px;width:36px;border-radius:9px;background:var(--warn-bg);color:var(--warn)}#confirmText{font-size:13px;color:var(--muted);line-height:1.85;white-space:pre-line}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.toast{position:fixed;right:30px;top:116px;z-index:1000;display:none;align-items:flex-start;gap:10px;background:#fff;border:1px solid #d6e7dc;border-radius:9px;box-shadow:0 8px 26px #30223d16;padding:14px 18px;max-width:400px;font-size:12px;color:#475e50}.toast.show{display:flex}.toast svg{color:var(--success);width:17px;height:17px}.toast b{display:block;font-size:12px}.toast small{display:block;color:#4b6354;font-size:12px;margin-top:3px}.spinner{height:14px;width:14px;border:2px solid #d9caea;border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite;display:inline-block;vertical-align:middle;margin-right:7px}.button.primary .spinner{border-color:#ffffff66;border-top-color:#fff}.picker{border:0;border-radius:12px;padding:0;width:580px;max-width:calc(100vw - 24px);box-shadow:var(--shadow);color:var(--ink)}.picker-head{padding:23px 24px 17px;display:flex;justify-content:space-between}.picker-head p{font-size:12px;color:#716080;margin-bottom:5px}.picker-head h2{font-size:21px}.segmented{display:flex;background:#f3f0f7;padding:4px;border-radius:7px;gap:3px}.segmented button{border:0;padding:7px 20px;font-size:12px;color:#716080;border-radius:5px}.segmented button.active{background:white;color:var(--brand);box-shadow:0 2px 4px #3f21530b;font-weight:600}.picker-tabs{margin:0 24px 16px}.picker-search{margin:0 24px 12px}#pickerResults{padding:0 24px 20px;max-height:320px;overflow:auto}.picker-item{width:100%;display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;padding:10px;text-align:left;margin-bottom:8px;background:white}.picker-item:hover{border-color:#b89ed4;background:var(--brand-pale)}.picker-item .image-thumb{width:48px;height:40px}.picker-item b{font-size:12px;display:block;font-weight:600}.picker-item small{font-size:12px;color:#716080;display:block;margin-top:3px}.picker-item>svg{margin-left:auto;color:#a594b5;width:16px;height:16px}.selection-result{border-top:1px solid var(--line);padding:15px 24px;background:#faf8fd;font-size:12px;color:#716080}.scope-note{font-size:12px;color:var(--warn);margin-bottom:16px}.scenario-select{font-size:12px;border:1px solid var(--line);border-radius:6px;background:white;padding:5px 7px;color:#716080}.scenario-row{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;display:flex;align-items:center;gap:8px;color:#716080;font-size:12px}.version-line{color:#716080;font-size:12px}.divider-dot{color:#c3bacb;margin:0 5px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes slide-in{from{transform:translateX(22px);opacity:.7}to{transform:translateX(0);opacity:1}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(min-width:1700px){main{padding-top:39px}.sidebar{width:232px}.filters{gap:20px}}
@media(max-width:1100px){.sidebar{width:188px;padding-left:12px;padding-right:12px}.brand{padding-left:10px}.brand img{width:132px}main{padding:25px 24px}.topbar{padding:0 24px}.filter-field.project{width:180px}.filter-field.language{width:145px}.filters{gap:10px}.control{min-width:0;width:100%}.review-detail{display:none}.hint .push{display:none}td,th{padding-left:16px;padding-right:16px}}
@media(max-width:720px){.reviewbar{height:auto;min-height:42px;padding:6px 12px;gap:10px;flex-wrap:wrap}.reviewbar>span b{font-size:12px}.reviewbar>div{gap:8px}.reviewbar label{display:none}.reviewbar a{display:none}.reviewbar button{font-size:12px}.app-shell{min-height:calc(100vh - 42px);display:block}.sidebar{width:100%;padding:12px 15px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 0 11px;display:flex;align-items:center;gap:13px}.brand img{width:99px}.brand span{font-size:12px;padding:0;letter-spacing:1px}.sidebar nav{display:flex;gap:6px}.nav-label,.sidebar-bottom{display:none}.nav-item{width:auto;font-size:12px;padding:9px 10px;margin:0;border-radius:6px 6px 0 0;gap:6px}.nav-item svg{height:16px;width:16px}.topbar{height:45px;padding:0 18px}.crumb{font-size:12px}.account{font-size:12px;gap:5px}.avatar{height:23px;width:23px}main{padding:16px}.page-heading{align-items:flex-start;gap:10px;margin-bottom:17px}h1{font-size:23px}.page-heading p{font-size:12px;max-width:190px}.heading-actions{flex-direction:column;align-items:flex-end;gap:6px}.heading-actions .button{font-size:12px;padding:9px 12px;min-height:40px}.hint{font-size:12px;padding:10px;gap:7px}.filters{flex-wrap:wrap;padding:16px;gap:12px}html,body{max-width:100%;overflow-x:hidden}main{overflow-x:clip}.filter-field.project,.filter-field.language{width:100%}.filter-field.keyword{flex-basis:100%}.table-context{padding:16px}.table-context .note{font-size:12px}.tab-line{gap:14px}.tab-line button{font-size:12px}table{min-width:850px}.role-table{min-width:500px}.bottom-caption{font-size:12px;gap:10px}.drawer{width:100vw;max-width:100vw}.drawer-head{padding:20px}.drawer-body{padding:20px}.drawer-footer{padding:14px 20px;gap:8px}.drawer-footer .footer-note{display:none}.drawer-footer .button{font-size:12px}.toast{right:14px;left:14px;top:145px;max-width:none}.field-row{gap:10px}.picker-tabs,.picker-search{margin-left:18px;margin-right:18px}#pickerResults{padding-left:18px;padding-right:18px}.table-bottom{padding:12px 15px}.scenario-row{flex-wrap:wrap}}
/* Dropdowns share the same trigger and expanded menu in every surface. */
.select-shell{position:relative;min-width:0;width:100%}.select-shell>select[hidden]{display:none!important}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:var(--control-h,40px);padding:7px 11px;background:#fff;border:1px solid #ded9e5;border-radius:7px;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.select-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger>svg,.select-option>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}.select-trigger:hover{border-color:#b5a5ca}.select-trigger[aria-expanded=true]{border-color:var(--brand);outline:2px solid #7135bd20;outline-offset:0}.select-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}.select-popover{position:fixed;inset:auto;margin:0;padding:5px;border:1px solid #e1d9eb;border-radius:8px;background:#fff;color:var(--ink);box-shadow:0 8px 24px #30233f20;overflow-y:auto;z-index:10000;font-size:13px}.select-popover[hidden]{display:none}.select-option{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;border:0;background:transparent;color:var(--ink);padding:9px 10px;min-height:36px;border-radius:5px;text-align:left;font:inherit;cursor:pointer}.select-option:hover,.select-option:focus-visible{background:#f7f3fc;outline:none}.select-option[aria-selected=true]{background:var(--brand-soft);color:var(--brand);font-weight:600}.select-option:disabled{opacity:.45;cursor:default}.reviewbar .select-shell{width:82px}.reviewbar .select-trigger{min-height:24px;padding:2px 7px;background:#403746;color:#fff;border:1px solid #655970;font-size:12px;gap:6px}.reviewbar .select-trigger>svg{width:12px;height:12px}.scenario-row .select-shell{width:150px}.scenario-row .select-trigger{min-height:32px;font-size:12px}.tab-line{white-space:nowrap}.table-context .note{white-space:nowrap}@media(max-width:720px){.table-context .note{display:none}.reviewbar .select-shell{width:73px}.select-option{min-height:40px}}
.nav-item[hidden]{display:none}.account-email{margin-top:5px;color:var(--muted);font-size:12px}.logout-link{color:var(--brand);font-size:12px;margin-left:8px}.text-button:disabled{opacity:.45;cursor:not-allowed}.drawer .toast,.confirm .toast{top:110px;right:24px;left:auto;max-width:calc(100vw - 48px)}.dropzone:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.select-popover .select-option{color:var(--ink);font-size:13px;padding:9px 10px;text-decoration:none;background:transparent}.select-popover .select-option:hover,.select-popover .select-option:focus-visible{color:var(--ink);background:#f7f3fc}.select-popover .select-option[aria-selected=true]{color:var(--brand);background:var(--brand-soft)}
.list-loading{padding:30px 20px;color:var(--muted);font-size:13px;min-height:250px}.list-loading>.spinner{vertical-align:middle;margin-right:8px;border-top-color:var(--brand)}.skeleton-line{height:22px;background:#f2eef7;border-radius:5px;margin-top:24px;max-width:90%}.skeleton-line:nth-child(2){max-width:65%}.empty-state .button{margin-top:16px}
/* Feedback occupies a stable slot; messages never push working controls. */
.drawer-footer.has-feedback-slot{min-height:80px}.drawer-footer.has-feedback-slot .footer-note{display:none}.drawer-footer #formAlert{height:48px;min-width:0;flex:1;overflow:auto;margin:0;display:flex;align-items:center}.drawer-footer #formAlert>.inline-notice{width:100%;font-size:12px;padding:7px 10px;line-height:1.5;margin:0}.drawer-footer #formAlert:empty{visibility:hidden}@media(max-width:720px){.drawer-footer.has-feedback-slot{display:grid;grid-template-columns:1fr auto auto;min-height:128px}.drawer-footer #formAlert{grid-column:1/-1;width:100%;height:48px}.drawer-footer.has-feedback-slot>.button:first-of-type{grid-column:2}.drawer-footer.has-feedback-slot>.button:last-of-type{grid-column:3}}
.drawer-footer #formAlert{align-items:flex-start}
/* Login: full-height editorial split; helper text changes in place. */

.country-list-value{display:inline-block;max-width:260px;line-height:1.7;overflow-wrap:anywhere}
.country-page-note,.country-drawer-note{font-size:12px;color:var(--muted);line-height:1.8;margin-top:12px}
.country-drawer-note{margin-top:0}
.country-scope-field{min-width:0;padding:0;border:0}
.country-scope-field>legend{padding:0;font-size:12px;font-weight:600;margin-bottom:8px}
.country-scope-field>legend .required{color:var(--brand);margin-left:4px}
.country-scope-modes{display:flex;gap:20px;margin-bottom:12px;flex-wrap:wrap}
.country-checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.country-scope-field .country-choice{display:flex;align-items:center;gap:8px;margin:0;min-height:30px;font-size:12px;font-weight:400;cursor:pointer}
.country-scope-field .country-choice input{appearance:auto;flex:0 0 16px;width:16px;height:16px;margin:0;padding:0;accent-color:var(--brand);border-radius:3px}
.country-code{color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;margin-left:3px}
.country-scope-field small{line-height:1.7}
.country-scope-field:focus-visible{outline:3px solid #ac84e4;outline-offset:5px;border-radius:5px}
@media(max-width:380px){.country-checkbox-grid{grid-template-columns:1fr}}

/* Icon rows share line-box alignment; no page-specific pixel nudges. */
:root{--icon-size:16px;--icon-gap:8px}
.icon-line{display:flex;align-items:flex-start;gap:var(--icon-gap)}
.icon-slot{display:inline-grid;place-items:center;flex:0 0 var(--icon-size);width:var(--icon-size);height:1lh}
.icon-slot>svg{display:block;width:var(--icon-size);height:var(--icon-size);margin:0}
.icon-copy{min-width:0;flex:1}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--icon-gap)}
.text-button>svg{display:block;flex:none;width:var(--icon-size);height:var(--icon-size)}
.button>svg,.select-trigger>svg,.select-option>svg,.nav-item>svg{display:block;flex:none}
.button>.spinner{display:block;flex:none;margin:0}
.picker-item>svg{margin-left:0}.picker-item>svg:last-child{margin-left:auto}

.roles-scope-panel{margin-bottom:26px}
.roles-scope-heading{padding:20px 22px 17px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.roles-scope-heading h2,.roles-scope-section-heading h2{font-size:17px;letter-spacing:-.2px}
.roles-scope-heading p,.roles-scope-section-heading p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:5px}
.roles-scope-demo{font-size:12px;color:var(--muted);white-space:nowrap;padding-top:2px}
.roles-scope-content{padding:20px 22px}
.roles-scope-account-picker,.roles-scope-work-controls{display:flex;align-items:flex-end;gap:12px;max-width:680px}
.roles-scope-account-picker{margin-bottom:20px}
.roles-scope-account-picker .filter-field{flex:1;min-width:0}
.roles-scope-work-controls .filter-field{min-width:210px;flex:1}
.roles-scope-account-summary{display:flex;gap:14px;align-items:center;font-size:13px;justify-content:space-between;max-width:680px}
.roles-scope-email{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.roles-scope-details{display:flex;align-items:baseline;gap:14px;margin:18px 0 12px;font-size:12px;line-height:1.8}
.roles-scope-details dt{color:var(--muted);flex-shrink:0}
.roles-scope-details dd{margin:0}
.roles-scope-details dd b{font-weight:550}
.roles-scope-countries{display:flex;flex-wrap:wrap;gap:7px}
.roles-scope-country{padding:6px 10px;border:1px solid #e8e0f4;border-radius:6px;background:var(--brand-pale);font-size:12px;color:var(--ink)}
.roles-scope-country small{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);font-size:12px;margin-left:5px}
.roles-scope-description{display:block;color:var(--muted);font-size:12px;line-height:1.8;margin-top:12px}
.roles-scope-work{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}
.roles-scope-work-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.roles-scope-work-heading h3{font-size:13px}
.roles-scope-work-heading>span{font-size:12px;color:var(--brand);font-weight:600}
.roles-scope-boundary{background:#faf9fc;border-top:1px solid var(--line);padding:14px 22px;font-size:12px;line-height:1.8;color:var(--muted)}
.roles-scope-boundary b{font-weight:600;color:var(--ink)}
.roles-scope-boundary p{margin-top:3px}
.roles-scope-section-heading{margin-bottom:14px}
@media(max-width:720px){.roles-scope-heading,.roles-scope-content{padding:17px}.roles-scope-boundary{padding:14px 17px}.roles-scope-account-picker,.roles-scope-work-controls{flex-wrap:wrap}.roles-scope-account-picker .filter-field,.roles-scope-work-controls .filter-field{flex-basis:100%;min-width:0}.roles-scope-details{gap:10px}.roles-scope-demo{font-size:12px}.roles-scope-account-picker .select-shell,.roles-scope-work-controls .select-shell{width:100%}}

/* Additive v9 page metadata styles. */
.page-management .page-description { max-width: 360px; min-width: 200px; white-space: normal; line-height: 1.6; }
.page-management .page-actions-heading { text-align: right; }
.page-management .row-actions { min-width: 170px; }
/* 图片资源 / 页面信息 (#149): the action cell keeps one row of buttons on the
   first text line. The td stays a real table cell; only the inner box is flex. */
.row-actions-inner { display: flex; align-items: center; justify-content: flex-end; gap: 2px; flex-wrap: nowrap; }
/* strategy-lan-v1/module.css also loads on this shell and ships an unscoped
   `.row-actions { display:flex }` cluster rule. Here `row-actions` is the
   native <td>, so keep the cell a table cell; only the inner wrapper lays out
   the buttons. The 40px hit box reaches into the cell's 12px padding, so the
   row keeps its 56px height. */
td.row-actions { display: table-cell; }
td.row-actions .row-actions-inner > .text-button {
  min-height: var(--control-h, 40px);
  margin-block: calc((20px - var(--control-h, 40px)) / 2);
}
/* #149 087: in the image list the 54px thumbnail makes the row taller than
   the text; the actions must sit on the first text line, not on the row's
   vertical centre. `align-items` alone was not enough: the 54px name block is
   only as tall as the thumbnail, so the cell's own vertical-align: middle
   centred it inside the 99/139px content box and pushed the first line down
   by exactly 22.5/42.5px. Top-aligning every cell (name, description and
   actions) starts all first lines and the 40px hit box's centre together. */
.image-resource-table .resource-name { align-items: flex-start; }
.image-resource-table td { vertical-align: top; }
.page-delete:not(:disabled) { color: #b43c4c; }
.page-delete-reason { display: block; color: var(--muted, #74717c); font-size: 12px; line-height: 1.5; margin-top: 3px; white-space: normal; }
.page-readonly { font-size: 13px; color: var(--muted, #74717c); line-height: 1.6; }
.page-management-note { margin: 15px 2px 0; font-size: 13px; line-height: 1.7; color: var(--muted, #74717c); }
.page-list-error { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 20px 16px; padding: 14px 16px; border: 1px solid #efc6cc; border-radius: 8px; background: #fff5f6; color: #923640; font-size: 13px; }
#pageKey[readonly], #pageName[readonly], #pageDescription[readonly] { background: var(--surface-muted, #f7f6f9); }
@media (max-width: 760px) { .page-list-error { align-items: flex-start; flex-direction: column; } }

.image-page-filter{width:220px}.image-pages-cell{max-width:230px;line-height:1.7}.image-page-field{border:0;padding:0}.image-page-field legend{margin-bottom:8px}@media(max-width:720px){.image-page-filter{width:calc(50% - 5px)}.sidebar nav{flex-wrap:wrap}}

.language-preview>div{align-items:center}.language-preview b{width:110px;flex:none;white-space:normal}.language-preview>div>span{flex:1;min-width:0}.language-preview>div>.text-button{flex:none}

.button,.text-button,.search,.select-trigger,.select-option,.nav-item,.hint{gap:var(--icon-gap)}.icon-slot>.spinner{display:block;width:14px;height:14px;margin:0}

.crumb #crumbSection{color:var(--muted)}

.page-image-link{padding-left:0;text-decoration:underline;text-underline-offset:3px}.page-position{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}
.account{min-width:0;flex:none}.account #accountLabel{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account .avatar{flex:none}.account .logout-link{flex:none}@media(max-width:1100px){.account #accountLabel{max-width:160px}}@media(max-width:720px){.account #accountLabel{max-width:210px}}

/* Append after the existing styles. The topbar host is before .account. */
.topbar{height:auto;min-height:76px;gap:20px}
.topbar>.crumb{margin-right:auto;min-width:0;flex-wrap:wrap}
#globalCountryHost{flex:0 0 226px;width:226px;min-width:0;padding:8px 0}
.global-country-control{display:grid;grid-template-columns:52px minmax(0,1fr) 14px;align-items:center;gap:8px;min-height:34px}
.global-country-control>label{font-size:12px;color:var(--muted);white-space:nowrap}
.global-country-control>.control,.global-country-control>.select-shell{width:100%;min-width:0}
.global-country-control .control,.global-country-control .select-trigger{min-height:34px;height:34px;padding:6px 9px;font-size:12px}
.global-country-control .ao-select{width:100%;min-width:0}
.global-country-control .ao-select-trigger{display:block;min-height:34px;height:34px;padding:5px 28px 5px 9px;font-size:12px;border-radius:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.global-country-control .ao-select-panel{min-width:0;font-size:12px}
.global-country-control .select-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-country-progress{width:14px;height:14px}
.topbar>.account{flex:0 1 auto;min-width:0;max-width:300px;white-space:nowrap}
@media(max-width:1050px){.topbar{gap:14px;flex-wrap:wrap;padding-top:7px;padding-bottom:7px}.topbar>.crumb{flex-basis:100%;margin-right:0}.topbar>#globalCountryHost{margin-right:auto;padding:0}.topbar>.account{margin-left:auto}}
@media(max-width:720px){.topbar{min-height:110px;padding:10px 16px;gap:8px 12px}.topbar>#globalCountryHost{flex:0 1 190px;width:190px}.global-country-control{grid-template-columns:48px minmax(0,1fr) 14px;gap:6px}.topbar>.account{font-size:12px;gap:5px}.topbar>.account .logout-link{margin-left:3px}}
@media(max-width:400px){.topbar>.account{flex-basis:100%;max-width:100%;justify-content:flex-end;margin-top:0}.topbar>#globalCountryHost{flex-basis:226px;width:226px;margin-right:0}.topbar{min-height:136px}}

.module-scope{font-size:12px;color:var(--muted);padding:2px 6px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.global-country-control .icon-slot{height:1lh}

.global-country-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Database mode paints a neutral boot surface before any prototype markup. */
body.runtime-booting .reviewbar,body.runtime-booting .app-shell{display:none!important}
.runtime-boot-surface{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 30%,#f3e9ff 0,#f7f7fa 48%,#f7f7fa 100%)}
.runtime-boot-card{display:flex;align-items:center;gap:14px;width:min(420px,100%);padding:24px 26px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);font-size:13px;line-height:1.7}
.runtime-boot-card>.spinner{width:20px;height:20px;margin:0;flex:none}
.runtime-boot-card b{display:block;font-size:15px;color:var(--ink)}
.runtime-boot-card p{color:var(--muted)}
.runtime-boot-card .button{margin-top:14px}
.runtime-boot-error{display:grid;place-items:center}
.runtime-boot-error .spinner{display:none}
.translation-disabled-note{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#faf9fc;color:var(--muted);font-size:12px;line-height:1.7}
.drawer-footer .button.primary{min-width:10.5rem;white-space:nowrap}

/* Shell icon scale (component rev96): one 16px icon with an 8px gap. The
 * earlier 19px nav glyph and 13px crumb chevron were two unrelated sizes. */
.nav-item{min-height:40px;padding:10px 15px}
.nav-item svg{width:16px;height:16px}
.crumb svg{width:16px;height:16px}

/* #130: one grouped resource menu on every page. The parent marks the open
 * group (not a second current page); only the leaf carries .selected.
 * #149 (Todd befd3c45, product v2): the resource group's children show no
 * bullet or guide line of their own — indent and the row highlight carry the
 * level. */
.nav-sub{padding-left:47px;font-size:12.5px}
.nav-sub::before{content:none}
/* #149 (Todd 19b8c9e5): 素材投放 is a child of 页面定义. The parent still opens
 * the page; the caret is decorative, and only the leaf carries .selected. */
.nav-sub-parent .nav-caret{width:12px;height:12px;margin-left:auto;color:#a99fba}
.nav-sub.nav-sub-child{padding-left:64px;font-size:12px}
.nav-parent.nav-group-current{color:var(--brand);background:var(--brand-soft)}
@media(max-width:720px){
  .sidebar nav{flex-wrap:wrap}
  .nav-label{display:block;flex:0 0 100%;padding:6px 10px 2px}
  .nav-sub{padding-left:10px;font-size:12px}
  .nav-sub.nav-sub-child{padding-left:20px}
}

/* #155: the read-only compliance tab shares one visual language with the
 * existing list tables; the four levels keep a fixed order from the API. */
.compliance-panel .compliance-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0 12px}
.compliance-count{font-size:12.5px;color:#6b6478}
.compliance-count b{display:inline-block;min-width:52px}
.compliance-count.result-FAIL b{color:#b3261e}
.compliance-count.result-WARN b{color:#a86600}
.compliance-count.result-UNKNOWN b{color:#5b5f6b}
.compliance-count.result-PASS b{color:#1d7a45}
.compliance-result{font-weight:600;font-size:12.5px;padding:1px 6px;border-radius:6px;background:#f2eff7}
.compliance-result.result-FAIL{color:#b3261e;background:#fbeceb}
.compliance-result.result-WARN{color:#a86600;background:#fbf3e4}
.compliance-result.result-UNKNOWN{color:#5b5f6b;background:#efeff3}
.compliance-result.result-PASS{color:#1d7a45;background:#e8f5ed}
.compliance-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.compliance-scope{margin:0 0 12px;color:#6b6478;font-size:12.5px}
.compliance-partial{margin:0 0 12px;padding:9px 12px;border-radius:8px;background:#fff7e9;color:#986317;font-size:12.5px;line-height:1.6}
.compliance-panel .table-wrap{overflow:auto}

/* #149: two-level navigation. The label navigates; the caret only expands or
   collapses that group's children, with a visible focus ring and a rotated
   arrow that matches aria-expanded. */
/* #149 (product a17c31c3): one surface per row. The name still navigates and
   the caret only toggles, but hover and the current group tint cover the whole
   row — name plus caret — instead of sitting on the label with a 2px seam and a
   28px target beside it. The caret keeps its own focus and expanded state. */
.nav-parent-row,.nav-sub-row{display:flex;align-items:center;gap:0;border-radius:8px}
.nav-parent-row>.nav-parent,.nav-sub-row>.nav-sub{flex:1;min-width:0}
.nav-parent-row:hover,.nav-sub-row:hover,
.nav-parent-row.nav-row-current,.nav-sub-row.nav-row-current{background:var(--brand-soft)}
.nav-parent-row:hover>.nav-item,.nav-sub-row:hover>.nav-item,
.nav-parent-row.nav-row-current>.nav-item,.nav-sub-row.nav-row-current>.nav-item{background:transparent}
.nav-parent.nav-group-current{background:transparent}
.nav-sub-row>.nav-sub.nav-sub-parent{padding-left:40px}
.nav-disclosure{flex:none;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:0 8px 8px 0;background:none;color:#a99fba;cursor:pointer;margin:0}
.nav-disclosure:hover{background:transparent;color:var(--brand)}
.nav-disclosure:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:8px}
.nav-disclosure .nav-caret{width:12px;height:12px;transition:transform .15s ease}
.nav-disclosure[aria-expanded="false"] .nav-caret{transform:rotate(-90deg)}
.nav-children[hidden]{display:none}
.nav-group-nested{display:block}
@media(max-width:720px){.nav-sub-row>.nav-sub.nav-sub-parent{padding-left:18px}}
