:root {
  --wd-ink-950: #0d1117;
  --wd-ink-900: #0d1117;
  --wd-ink-800: #374151;
  --wd-green-700: #0f7a5c;
  --wd-green-600: #0f7a5c;
  --wd-green-500: #18a268;
  --wd-green-300: #34c38f;
  --wd-green-200: #6ed7a8;
  --wd-green-100: #d9f5e8;
  --wd-green-50: #eefaf5;
  --wd-text: #0d1117;
  --wd-muted: #687280;
  --wd-soft: #84909e;
  --wd-line: #e5e7eb;
  --wd-line-strong: #d1d5db;
  --wd-page: #f4f6f8;
  --wd-surface: #ffffff;
  --wd-surface-soft: #f7faf8;
  --wd-warning: #b7791f;
  --wd-warning-soft: #fff7df;
  --wd-danger: #b42318;
  --wd-danger-soft: #fff0ee;
  --wd-info: #2563a8;
  --wd-info-soft: #edf5ff;
  --wd-shadow-sm: 0 1px 2px rgba(7, 27, 24, .04), 0 8px 28px rgba(7, 27, 24, .035);
  --wd-shadow-md: 0 18px 50px rgba(7, 27, 24, .1);
  --wd-radius-sm: 8px;
  --wd-radius-md: 12px;
  --wd-radius-lg: 18px;
  --wd-focus: 0 0 0 3px rgba(24, 162, 104, .2);
  --navy: var(--wd-ink-900);
  --blue: var(--wd-green-600);
  --ink: var(--wd-text);
  --muted: var(--wd-muted);
  --line: var(--wd-line);
  --page: var(--wd-page);
}

body {
  background: var(--wd-page);
  color: var(--wd-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { outline: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--wd-green-500) !important;
  box-shadow: var(--wd-focus);
}
.primary { background: linear-gradient(135deg, var(--wd-green-600), var(--wd-green-700)); box-shadow: 0 8px 20px rgba(8, 116, 86, .18); }
.primary:hover { filter: brightness(.97); transform: translateY(-1px); }
.secondary:hover { border-color: var(--wd-line-strong); background: var(--wd-surface-soft); }
.app { grid-template-columns: 252px minmax(0, 1fr); }
aside { background: linear-gradient(180deg, var(--wd-ink-950) 0%, var(--wd-ink-900) 100%); padding: 26px 18px; }
.app > aside { min-height:0; }
.app > aside nav { min-height:0; }
.app > aside .aside-footer { flex:0 0 auto; }
@media(min-width:901px) {
  .app > aside {
    position:sticky;
    top:0;
    align-self:start;
    height:100vh;
    height:100dvh;
    max-height:100dvh;
    overflow:hidden;
  }
  .app > aside nav {
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.2) transparent;
  }
}
aside .wordmark { font-size: 1.65rem; letter-spacing: -.035em; }
.sidebar-brand { display:flex; align-items:center; gap:11px; min-height:76px; margin:0 2px 32px; color:#fff; white-space:nowrap; }
.sidebar-brand img { display:block; flex:0 0 51px; width:51px; height:51px; }
.sidebar-brand-copy { display:grid; gap:4px; min-width:0; }
.sidebar-brand-copy strong { color:#fff; font-size:1.47rem; font-weight:780; line-height:1; letter-spacing:-.045em; }
.sidebar-brand-copy span { display:none; }
.app.tenant-mode .sidebar-brand-copy strong { color:var(--tenant-primary,var(--wd-green-300)); letter-spacing:.02em; }
.app.tenant-mode .sidebar-brand-copy span { display:block; max-width:142px; overflow:hidden; color:#d7e3df; font-size:.7rem; line-height:1.2; text-overflow:ellipsis; }
nav { gap: 8px; }
nav button { color: #d7e3df; padding: 12px 14px; font-size:.94rem; font-weight:520; letter-spacing:-.005em; }
nav button:hover { color: #fff; background: rgba(255,255,255,.055); }
nav button.active { color:#fff; font-weight:700; background: linear-gradient(90deg, rgba(24,162,104,.3), rgba(24,162,104,.12)); box-shadow: inset 3px 0 var(--wd-green-300); }
.app.tenant-mode aside { background:var(--tenant-secondary,var(--wd-ink-950)); }
.app.tenant-mode nav button.active { background:linear-gradient(90deg,color-mix(in srgb,var(--tenant-primary) 34%,transparent),color-mix(in srgb,var(--tenant-primary) 12%,transparent)); box-shadow:inset 3px 0 var(--tenant-primary); }
header { height: 72px; padding: 0 34px; }
main { width:100%; max-width:none; padding:34px clamp(26px,2vw,48px) 64px; }
.role-pill { color: var(--wd-green-700); background: var(--wd-green-50); border: 1px solid var(--wd-green-100); }
.stat, .module, .customer-form, .customer-table { border-color:var(--wd-line-strong); box-shadow: var(--wd-shadow-sm); }

h2 { font-weight:780; line-height:1.15; letter-spacing:-.035em; }
h3, h4 { letter-spacing:-.015em; }
.intro { color:#526171; font-size:.98rem; line-height:1.55; }
.tenant-label { color:#5d6977; }
.aside-footer strong { font-size:.94rem; }
.aside-footer span { color:#bcc9c5; font-size:.82rem; }
.role-pill { font-weight:700; }

.auth-shell {
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--tenant-primary, var(--wd-green-600)) 13%, transparent), transparent 36%),
    radial-gradient(circle at 90% 88%, color-mix(in srgb, var(--tenant-accent, var(--wd-green-300)) 12%, transparent), transparent 38%),
    var(--wd-page);
}
.auth-card { width:min(540px,100%); padding:44px; border-color:var(--wd-line-strong); box-shadow:0 26px 75px rgba(16,44,70,.13); }
.auth-tenant-lockup { display:flex; align-items:center; gap:18px; }
.auth-tenant-lockup > img { flex:0 0 72px; width:72px; height:72px; object-fit:contain; }
.auth-tenant-copy { display:grid; min-width:0; }
.auth-tenant-copy > span:first-child { color:var(--tenant-secondary,var(--wd-ink-900)); font-size:.9rem; font-weight:760; letter-spacing:.02em; }
.auth-tenant-copy .wordmark { margin:2px 0 0; color:var(--tenant-primary,var(--wd-green-600)); font-size:2.5rem; font-weight:820; line-height:1; letter-spacing:.035em; }
#auth-tenant-context { margin-top:7px; color:var(--wd-muted); font-size:.76rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.auth-card #auth-intro { margin:24px 0 26px; color:#526171; font-size:1rem; line-height:1.6; }
.auth-card #auth-intro[hidden] { display:none; }
.auth-card.tenant-branded #auth-intro[hidden] + #signin { margin-top:28px; }
.auth-card #signin { width:100%; min-height:50px; background:linear-gradient(135deg,var(--tenant-primary,var(--wd-green-600)),color-mix(in srgb,var(--tenant-primary,var(--wd-green-700)) 84%,#000)); box-shadow:0 10px 24px color-mix(in srgb,var(--tenant-primary,var(--wd-green-600)) 24%,transparent); }
.auth-card #signin:disabled { cursor:wait; opacity:.7; transform:none; }
.auth-card #message { min-height:24px; margin:14px 0 0; color:var(--wd-green-700); font-size:.88rem; }
.auth-card #message.auth-message-error { color:var(--wd-danger); }
.auth-powered-by { display:grid; justify-items:center; gap:8px; margin-top:28px; padding-top:24px; border-top:1px solid var(--wd-line); }
.auth-powered-by > span { color:var(--wd-muted); font-size:.68rem; font-weight:750; letter-spacing:.12em; text-transform:uppercase; }
.auth-powered-lockup { display:flex; align-items:center; gap:9px; color:var(--wd-ink-900); }
.auth-powered-lockup img { width:29px; height:29px; }
.auth-powered-lockup strong { font-size:1.25rem; font-weight:790; letter-spacing:-.035em; }
@media(max-width:560px) {
  .auth-shell { padding:16px; }
  .auth-card { padding:32px 26px; border-radius:18px; }
  .auth-tenant-lockup > img { flex-basis:62px; width:62px; height:62px; }
  .auth-tenant-copy .wordmark { font-size:2.1rem; }
}

input, select, textarea {
  color:var(--wd-text) !important;
  font-size:.93rem !important;
  line-height:1.4;
  border-color:var(--wd-line-strong) !important;
}
input::placeholder, textarea::placeholder { color:#7a8490; opacity:1; }
.onboarding-form label { color:#344152; font-size:.82rem; font-weight:700; letter-spacing:.005em; }
.onboarding-form label input,
.onboarding-form label select,
.onboarding-form label textarea { margin-top:8px; min-height:45px; padding:12px 13px; }
.onboarding-form label textarea { min-height:92px; }
.form-title { padding:26px 28px; }
.form-title h3 { font-size:1.2rem; font-weight:750; }
.form-title p { color:#536170; font-size:.91rem; }
fieldset { padding:28px 28px 32px; }
fieldset legend { color:#17212d; font-size:.98rem; font-weight:750; }
fieldset > p.intro { max-width:980px; color:#526171; }
.sticky-actions { padding:20px 28px 26px; }
.primary, .secondary { min-height:44px; font-weight:700; }

.wd-studio-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding: 30px;
  border: 1px solid rgba(24, 162, 104, .18);
  border-radius: var(--wd-radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, color-mix(in srgb,var(--tenant-primary,var(--wd-green-500)) 25%,transparent), transparent 35%),
    linear-gradient(135deg, var(--tenant-secondary,var(--wd-ink-950)), color-mix(in srgb,var(--tenant-secondary,var(--wd-ink-950)) 82%,var(--tenant-primary,var(--wd-green-600))));
  box-shadow: var(--wd-shadow-md);
}
.wd-studio-hero::after { content:""; position:absolute; inset:auto -80px -130px auto; width:300px; height:300px; border:1px solid rgba(255,255,255,.09); border-radius:50%; }
.wd-eyebrow { margin: 0 0 8px; color: var(--tenant-primary,#8fe1be); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.wd-studio-hero h2 { color: #fff; font-size: 2.05rem; letter-spacing: -.035em; }
.wd-studio-hero .intro { max-width: 720px; margin: 8px 0 0; color: #cfe0db; }
.wd-hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; }
.wd-studio-hero .secondary { border-color: rgba(255,255,255,.25); color:#fff; background:rgba(255,255,255,.08); }

fieldset legend { float:left; width:100%; gap:16px !important; margin:0 0 22px !important; }
fieldset legend span { flex-basis:32px !important; width:32px !important; height:32px !important; color:var(--wd-green-700) !important; background:var(--wd-green-50) !important; border:1px solid var(--wd-green-100); }
fieldset > .form-grid, fieldset > h4, fieldset > p { clear:both; }

.wd-studio-tabs { display:flex; gap:6px; margin:20px 0; padding:6px; width:max-content; max-width:100%; overflow:auto; border:1px solid var(--wd-line-strong); border-radius:14px; background:#fff; box-shadow:var(--wd-shadow-sm); }
.wd-studio-tabs button { white-space:nowrap; border:0; border-radius:9px; padding:9px 14px; color:var(--wd-muted); background:transparent; cursor:pointer; }
.wd-studio-tabs button.active { color:var(--wd-green-700); background:var(--wd-green-50); font-weight:750; }
.wd-studio-tabs button[aria-disabled="true"] { opacity:.55; cursor:default; }

.wd-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:18px 0; }
.wd-metric { min-height:116px; padding:18px 20px; border:1px solid var(--wd-line); border-radius:var(--wd-radius-md); background:#fff; box-shadow:var(--wd-shadow-sm); }
.wd-metric-label { display:block; color:var(--wd-muted); font-size:.74rem; font-weight:750; letter-spacing:.055em; text-transform:uppercase; }
.wd-metric-value { display:block; margin-top:11px; color:var(--wd-ink-900); font-size:1.7rem; line-height:1; letter-spacing:-.04em; }
.wd-metric-note { display:block; margin-top:9px; color:var(--wd-soft); font-size:.78rem; }

.wd-toolbar { display:grid; grid-template-columns:minmax(260px,1fr) 190px 170px auto; gap:10px; align-items:end; margin:18px 0 14px; padding:16px; border:1px solid var(--wd-line); border-radius:var(--wd-radius-md); background:#fff; box-shadow:var(--wd-shadow-sm); }
.wd-field { display:grid; gap:6px; }
.wd-field span { color:var(--wd-muted); font-size:.7rem; font-weight:750; letter-spacing:.055em; text-transform:uppercase; }
.wd-input, .wd-select { width:100%; min-height:42px; border:1px solid var(--wd-line-strong); border-radius:9px; padding:9px 11px; color:var(--wd-text); background:#fff; font:inherit; }

.wd-table-shell { overflow:hidden; border:1px solid var(--wd-line); border-radius:var(--wd-radius-lg); background:#fff; box-shadow:var(--wd-shadow-sm); }
.wd-table-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--wd-line); }
.wd-table-heading h3 { margin:0; font-size:1rem; }
.wd-table-count { color:var(--wd-muted); font-size:.82rem; }
.wd-table-wrap { overflow-x:auto; }
.wd-table { min-width:860px; }
.wd-table th { padding:12px 16px; background:var(--wd-surface-soft); color:var(--wd-soft); font-size:.68rem; letter-spacing:.07em; }
.wd-table td { padding:17px 16px; vertical-align:middle; }
.wd-table tbody tr { transition:background .16s ease; }
.wd-table tbody tr:hover { background:#fbfdfc; }
.wd-record-title { display:block; color:var(--wd-ink-900); font-weight:750; }
.wd-record-subtitle { display:block; max-width:460px; margin-top:4px; color:var(--wd-muted); font-size:.8rem; line-height:1.4; }
.wd-record-code { display:block; margin-top:6px; color:var(--wd-soft); font:650 .69rem ui-monospace,SFMono-Regular,monospace; }
.wd-number { color:var(--wd-ink-900); font-weight:750; }
.wd-badge { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:6px 9px; font-size:.72rem; font-weight:750; text-transform:capitalize; }
.wd-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.wd-badge-draft { color:var(--wd-warning); background:var(--wd-warning-soft); }
.wd-badge-published, .wd-badge-active { color:var(--wd-green-700); background:var(--wd-green-50); }
.wd-badge-archived, .wd-badge-neutral { color:var(--wd-muted); background:#eef2f0; }
.wd-empty { display:grid; justify-items:center; gap:8px; padding:52px 24px; text-align:center; }
.wd-empty-mark { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; color:var(--wd-green-700); background:var(--wd-green-50); font-weight:850; }
.wd-empty h3 { margin:6px 0 0; }
.wd-empty p { max-width:480px; margin:0; color:var(--wd-muted); line-height:1.5; }
.wd-loading { display:grid; gap:10px; padding:20px; }
.wd-skeleton { height:62px; border-radius:10px; background:linear-gradient(90deg,#f0f4f2 25%,#f8faf9 50%,#f0f4f2 75%); background-size:220% 100%; animation:wd-shimmer 1.2s infinite; }
@keyframes wd-shimmer { to { background-position:-220% 0; } }

#workflows-message { min-height:0; margin:12px 2px; color:var(--wd-muted); }
#workflows-message:empty { display:none; }
#workflow-form { box-shadow:var(--wd-shadow-md); }

#workforce-message { min-height:0; margin:12px 2px; color:var(--wd-muted); }
#workforce-message:empty { display:none; }
#unit-form, #workforce-form, #leave-request-form, #availability-form, #leave-type-form { box-shadow:var(--wd-shadow-md); }
.wd-people-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(300px,.8fr); gap:18px; align-items:start; }
.wd-people-layout > * { min-width:0; }
.wd-people-layout .wd-table-shell { min-width:0; }
.wd-units-panel { overflow:hidden; color:var(--wd-text); padding:0; border:1px solid var(--wd-line); border-radius:var(--wd-radius-lg); background:#fff; box-shadow:var(--wd-shadow-sm); }
.wd-unit-list { display:grid; gap:10px; padding:14px; }
.wd-unit-card { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px; border:1px solid var(--wd-line); border-radius:12px; background:var(--wd-surface-soft); }
.wd-unit-heading, .wd-person { display:flex; align-items:center; gap:11px; min-width:0; }
.wd-unit-heading > div, .wd-person-copy { display:grid; min-width:0; }
.wd-unit-heading strong, .wd-person-copy strong { overflow:hidden; color:var(--wd-ink-900); text-overflow:ellipsis; white-space:nowrap; }
.wd-unit-heading small, .wd-person-copy small { overflow:hidden; margin-top:2px; color:var(--wd-muted); font-size:.75rem; text-overflow:ellipsis; white-space:nowrap; }
.wd-unit-icon, .wd-avatar { display:grid; flex:0 0 38px; place-items:center; width:38px; height:38px; border-radius:11px; color:var(--wd-green-700); background:var(--wd-green-50); font-size:.78rem; font-weight:800; }
.wd-avatar { color:#fff; background:linear-gradient(145deg,var(--wd-green-500),var(--wd-green-700)); }
.wd-unit-members { white-space:nowrap; color:var(--wd-muted); font-size:.76rem; }
.wd-access-badges { display:flex; flex-wrap:wrap; gap:6px; }
.wd-badge-mobile, .wd-badge-remote { color:var(--wd-green-700); background:var(--wd-green-50); }
.wd-badge-restricted { color:var(--wd-muted); background:#eef2f0; }
.wd-access-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; clear:both; }
.wd-access-option { display:flex!important; align-items:flex-start; gap:12px; padding:17px; border:1px solid var(--wd-line); border-radius:12px; background:var(--wd-surface-soft); cursor:pointer; }
.wd-access-option input { flex:0 0 auto; width:18px!important; height:18px; margin:2px 0 0!important; accent-color:var(--wd-green-600); }
.wd-access-option span { display:grid; gap:4px; }
.wd-access-option strong { color:var(--wd-ink-900); font-size:.9rem; }
.wd-access-option small { color:var(--wd-muted); font-size:.78rem; font-weight:450; line-height:1.45; }
#new-workforce-profile:disabled { opacity:.55; cursor:not-allowed; filter:none; transform:none; }
.wd-member-status { display:flex; align-items:flex-start; gap:8px; flex-wrap:wrap; }
.wd-text-action {
  appearance:none;
  border:0;
  background:transparent;
  color:var(--wd-danger, #a32121);
  cursor:pointer;
  font:inherit;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  padding:2px 0;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.wd-text-action:hover { color:#771616; }
.wd-text-action:focus-visible { border-radius:4px; outline:3px solid rgba(16,151,111,.25); outline-offset:2px; }
.wd-text-action:disabled { cursor:wait; opacity:.55; }
.wd-leave-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:14px 0 18px; padding:22px 24px; border:1px solid var(--wd-line); border-radius:var(--wd-radius-lg); background:linear-gradient(135deg,#fff 0%,var(--wd-green-50) 100%); box-shadow:var(--wd-shadow-sm); }
.wd-leave-actions h3 { margin:3px 0 5px; font-size:1.35rem; }
.wd-leave-actions p:not(.wd-eyebrow) { margin:0; color:var(--wd-muted); }
.wd-availability-list { display:grid; gap:10px; padding:14px; }
.wd-availability-card { display:grid; gap:7px; padding:15px; border:1px solid var(--wd-line); border-left:4px solid var(--wd-green-500); border-radius:12px; background:var(--wd-surface-soft); }
.wd-availability-card strong { color:var(--wd-ink-900); }
.wd-availability-card span { color:var(--wd-muted); font-size:.78rem; line-height:1.45; }
.wd-decision-actions { display:flex; gap:6px; }
.wd-decision-actions button { padding:7px 9px; font-size:.72rem; }
.wd-leave-dot { display:inline-block; width:10px; height:10px; margin-right:8px; border-radius:50%; vertical-align:middle; }
.wd-badge-pending { color:#8a5a00; background:#fff4d6; }
.wd-badge-approved, .wd-badge-confirmed { color:var(--wd-green-700); background:var(--wd-green-50); }
.wd-badge-declined, .wd-badge-cancelled { color:#a32121; background:#fdecec; }
.wd-structure-shell { overflow:hidden; border:1px solid var(--wd-line); border-radius:var(--wd-radius-lg); background:#fff; box-shadow:var(--wd-shadow-sm); }
.wd-structure-tree { display:grid; gap:10px; padding:18px; background:linear-gradient(180deg,#fff,var(--wd-surface-soft)); }
.wd-structure-card { position:relative; display:grid; grid-template-columns:42px minmax(240px,1fr) minmax(360px,auto); align-items:center; gap:14px; margin-left:calc(var(--wd-tree-depth) * 34px); padding:17px 18px; border:1px solid var(--wd-line); border-radius:14px; background:#fff; box-shadow:0 4px 16px rgba(7,27,24,.035); }
.wd-structure-card::before { content:""; position:absolute; left:-18px; top:-11px; width:16px; height:34px; border-left:1px solid var(--wd-green-200); border-bottom:1px solid var(--wd-green-200); border-radius:0 0 0 8px; opacity:calc(var(--wd-tree-depth)); }
.wd-structure-copy { display:grid; min-width:0; }
.wd-structure-copy strong { color:var(--wd-ink-900); font-size:.96rem; }
.wd-structure-copy span { overflow:hidden; margin-top:3px; color:var(--wd-muted); font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.wd-structure-facts { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; color:var(--wd-muted); font-size:.76rem; }

#integrations-message { min-height:0; margin:12px 2px; }
#integrations-message:empty { display:none; }
.wd-integration-intro { display:flex; align-items:center; justify-content:space-between; gap:28px; margin:18px 0; padding:22px 24px; border:1px solid var(--wd-green-200); border-radius:var(--wd-radius-lg); background:linear-gradient(120deg,#fff 0%,var(--wd-green-50) 100%); box-shadow:var(--wd-shadow-sm); }
.wd-integration-intro h3 { margin:4px 0 6px; font-size:1.25rem; }
.wd-integration-intro p:not(.wd-eyebrow) { max-width:720px; margin:0; color:var(--wd-muted); line-height:1.5; }
.wd-security-seal { flex:0 0 auto; border:1px solid var(--wd-green-200); border-radius:999px; padding:10px 14px; color:var(--wd-green-700); background:#fff; font-size:.76rem; font-weight:750; }
.wd-section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin:28px 2px 14px; }
.wd-section-heading h3 { margin:4px 0 0; font-size:1.3rem; }
.wd-section-heading > p { max-width:470px; margin:0; color:var(--wd-muted); text-align:right; line-height:1.45; }
.wd-provider-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.wd-provider-card { --wd-provider-accent:var(--wd-green-600); display:flex; min-width:0; min-height:278px; flex-direction:column; padding:22px; border:1px solid var(--wd-line); border-top:4px solid var(--wd-provider-accent); border-radius:var(--wd-radius-lg); background:#fff; box-shadow:var(--wd-shadow-sm); transition:transform .16s ease,box-shadow .16s ease; }
.wd-provider-card:hover { transform:translateY(-2px); box-shadow:var(--wd-shadow-md); }
.wd-provider-blue { --wd-provider-accent:#3975d7; }.wd-provider-cyan { --wd-provider-accent:#13a8c7; }.wd-provider-orange { --wd-provider-accent:#f28b22; }.wd-provider-amber { --wd-provider-accent:#d99b13; }.wd-provider-red { --wd-provider-accent:#c74634; }.wd-provider-purple { --wd-provider-accent:#7457c8; }.wd-provider-multi { --wd-provider-accent:#4285f4; }
.wd-provider-head,.wd-provider-identity,.wd-provider-footer,.wd-provider-facts { display:flex; align-items:center; }
.wd-provider-head { justify-content:space-between; gap:16px; }
.wd-provider-identity { min-width:0; gap:13px; }
.wd-provider-identity > div { min-width:0; }
.wd-provider-identity h3 { overflow:hidden; margin:0 0 3px; font-size:1.08rem; text-overflow:ellipsis; white-space:nowrap; }
.wd-provider-identity span:not(.wd-provider-mark) { color:var(--wd-muted); font-size:.75rem; }
.wd-provider-mark { display:grid; flex:0 0 44px; place-items:center; width:44px; height:44px; border-radius:13px; color:#fff; background:linear-gradient(145deg,var(--wd-provider-accent),color-mix(in srgb,var(--wd-provider-accent),#081d19 24%)); font-size:.78rem; font-weight:850; box-shadow:0 8px 20px color-mix(in srgb,var(--wd-provider-accent),transparent 76%); }
.wd-provider-description { min-height:52px; margin:18px 0 15px; color:var(--wd-muted); line-height:1.5; }
.wd-provider-capabilities { display:flex; flex-wrap:wrap; gap:7px; }
.wd-provider-capabilities span { border-radius:999px; padding:6px 9px; color:var(--wd-soft); background:var(--wd-surface-soft); font-size:.71rem; font-weight:700; }
.wd-provider-footer { justify-content:space-between; gap:16px; margin-top:auto; padding-top:20px; }
.wd-provider-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.wd-provider-facts { flex-wrap:wrap; gap:12px; color:var(--wd-muted); font-size:.71rem; font-weight:650; }
.wd-provider-facts span::before { content:""; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--wd-provider-accent); vertical-align:1px; }
.wd-health-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr)); gap:18px; }
.wd-health-card { --wd-provider-accent:var(--wd-green-600); overflow:hidden; border:1px solid var(--wd-line); border-top:4px solid var(--wd-provider-accent); border-radius:var(--wd-radius-lg); background:#fff; box-shadow:var(--wd-shadow-sm); }
.wd-health-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid var(--wd-line); }
.wd-health-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; padding:8px 22px 18px; }
.wd-health-fact { display:flex; flex-direction:column; gap:4px; padding:14px 0; border-bottom:1px solid var(--wd-line); }
.wd-health-fact:nth-child(odd) { padding-right:18px; }
.wd-health-fact:nth-child(even) { padding-left:18px; border-left:1px solid var(--wd-line); }
.wd-health-fact dt { color:var(--wd-muted); font-size:.68rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.wd-health-fact dd { margin:0; color:var(--wd-ink-900); font-size:.86rem; font-weight:680; line-height:1.45; }
.wd-health-alert { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 22px 20px; padding:13px 15px; border:1px solid #f2c7c7; border-radius:10px; color:#8f2525; background:#fff5f5; }
.wd-setup-button { border:1px solid var(--wd-line); border-radius:9px; padding:9px 12px; color:var(--wd-muted); background:var(--wd-surface-soft); font:inherit; font-size:.74rem; font-weight:700; }
.wd-setup-button { cursor:pointer; color:var(--wd-green-700); border-color:var(--wd-green-200); background:var(--wd-green-50); }
.wd-connection-setup { margin:18px 0; box-shadow:var(--wd-shadow-md); }
.wd-scope-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.wd-scope-option { display:flex!important; align-items:center; gap:10px; padding:13px 14px; border:1px solid var(--wd-line); border-radius:10px; background:var(--wd-surface-soft); cursor:pointer; }
.wd-scope-option input { width:17px!important; height:17px; margin:0!important; accent-color:var(--wd-green-600); }
.wd-scope-option span { color:var(--wd-text); font-size:.8rem; font-weight:700; }
.wd-request-requirements { display:block!important; margin-top:16px; }
.wd-request-requirements textarea { min-height:118px; }
.wd-section-actions { display:flex; align-items:center; gap:16px; }
.wd-section-actions p { max-width:430px; margin:0; color:var(--wd-muted); text-align:right; }
.wd-form-note { margin:14px 0 0; color:var(--wd-muted); font-size:.78rem; line-height:1.5; }
.wd-service-filter { grid-template-columns:minmax(320px,1fr) auto auto; margin:18px 0; }
.wd-service-table { min-width:940px; }
.wd-service-evidence { display:block; max-width:440px; overflow:hidden; color:var(--wd-muted); font:600 .72rem ui-monospace,SFMono-Regular,monospace; text-overflow:ellipsis; white-space:nowrap; }
.wd-service-id { color:var(--wd-soft); font:650 .72rem ui-monospace,SFMono-Regular,monospace; }
.wd-service-job { display:grid; gap:3px; }
.wd-service-job strong { color:var(--wd-ink-900); font-size:.82rem; }
.wd-service-job span { color:var(--wd-muted); font-size:.75rem; }
#service-job-list tr { cursor:pointer; }
#service-job-list tr:hover { background:var(--wd-green-50); }
.wd-report-shell { margin-top:18px; }
.wd-inline-report { display:grid; gap:14px; padding:18px 20px; border-bottom:1px solid var(--wd-line); background:var(--wd-surface-soft); }
.wd-inline-report label { display:grid; gap:7px; color:var(--wd-soft); font-size:.75rem; font-weight:700; }
.wd-inline-report textarea,.wd-inline-report input { box-sizing:border-box; width:100%; border:1px solid var(--wd-line); border-radius:9px; padding:11px 12px; background:#fff; font:inherit; }
.wd-inline-report textarea { min-height:140px; resize:vertical; }
.wd-report-list { display:grid; gap:10px; padding:14px; }
.wd-report-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:15px; border:1px solid var(--wd-line); border-radius:12px; background:#fff; }
.wd-report-card p { margin:7px 0 0; color:var(--wd-muted); line-height:1.5; white-space:pre-wrap; }
.wd-report-actions { display:flex; align-items:start; gap:8px; }
.wd-platform-hero { background:linear-gradient(120deg,#071b18 0%,#0a3b31 58%,#0f6a52 100%); }
.wd-platform-tools { display:grid; grid-template-columns:minmax(280px,1fr) 220px; }
.wd-platform-tools select { border:1px solid var(--wd-line); border-radius:9px; padding:11px 12px; background:#fff; font:inherit; }
.wd-tenant-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:18px; }
.wd-tenant-card { overflow:hidden; border:1px solid var(--wd-line); border-top:4px solid var(--tenant-accent); border-radius:18px; background:#fff; box-shadow:var(--wd-shadow-sm); }
.wd-tenant-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:22px; border-bottom:1px solid var(--wd-line); }
.wd-tenant-card-head h3 { margin:3px 0 4px; font-size:1.25rem; }
.wd-tenant-card-head p:not(.wd-eyebrow) { margin:0; color:var(--wd-muted); font-size:.82rem; }
.wd-console-status { border-radius:999px; padding:7px 10px; background:#eaf8f3; color:#087657; font-size:.72rem; font-weight:750; text-transform:capitalize; }
.wd-console-attention,.wd-console-incident { color:#9a3412; background:#fff2df; }
.wd-tenant-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; padding:10px 22px 18px; }
.wd-tenant-facts div { padding:13px 0; border-bottom:1px solid var(--wd-line); }
.wd-tenant-facts div:nth-child(odd) { padding-right:18px; }.wd-tenant-facts div:nth-child(even) { padding-left:18px; border-left:1px solid var(--wd-line); }
.wd-tenant-facts dt { color:var(--wd-muted); font-size:.68rem; font-weight:750; letter-spacing:.06em; text-transform:uppercase; }
.wd-tenant-facts dd { margin:5px 0 0; color:var(--wd-ink-900); font-weight:700; text-transform:capitalize; }
.wd-tenant-card-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 22px; color:var(--wd-muted); background:var(--wd-surface-soft); font-size:.78rem; }
.wd-console-link { color:var(--wd-green-700); text-decoration:none; white-space:nowrap; }

@media(min-width:1800px){
  .wd-studio-hero,.wd-leave-actions,.customer-form,.wd-table-shell,.wd-units-panel{border-radius:20px}
  .wd-people-layout{grid-template-columns:minmax(0,2.7fr) minmax(380px,.8fr)}
  .wd-metric-grid{gap:18px}
  .wd-provider-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .form-grid{column-gap:20px}
}

@media(min-width:2400px){
  .wd-provider-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:1280px){ .app{grid-template-columns:210px minmax(0,1fr)} aside{padding-left:12px;padding-right:12px}.sidebar-brand{gap:8px}.sidebar-brand img{flex-basis:43px;width:43px;height:43px}.sidebar-brand-copy strong{font-size:1.25rem} header{padding-left:26px;padding-right:26px} main{padding-left:26px;padding-right:26px}.wd-people-layout{grid-template-columns:1fr}.wd-people-layout .wd-table{min-width:820px} }
@media(max-width:1050px){ .wd-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wd-toolbar{grid-template-columns:1fr 1fr}.wd-toolbar .wd-search-field{grid-column:1/-1}.three-col{grid-template-columns:repeat(2,minmax(0,1fr))}.three-col .span-2{grid-column:1/-1}.wd-studio-tabs{width:100%}.wd-scope-options{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:900px){ .app{grid-template-columns:1fr} aside{display:none} header,main{padding-left:22px;padding-right:22px}.wd-studio-hero,.wd-leave-actions,.wd-integration-intro{align-items:flex-start;flex-direction:column;padding:24px}.wd-security-seal{flex:0 1 auto}.wd-hero-actions{width:100%;flex-wrap:wrap}.wd-hero-actions button{flex:1}.wd-toolbar{grid-template-columns:1fr}.wd-toolbar .wd-search-field{grid-column:auto}.wd-provider-grid{grid-template-columns:1fr}.wd-section-heading{align-items:flex-start;flex-direction:column}.wd-section-heading>p{text-align:left}.wd-section-actions{width:100%;align-items:flex-start;flex-direction:column}.wd-section-actions p{text-align:left} }
@media(max-width:700px){ header{height:auto;min-height:68px;gap:12px}.role-pill{text-align:center}.stats,.modules,.three-col,.form-grid,.wd-platform-tools{grid-template-columns:1fr}.span-2,.three-col .span-2{grid-column:auto}.wd-metric-grid{grid-template-columns:1fr 1fr}.wd-access-options{grid-template-columns:1fr}.wd-studio-tabs{border-radius:12px}.wd-table-heading{align-items:flex-start}.wd-people-layout .wd-table{min-width:720px}.wd-structure-card{grid-template-columns:38px 1fr;margin-left:calc(var(--wd-tree-depth) * 14px)}.wd-structure-facts{grid-column:2;justify-content:flex-start}.wd-tenant-card-footer{align-items:flex-start;flex-direction:column} }
@media(max-width:520px){ .wd-metric-grid,.wd-access-options,.wd-scope-options{grid-template-columns:1fr}.wd-studio-hero h2{font-size:1.7rem} }
@media(max-width:640px){ .wd-health-facts{grid-template-columns:1fr}.wd-health-fact:nth-child(odd),.wd-health-fact:nth-child(even){padding-left:0;padding-right:0;border-left:0}.wd-health-card-head,.wd-health-alert{align-items:flex-start;flex-direction:column} }
@media(prefers-reduced-motion:reduce){ *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.001ms!important;animation-iteration-count:1!important} }
.wd-console-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.wd-console-actions button { width:auto; }
.wd-dialog { width:min(680px, calc(100vw - 32px)); border:0; border-radius:18px; padding:0; box-shadow:0 24px 80px rgba(13,17,23,.28); }
.wd-dialog::backdrop { background:rgba(5,25,31,.55); backdrop-filter:blur(3px); }
.wd-dialog form { padding:24px; }
