@charset "UTF-8";

:root {
  --bg: #fbfbf8;
  --sidebar: #f1f2ed;
  --surface: #ffffff;
  --muted-surface: #f5f6f2;
  --text: #26362f;
  --muted: #758079;
  --line: #e5e8e1;
  --accent: #21745a;
  --accent-hover: #195d48;
  --accent-soft: #e4eee6;
  --danger: #9b4940;
  --danger-soft: #fbefec;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #96bca6; outline-offset: 3px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #21745a12; }
svg { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 8px; }
.boot { min-height: 100svh; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.brand-mark { width: 29px; height: 30px; display: inline-flex; align-items: center; gap: 3px; transform: rotate(-8deg); flex-shrink: 0; }
.brand-mark i { width: 6px; height: 25px; border-radius: 3px; background: var(--accent); transform: skewY(-17deg); }
.brand-mark i:nth-child(2) { height: 31px; }
.brand-mark i:nth-child(3) { height: 21px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-weight: 650; font-size: 20px; letter-spacing: -.7px; }
.brand-context { font-size: 10px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; margin-top: 4px; }
.shell { min-height: 100svh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 16px 18px; position: fixed; inset: 0 auto 0 0; width: 228px; z-index: 30; }
.sidebar .brand { padding: 0 12px; margin-bottom: 47px; }
.nav-label { color: #8a938c; font-size: 11px; letter-spacing: 1.5px; padding: 0 14px; margin-bottom: 12px; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 6px; background: transparent; color: #657169; padding: 12px 14px; text-align: left; transition: background .15s, color .15s; font-weight: 450; }
.nav-button:hover { background: #e9ece4; color: var(--text); }
.nav-button.active { color: var(--accent); background: #e1e9df; font-weight: 600; }
.nav-button.active svg { stroke-width: 1.9; }
.nav-button .chevron { margin-left: auto; width: 13px; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.service-note { font-size: 11px; line-height: 1.8; color: var(--muted); padding: 0 13px 18px; }
.service-note span { display: flex; align-items: center; gap: 7px; color: #617366; }
.dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #a0aaa2; flex-shrink: 0; }
.dot.good { background: #458464; }
.identity { border-top: 1px solid #dfe4da; padding: 18px 10px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: #e1e7dc; color: #57715b; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.identity-info { min-width: 0; flex: 1; }
.identity-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-role { font-size: 10px; color: var(--muted); margin-top: 3px; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 77px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 11px; font-size: 12px; color: var(--muted); }
.breadcrumb .slash { color: #c1c8bf; }
.breadcrumb strong { color: #5b6b60; font-weight: 500; }
.topbar-context { color: #8c948d; font-size: 10px; letter-spacing: .6px; display: flex; align-items: center; gap: 8px; }
.topbar-context svg { width: 13px; height: 13px; }
.mobile-menu { display: none; }
.page { padding: 42px 42px 60px; max-width: 1510px; margin: 0 auto; animation: page-in .22s ease both; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 31px; }
.eyebrow { font-size: 10px; letter-spacing: 1.9px; color: #819084; text-transform: uppercase; margin-bottom: 9px; }
h1 { font-size: 28px; letter-spacing: -.8px; font-weight: 550; line-height: 1.4; }
.page-description { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 8px; }
.heading-actions { display: flex; gap: 8px; padding-top: 13px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; min-height: 37px; padding: 9px 14px; font-size: 12px; font-weight: 500; color: var(--text); background: var(--surface); transition: background .15s, border-color .15s, transform .15s; }
.button:hover:not(:disabled) { background: #f0f3ed; border-color: #d1d9ce; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button svg { width: 15px; height: 15px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.danger { color: var(--danger); border-color: #eaccc5; }
.button.small { min-height: 31px; padding: 6px 10px; font-size: 11px; }
.button.wide { width: 100%; }
.icon-button { width: 32px; height: 32px; padding: 0; background: transparent; color: var(--muted); border: 0; border-radius: 5px; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; }
.icon-button:hover { background: #e7ece3; color: var(--text); }
.icon-button svg { width: 16px; height: 16px; }
.metrics { display: flex; gap: 0; padding: 2px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.metric { flex: 1; min-width: 0; padding-left: 30px; border-left: 1px solid var(--line); }
.metric:first-child { padding-left: 0; border: 0; }
.metric-label { font-size: 11px; color: var(--muted); margin-bottom: 11px; }
.metric-value { font-size: 28px; font-weight: 500; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 12px; color: #919a91; font-weight: 400; letter-spacing: 0; margin-left: 5px; }
.metric-footnote { font-size: 10px; color: #949d94; margin-top: 7px; }
.section-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 23px 0 18px; }
.section-title { font-size: 13px; font-weight: 600; }
.section-title .count { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 11px; }
.toolbar-end { display: flex; align-items: center; gap: 9px; }
.search { position: relative; width: 224px; }
.search svg { position: absolute; left: 11px; top: 10px; width: 14px; height: 14px; color: #89978b; }
.search input { width: 100%; height: 34px; border: 1px solid var(--line); background: transparent; border-radius: 5px; padding: 0 10px 0 33px; font-size: 11px; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; white-space: nowrap; }
th { font-weight: 400; font-size: 10px; letter-spacing: .3px; color: #899589; background: #f5f6f2; height: 37px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
td { padding: 20px 14px; border-bottom: 1px solid var(--line); height: 74px; color: #526457; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { text-align: right; padding-right: 16px; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: #f2f5ee; }
.tenant-cell { display: flex; align-items: center; gap: 11px; }
.tenant-avatar { width: 35px; height: 35px; border-radius: 8px; background: #eaf0e5; color: #69815f; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.primary-text { font-weight: 550; color: var(--text); }
.secondary-text { display: block; margin-top: 5px; color: #89958b; font-size: 10px; }
.text-button { padding: 0; border: none; background: transparent; text-align: left; color: var(--text); font-weight: 550; font-size: 12px; }
.text-button:hover { color: var(--accent); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; line-height: 1.6; color: #7b887d; }
.status.good { color: #3f7956; }
.status.good .dot { background: #5a8d61; }
.status.issue { color: #966d44; }
.status.issue .dot { background: #b0956b; }
.table-footer { display: flex; align-items: center; justify-content: space-between; color: #8b968c; font-size: 10px; padding: 18px 2px; gap: 12px; }
.hint { color: #7f8c80; font-size: 11px; line-height: 1.8; }
.notice { display: flex; align-items: flex-start; gap: 11px; padding: 15px 17px; margin: 20px 0; border-left: 2px solid #aabb9f; background: #eff3e9; font-size: 11px; color: #657a60; line-height: 1.8; }
.notice svg { margin-top: 2px; width: 15px; height: 15px; }
.notice strong { display: block; color: #526d50; font-weight: 550; margin-bottom: 3px; }
.notice.neutral { background: #f0f2ed; border-color: #c8d1c3; color: var(--muted); }
.empty-state { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-bottom: 1px solid var(--line); padding: 45px 20px; }
.empty-symbol { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: #95a58d; background: #f0f3eb; border-radius: 12px; margin-bottom: 20px; }
.empty-symbol svg { width: 23px; height: 23px; }
.empty-state h2 { font-size: 14px; font-weight: 550; margin-bottom: 8px; }
.empty-state p { font-size: 11px; color: var(--muted); line-height: 1.8; max-width: 360px; }
.empty-state .button { margin-top: 20px; }
.inline-error { background: var(--danger-soft); border: 1px solid #efdbd4; color: var(--danger); font-size: 12px; padding: 12px 14px; border-radius: 5px; line-height: 1.7; margin: 16px 0; }
.page-error { max-width: 500px; padding: 50px 0; }
.page-error h2 { font-size: 18px; font-weight: 500; }
.page-error p { color: var(--muted); margin: 12px 0 20px; line-height: 1.8; }
.skeleton { height: 16px; border-radius: 3px; background: #ebeee6; animation: pulse 1.5s ease-in-out infinite; }
.skeleton-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; padding: 29px 15px; border-bottom: 1px solid var(--line); }
.skeleton-row .skeleton:first-child { width: 75%; }
.upload-area { position: relative; display: flex; align-items: center; gap: 18px; border: 1px dashed #c6d2bd; background: #f6f8f0; padding: 23px 25px; margin: 8px 0 27px; border-radius: 6px; transition: background .15s, border-color .15s; }
.upload-area.drag-over { border-color: var(--accent); background: var(--accent-soft); }
.upload-symbol { color: #8a9f7d; }
.upload-symbol svg { width: 31px; height: 31px; stroke-width: 1.15; }
.upload-copy { flex: 1; }
.upload-copy h2 { font-size: 12px; font-weight: 550; margin-bottom: 7px; }
.upload-copy p { color: #8b9586; font-size: 10px; line-height: 1.8; }
.file-cell { display: flex; align-items: center; gap: 12px; max-width: 370px; }
.file-cell > svg { color: #8a9a83; width: 21px; height: 24px; }
.file-name { overflow: hidden; text-overflow: ellipsis; max-width: 290px; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.storage-bar { height: 3px; width: 100px; border-radius: 2px; background: #e5eadf; margin-top: 7px; overflow: hidden; }
.storage-bar > span { display: block; background: #83a77b; height: 100%; width: var(--progress, 0%); }
.settings-layout { max-width: 780px; }
.settings-section { padding: 28px 0; border-top: 1px solid var(--line); }
.settings-section h2 { font-size: 13px; font-weight: 550; margin-bottom: 20px; }
.definition-list { display: grid; grid-template-columns: 135px minmax(0, 1fr); column-gap: 24px; row-gap: 21px; margin: 0; align-items: baseline; font-size: 12px; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; overflow-wrap: anywhere; }
.section-note { margin-top: 20px; }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.account-row h3 { font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.account-row p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.overlay-backdrop { position: fixed; inset: 0; background: #26362f32; backdrop-filter: blur(2px); z-index: 60; animation: fade-in .16s ease; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(490px, 100vw); z-index: 61; background: var(--bg); box-shadow: -16px 0 55px #26362f10; overflow-y: auto; overscroll-behavior: contain; animation: drawer-in .22s ease; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 29px 30px 25px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 2; }
.drawer-head h2 { font-size: 20px; font-weight: 550; letter-spacing: -.4px; margin-bottom: 7px; }
.drawer-head p { color: var(--muted); font-size: 11px; }
.drawer-body { padding: 0 30px 35px; }
.drawer-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border-bottom: 0; }
.drawer-section h3 { font-size: 12px; font-weight: 600; margin-bottom: 19px; }
.drawer-status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; gap: 10px; }
.drawer-status span:first-child { font-size: 12px; }
.action-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 15px; }
.form-field { display: block; margin-bottom: 17px; }
.field-label { display: block; color: #5a6b5e; font-size: 11px; font-weight: 500; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; border: 1px solid #dce2d6; border-radius: 5px; background: var(--surface); color: var(--text); padding: 10px 11px; min-height: 39px; transition: box-shadow .15s, border-color .15s; font-size: 12px; }
.form-field input::placeholder { color: #a0a99d; }
.field-help { display: block; color: #919b8d; font-size: 10px; line-height: 1.7; margin-top: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 20px; }
.form-actions .hint { margin-right: auto; }
.drawer details { margin-top: 18px; }
.drawer summary { font-size: 11px; color: #75876f; padding: 10px 0; cursor: pointer; list-style-position: inside; }
.drawer details[open] summary { margin-bottom: 10px; }
.raw-state { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 10px; white-space: pre-wrap; word-break: break-all; background: #eff2eb; border-radius: 5px; padding: 12px; line-height: 1.7; max-height: 220px; overflow: auto; color: #73816e; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(450px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; z-index: 62; background: var(--bg); border: 1px solid #e9ebe4; border-radius: 11px; box-shadow: 0 20px 100px #20322b20; padding: 28px; animation: modal-in .18s ease; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.modal-head h2 { font-size: 20px; letter-spacing: -.5px; font-weight: 550; margin-bottom: 8px; }
.modal-head p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.modal-head > .icon-button { margin: -5px -6px 0 0; }
.invite-success { width: 42px; height: 42px; color: var(--accent); background: var(--accent-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 21px; }
.invite-link { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; background: #f0f3eb; border: 1px solid var(--line); border-radius: 5px; padding: 13px; line-height: 1.7; margin: 18px 0 13px; user-select: all; }
.toast-root { position: fixed; right: 25px; bottom: 25px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100vw - 40px); }
.toast { background: #2e463a; color: #fff; padding: 13px 17px; font-size: 12px; border-radius: 7px; box-shadow: 0 6px 20px #1d352326; display: flex; align-items: center; gap: 9px; animation: toast-in .2s ease; line-height: 1.6; }
.toast.error { background: #79574d; }
.toast svg { width: 15px; height: 15px; }
.login-shell { min-height: 100svh; display: flex; flex-direction: column; background: #f4f5ef; padding: 36px 45px 23px; }
.login-shell > .brand { margin-bottom: 25px; }
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0 65px; }
.login-form { width: 340px; max-width: 100%; }
.login-heading { margin-bottom: 32px; }
.login-heading .eyebrow { margin-bottom: 14px; }
.login-heading h1 { font-size: 29px; font-weight: 500; margin-bottom: 12px; }
.login-heading p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.login-form .form-field { margin-bottom: 20px; }
.login-form input { min-height: 45px; background: #fbfcf8; }
.login-form .button.primary { min-height: 44px; margin-top: 8px; }
.login-note { font-size: 10px; color: #8e9989; text-align: center; line-height: 1.8; margin-top: 21px; }
.login-footer { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #99a18f; letter-spacing: .2px; }
.login-footer span:last-child { display: flex; gap: 7px; align-items: center; }
.login-footer svg { width: 12px; height: 12px; }
[hidden] { display: none !important; }
body.overlay-open { overflow: hidden; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-in { from { transform: translateX(25px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 7px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .45; } }

@media (min-width: 1550px) { .page { padding-top: 50px; } }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 202px minmax(0, 1fr); }
  .sidebar { width: 202px; padding-left: 12px; padding-right: 12px; }
  .brand-name { font-size: 18px; }
  .topbar { padding: 0 28px; }
  .page { padding: 32px 28px 45px; }
  .metric { padding-left: 20px; }
  .metric-value { font-size: 25px; }
  td { padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 238px; z-index: 51; }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 10px 0 35px #26362f15; }
  .mobile-nav-backdrop { position: fixed; inset: 0; z-index: 50; background: #26362f35; }
  .topbar { height: 61px; padding: 0 19px; }
  .topbar-left { display: flex; align-items: center; gap: 8px; }
  .mobile-menu { display: inline-flex; margin-left: -7px; }
  .topbar-context { font-size: 9px; }
  .topbar-context .desktop-only { display: none; }
  .page { padding: 28px 19px 45px; }
  .page-heading { gap: 12px; margin-bottom: 25px; }
  h1 { font-size: 25px; }
  .page-description { font-size: 11px; }
  .heading-actions { padding-top: 13px; }
  .heading-actions .button { padding: 9px 11px; font-size: 11px; }
  .metrics { display: grid; grid-template-columns: 1fr 1fr; row-gap: 23px; padding-bottom: 24px; }
  .metric { padding-left: 20px; }
  .metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric-label { margin-bottom: 8px; font-size: 10px; }
  .metric-value { font-size: 24px; }
  .metric-footnote { font-size: 9px; }
  .section-toolbar { gap: 9px; }
  .search { width: 155px; }
  .toolbar-end { gap: 3px; }
  th { padding: 10px; }
  td { padding: 17px 10px; }
  .tenant-table { min-width: 695px; }
  .file-table { min-width: 620px; }
  .runs-table { min-width: 560px; }
  .audit-table { min-width: 610px; }
  .table-footer { align-items: flex-start; line-height: 1.8; }
  .upload-area { padding: 20px 17px; flex-wrap: wrap; gap: 13px; }
  .upload-copy { min-width: 180px; }
  .upload-area .button { margin-left: 44px; }
  .drawer-head { padding: 23px 23px 22px; }
  .drawer-body { padding: 0 23px 25px; }
  .modal { padding: 24px; }
  .login-shell { padding: 28px 25px 22px; }
  .login-shell .brand-name { font-size: 20px; }
  .login-main { padding: 30px 0 65px; }
  .login-footer span:first-child { max-width: 180px; }
  .definition-list { grid-template-columns: 90px minmax(0, 1fr); gap: 20px; }
  .toast-root { right: 20px; bottom: 20px; }
  .skeleton-row { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
