:root{--ink:#172e32;--muted:#748286;--line:#e4eaea;--green:#16766a;--surface:#fff;--bg:#f4f7f6;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px;line-height:1.6}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid transparent;border-radius:8px;padding:10px 16px;background:var(--green);color:white;font-weight:550;line-height:1.4;transition:background .15s,box-shadow .15s}button:hover{background:#105e55}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #72baa9;outline-offset:3px}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}.workspace{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:#122b2b;color:#c4d4d1;padding:34px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:white;padding:0 12px;font-size:25px;font-weight:650;letter-spacing:2px}.brand:hover{text-decoration:none}.brand-icon{display:grid;place-items:center;background:#c4eb9c;color:#173c33;border-radius:12px;width:44px;height:44px;font-size:28px}.brand-sub{display:block;font-size:8px;letter-spacing:1.2px;color:#94aaa4;font-weight:500}.nav-caption{font-size:11px;letter-spacing:1px;color:#809c96;margin:48px 16px 12px}nav{display:flex;flex-direction:column;gap:7px}nav button{position:relative;text-align:left;padding:14px 16px;background:transparent;color:#b6cac5;font-size:13px;border-radius:8px}nav button:before{content:'◫';margin-right:10px;opacity:.8}nav button:nth-child(2):before{content:'↗'}nav button:nth-child(3):before{content:'▤'}nav button[aria-selected=true]{background:#284540;color:#e3f5cb}nav button:hover{background:#233e39}.sidebar-footer{margin-top:auto;padding:24px 12px 0;font-size:12px;color:#bccdc7;border-top:1px solid #2a423c}.sidebar-footer small{display:block;margin-top:8px;color:#78988f}.live-dot{display:inline-block;width:6px;height:6px;background:#bedf98;border-radius:50%;margin-right:6px}.main{min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;color:#81908e;background:#ffffffa0;font-size:12px}.topbar strong{font-weight:500;color:#3b5653}.breadcrumb-separator{padding:0 14px;color:#c0cdca}.timezone{font-size:11px}.page-content{padding:30px 38px;max-width:1600px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 26px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:650;color:#7b9689;margin:0 0 8px}h1{font-size:28px;font-weight:650;letter-spacing:-.8px;margin:0 0 8px}p{margin:8px 0 16px}h1+p,.page-heading p:last-child{color:var(--muted);font-size:13px;margin:0}.platform-note{white-space:nowrap;background:white;border:1px solid var(--line);border-radius:24px;padding:8px 15px;font-size:12px;color:#48635c}.platform-note span{padding:0 9px;color:#a7b9b1}.overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat{padding:18px 22px;background:white;border:1px solid var(--line);border-radius:12px;position:relative}.stat>span{font-size:12px;color:#6f837b}.stat strong{display:block;font-size:30px;font-weight:600;line-height:1.35;margin:9px 0 5px;font-variant-numeric:tabular-nums}.stat small{font-size:11px;color:#9aa8a2}.stat:first-child{background:#edf3e8;border-color:#dde8d5}.model-banner{display:flex;align-items:center;gap:12px;border:1px solid #dce8e3;background:#edf4f0;border-radius:9px;padding:10px 16px;margin-bottom:26px;color:#526d61}.model-icon{font-size:23px;color:#59876e}.model-banner p{margin:0;font-size:11px;overflow-wrap:anywhere}.model-caption{margin-left:auto;white-space:nowrap;font-size:10px;color:#8aa494}section{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:26px;margin:0 0 22px;min-width:0}h2{font-size:17px;font-weight:620;letter-spacing:-.2px;margin:0 0 14px}h3{font-size:14px;margin:14px 0;color:#284b42}.section-intro{padding-bottom:6px}.section-intro p:last-child{color:var(--muted);font-size:12px}.create-section>small{display:block;background:#f5f8f6;border-radius:6px;padding:10px 12px;color:#7b8f82;font-size:11px;margin:0 0 20px}label{display:block;font-size:12px;font-weight:550;color:#4f655d}input:not([type=checkbox]):not([type=hidden]),textarea,select{display:block;width:100%;max-width:100%;min-width:0;border:1px solid #dce4df;border-radius:8px;padding:11px 12px;margin:7px 0 18px;color:#244338;background:#fcfdfc;outline:none;transition:border .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:#6b9f88;box-shadow:0 0 0 3px #1f7b6710}input:disabled{background:#f0f3f1;color:#a4b0a9}textarea{resize:vertical;min-height:100px;font-weight:400;font-size:13px;line-height:1.8}input::placeholder,textarea::placeholder{color:#a8b5ae}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;vertical-align:middle}label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px;font-weight:450}#form{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}#form>label:nth-child(1),#form>label:nth-child(2){grid-column:1/-1}#form>button{justify-self:start;margin-top:4px}#message{align-self:center;margin:0;color:var(--green)}.section-heading,.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-heading h2{margin:0}.section-heading{margin-bottom:14px}small,section>p{color:var(--muted);font-size:12px}[role=status]:empty{display:none}#link-summary,#groups-state,#test-message,#group-history-state{font-size:12px;color:#789085}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#8b9a93;background:#f6f8f6;font-weight:500;padding:12px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:15px 12px;vertical-align:top;border-bottom:1px solid #edf1ed;overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfb}td button{font-size:11px;padding:7px 10px;margin:3px;min-height:32px;background:#f0f5f1;color:#3c6c57;border-color:#e2ebe4}td button:hover{background:#e2eee5}td a{display:inline-block;font-size:11px;margin:5px 7px}button.secondary{background:#edf4ef;color:#33684c;border-color:#dce9df}.table-scroll,[style*="overflow-x:auto"]{overflow:auto;max-width:100%;overscroll-behavior-inline:contain}#groups-list td:last-child{min-width:245px}#groups-list td:first-child{font-size:13px;font-weight:600}#groups-list td:nth-child(3){min-width:175px;color:#6e8477}.link-url{overflow-wrap:anywhere;max-width:100%}.cell-text{overflow-wrap:anywhere;white-space:pre-wrap;max-height:90px;overflow:auto;min-width:65px;max-width:220px}#links td:nth-child(3) .cell-text{min-width:170px}#links td:nth-child(4) .cell-text{min-width:170px}.failure{padding:10px 12px;border-left:3px solid #bf7867;background:#fbf1ed;color:#9c5544;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.failure strong{display:block}article{border-bottom:1px solid var(--line);padding:15px 0}article:last-child{border:0}article p{overflow-wrap:anywhere}fieldset{border:1px solid var(--line);border-radius:8px;margin:0 0 16px;padding:12px}legend{font-size:12px;color:#6a8071}.weekday{display:inline-flex!important;margin:5px 10px 5px 0}.weekday input{margin:0}dialog{width:min(1000px,92vw);max-height:88vh;max-height:88dvh;padding:26px;border:1px solid #e2e9e1;border-radius:16px;color:var(--ink);box-shadow:0 24px 90px #122b2b30;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#142b2b88;backdrop-filter:blur(3px)}dialog .dialog-heading{position:sticky;top:-26px;background:white;z-index:2;padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:20px}dialog h2{margin:0}dialog .dialog-heading button,[data-close]{background:#f1f5f2;color:#697e6f;border:1px solid #e2e9e2}#group-editor{width:min(660px,92vw)}#group-form{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}#group-form>label:nth-of-type(-n+3),#group-form>fieldset,#group-form>p,#group-form>label:has(input[type=checkbox]){grid-column:1/-1}#group-form [hidden]{display:none}#group-detail-links article{display:flex;justify-content:space-between;align-items:center;gap:16px}#group-detail-links article p{margin:0;font-size:12px}#group-detail-links .group-link-actions button{white-space:nowrap;background:#fcf1ec;color:#a36350}#add-group-link>button{margin-bottom:14px}.page-footer{padding:0 38px 24px;font-size:10px;color:#a1b0a6;display:flex;justify-content:space-between;gap:16px}[hidden]{display:none!important}.status-badge{display:inline-block;padding:3px 9px;border-radius:6px;font-size:11px;font-weight:500;background:#edf3ed;color:#5c7b62}.status-badge[data-state=failed]{background:#faeee9;color:#ae6751}.status-badge[data-state=running],.status-badge[data-state=pending]{background:#f7f3e6;color:#a18c45}
@media(min-width:1500px){.page-content{padding:38px 52px}.topbar{padding:0 52px}}
@media(max-width:1050px){.workspace{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:28px 12px}.page-content{padding:24px}.topbar{padding:0 24px}.stat{padding:16px}.stat small{font-size:10px}.page-heading h1{font-size:24px}.platform-note{display:none}nav button{padding:13px 10px}}
@media(max-width:760px){.workspace{display:block}.sidebar{position:sticky;top:0;height:auto;z-index:5;padding:12px 16px 0;display:block}.brand{font-size:19px;padding:0}.brand-icon{height:32px;width:32px;font-size:22px;border-radius:8px}.brand-sub{font-size:7px}.nav-caption,.sidebar-footer{display:none}nav{flex-direction:row;gap:0;margin-top:12px}nav button{flex:1;text-align:center;font-size:11px;white-space:nowrap;padding:12px 5px;border-radius:7px 7px 0 0}nav button:before{display:none}.topbar{height:44px;padding:0 18px;font-size:10px}.timezone{font-size:9px}.page-content{padding:22px 16px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:23px}.page-heading p:last-child{font-size:12px}.eyebrow{font-size:8px}.overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.stat{padding:14px 16px}.stat strong{font-size:26px;margin:6px 0 2px}.stat small{font-size:10px}.model-banner{padding:9px 12px;margin-bottom:18px;gap:8px}.model-banner p{font-size:10px}.model-caption{display:none}section{padding:18px;border-radius:11px;margin-bottom:16px}h2{font-size:16px}#form,#group-form{display:block}input:not([type=checkbox]):not([type=hidden]),textarea,select{font-size:14px;min-height:44px}label{font-size:12px}button{min-height:42px}#form>button{width:100%}#message{margin-top:12px}.section-heading{gap:8px}.section-heading button{font-size:12px;padding:9px 12px}.page-footer{padding:0 16px 20px;font-size:9px}.page-footer span{display:none}dialog,#group-editor{width:calc(100% - 16px);max-height:94dvh;padding:18px;border-radius:13px;margin:auto}dialog .dialog-heading{top:-18px;padding:10px 0;margin-bottom:16px;gap:8px}dialog .dialog-heading h2{font-size:16px}dialog .dialog-heading button{padding:8px 12px;min-height:40px}dialog article p{font-size:12px}#group-form>p button{min-width:100px}#group-detail-links article{align-items:flex-start}#group-detail-links article p{font-size:11px}#links-panel>section{padding:15px}table.mobile-cards thead{display:none}table.mobile-cards,table.mobile-cards tbody{display:block;width:100%}table.mobile-cards tr{display:block;background:#fff;border:1px solid var(--line);border-radius:9px;margin:12px 0;overflow:hidden;padding:9px 12px}table.mobile-cards td{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #f0f3ef;min-width:0!important;font-size:12px}table.mobile-cards td:before{content:attr(data-label);flex:0 0 75px;font-size:11px;color:#92a297;font-weight:400}table.mobile-cards td:last-child{display:block;border:0}table.mobile-cards td:last-child:before{display:block;margin-bottom:8px}table.mobile-cards td button{min-height:40px;font-size:11px;padding:8px 10px}table.mobile-cards td .cell-text{min-width:0!important;max-width:calc(100% - 85px);text-align:right;max-height:60px}#groups-list td:first-child{font-size:14px}.table-scroll,[style*="overflow-x:auto"]{overflow:visible}#tasks td:last-child .failure,#group-history td:last-child .failure{display:block}td .status-badge{margin-left:auto}td a{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.brand-sub{white-space:nowrap;letter-spacing:.8px}#groups-list td:first-child{min-width:115px}#groups-list td:nth-child(4){min-width:145px}.status-badge{white-space:nowrap}#groups-list td:nth-child(5){min-width:70px}
@media(max-width:760px){.stat{padding:12px 14px}.stat strong{font-size:24px;margin:4px 0 0}.stat small{display:none}.page-heading{margin-bottom:17px}.page-heading h1{font-size:22px}.page-heading .eyebrow{margin-bottom:6px}#groups-list td:first-child,#groups-list td:nth-child(4),#groups-list td:nth-child(5){min-width:0}}
@media(max-width:760px){.sidebar{position:relative;top:auto}}

#groups-list button.group-test-action{display:block;margin:12px 3px 3px;background:transparent;border-color:#e2e7e4;color:#79847e;font-weight:400}#groups-list button.group-test-action:hover{background:#f5f6f5;border-color:#cbd4ce;color:#59675e}

td button.danger-subtle{background:transparent;border-color:#e9e0db;color:#9d7467}td button.danger-subtle:hover{background:#faf0ec;color:#a35c46}

/* Desktop tables keep readable columns; overflow belongs to the table region. */
@media(min-width:761px){
 .table-scroll{overflow-x:auto;max-width:100%;border-radius:8px;scrollbar-width:thin;scrollbar-color:#b4c8be #f1f5f2}
 .table-scroll::-webkit-scrollbar{height:8px}
 .table-scroll::-webkit-scrollbar-track{background:#f1f5f2;border-radius:8px}
 .table-scroll::-webkit-scrollbar-thumb{background:#b4c8be;border-radius:8px}
 .table-scroll>table{min-width:800px;width:100%;table-layout:auto}
 .table-scroll:has(#groups-list)>table{min-width:1120px}
 .table-scroll:has(#links)>table{min-width:1900px}
 #groups-list td:first-child{min-width:140px}
 #groups-list td:nth-child(3){min-width:240px}
 #groups-list td:nth-child(4){min-width:200px}
 #groups-list td:last-child{min-width:360px}
 #tasks td:first-child,#group-history td:first-child{min-width:200px}
 #tasks td:nth-child(2),#group-history td:nth-child(2){min-width:150px;white-space:nowrap}
 #tasks td:last-child,#group-history td:last-child{min-width:330px}
 #links td:nth-child(2){min-width:140px}
 #links td:nth-child(5){min-width:150px}
 #links td:nth-child(6),#links td:nth-child(12){min-width:150px}
 #links td:last-child{min-width:180px}
}
@media(max-width:760px){.table-scroll{overflow:visible}.table-scroll>table{min-width:0;width:100%}}

#delete-alert{width:min(460px,calc(100vw - 32px));padding:28px}#delete-alert h2{margin:16px 0 10px}#delete-alert-description{font-size:13px;color:#748278;white-space:pre-wrap;overflow-wrap:anywhere}.alert-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fbede7;color:#a96a53;font-size:23px;font-weight:600}.alert-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#delete-alert-confirm{background:#a86550}#delete-alert-confirm:hover{background:#8c513f}.alert-actions button{min-width:96px;min-height:42px}

#links td:nth-child(5) .cell-text{min-width:220px;max-width:320px}
@media(min-width:761px){.table-scroll:has(#links)>table{min-width:2200px}#links td:nth-child(6){min-width:150px}#links td:nth-child(7),#links td:nth-child(13){min-width:150px}}
@media(max-width:760px){#links td:nth-child(5) .cell-text{min-width:0;max-width:calc(100% - 85px)}}

#account-menu{display:flex;align-items:center;gap:10px;margin-left:auto;margin-right:16px}#logout-button{background:transparent;color:#6c8174;font-size:11px;padding:6px 8px;min-height:32px}.login-page{min-height:100dvh;display:grid;place-items:center;padding:20px;background:#edf3ef}.login-card{width:min(440px,100%);background:white;border:1px solid var(--line);border-radius:18px;padding:38px;box-shadow:0 12px 60px #122b2b0d}.login-card .brand-icon{margin-bottom:25px}.login-card h1{font-size:24px}.login-card p{color:var(--muted);font-size:13px}.login-button{display:block;text-align:center;background:var(--green);color:white;border-radius:8px;padding:13px;margin-top:28px}.login-button:hover{background:#105e55;text-decoration:none}.login-card .login-note{font-size:11px;margin-top:16px}.login-card .failure{color:#9c5544}.login-card .eyebrow{font-size:10px}@media(max-width:760px){.topbar:has(#account-menu:not([hidden])) .timezone{display:none}#account-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#account-menu{margin-right:0;font-size:10px}.login-card{padding:26px}}

.link-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px;border:1px solid var(--line);border-radius:9px;padding:16px;margin-top:18px;background:#fafcfb}.link-filters button{justify-self:start;margin-bottom:4px}.link-filters input,.link-filters select{margin-bottom:12px!important}@media(max-width:760px){.link-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:0 10px}.link-filters button{grid-column:1/-1}}

/* Shared select control: same surface, spacing and focus treatment as inputs. */
select{
 appearance:none;-webkit-appearance:none;
 background-color:#fcfdfc;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2374887c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 12px center;background-size:16px;
 padding:11px 38px 11px 12px;border:1px solid #dce4df;border-radius:8px;
 color:#244338;cursor:pointer;line-height:1.6;min-height:44px;
}
select:hover{border-color:#aabfb2;background-color:#f8fbf9}
select:focus-visible{border-color:#6b9f88;outline:none;box-shadow:0 0 0 3px #1f7b6714}
select:disabled{background-color:#f0f3f1;color:#a4b0a9;cursor:not-allowed}
select option{background:#fff;color:#244338;font-weight:400}
.link-filters select{background-color:#fff}
@media(forced-colors:active){select{appearance:auto;background-image:none}}

/* Source links retain the full address and remain usable in narrow layouts. */
a.source-link{color:var(--accent,#27665a);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;word-break:break-word}
a.source-link:hover{color:#174c40}
a.source-link:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:2px}

.window-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;flex-basis:100%;width:100%}
.window-fields label[hidden]{display:none}
#group-detail-links .group-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.group-link-actions{display:flex;gap:8px;flex-wrap:wrap}
.window-summary{color:#748278;font-size:12px;white-space:pre-wrap}
.window-editor{grid-column:1/-1;margin:0;padding:14px;background:#f5f8f5;border-radius:8px}
.window-editor>button{margin:12px 8px 0 0}
#links td:nth-last-child(2) .cell-text{min-width:220px;max-width:340px}
@media(max-width:760px){#group-detail-links .group-link-row{grid-template-columns:minmax(0,1fr)}.window-editor{grid-column:auto}#links td:nth-last-child(2) .cell-text{min-width:0;max-width:calc(100% - 85px)}}

/* Filter buttons must not stretch to the height of a grid row. */
#filter-reset{align-self:end;justify-self:start;height:42px;min-height:42px;width:auto;margin:0 0 12px;padding:0 16px;white-space:nowrap}
.bulk-window{grid-column:1/-1;min-width:0;margin:0 0 16px;padding:16px;border:1px solid var(--line);border-radius:9px;background:#fafcfb}
.bulk-window legend{font-size:13px;font-weight:600;padding:0 6px}
.bulk-window>p{font-size:12px;color:#748278;margin:0 0 12px}
@media(max-width:760px){#filter-reset{height:44px;min-height:44px}.bulk-window{padding:12px}}

#groups-list .group-window-summary{white-space:pre-line;overflow-wrap:anywhere;line-height:1.7}
@media(min-width:761px){#groups-list .group-window-summary{min-width:240px;max-width:none;white-space:pre;overflow-wrap:normal;word-break:normal}.table-scroll:has(#groups-list)>table{min-width:1380px}}
@media(max-width:760px){#groups-list .group-window-summary{text-align:right}}

.group-next-run::before{content:' / '}
@media(min-width:761px){#groups-list .group-schedule-cell{max-width:none;white-space:nowrap;overflow-wrap:normal;word-break:normal}}
@media(max-width:760px){
 #groups-list .group-schedule-cell,#groups-list .group-window-summary{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;max-width:100%;white-space:normal;text-align:left}
 #groups-list .group-cell-value{min-width:0;max-width:100%;white-space:pre-line;overflow-wrap:anywhere;word-break:normal;text-align:left;line-height:1.8}
 .group-next-run{display:block;margin-top:4px;color:var(--muted)}
 .group-next-run::before{content:'下次执行：'}
}
/* Shared closed control and menu across every screen size. */
.select-control{min-width:0;width:100%;position:relative}
.select-control>select{display:none}
.select-control .select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:46px;margin:7px 0 18px;padding:11px 12px;border:1px solid #dce4df;border-radius:8px;background:#fcfdfc;color:#244338;font-size:14px;font-weight:400;text-align:left;line-height:1.6}
.select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-trigger::after{content:'';flex:0 0 7px;width:7px;height:7px;border-right:1.5px solid #74887c;border-bottom:1.5px solid #74887c;transform:rotate(45deg);margin:0 3px 4px 0}
.select-trigger:hover{border-color:#aabfb2;background:#f8fbf9}
.select-trigger[aria-expanded=true]{border-color:#6b9f88;box-shadow:0 0 0 3px #1f7b6714}
.select-trigger[aria-expanded=true]::after{transform:rotate(225deg);margin-top:4px;margin-bottom:0}
.select-trigger:disabled{background:#f0f3f1;color:#a4b0a9;cursor:not-allowed}
.select-menu{position:fixed;inset:auto;margin:0;z-index:100;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:5px;border:1px solid #dce4df;border-radius:10px;background:#fff;color:#244338;box-shadow:0 10px 30px #17392d18}
.select-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin:0;padding:10px 12px;border:0;border-radius:6px;background:white;color:#244338;font-size:14px;font-weight:400;text-align:left;white-space:normal;overflow-wrap:anywhere}
.select-menu button:hover,.select-menu button:focus-visible{background:#f0f6f2;outline-offset:-2px}
.select-menu button[aria-selected=true]{background:#e9f3ec;color:#276649;font-weight:550}
.select-menu button[aria-selected=true]::after{content:'✓';margin-left:auto;color:#327554}
.link-filters>label{min-width:0}
.link-filters .select-trigger{margin-bottom:12px;background-color:#fff}
@media(max-width:760px){.select-control .select-trigger{font-size:14px;min-height:48px}}

/* Mobile forms share a clear type scale instead of inheriting label weight. */
@media(max-width:760px){
 form{--form-value-size:14px;--form-label-size:13px;--form-action-size:14px}
 form label,form legend{font-size:var(--form-label-size);font-weight:500;line-height:1.6;letter-spacing:normal}
 form input:not([type=checkbox]):not([type=hidden]),form textarea,form select,
 form .select-control .select-trigger{font-family:inherit;font-size:var(--form-value-size);font-weight:400;line-height:1.5;letter-spacing:normal}
 form input:not([type=checkbox]):not([type=hidden]),form select,
 form .select-control .select-trigger{min-height:48px;padding:11px 12px}
 form textarea{padding:11px 12px;line-height:1.65}
 form input::placeholder,form textarea::placeholder{font-weight:400;opacity:1}
 form button:not(.select-trigger):not(.calendar-trigger):not([role=option]):not([data-calendar]),.alert-actions button{font-size:14px;font-weight:500;line-height:1.5;letter-spacing:normal;min-height:44px}
 .select-menu button{font-size:14px;font-weight:400;line-height:1.5;min-height:48px}
 .select-menu button[aria-selected=true]{font-weight:500}
 form small,form>p,.bulk-window>p{font-size:12px;line-height:1.65;font-weight:400}
 form input::-webkit-date-and-time-value{text-align:left;min-height:24px}
}

/* Calendar panels use the same surface, type scale, and selection color as menus. */
.calendar-control{position:relative;min-width:0;width:100%}
.calendar-control>input.calendar-native{position:absolute;width:1px;min-width:0;height:1px;min-height:0;padding:0;margin:0;border:0;opacity:0;pointer-events:none;overflow:hidden}
.calendar-control .calendar-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:46px;padding:11px 12px;margin:7px 0 18px;border:1px solid #dce4df;border-radius:8px;background:#fcfdfc;color:#244338;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;text-align:left}
.calendar-trigger:hover{border-color:#aabfb2;background:#f8fbf9}
.calendar-trigger[aria-expanded=true]{border-color:#6b9f88;box-shadow:0 0 0 3px #1f7b6714}
.calendar-trigger.is-empty{color:#a8b5ae}
.calendar-trigger:disabled{background:#f0f3f1;color:#a4b0a9;cursor:not-allowed}
.calendar-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:400}
.calendar-icon,.clock-icon{flex:0 0 15px;width:15px;height:15px;border:1.5px solid #74887c;position:relative;border-radius:3px}
.calendar-icon::before{content:'';position:absolute;left:-1px;right:-1px;top:3px;border-top:1.5px solid #74887c}
.calendar-icon::after{content:'';position:absolute;left:3px;right:3px;top:-3px;height:4px;border-left:1.5px solid #74887c;border-right:1.5px solid #74887c}
.clock-icon{border-radius:50%}.clock-icon::before{content:'';position:absolute;left:6px;top:2px;width:4px;height:5px;border-left:1.5px solid #74887c;border-bottom:1.5px solid #74887c}
.calendar-panel{position:fixed;inset:auto;margin:0;padding:14px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;border:1px solid #dce4df;border-radius:12px;background:#fff;color:#244338;box-shadow:0 10px 30px #17392d18;font-size:14px;font-weight:400}
.calendar-panel button{margin:0;border:0;border-radius:7px;background:transparent;color:#244338;font-size:14px;font-weight:400;line-height:1.4;padding:8px;min-height:36px}
.calendar-panel button:hover,.calendar-panel button:focus-visible{background:#f0f6f2;outline-offset:-2px}
.calendar-header{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:6px;align-items:center;margin-bottom:10px}
.calendar-panel .calendar-title{font-weight:500}.calendar-panel .calendar-nav{font-size:22px;padding:2px}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.calendar-weekdays{font-size:12px;color:#8b9a93;margin-bottom:6px;line-height:28px}
.calendar-panel .calendar-day{width:100%;min-width:0;height:36px;padding:4px;font-size:13px;font-variant-numeric:tabular-nums}
.calendar-panel .calendar-day.outside-month{color:#a8b5ae}
.calendar-panel .calendar-day.is-today{box-shadow:inset 0 0 0 1px #b9d3c6}
.calendar-panel .calendar-day.is-selected{background:#16766a;color:#fff;font-weight:500}
.calendar-panel .calendar-day:disabled{opacity:.35;cursor:not-allowed}
.calendar-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 0}
.calendar-panel .calendar-month{min-height:44px}
.calendar-time{display:grid;grid-template-columns:1fr 70px 70px;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.calendar-time>span{font-size:13px;color:#748278}
.calendar-time label{font-size:12px;font-weight:400;color:#748278}
.calendar-panel .calendar-time input{width:100%;min-width:0;min-height:40px;height:40px;padding:7px 8px;margin:4px 0 0;border:1px solid #dce4df;border-radius:7px;background:#fcfdfc;font-size:14px;font-weight:400;line-height:1.5;font-variant-numeric:tabular-nums}
.calendar-panel .calendar-zone{font-size:11px;font-weight:400;color:#8b9a93;line-height:1.5;margin:10px 0}
.calendar-panel .calendar-error{font-size:12px;color:#a35c46;line-height:1.5;margin:8px 0}
.calendar-actions{display:flex;align-items:center;gap:6px;border-top:1px solid var(--line);padding-top:10px}
.calendar-panel .calendar-today,.calendar-panel .calendar-clear{color:#527365}
.calendar-panel .calendar-confirm{margin-left:auto;background:var(--green);color:#fff;padding:8px 16px;font-weight:500}
.calendar-panel .calendar-confirm:hover{background:#105e55}
@media(max-width:760px){.calendar-control .calendar-trigger{min-height:48px;font-size:14px}.calendar-panel .calendar-day{height:38px;min-height:38px}.calendar-actions button{min-height:40px}}

.resource-zip{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border-radius:8px;background:var(--green);color:#fff;font-size:14px;font-weight:500}
.resource-zip:hover{background:#105e55;text-decoration:none}#resource-actions>p,.resource-note{font-size:12px;color:var(--muted)}#resource-url{overflow-wrap:anywhere}#resource-list article h3{margin:0 0 8px}#resource-list article p{margin:6px 0 12px}

.resource-preview{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:100px;margin:12px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f5f8f6}
.resource-preview img,.resource-preview video{display:block;width:auto;max-width:100%;height:auto;max-height:480px;object-fit:contain}
.resource-preview video{width:100%;background:#111}
@media(max-width:760px){.resource-preview img,.resource-preview video{max-height:60dvh}}

.model-status-copy{min-width:0;flex:1}.model-banner .model-status-copy p+p{margin-top:4px;color:#74887c}

.analysis-dialog{width:min(1180px,calc(100vw - 40px));max-width:1180px}.analysis-dialog section{margin:16px 0;padding:18px}.analysis-dialog h3{margin:0 0 10px}.analysis-dialog h4{margin:16px 0 8px}.analysis-dialog p,.analysis-dialog li{line-height:1.7;overflow-wrap:anywhere}.analysis-dialog li+li{margin-top:6px}.analysis-dialog .analysis-best{border-left:3px solid var(--green);background:#f3f8f5}.analysis-method{font-size:13px;color:var(--muted)}.analysis-copy{white-space:pre-wrap}.analysis-dialog table{min-width:1200px}.analysis-dialog td{vertical-align:top}.analysis-dialog details{margin-top:20px}.analysis-dialog summary{cursor:pointer;color:var(--muted)}
@media(max-width:760px){.analysis-dialog{width:calc(100vw - 24px);padding:16px}.analysis-dialog section{padding:14px}.analysis-dialog table.mobile-cards{min-width:0}.analysis-dialog p,.analysis-dialog li{font-size:13px}}

.analysis-links .analysis-link{border:1px solid var(--line);border-radius:12px}.analysis-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.analysis-metrics>div{padding:12px;background:#f5f8f6;border-radius:8px}.analysis-metrics p{margin:6px 0}.analysis-link .table-scroll{margin-top:12px}.analysis-link details table{min-width:700px}@media(max-width:760px){.analysis-metrics{grid-template-columns:1fr}.analysis-link details table.mobile-cards{min-width:0}}

.analysis-dialog .analysis-outline{border:1px solid #d1e2d8;border-left:3px solid var(--green);background:#f6faf7;border-radius:10px}.analysis-outline-group+.analysis-outline-group{border-top:1px solid var(--line);margin-top:16px;padding-top:4px}.analysis-outline-group li{margin-bottom:12px}.analysis-outline-group li p{margin:6px 0}.analysis-outline-group li button{display:block;margin-top:8px}.analysis-link{scroll-margin-top:12px}

.section-actions,.report-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.report-pagination{justify-content:flex-end;margin-top:16px}.report-pagination span{font-size:12px;color:var(--muted)}nav button:nth-child(4):before{content:'▥'}@media(max-width:760px){.sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.sidebar nav button{border-radius:7px;min-width:0;white-space:normal}.section-actions{gap:8px}.report-pagination{justify-content:space-between}}

/* Result tables retain tabular comparison and horizontal scrolling on every screen. */
#results{width:min(1440px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.result-note{color:var(--muted);font-size:12px}
.result-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.result-table{min-width:1900px;width:100%;table-layout:auto}
.result-table th{white-space:nowrap}
.result-table td{vertical-align:top;white-space:pre-wrap;min-width:72px;max-width:320px;overflow-wrap:anywhere}
.result-table td:first-child{min-width:200px;max-width:260px}
.result-table td:nth-child(2),.result-table td:nth-child(3),.result-table td:nth-child(14){min-width:180px;max-width:320px}
.result-table td:nth-child(6),.result-table td:nth-child(7),.result-table td:nth-child(8){white-space:nowrap}
.result-table details>div{max-height:240px;overflow:auto;margin-top:8px}
@media(max-width:760px){#results{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.result-table,.result-table thead{display:table-header-group}.result-table{display:table}.result-table tbody{display:table-row-group}.result-table tr{display:table-row}.result-table th,.result-table td{display:table-cell;padding:10px 12px;font-size:12px}.result-table td::before{content:none!important}.result-table tr{border-bottom:1px solid var(--line)}}

.result-table .resource-column,.result-table .report-column{width:1%;min-width:max-content;max-width:none;white-space:nowrap;overflow-wrap:normal}
.result-table .resource-column button{width:max-content;max-width:none;white-space:nowrap;flex-shrink:0}
#link-history-dialog{width:min(1440px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.history-table{min-width:2200px}
.history-table td:first-child{min-width:72px;max-width:none}
.history-table td:nth-child(6),.history-table td:nth-child(7),.history-table td:nth-child(8){white-space:pre-wrap}
.history-table td:nth-child(6),.history-table td:nth-child(7),.history-table td:nth-child(16){min-width:180px;max-width:320px}
.history-table td:nth-child(4),.history-table td:nth-child(5),.history-table td:nth-child(10){white-space:nowrap}
@media(max-width:760px){#link-history-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}}

/* Keep history scrolling inside the dialog, with its horizontal bar at the visible bottom. */
#link-history-dialog[open]{display:flex;flex-direction:column;height:min(780px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);overflow:hidden}
#link-history-dialog .dialog-heading{flex-shrink:0;position:static}
#link-history-url,#link-history-message{flex-shrink:0}
#link-history-list{display:flex;flex-direction:column;flex:1;min-height:0}
#link-history-list .result-table-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:auto;scrollbar-color:#b4c8be #f1f5f2}
#link-history-list .result-table-scroll::-webkit-scrollbar{width:10px;height:10px}
#link-history-list .result-table-scroll::-webkit-scrollbar-track{background:#f1f5f2}
#link-history-list .result-table-scroll::-webkit-scrollbar-thumb{background:#b4c8be;border:2px solid #f1f5f2;border-radius:8px}
#link-history-list .result-table-scroll::-webkit-scrollbar-corner{background:#f1f5f2}
.history-table thead th{position:sticky;top:0;z-index:1;background:var(--surface)}
@media(max-width:760px){#link-history-dialog[open]{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}}

@media(min-width:761px){
 .viewport-table-scroll{overflow:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto;overflow-anchor:none;scrollbar-width:auto}
 .viewport-table-scroll::-webkit-scrollbar{width:10px;height:10px}
 .viewport-table-scroll::-webkit-scrollbar-corner{background:#f1f5f2}
 .viewport-table-scroll thead th{position:sticky;top:0;z-index:1;background:var(--surface)}
}

.table-pagination{flex-shrink:0;flex-wrap:wrap;gap:12px;padding-top:16px;align-items:center}
.table-pagination span{font-size:12px;color:var(--muted)}
@media(max-width:760px){.table-pagination{justify-content:center;gap:8px}.table-pagination button{padding:8px 12px;min-height:36px}}

#links .link-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
#links .link-action-row{display:flex;align-items:center;gap:6px}
#links .link-action-row[hidden]{display:none}
#links .link-actions button{margin:0;white-space:nowrap;flex-shrink:0}
@media(min-width:761px){#links td:last-child{min-width:max-content;max-width:none}}
@media(max-width:760px){#links .link-actions{width:100%;min-width:0}#links .link-actions button{padding:8px 6px;font-size:11px}}

.link-history-actions{display:flex;flex-shrink:0;gap:8px;flex-wrap:wrap;margin:0 0 8px}
#link-analysis-reports-dialog{width:min(1180px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
@media(max-width:760px){.link-history-actions button{font-size:12px;padding:8px 12px}#link-analysis-reports-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px)}}
