
:root {
  color-scheme: light;
  --awthy-ink: #18212f;
  --awthy-muted: #5d6978;
  --awthy-paper: #fbfaf7;
  --awthy-surface: #ffffff;
  --awthy-surface-muted: #fbfaf7;
  --awthy-line: #d8ded9;
  --awthy-line-strong: #aeb8c5;
  --awthy-green: #177c63;
  --awthy-green-dark: #0d4f42;
  --awthy-gold: #c7922f;
  --awthy-coral: #be4f43;
  --awthy-warning: #8a5d08;
  --awthy-on-ink: #ffffff;
  --awthy-on-ink-muted: #d6dde6;
  --awthy-on-ink-subtle: #b8c2cf;
  --awthy-disabled-fill: #eef1ed;
  --awthy-success-fill: #f2f8f5;
  --awthy-danger-fill: #fff6f4;
  --awthy-shadow-popover: 0 2px 8px rgba(24, 33, 47, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--awthy-paper);
  color: var(--awthy-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}
@media (min-width: 1024px) {
  main:has(> .hub-context-help) {
    width: min(1240px, calc(100% - 48px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0 24px;
    align-items: start;
  }
  main:has(> .hub-context-help) > :not(.hub-context-help) { grid-column: 1; }
  main:has(> .hub-context-help) > .hub-context-help { grid-column: 2; grid-row: 1 / span 30; }
}
main.login-shell {
  min-height: 100vh;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1024px) {
  main.login-shell:has(> .hub-context-help) {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0 24px;
    align-items: start;
  }
}
.login-shell .hero { text-align: center; }
.login-shell .panel { width: 100%; }
.login-shell .stack { max-width: none; }
.panel {
  background: var(--awthy-surface);
  border: 1px solid var(--awthy-line);
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 16px;
}
.hero { padding: 24px; background: var(--awthy-ink); color: var(--awthy-on-ink); }
.hero p { color: var(--awthy-on-ink-muted); }
.hero .eyebrow { color: var(--awthy-on-ink-subtle); }
.hero .control-help { color: var(--awthy-on-ink-muted); }
.muted-panel { background: color-mix(in srgb, var(--awthy-surface) 72%, var(--awthy-paper)); }
.success-panel { border-color: color-mix(in srgb, var(--awthy-green) 38%, var(--awthy-line)); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--awthy-green-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 30px; line-height: 1.22; margin-bottom: 12px; padding-bottom: 2px; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 4px; }
p { color: var(--awthy-muted); }
a { color: var(--awthy-green-dark); font-weight: 700; }
label {
  display: grid;
  gap: 6px;
  color: var(--awthy-ink);
  font-weight: 650;
}
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--awthy-line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--awthy-ink);
  background: var(--awthy-surface);
  font: inherit;
}
button {
  min-height: 42px;
  border: 1px solid var(--awthy-green-dark);
  border-radius: 6px;
  background: var(--awthy-green);
  color: var(--awthy-on-ink);
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:disabled {
  border-color: var(--awthy-line);
  background: var(--awthy-disabled-fill);
  color: var(--awthy-muted);
  cursor: not-allowed;
}
.secondary-button {
  border-color: var(--awthy-line-strong);
  background: var(--awthy-surface);
  color: var(--awthy-green-dark);
}
.destructive-button {
  border-color: var(--awthy-coral);
  background: var(--awthy-danger-fill);
  color: var(--awthy-coral);
}
.destructive-button:hover,
.destructive-button:focus-visible {
  background: color-mix(in srgb, var(--awthy-coral) 12%, var(--awthy-danger-fill));
}
.secondary-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--awthy-line);
  border-radius: 6px;
  color: var(--awthy-green-dark);
  padding: 6px 10px;
  text-decoration: none;
  font-weight: 700;
}
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
}
.hub-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--awthy-line);
  scrollbar-width: thin;
}
.hub-tabs a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--awthy-muted);
  text-decoration: none;
  white-space: nowrap;
}
.hub-tabs a[aria-current="page"] {
  border-color: var(--awthy-line);
  background: var(--awthy-surface);
  color: var(--awthy-green-dark);
}
fieldset {
  border: 1px solid var(--awthy-line);
  border-radius: 8px;
  margin: 0;
  padding: 12px;
}
legend { font-weight: 700; }
.stack { display: grid; gap: 12px; max-width: 440px; }
.choice { grid-template-columns: auto 1fr; align-items: start; margin: 8px 0; }
.choice input { width: auto; min-height: auto; margin-top: 4px; }
.choice small, .meta {
  display: block;
  color: var(--awthy-muted);
  font-size: 13px;
  font-weight: 500;
}
.notice {
  border: 1px solid color-mix(in srgb, var(--awthy-green) 28%, var(--awthy-line));
  border-radius: 8px;
  background: var(--awthy-success-fill);
  color: var(--awthy-green-dark);
  padding: 12px 14px;
}
.notice.error {
  border-color: color-mix(in srgb, var(--awthy-coral) 32%, var(--awthy-line));
  background: var(--awthy-danger-fill);
  color: var(--awthy-coral);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.metric-grid,
.reporting-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.metric,
.reporting-stat {
  border: 1px solid var(--awthy-line);
  border-radius: 8px;
  padding: 14px;
  background: var(--awthy-surface);
}
.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}
.metric span,
.reporting-stat span { color: var(--awthy-muted); font-size: 13px; }
.reporting-stat strong {
  display: block;
  color: var(--awthy-ink);
  font-size: 18px;
  margin-bottom: 4px;
}
.search-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.search-form label { grid-column: 1 / -1; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--awthy-line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { color: var(--awthy-muted); font-size: 12px; text-transform: uppercase; }
.result-row { border-top: 1px solid var(--awthy-line); padding: 12px 0; }
.technical-details { margin-top: 8px; color: var(--awthy-muted); }
.technical-details summary { cursor: pointer; font-weight: 700; }
.technical-details dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; }
.technical-details dt { font-weight: 700; }
.technical-details dd { margin: 0; overflow-wrap: anywhere; }
.technical-details code { display: block; margin-bottom: 4px; }
.copy-button { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.reporting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.reporting-list,
.license-list { display: grid; gap: 10px; }
.reporting-section { margin-top: 18px; }
.reporting-list-item {
  border: 1px solid var(--awthy-line);
  border-radius: 8px;
  padding: 12px;
  background: var(--awthy-surface);
}
.reporting-list-item p { margin-bottom: 0; }
.reporting-diagnostics { display: grid; gap: 4px; margin-top: 8px; }
.license-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--awthy-line);
  border-radius: 8px;
  padding: 16px;
}
.claim-form { display: grid; gap: 10px; }
.claim-code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--awthy-line);
  border-radius: 6px;
  background: var(--awthy-paper);
  color: var(--awthy-ink);
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.copy-row .meta { flex-basis: 100%; }
.hub-context-help { margin-top: 16px; }
.hub-context-help-desktop {
  position: sticky;
  top: 16px;
  border: 1px solid var(--awthy-line);
  border-radius: 8px;
  background: var(--awthy-surface-muted);
  padding: 16px;
}
.hub-context-help-mobile { display: none; }
.control-help {
  color: var(--awthy-muted);
  font-size: 13px;
  font-weight: 500;
}
label .control-help { visibility: hidden; }
label:hover .control-help,
label:focus-within .control-help { visibility: visible; }
.hub-control-help { display: inline-flex; flex-direction: column; align-items: flex-start; }
.hub-control-help .control-help { visibility: hidden; }
.hub-control-help:hover .control-help,
.hub-control-help:focus-within .control-help { visibility: visible; }
.control-help[data-visible="true"]:not([data-dismissed="true"]) { visibility: visible; }
.control-help[data-dismissed="true"] { visibility: hidden !important; }
@media (max-width: 1023px) {
  .hub-context-help-desktop { display: none; }
  .hub-context-help-mobile {
    display: block;
    border: 1px solid var(--awthy-line);
    border-radius: 8px;
    background: var(--awthy-surface-muted);
    padding: 14px;
  }
  .hub-context-help-mobile summary { cursor: pointer; font-weight: 700; }
}
@media (max-width: 720px) {
  main { width: min(100% - 24px, 920px); padding: 20px 0; }
  h1 { font-size: 26px; }
  .section-heading,
  .top-nav { flex-direction: column; align-items: stretch; }
  .reporting-grid,
  .license-row,
  .search-form { grid-template-columns: 1fr; }
  .technical-details dl { grid-template-columns: minmax(0, 1fr); }
  .secondary-action,
  button { width: 100%; justify-content: center; }
}
