:root{
  --background:#f8f4f2;--surface:#fff;--surface-subtle:#faf8f7;--text:#222;--muted:#6a6a6a;
  --line:#e5e5e5;--accent:#ef5b4c;--accent-dark:#d94638;--accent-soft:#fff0ed;
  --green:#238368;--green-soft:#edf7f2;--amber:#a56e26;--amber-soft:#fff6e8;
  --red:#c84343;--red-soft:#fff0ee;--radius:18px;--shadow:0 10px 32px #302a2810;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--text);background:var(--background);font-synthesis:none
}
*{box-sizing:border-box}
body{margin:0;font-size:15px;line-height:1.6}
.status-page{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.status-page>.site-header{flex-shrink:0}
.status-page>.content{flex:1;margin:0 auto}
.site-footer{flex-shrink:0;width:min(1064px,calc(100% - 56px));margin-inline:auto}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.5}
a{color:inherit;text-decoration:none}
button{border:0}
[hidden]{display:none!important}
::selection{background:#ef5b4c28}
:focus{outline:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
h1,h2,h3,p{margin:0}
h1{font-size:34px;line-height:1.3;font-weight:650;letter-spacing:-1px}
h2{font-size:21px;line-height:1.4;font-weight:600;letter-spacing:-.3px}
h3{font-size:17px;line-height:1.45;font-weight:600}
svg{vertical-align:middle}
.site-header{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px;min-height:72px;padding:12px max(28px,calc((100% - 1120px)/2));transition:background .18s,box-shadow .18s}
.site-header.scrolled{background:#f8f4f2df;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 1px 0 #302a2809}
.brand{display:inline-flex;align-items:center;gap:10px;width:max-content;font-size:22px;font-weight:700;letter-spacing:-.4px}
.brand-mark{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px;background:#fff;overflow:hidden}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.page-switcher{grid-column:2;display:flex;gap:2px;padding:4px;border-radius:14px;background:#ebe9e9}
.page-switcher a{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:88px;height:40px;padding:0 16px;border-radius:10px;color:#7c7775;font-size:14px;font-weight:550;white-space:nowrap;transition:background .16s,color .16s,box-shadow .16s}
.page-switcher svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.page-switcher a:hover{color:var(--text)}
.page-switcher a.active{background:var(--surface);color:var(--text);box-shadow:0 2px 8px #302a280d}
.page-switcher a.active svg{color:var(--accent-dark)}
.page-switcher b{position:absolute;top:0;right:1px;min-width:16px;border-radius:12px;background:var(--accent);color:white;font-size:10px;line-height:16px;text-align:center}
.content{width:min(1120px,100%);margin:auto;padding:30px 28px 0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:6px 0 28px}
.page-tools{display:flex;align-items:center;gap:22px}
.page-tools .section-tools{order:-1}
.update-time{display:flex;align-items:center;gap:8px;flex-shrink:0;color:var(--muted);font-size:12px}
.update-time::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green)}
.eyebrow{color:var(--accent-dark);font-size:12px;font-weight:600;letter-spacing:.04em;margin-bottom:12px}
.status-banner{display:flex;align-items:center;gap:16px;padding:26px 28px;margin-bottom:18px;border-radius:var(--radius);background:var(--surface)}
.status-summary>span{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:14px;background:var(--green-soft);color:var(--green);font-size:25px}
.status-banner h2{font-size:21px}
.status-banner p{margin-top:5px;color:var(--muted);font-size:14px}
.status-banner.degraded .status-summary>span{color:var(--amber);background:var(--amber-soft)}
.status-banner.down .status-summary>span{color:var(--red);background:var(--red-soft)}
.status-banner.pending .status-summary>span,.status-banner.loading .status-summary>span{background:#f0edeb;color:var(--muted)}
.statistics{display:grid;grid-template-columns:repeat(4,1fr);padding:22px 0;margin-bottom:36px;border-radius:var(--radius);background:var(--surface)}
.stat{padding:0 26px;border-right:1px solid #eeebe9}
.stat{--stat-color:var(--muted)}
.stat-healthy{--stat-color:var(--green)}
.stat-warning{--stat-color:var(--amber)}
.stat-danger{--stat-color:var(--red)}
.stat-info{--stat-color:#477fa5}
.stat-accent{--stat-color:var(--accent-dark)}
.stat small::before{content:"";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--stat-color);vertical-align:2px}
.stat strong{color:var(--stat-color)}
.stat:last-child{border:0}
.stat small{display:block;color:var(--muted);font-size:13px}
.stat strong{display:block;margin-top:8px;font-size:29px;font-weight:600;line-height:1.3;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 18px}
.section-heading h2{font-size:20px}
.section-tools{display:flex;align-items:center;gap:12px}
.history-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin:0 0 18px}
.history-legend>div{display:flex;gap:14px}
.history-legend span{display:inline-flex;align-items:center;gap:5px}
.legend-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#e7e3e0}
.legend-dot.up{background:#5fba99}.legend-dot.degraded{background:#dfb373}.legend-dot.down{background:#dd8b81}
.service-group{margin:0 0 14px;border-radius:var(--radius);background:var(--surface)}
.group-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid #f0ece9}
.group-title h3{font-size:18px}
.group-title span{font-size:12px;color:var(--muted)}
.monitor-row{padding:16px 22px;border-bottom:1px solid #f0ece9}
.monitor-row:last-child{border-bottom:0}
.row-main{display:grid;grid-template-columns:minmax(170px,1fr) auto;align-items:center;gap:24px}
.row-title{display:flex;align-items:center;gap:9px}
.row-title h3{overflow-wrap:anywhere}
.row-main>div:first-child{min-width:0}
.endpoint-address{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:2px 9px 2px 2px;border:1px solid var(--line);border-radius:20px;background:#f6f5f4}
.endpoint-address h3{flex-shrink:0;padding:2px 7px;border-radius:16px;background:var(--accent-soft);color:var(--accent-dark);font-size:12px;font-weight:550;line-height:1.5;white-space:nowrap}
.endpoint-host{min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;font-weight:500;line-height:1.6;overflow-wrap:anywhere;color:var(--text)}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#b4adaa;flex-shrink:0}
.status-dot.up{background:var(--green)}.status-dot.down{background:var(--red)}.status-dot.degraded{background:var(--amber)}
.row-subtitle{margin:3px 0 0 16px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.row-metrics{display:flex;align-items:center;gap:30px}
.row-metrics div{text-align:right;min-width:65px}
.row-metrics small{display:block;color:var(--muted);font-size:12px}
.row-metrics strong{display:block;margin-top:3px;font-size:15px;font-weight:550;line-height:1.7;font-variant-numeric:tabular-nums}
.badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:8px;background:#f2efed;color:var(--muted);font-size:12px;white-space:nowrap}
.badge.up{color:var(--green);background:var(--green-soft)}.badge.down{color:var(--red);background:var(--red-soft)}.badge.degraded{color:var(--amber);background:var(--amber-soft)}
.history{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));gap:4px;margin:14px 0 6px}
.history-cell{position:relative;height:18px;min-width:0;padding:0;border-radius:4px;background:#eeebe8;cursor:default;transition:opacity .12s}
.history-cell.up{background:#78c4a7}.history-cell.degraded{background:#e2b87c}.history-cell.down{background:#df948a}
.history-cell:hover{opacity:.75}
.history-axis{display:flex;justify-content:space-between;color:#8b827e;font-size:11px}
.monitor-note{margin-top:7px;color:var(--amber);font-size:12px}
.tooltip{position:fixed;z-index:100;max-width:min(290px,calc(100vw - 24px));padding:8px 12px;border-radius:9px;background:#302a28;color:white;font-size:12px;box-shadow:var(--shadow);pointer-events:none}
.empty{padding:44px 24px;text-align:center;border-radius:var(--radius);background:var(--surface);color:var(--muted)}
.empty strong{display:block;color:var(--text);font-size:16px;font-weight:550}
.empty p{margin-top:8px;font-size:13px}
.incident{display:grid;grid-template-columns:12px 1fr;gap:12px;margin-bottom:12px;padding:24px 26px;border-radius:var(--radius);background:var(--surface)}
.incident .status-dot{margin-top:9px}
.incident p{margin:7px 0 12px;color:var(--muted);font-size:14px}
.incident-meta{display:flex;align-items:center;flex-wrap:wrap;gap:14px;color:var(--muted);font-size:12px}
.text-link{color:var(--accent-dark);font-size:13px}
footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 0;margin-top:34px;border-top:1px solid #e8dfdb;color:var(--muted);font-size:12px}
footer a:hover{color:var(--accent-dark)}
.notice{padding:13px 16px;margin-bottom:20px;border-radius:12px;background:var(--green-soft);color:#256b55;font-size:14px}
.notice.danger{background:var(--red-soft);color:#a33e35}
.skeleton{height:150px;margin-bottom:16px;border-radius:var(--radius);background:#eee8e4;animation:loading 1.5s ease-in-out infinite alternate}
@keyframes loading{to{opacity:.45}}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 16px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);font-size:14px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s}
.button:hover{background:#faf8f7;border-color:#d4cbc7}
.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.button.primary:hover{background:var(--accent-dark);border-color:var(--accent-dark)}
.button.danger{border-color:#f0d4ce;color:var(--red)}
.button.small{min-height:34px;padding:6px 11px;font-size:12px;border-radius:9px}
.button.full{width:100%}
.button.quiet{background:transparent;border-color:transparent;color:var(--muted)}
input:not([type=checkbox]),textarea,select{width:100%;min-width:0;min-height:44px;padding:10px 13px;border:1px solid #ded8d4;border-radius:11px;background:var(--surface);font-size:14px;line-height:1.5;transition:border-color .15s,box-shadow .15s}
input:not([type=checkbox]):focus,textarea:focus{outline:none;border-color:#d9877d;box-shadow:0 0 0 2px #ef5b4c12}
input::placeholder,textarea::placeholder{color:#9e9692}
input:not([type=checkbox]),textarea,.select-trigger{font-weight:400}
.field-error{color:var(--red);font-size:12px;font-weight:400}
input[aria-invalid=true],textarea[aria-invalid=true]{border-color:#d98378}
input[type=number]{appearance:textfield;-moz-appearance:textfield}
input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;margin:0}
input[type=search]::-webkit-search-cancel-button{appearance:none}
textarea{resize:vertical;min-height:82px}
input[type=checkbox]{appearance:none;display:inline-block;flex-shrink:0;width:18px;height:18px;padding:0;margin:0;border:1px solid #cfc5bf;border-radius:5px;background:white;cursor:pointer;vertical-align:middle}
input[type=checkbox]:checked{border-color:var(--accent);background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat}
.select-control{position:relative;display:inline-block;min-width:150px;max-width:100%;vertical-align:middle}
.select-native{display:none!important}
.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:42px;padding:9px 13px;border:1px solid #ded8d4;border-radius:11px;background:var(--surface);font-size:14px;line-height:1.5;text-align:left}
.select-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-trigger svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:#827975;stroke-width:1.6;transition:transform .15s}
.select-trigger:hover{border-color:#c6b9b2}
.select-trigger[aria-expanded=true]{border-color:#d6a69f}
.select-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.select-trigger:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #ef5b4c14}
.select-menu{position:fixed;z-index:80;max-height:280px;margin:0;padding:5px;overflow:auto;overscroll-behavior:contain;border:1px solid #e9dfd9;border-radius:13px;background:var(--surface);box-shadow:0 10px 32px #302a2820}
.select-option{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:38px;padding:8px 10px;border-radius:8px;color:var(--text);font-size:14px;cursor:pointer;line-height:1.45}
.select-option>span{overflow-wrap:anywhere}
.select-option svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:var(--accent-dark);stroke-width:1.8}
.select-option[aria-selected=true]{background:var(--accent-soft);color:#a13d32}
.select-option.is-highlighted{background:#f5f0ed}
.select-option[aria-disabled=true]{opacity:.45;cursor:default}
.field .select-control{display:block;width:100%}
.admin-header{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(1180px,100%);padding:14px 28px;margin:auto}
.admin-label{padding-left:13px;margin-left:4px;border-left:1px solid #dcd2cd;color:var(--muted);font-size:13px;font-weight:400;letter-spacing:0}
.admin-top-actions{display:flex;align-items:center;gap:8px}
.admin-content{width:min(1180px,100%);padding:22px 28px 60px;margin:auto}
.login-card{width:min(410px,100%);padding:36px;margin:60px auto;border-radius:22px;background:var(--surface)}
.login-card h1{font-size:27px;margin-bottom:26px}
.login-card .button{margin-top:10px}
.admin-layout{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:start;gap:24px}
.admin-layout>aside{position:sticky;top:24px}
.service-list{display:flex;flex-direction:column;gap:6px}
.service-button{padding:15px 17px;border-radius:12px;text-align:left;background:transparent;color:var(--muted);transition:background .15s}
.service-button.active{background:#fff;color:var(--text)}
.service-button.active b{color:var(--accent-dark)}
.service-button:hover{background:#ffffff80}
.service-button b{display:block;font-size:15px;font-weight:600}
.service-button small{display:block;margin-top:4px;font-size:12px;color:var(--muted)}
.panel{padding:30px;border-radius:20px;background:var(--surface)}
.field{display:flex;flex-direction:column;gap:8px;margin:18px 0;color:#4e4540;font-size:13px;font-weight:500}
.field small{color:var(--muted);font-size:12px;font-weight:400}
.form-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.field-check{display:flex;align-items:center;gap:9px;font-size:13px;margin:18px 0;color:#5a514c}
.field-check.switch input{position:relative;width:34px;height:20px;border:0;border-radius:20px;background:#ddd4ce}
.field-check.switch input::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:white;box-shadow:0 1px 2px #302a2820;transition:transform .15s}
.field-check.switch input:checked{background:var(--accent)}
.field-check.switch input:checked::after{transform:translateX(14px)}
.form-section{padding-top:27px;margin-top:26px;border-top:1px solid #eee7e2}
.endpoint-editor{padding:20px;margin:12px 0;background:var(--surface-subtle);border-radius:14px}
.endpoint-editor .field{margin:13px 0}
.endpoint-editor .form-heading{margin-bottom:8px}
.endpoint-editor h3{font-size:14px}
.form-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:24px}
.form-actions>div{display:flex;gap:8px;margin-left:auto}
.model-selection{max-height:300px;overflow:auto;margin:18px 0 10px;border:1px solid #eee7e2;border-radius:12px}
.model-option{display:flex;align-items:center;gap:10px;padding:12px 15px;border-bottom:1px solid #f2eeeb;font-size:14px;overflow-wrap:anywhere;cursor:pointer}
.model-option:last-child{border:0}
.model-option:hover{background:var(--surface-subtle)}
.model-option:has(input:checked){background:#fff8f6}
.model-selection>.help{padding:16px}
.help{margin:8px 0;color:var(--muted);font-size:12px;font-weight:400}
.job-status{margin-top:14px;color:var(--green);font-size:13px}
.model-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
details{margin:20px 0}
summary{display:flex;align-items:center;gap:8px;width:fit-content;color:var(--muted);font-size:13px;cursor:pointer;list-style:none}
summary::-webkit-details-marker{display:none}
summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
details[open]>summary::before{transform:rotate(45deg)}
dialog{width:min(420px,calc(100% - 32px));padding:30px;margin:auto;border:0;border-radius:20px;background:white;color:var(--text);box-shadow:0 24px 80px #302a2833}
dialog::backdrop{background:#30251e55;backdrop-filter:blur(4px)}
dialog h2{font-size:23px}
dialog .dialog-copy{margin:14px 0 24px;color:var(--muted);font-size:14px}
dialog .form-actions{justify-content:flex-end}
.modal-panel{padding:0}
@media(max-width:1000px){
  .site-header{padding-inline:24px;gap:18px}.brand{font-size:18px}
  .page-switcher a{min-width:78px;padding-inline:12px}.row-metrics{gap:20px}
  .admin-layout{grid-template-columns:180px minmax(0,1fr);gap:18px}
}
@media(max-width:700px){
  .site-header{grid-template-columns:1fr;gap:10px;justify-items:center;min-height:0;padding:10px 16px}
  .brand{justify-self:start}.page-switcher{grid-column:1;width:100%;max-width:410px}
  .page-switcher a{flex:1;min-width:0;gap:6px;padding-inline:8px;font-size:13px}
  .page-switcher svg{width:16px;height:16px}
  .content{padding:24px 16px 0}h1{font-size:28px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:24px}
  .update-time{padding-top:9px;font-size:11px}
  .page-tools{gap:10px}.page-tools:has(.section-tools) .update-time{display:none}
  .status-banner{padding:22px 20px;gap:13px}.status-banner h2{font-size:18px}.status-banner p{font-size:13px}
  .status-summary>span{width:38px;height:38px;font-size:22px;border-radius:12px}
  .statistics{grid-template-columns:1fr 1fr;padding:0;margin-bottom:28px}
  .stat{padding:20px}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:1px solid #eeebe9}
  .stat strong{font-size:25px}.stat small{font-size:12px}
  .section-heading{margin-top:26px}.section-heading h2{font-size:19px}
  .section-tools .select-control{min-width:128px}
  .history-legend{font-size:11px;gap:10px}.history-legend>div{gap:10px}
  .group-title{padding:16px}.monitor-row{padding:16px}.row-main{grid-template-columns:1fr;gap:12px}
  .endpoint-address{gap:7px;padding-right:9px}.endpoint-address h3{padding-inline:7px;font-size:12px}.endpoint-host{font-size:12px}
  .row-metrics{justify-content:space-between;gap:12px}.row-metrics div{text-align:left}
  .row-metrics small{font-size:11px}.row-metrics strong{font-size:14px}
  .history{gap:3px;margin-top:12px}.history-cell{height:18px}.history-axis{font-size:10px}
  .incident{padding:20px}.incident-meta{gap:10px}
  footer{margin-top:28px;padding:24px 0;font-size:11px}
  .site-footer{width:calc(100% - 32px)}
  .admin-header{padding:12px 16px}.admin-content{padding:16px 16px 40px}
  .admin-label{display:none}.admin-top-actions{gap:5px}.admin-top-actions .button{padding:7px 10px;min-height:36px;font-size:12px}
  .admin-content h1{font-size:25px}.admin-content .page-heading{align-items:center}
  .admin-layout{grid-template-columns:1fr;gap:18px}.admin-layout>aside{position:static;min-width:0}
  .service-list{flex-direction:row;overflow:auto}.service-button{min-width:160px;flex-shrink:0;padding:12px 15px}
  .panel{padding:22px 18px}.form-grid{grid-template-columns:1fr}.field{margin:14px 0}
  .endpoint-editor{padding:16px}.login-card{margin-top:35px;padding:28px}
  .history-legend>span{white-space:nowrap}.select-option{min-height:42px}
}
@media(max-width:360px){.page-switcher a{gap:4px;font-size:12px;padding-inline:6px}.row-metrics{gap:8px}.badge{padding:3px 6px;font-size:11px}.history-legend>div{gap:6px}.admin-header .brand{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

:root{--tabs-dur:250ms;--tabs-ease:cubic-bezier(0.22,1,0.36,1);--tabs-text-muted:#7c7775;--tabs-text-active:#222;--tabs-bar-bg:#ebe9e9;--tabs-pill-bg:#fff}
/* The bar is just a flex container with padding for the pill
   to sit inside. Tabs sit on z-index: 1, the pill on z-index: 0,
   so labels read above the pill background. */
.t-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 48px;
  background: var(--tabs-bar-bg);
}
.t-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  height: 30px;
  padding: 4px 12px;
  color: var(--tabs-text-muted);
  cursor: pointer;
  border-radius: 48px;
  z-index: 1;
  transition: color var(--tabs-dur) var(--tabs-ease);
}
.t-tab:not([aria-selected="true"]):hover,
.t-tab[aria-selected="true"] {
  color: var(--tabs-text-active);
}

/* The pill: width + transform are written inline by JS so
   the transition tweens between the previous and next
   measured positions. */
.t-tabs-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: 30px;
  width: 0;
  background: var(--tabs-pill-bg);
  border-radius: 48px;
  transform: translateX(0);
  transition:
    transform var(--tabs-dur) var(--tabs-ease),
    width     var(--tabs-dur) var(--tabs-ease);
  will-change: transform, width;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .t-tabs-pill, .t-tab { transition: none !important; }
}

.page-switcher.t-tabs{display:flex;gap:2px;padding:4px;border-radius:14px}
.page-switcher a.t-tab{height:40px;border-radius:10px;transition:color var(--tabs-dur) var(--tabs-ease)}
.page-switcher a.active{background:transparent;box-shadow:none}
.page-switcher .t-tabs-pill{top:4px;height:40px;border-radius:10px;box-shadow:0 2px 8px #302a280d}
.status-banner{display:block}
.status-summary{display:flex;align-items:center;gap:16px}
.status-summary h2{font-size:21px}
.overview-links{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:-14px}
.destination-card{display:flex;align-items:center;gap:16px;padding:30px 26px;border:1px solid transparent;border-radius:var(--radius);background:white;transition:border-color .18s,background .18s}
.destination-card:hover{border-color:#ef5b4c55;background:#fffaf8}
.destination-card h2{font-size:19px}
.destination-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:var(--accent-dark);background:var(--accent-soft);font-size:25px}
.destination-arrow{margin-left:auto;color:var(--muted);font-size:24px}
.event-tags{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.service-badge{display:inline-flex;align-items:center;width:fit-content;max-width:100%;padding:3px 9px;border:1px solid #ef5b4c26;border-radius:7px;background:var(--accent-soft);color:#ad4236;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.event-state{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--amber);white-space:nowrap}
.event-state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.event-state.resolving{color:var(--red)}.event-state.monitoring{color:#477fa5}.event-state.resolved{color:var(--green)}
.log-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8;color:#514943}
.event-card{padding:0;margin-bottom:12px;border-radius:var(--radius);background:white}
.event-timeline{list-style:none;margin:26px 0 0;padding:0 0 0 8px}
.event-timeline li{position:relative;margin-left:0;padding:0 0 26px 24px;border-left:1px solid #edc9c2}
.event-timeline li:last-child{border-left-color:transparent;padding-bottom:0}
.event-timeline li::before{content:"";position:absolute;left:-5px;top:6px;width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px white}
.event-timeline li.resolved::before{background:var(--green)}
.event-timeline li.monitoring::before{background:#628fae}
.log-heading{display:flex;align-items:center;gap:16px;margin-bottom:10px}
.log-heading strong{font-size:14px;font-weight:600}
.log-heading time{margin-left:auto;color:var(--muted);font-size:12px}
.admin-tabs{display:flex;gap:24px;margin:-4px 0 26px;border-bottom:1px solid #e8dfdb}
.admin-tabs button{position:relative;padding:0 0 12px;background:transparent;color:var(--muted);font-size:14px}
.admin-tabs button.active{color:var(--text);font-weight:600}
.admin-tabs button.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--accent)}
.notification-panel>.form-heading{align-items:center}
.notification-actions{display:flex;gap:8px;flex-shrink:0}
.notification-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.notification-copy{min-width:0}.notification-copy strong{display:block;font-size:14px;overflow-wrap:anywhere}
.notification-copy small{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.notification-state{flex-shrink:0;padding:4px 8px;border-radius:6px;font-size:12px;background:#f1eeee;color:var(--muted)}
.notification-state.sent{background:var(--green-soft);color:var(--green)}
.notification-state.failed{background:var(--red-soft);color:var(--red)}
.notification-state.preview{background:var(--accent-soft);color:var(--accent-dark)}
@media(max-width:620px){.notification-panel>.form-heading{align-items:flex-start;flex-direction:column;gap:12px}.notification-row{gap:10px}}
.incident-admin-layout{display:grid;grid-template-columns:290px minmax(0,1fr);align-items:start;gap:24px}
.incident-admin-layout>aside{position:sticky;top:24px}
.incident-filter{margin:0 0 16px}
.event-list{display:flex;flex-direction:column;gap:8px}
.event-list-item{display:block;width:100%;padding:18px;text-align:left;border:1px solid transparent;border-radius:14px;background:transparent}
.event-list-item:hover{background:#ffffff80}
.event-list-item.active{background:white;border-color:#eadfd9}
.event-list-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
.event-list-item strong{display:block;margin:11px 0 8px;font-size:14px;font-weight:550;overflow-wrap:anywhere}
.event-list-item time{font-size:12px;color:var(--muted)}
.admin-timeline .log-heading{gap:10px}
.admin-timeline .log-body{font-size:14px}
input[type=datetime-local]{appearance:none;min-height:44px;color-scheme:light}
@media(max-width:1000px){.incident-admin-layout{grid-template-columns:245px minmax(0,1fr);gap:18px}.destination-card{padding:26px 22px}}
@media(max-width:700px){
 .status-summary{gap:13px}.status-summary h2{font-size:18px}
 .overview-links{gap:12px;margin-top:-10px}.destination-card{padding:22px 16px;gap:12px;flex-wrap:wrap}.destination-card h2{font-size:16px}.destination-icon{width:34px;height:34px;font-size:22px}.destination-arrow{font-size:20px}
 
 .log-heading{gap:10px}.log-body{font-size:14px}.event-timeline li{padding-left:20px}.event-state{font-size:11px}
 .incident-admin-layout{grid-template-columns:1fr}.incident-admin-layout>aside{position:static;min-width:0}
 .event-list{display:grid;grid-auto-flow:column;grid-auto-columns:260px;overflow:auto;gap:8px;margin-bottom:4px;padding-bottom:4px}
 .event-list-item{padding:16px}.event-list>.empty{min-width:240px;padding:20px}
 .admin-timeline .log-heading{flex-wrap:wrap}.admin-timeline .log-heading time{margin-left:0}
 .admin-timeline .log-heading .button{margin-left:auto}
}
@media(max-width:500px){.overview-links{grid-template-columns:1fr}.destination-card{padding:22px;flex-wrap:nowrap}.destination-card h2{font-size:18px}.destination-icon{width:40px;height:40px}}

.destination-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

:root{--acc-expand:250ms;--acc-collapse:250ms;--acc-chevron:250ms;--acc-ease:cubic-bezier(0.22,1,0.36,1)}
/* grid-template-rows 0fr → 1fr gives a clean height animation
   with no JS measurement; the inner element clips overflow. */
.t-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel {
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--acc-expand) var(--acc-ease);
}
.t-acc-panel-inner {
  overflow: hidden;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity var(--acc-collapse) var(--acc-ease),
    filter var(--acc-collapse) var(--acc-ease);
}
.t-acc[data-open="true"] .t-acc-panel-inner {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--acc-expand) var(--acc-ease),
    filter var(--acc-expand) var(--acc-ease);
}
/* Flip the chevron vertically to turn the "v" into a "^".
   scaleY(-1) about the centre passes through a flat line at
   the midpoint (same look as a `d:` path morph) but animates
   in every browser, unlike CSS `d:` morphing (Chromium only).
   The chevron path is symmetric about the 16x16 viewBox
   centre, so the flip lands exactly on the "^"; non-scaling
   -stroke keeps the stroke width constant through the flip. */
.t-acc-chevron {
  display: inline-flex;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}

@media (prefers-reduced-motion: reduce) {
  .t-acc-panel, .t-acc-panel-inner, .t-acc-chevron {
    transition: none !important;
  }
}

.status-link-arrow{width:22px;height:22px;flex-shrink:0;margin-left:auto;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.status-summary>div{min-width:0}
.status-banner.has-incidents{transition:background .18s}
.status-banner.has-incidents:hover{background:#fffcfa}
.status-summary:focus-visible{border-radius:10px}
.event-card-heading{margin:0;font-size:inherit;line-height:inherit}
.event-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:18px 24px;border-radius:var(--radius);background:transparent;text-align:left;font-weight:400}
.event-toggle:hover{background:var(--surface-subtle)}
.event-toggle:focus-visible{outline-offset:-3px}
.event-heading{display:flex;align-items:center;gap:16px;flex:1;min-width:0}
.event-heading .event-tags{flex-wrap:nowrap;flex-shrink:0}
.event-title{display:block;flex:1;min-width:0;font-size:18px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.event-start{display:block;flex-shrink:0;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.t-acc-chevron{flex-shrink:0;color:var(--muted)}
.t-acc-chevron svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.event-card .event-timeline{margin:0 24px 0 32px;padding-top:20px;padding-bottom:24px;border-top:1px solid #f0ece9}
@media(max-width:700px){
 .event-card{margin-bottom:10px}.event-toggle{padding:16px;gap:12px}
 .event-heading{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:7px}
 .event-heading .event-tags{gap:7px}.event-title{font-size:16px}
 .event-start{grid-column:1/-1;font-size:11px}
 .event-card .event-timeline{margin:0 16px 0 24px;padding-top:18px;padding-bottom:20px}
}
