:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #929299;
  --surface: #fff;
  --canvas: #f5f5f7;
  --line: #e8e8ed;
  --blue: #0071e3;
  --blue-hover: #0065cc;
  --blue-soft: #eef5ff;
  --green: #23845c;
  --green-soft: #edf7f1;
  --amber: #a86812;
  --amber-soft: #fff6e8;
  --red: #c44545;
  --red-soft: #fff0ef;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, input, select, textarea { outline: none; }
:focus-visible { outline: 3px solid #8fbcff; outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.icon { width: 20px; height: 20px; }
.rotate-180 { transform: rotate(180deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mono { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.eyebrow { display: block; font-size: 10px; font-weight: 650; letter-spacing: 1.7px; color: var(--muted); line-height: 1.5; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; }
.brand > span { display: flex; align-items: baseline; gap: 7px; font-weight: 650; font-size: 21px; letter-spacing: -1px; }
.brand small { font-size: 10px; letter-spacing: 1.8px; font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 11px 18px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 550; line-height: 1.35; white-space: nowrap; transition: background .18s, box-shadow .18s, transform .18s; }
.button .icon { width: 17px; height: 17px; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .5; transform: none; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); box-shadow: 0 4px 12px #0071e31a; }
.button-secondary { background: var(--surface); border-color: #dcdce2; color: var(--ink); }
.button-secondary:hover:not(:disabled) { background: #f7f7f9; }
.button-ghost { background: transparent; color: var(--muted); }
.button-ghost:hover:not(:disabled) { background: #eeeef2; }
.button-danger { background: var(--red); color: white; }
.button-danger:hover:not(:disabled) { background: #ae3636; }
.button-danger-soft { background: var(--red-soft); color: var(--red); }
.button-danger-soft:hover:not(:disabled) { background: #fce5e3; }
.button-small { min-height: 35px; padding: 8px 13px; font-size: 12px; border-radius: 9px; }
.button-full { width: 100%; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: background .16s, color .16s; flex-shrink: 0; }
.icon-button:hover:not(:disabled) { background: #eeeef2; color: var(--ink); }
.icon-button:disabled { opacity: .3; }
.icon-button .icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 12px; font-weight: 500; border: 0; background: transparent; padding: 0; white-space: nowrap; }
.text-link:hover { color: var(--blue-hover); }
.text-link .icon { width: 15px; height: 15px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; font-size: 10px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.badge-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge-neutral { background: #f1f1f4; color: #73737a; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.subtle-label { color: var(--muted); font-size: 11px; }
.panel { background: var(--surface); border: 1px solid #ebebef; border-radius: var(--radius); min-width: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 25px 25px 20px; }
.panel-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.4px; }
.panel-heading p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.count-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 550; }
input, select, textarea { color: var(--ink); background: white; width: 100%; padding: 12px 13px; border: 1px solid #dcdce2; border-radius: 10px; font-size: 13px; line-height: 1.4; transition: border-color .16s, box-shadow .16s; }
input::placeholder, textarea::placeholder { color: #a0a0a6; }
input:focus, select:focus, textarea:focus { border-color: #428ad5; box-shadow: 0 0 0 3px #0071e30d; }
input:disabled, select:disabled, textarea:disabled { background: #f7f7f9; color: var(--muted); }
input[readonly] { background: #f8f8fa; }
textarea { resize: vertical; min-height: 86px; }
select { appearance: none; padding-right: 34px; background-image: url("/icons/chevron-down.svg"); background-repeat: no-repeat; background-size: 16px; background-position: right 12px center; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field-span-2 { grid-column: span 2; }
.form-field { min-width: 0; }
.form-field small { display: block; font-size: 10px; line-height: 1.65; color: var(--muted); margin-top: 7px; }
.required { color: var(--blue); font-size: 11px; margin-left: 2px; }
.optional { margin-left: 5px; color: var(--faint); font-size: 10px; font-weight: 400; }
.field-error { font-size: 12px; color: var(--red); line-height: 1.7; padding: 10px 12px; margin-top: 14px; background: var(--red-soft); border-radius: 9px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 265px; text-align: center; padding: 45px 25px; }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; background: #f5f5f7; color: #9999a1; border-radius: 18px; margin-bottom: 18px; }
.empty-icon .icon { width: 25px; height: 25px; }
.empty-state h3 { font-size: 16px; font-weight: 550; }
.empty-state p { margin-top: 8px; max-width: 340px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty-state .button { margin-top: 20px; }
.inline-note { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.7; margin: 20px 4px 0; }
.inline-note .icon { width: 15px; height: 15px; margin-top: 2px; color: #92929a; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; white-space: nowrap; }
thead { background: #fbfbfc; }
th { font-size: 10px; font-weight: 500; color: var(--muted); padding: 12px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 17px 22px; border-bottom: 1px solid #f0f0f3; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
.table-primary { font-size: 12px; font-weight: 550; display: block; }
a.table-primary:hover { color: var(--blue); }
.table-secondary { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.table-date { color: var(--muted); font-size: 11px; }
.table-action { display: inline-flex; gap: 5px; align-items: center; color: var(--blue); font-size: 11px; }
.table-action .icon { width: 13px; height: 13px; }
.align-right { text-align: right; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination-controls { display: flex; gap: 10px; align-items: center; }
.pagination-controls .icon-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; }
.pagination-controls .icon { width: 13px; height: 13px; }
.pagination-single { min-height: 50px; }
.app-dialog { position: fixed; inset: 0; border: 1px solid #e4e4eb; background: white; border-radius: 24px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; box-shadow: 0 30px 100px #1d1d1f22; overflow: auto; }
.app-dialog::backdrop { background: #1d1d1f50; backdrop-filter: blur(5px); }
.dialog-heading { position: relative; padding: 30px 30px 0; }
.dialog-icon { display: inline-flex; justify-content: center; align-items: center; width: 43px; height: 43px; border-radius: 14px; background: #f5f5f7; color: var(--ink); margin-bottom: 20px; }
.dialog-icon .icon { width: 22px; height: 22px; }
.dialog-close { position: absolute; top: 18px; right: 18px; }
.dialog-heading h2 { font-size: 24px; letter-spacing: -.7px; font-weight: 600; }
.dialog-heading p { font-size: 12px; color: var(--muted); margin-top: 9px; line-height: 1.7; }
.dialog-form { padding: 26px 30px 0; }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 24px 30px 28px; }
.dialog-form .dialog-footer { padding: 25px 0 28px; }
.dialog-error { margin: 20px 30px 0; }
.confirmation-summary { margin: 25px 30px 0; background: #f5f5f7; padding: 20px; border-radius: 14px; display: flex; flex-direction: column; gap: 7px; }
.confirmation-summary > span { font-size: 12px; color: var(--muted); }
.confirmation-summary strong { font-size: 21px; font-weight: 600; }
.confirmation-summary small { font-size: 11px; color: var(--muted); }
.confirmation-note { margin: 18px 30px 0; font-size: 12px; color: var(--muted); line-height: 1.75; }
.revoke-warning { margin: 24px 30px 0; display: flex; gap: 10px; padding: 14px; border-radius: 11px; background: var(--red-soft); color: var(--red); font-size: 12px; line-height: 1.7; }
.revoke-warning .icon { margin-top: 2px; width: 17px; height: 17px; }
.toast-region { position: fixed; top: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px)); background: #fff; color: var(--ink); border: 1px solid #e4e4ea; box-shadow: 0 8px 32px #1d1d1f15; border-radius: 13px; padding: 14px 18px; font-size: 12px; line-height: 1.6; animation: toast-in .25s ease-out; transition: opacity .25s, transform .25s; }
.toast .icon { width: 18px; height: 18px; color: var(--green); }
.toast-error .icon { color: var(--red); }
.toast-out { opacity: 0; transform: translateY(-10px); }
.spinner { display: inline-block; flex-shrink: 0; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.app-loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; background: var(--canvas); }
.skeleton { border-radius: 7px; background: linear-gradient(100deg, #efeff2 20%, #f8f8fa 40%, #efeff2 60%); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; }
.skeleton-kicker { width: 110px; height: 10px; margin-bottom: 14px; }
.skeleton-title { width: 240px; height: 34px; margin-bottom: 14px; }
.skeleton-line { width: 60%; height: 12px; }
.loading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.skeleton-card { padding: 24px; height: 155px; }
.skeleton-number { width: 70%; height: 34px; margin-top: 20px; }
.skeleton-panel { margin-top: 24px; padding: 35px; min-height: 300px; display: flex; flex-direction: column; gap: 35px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .button { font-size: 12px; padding: 10px 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .field-span-2 { grid-column: span 1; }
  .panel-heading { padding: 21px 19px 18px; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading .text-link { font-size: 11px; }
  .pagination { padding: 14px 18px; }
  .dialog-heading { padding: 27px 23px 0; }
  .dialog-form { padding: 23px 23px 0; }
  .dialog-footer { padding: 22px 23px 25px; }
  .dialog-form .dialog-footer { padding-bottom: 25px; }
  .confirmation-summary, .confirmation-note, .revoke-warning { margin-left: 23px; margin-right: 23px; }
  .toast-region { top: 16px; right: 16px; }
  .loading-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Public filing information remains visible without JavaScript. */
.site-filing { width: 100%; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-filing a { display: inline-block; padding: 12px 8px; overflow-wrap: anywhere; }
.site-filing a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
