:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #252623;
  background: #f7f3eb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --surface: #f7f3eb;
  --sidebar: #f0ece3;
  --border: #ded5c5;
  --muted: #797369;
  --gold-border: #dfbe7b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid #9c1630; outline-offset: 4px; }

.app-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.app-shell--sidebar-open { grid-template-columns: 208px minmax(0, 1fr); }
.sidebar-container { background: var(--sidebar); border-right: 1px solid var(--border); }
.sidebar { padding: 13px 6px 24px; }
.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 21px; }
.brand-mark {
  width: 27px; height: 28px; display: grid; place-items: center;
  border: 1px solid #b62943; border-radius: 3px; background: #a00020;
  color: #fffdf8; font: bold 19px Georgia, 'Times New Roman', serif;
  box-shadow: 0 1px 2px #3d202225;
}
.brand-name { display: block; font: bold 13px Georgia, 'Times New Roman', serif; line-height: 15px; }
.brand-caption { display: block; font-size: 8px; line-height: 12px; letter-spacing: .15px; }
.nav-section + .nav-section { margin-top: 29px; }
.nav-section h2 { font: normal 10px Georgia, 'Times New Roman', serif; color: #6e685b; margin: 0 0 11px; }
.nav-section ul { list-style: none; margin: 0; padding: 0; }
.nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 33px;
  padding: 7px 2px; text-align: left; border: 0; background: transparent;
  font-size: 12px; line-height: 17px; opacity: 1;
}
.nav-item svg { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 47px; padding: 8px 18px; border-bottom: 1px solid var(--border);
}
.topbar-heading { display: flex; align-items: center; gap: 20px; min-width: 0; }
.panel-toggle {
  display: grid; place-items: center; width: 33px; height: 29px; flex-shrink: 0;
  background: #fffdf8; border: 1px solid #cfc2ad; border-radius: 4px;
  box-shadow: 0 1px 2px #3024101a; cursor: pointer;
}
.panel-toggle:hover { background: #ece6da; }
.panel-toggle svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.1; }
.group-name { color: var(--muted); font: italic 12px Georgia, 'Times New Roman', serif; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-shrink: 0; max-width: 100%; font-size: 10px; color: #625e57; }
.compact-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 20px;
  padding: 2px 9px; border: 1px solid var(--gold-border); border-radius: 4px;
  background: #fffbf2; color: #625e57; text-decoration: none; font-size: 10px; line-height: 14px;
}
a.compact-button:hover { background: #f0e7d5; }
.compact-button:disabled { opacity: 1; }
.health-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #aa8a4d; }
.health-status--available .status-dot { background: #32904a; }
.health-status--unavailable .status-dot { background: #b02d36; }
.user-info { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--border); padding-left: 12px; }
.user-name { white-space: nowrap; }
.role-badge { border: 1px solid var(--gold-border); border-radius: 9px; padding: 3px 7px; font-size: 9px; letter-spacing: .6px; white-space: nowrap; }
.main-content { flex: 1; }
.nav-item:enabled { cursor: pointer; border-radius: 4px; }
.nav-item:enabled:hover { background: #e7dfd1; }
.nav-item--active { background: #e7dfd1; color: #9c1630; font-weight: bold; }
.ariane-content { padding: 24px 18px; }
.ariane-content h1 { margin: 0 0 20px; font: bold 22px Georgia, 'Times New Roman', serif; }
.ariane-content p { font-size: 14px; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
.table-scroll:focus-visible { outline: 2px solid #9c1630; outline-offset: 4px; }
.ariane-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 12px; text-align: left; }
.ariane-table th, .ariane-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ariane-table th { background: var(--sidebar); font-weight: bold; }
.ariane-table td { overflow-wrap: anywhere; }
.ariane-table tbody tr:last-child td { border-bottom: 0; }
.ariane-table input { accent-color: #9c1630; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .topbar { gap: 12px; padding-inline: 12px; flex-wrap: wrap; }
  .topbar-heading { gap: 12px; }
  .topbar-actions { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 600px) {
  .app-shell--sidebar-open { grid-template-columns: 188px minmax(0, 1fr); }
  .topbar { align-content: flex-start; }
  .topbar-heading { align-items: flex-start; }
  .group-name { line-height: 15px; }
  .topbar-actions { justify-content: flex-start; }
  .user-info { flex-wrap: wrap; border-left: 0; padding-left: 0; }
}
