:root {
  --o360-bg: #f3f6f9;
  --o360-surface: #ffffff;
  --o360-surface-elevated: #ffffff;
  --o360-surface-subtle: #eef3f7;
  --o360-border: #d6e0e8;
  --o360-border-strong: #aebdca;
  --o360-text: #17212b;
  --o360-text-secondary: #425466;
  --o360-text-muted: #68798a;
  --o360-brand: #0875b8;
  --o360-brand-hover: #075d92;
  --o360-brand-soft: #e7f4fb;
  --o360-accent: #d98905;
  --o360-success: #18784a;
  --o360-success-soft: #e9f7ef;
  --o360-warning: #8a5a00;
  --o360-warning-soft: #fff5d9;
  --o360-danger: #b42318;
  --o360-danger-soft: #fff0ee;
  --o360-info: #176b96;
  --o360-focus: #0b84c6;
  --o360-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --o360-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --o360-space-1: 4px;
  --o360-space-2: 8px;
  --o360-space-3: 12px;
  --o360-space-4: 16px;
  --o360-space-5: 20px;
  --o360-space-6: 24px;
  --o360-space-8: 32px;
  --o360-space-10: 40px;
  --o360-radius-sm: 4px;
  --o360-radius: 7px;
  --o360-shadow: 0 8px 22px rgba(23, 33, 43, .07);
  --o360-control-height: 42px;
}

html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--o360-text); background: var(--o360-bg); font-family: var(--o360-font); letter-spacing: 0; }
body, button, input, select, textarea { font-family: var(--o360-font); }
*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; }

.o360-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2147483647;
  padding: 10px 14px;
  color: #fff;
  background: var(--o360-text);
  border-radius: var(--o360-radius-sm);
  transform: translateY(-160%);
}
.o360-skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--o360-focus) 32%, transparent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 { color: var(--o360-text); letter-spacing: 0; }
p { color: var(--o360-text-secondary); }
small, .text-muted { color: var(--o360-text-muted) !important; }
code, kbd, pre, .o360-tabular { font-family: var(--o360-mono); font-variant-numeric: tabular-nums; }

.o360-page { width: min(100% - 32px, 1480px); margin-inline: auto; padding-block: var(--o360-space-6) var(--o360-space-10); }
.o360-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--o360-space-5); margin-bottom: var(--o360-space-6); }
.o360-page-header h1 { margin: 3px 0 0; font-size: 1.75rem; line-height: 1.2; }
.o360-eyebrow { color: var(--o360-brand); font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.o360-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--o360-space-2); }

.o360-panel, .card, .a2wg-page-card, .ws-card, .mini-panel {
  color: var(--o360-text);
  background: var(--o360-surface);
  border: 1px solid var(--o360-border);
  border-radius: var(--o360-radius) !important;
  box-shadow: none;
}
.o360-panel { padding: var(--o360-space-6); }
.o360-panel + .o360-panel { margin-top: var(--o360-space-4); }
.o360-panel__header { display: flex; justify-content: space-between; gap: var(--o360-space-4); margin-bottom: var(--o360-space-5); }
.o360-panel__header h2 { margin: 0; font-size: 1.05rem; }

.o360-button, .btn {
  min-height: var(--o360-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--o360-radius-sm) !important;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.o360-button--primary, .btn-primary, .btn-orange { color: #fff !important; background: var(--o360-brand) !important; border-color: var(--o360-brand) !important; }
.o360-button--primary:hover, .btn-primary:hover, .btn-orange:hover { background: var(--o360-brand-hover) !important; border-color: var(--o360-brand-hover) !important; }
.o360-button--secondary, .btn-outline-secondary { color: var(--o360-text); background: var(--o360-surface); border-color: var(--o360-border-strong); }
.o360-button--danger, .btn-danger { color: #fff; background: var(--o360-danger); border-color: var(--o360-danger); }
.o360-button[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }
.o360-icon-button { width: var(--o360-control-height); height: var(--o360-control-height); padding: 0; }

.o360-field { display: grid; gap: 7px; }
.o360-field > label, label.form-label { color: var(--o360-text); font-size: .86rem; font-weight: 700; }
.o360-field__help { margin: 0; color: var(--o360-text-muted); font-size: .78rem; line-height: 1.45; }
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .form-control, .form-select) {
  width: 100%;
  min-height: var(--o360-control-height);
  padding: 9px 11px;
  color: var(--o360-text);
  background: var(--o360-surface);
  border: 1px solid var(--o360-border-strong);
  border-radius: var(--o360-radius-sm) !important;
  font-size: .9rem;
}
textarea { min-height: 110px; resize: vertical; }
:where(input, select, textarea):disabled { color: var(--o360-text-muted); background: var(--o360-surface-subtle); }
.o360-field--error :where(input, select, textarea) { border-color: var(--o360-danger); }
.o360-field__error { color: var(--o360-danger); font-size: .8rem; font-weight: 650; }

.o360-alert { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 13px 15px; color: var(--o360-text); background: var(--o360-brand-soft); border: 1px solid #b8ddec; border-radius: var(--o360-radius-sm); }
.o360-alert--success { background: var(--o360-success-soft); border-color: #b8dec8; }
.o360-alert--warning { background: var(--o360-warning-soft); border-color: #ecd28a; }
.o360-alert--danger { background: var(--o360-danger-soft); border-color: #efb7b1; }

.o360-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; color: var(--o360-text-secondary); background: var(--o360-surface-subtle); border: 1px solid var(--o360-border); border-radius: 999px; font-size: .72rem; font-weight: 750; }
.o360-badge--success { color: var(--o360-success); background: var(--o360-success-soft); border-color: #b8dec8; }
.o360-badge--warning { color: var(--o360-warning); background: var(--o360-warning-soft); border-color: #ecd28a; }
.o360-badge--danger { color: var(--o360-danger); background: var(--o360-danger-soft); border-color: #efb7b1; }

.o360-table-wrap { overflow: auto; border: 1px solid var(--o360-border); border-radius: var(--o360-radius); background: var(--o360-surface); }
.o360-table, .table { width: 100%; margin: 0; border-collapse: collapse; color: var(--o360-text); font-size: .86rem; }
.o360-table th, .o360-table td, .table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--o360-border); vertical-align: middle; }
.o360-table th, .table thead th { color: var(--o360-text-secondary); background: var(--o360-surface-subtle); font-size: .74rem; font-weight: 800; text-align: left; text-transform: uppercase; }
.o360-table tbody tr:last-child td, .table tbody tr:last-child td { border-bottom: 0; }
.o360-table td[data-numeric], .table td.text-end { font-variant-numeric: tabular-nums; text-align: right; }

.o360-empty { padding: 42px 20px; text-align: center; }
.o360-empty h3 { margin: 10px 0 5px; font-size: 1rem; }
.o360-empty p { max-width: 480px; margin: 0 auto; font-size: .86rem; }

.navbar.a2wg-topbar, .navbar.a2wg-enterprise-topbar, nav.a2wg-topbar {
  margin: 0 !important;
  top: 0 !important;
  min-height: 62px;
  background: #071b2f !important;
  border: 0 !important;
  border-bottom: 2px solid var(--o360-accent) !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 18px rgba(7, 27, 47, .18) !important;
}
.a2wg-topbar-layout { grid-template-columns: minmax(200px, 285px) minmax(0, 1fr) auto; }
.a2wg-enterprise-copy strong { color: #fff !important; font-size: .94rem !important; }
.a2wg-primary-nav .nav-link { min-height: 38px; padding: 9px 11px !important; color: #c5d2dc !important; border-radius: var(--o360-radius-sm) !important; font-size: .82rem; }
.a2wg-primary-nav .nav-link:hover, .a2wg-primary-nav .nav-link.active { color: #fff !important; background: rgba(255,255,255,.1) !important; }
.a2wg-primary-nav .nav-link.active::after { display: none !important; }

body.a2wg-shell-body .a2wg-sidebar-shell { border-color: var(--o360-border) !important; border-radius: var(--o360-radius) !important; box-shadow: none !important; }
body.a2wg-shell-body .a2wg-sidebar-link { min-height: 42px; border-radius: var(--o360-radius-sm) !important; font-size: .84rem; }
body.a2wg-shell-body .a2wg-sidebar-link.active { color: var(--o360-brand-hover) !important; background: var(--o360-brand-soft) !important; }

.a2wg-site-footer__inner { background: transparent !important; border: 0 !important; border-top: 1px solid var(--o360-border) !important; border-radius: 0 !important; box-shadow: none !important; }

@media (max-width: 991.98px) {
  .o360-page { width: min(100% - 24px, 100%); padding-top: var(--o360-space-4); }
  .o360-page-header { display: grid; }
  .o360-actions { width: 100%; }
}

@media (max-width: 575.98px) {
  :root { --o360-control-height: 44px; }
  .o360-page { width: min(100% - 16px, 100%); }
  .o360-panel { padding: var(--o360-space-4); }
  .o360-page-header h1 { font-size: 1.45rem; }
  .o360-actions > .o360-button, .o360-actions > .btn { flex: 1 1 auto; }
  .o360-table-wrap[data-mobile-cards="true"] { border: 0; background: transparent; overflow: visible; }
  .o360-table-wrap[data-mobile-cards="true"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .o360-table-wrap[data-mobile-cards="true"] tr { display: grid; margin-bottom: 10px; padding: 8px 12px; background: var(--o360-surface); border: 1px solid var(--o360-border); border-radius: var(--o360-radius); }
  .o360-table-wrap[data-mobile-cards="true"] td { display: grid; grid-template-columns: minmax(90px, .45fr) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--o360-border); overflow-wrap: anywhere; }
  .o360-table-wrap[data-mobile-cards="true"] td::before { content: attr(data-label); color: var(--o360-text-muted); font-size: .72rem; font-weight: 750; text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

