* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--deep); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; max-width: 100%; }
button, select { min-height: 40px; }
button, .hero-action { cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; background: white; color: var(--deep); font-weight: 700; }
input, select, textarea { border: 1px solid #91b5b7; border-radius: 8px; padding: 9px; }
input:not([type=checkbox]):not([type=radio]), textarea { width: min(100%, 36rem); }
input[type=checkbox], input[type=radio] { width: auto; }
form p label { display: block; margin-bottom: 6px; }
form .helptext { display: block; font-size: 0.85rem; color: var(--muted); }
form p { overflow-wrap: anywhere; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 22px; margin-bottom: 0; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
:focus-visible { outline: 3px solid #244caa; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.app-shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 100vh; max-width: 1600px; margin: auto; background: var(--background); box-shadow: 0 24px 70px rgb(24 75 81 / 17%); }
.sidebar { display: flex; flex-direction: column; padding: 22px 14px 16px; background: linear-gradient(165deg, white, #edfffa 48%, #ddf8ff); border-right: 1px solid var(--line); min-width: 0; }
.brand-logo { display: flex; justify-content: center; align-items: center; width: 100%; margin-bottom: 22px; }
.brand-logo img { object-fit: contain; max-width: 100%; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; gap: 10px; align-items: center; padding: 12px 10px; border-radius: 11px; color: #365159; text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.nav-marker { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 2px; flex-shrink: 0; }
.nav-item.active { background: var(--active-gradient); color: #173d46; font-weight: 700; box-shadow: 0 10px 22px rgb(38 188 189 / 28%); }
.news-count { margin-left: auto; padding: 4px 7px; border-radius: 99px; background: linear-gradient(135deg, #ff8765, #ff4f85); color: #3c1833; font-weight: 700; }
.sidebar-footer { margin-top: auto; padding: 15px 12px 0; overflow-wrap: anywhere; }
.sidebar-footer strong, .sidebar-footer span { display: block; margin-bottom: 7px; font-size: 13px; }
.sidebar-footer span { color: var(--muted); }
.text-button { padding: 0; background: transparent; border: 0; text-decoration: underline; }
main { min-width: 0; padding: 24px; overflow-wrap: anywhere; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.eyebrow { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.branch-selector { min-width: 0; max-width: 360px; }
.branch-selector label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.branch-controls { display: flex; gap: 6px; }
.branch-controls select { min-width: 0; width: 100%; background: white; }
.branch-controls button { flex-shrink: 0; white-space: nowrap; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 22px; justify-content: space-between; padding: 24px; border-radius: 18px; background: var(--brand-gradient); box-shadow: 0 18px 34px rgb(45 178 197 / 22%); color: #123a46; }
.hero::after, .hero::before { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; right: 60px; top: -100px; }
.hero::after { width: 110px; height: 110px; right: 20px; top: auto; bottom: -65px; }
.hero h2 { font-size: 24px; margin-bottom: 9px; }
.hero p { max-width: 580px; line-height: 1.5; margin: 0; }
.hero-action { flex-shrink: 0; text-decoration: none; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.quick-action { position: relative; isolation: isolate; overflow: hidden; padding: 18px; min-height: 110px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.quick-action::after { content: ""; position: absolute; z-index: -1; width: 84px; height: 84px; right: -30px; bottom: -35px; border-radius: 50%; background: linear-gradient(135deg, #b9f1d9, #d0f2fb); }
.quick-action strong { display: block; margin-bottom: 7px; }
.quick-action span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); gap: 14px; align-items: start; }
.panel { min-width: 0; padding: 18px; background: white; border-radius: var(--panel-radius); box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.panel-heading h2 { font-size: 17px; margin: 0; }
.panel-heading a { font-size: 12px; font-weight: 700; }
.required-news { position: relative; overflow: hidden; padding: 18px; border-radius: 15px; background: var(--alert-gradient); color: #3e173c; box-shadow: 0 12px 26px rgb(229 72 124 / 25%); }
.required-news::after { content: "!"; position: absolute; right: 14px; top: -15px; font-size: 104px; font-weight: 700; color: rgb(255 255 255 / 20%); pointer-events: none; }
.required-label { display: inline-block; padding: 5px 8px; background: rgb(255 255 255 / 65%); border-radius: 99px; font-size: 11px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.required-news h3 { position: relative; z-index: 1; margin-bottom: 8px; }
.required-news p { position: relative; z-index: 1; font-size: 14px; line-height: 1.5; margin: 0; }
.empty-state { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 18px 0 4px; }
.browser-warning { margin-bottom: 18px; padding: 18px; border: 2px solid #bd7627; border-radius: 12px; background: #fff4da; }
.browser-warning h2 { font-size: 17px; }
.browser-warning p { line-height: 1.5; }
.staging-warning { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 18px; background: #fff0c2; border-bottom: 2px solid #bd7627; color: #4a2d08; text-align: center; }
.staging-warning span { font-size: 14px; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.contact-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.contact-card dt { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.contact-card dd { margin: 0 0 12px; }
.contact-order { display: flex; flex-wrap: wrap; gap: 8px; }
button:disabled { cursor: default; opacity: 0.5; }
th, td { overflow-wrap: anywhere; text-align: left; padding: 8px; }
@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  main { padding: 18px; }
  .topbar, .hero { align-items: flex-start; flex-direction: column; }
  .branch-selector { width: 100%; }
  .quick-actions, .dashboard-grid { grid-template-columns: 1fr; }
  .quick-action { min-height: 90px; }
}
@media (max-width: 620px) {
  .app-shell { display: block; }
  .sidebar { padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-logo { margin-bottom: 10px; }
  .brand-logo img { width: 140px; height: 65px; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-item { min-height: 44px; padding: 9px; font-size: 13px; }
  .sidebar-footer { padding: 12px 4px 0; }
  .sidebar-footer strong, .sidebar-footer span { display: inline; margin-right: 8px; }
  .sidebar-footer form { display: inline; }
  main { padding: 15px; }
  .hero { padding: 20px; }
  .hero h2 { font-size: 22px; }
  .panel-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
