:root {
  color-scheme: light;
  --canvas: #f6f7f4;
  --surface: #fff;
  --ink: #172035;
  --muted: #545e6d;
  --subtle: #677183;
  --divider: #e4e7ed;
  --strong-divider: #cbd3e2;
  --accent: #2549d8;
  --accent-dark: #1737b7;
  --accent-light: #edf1ff;
  --soft: #f7f8fb;
  --positive: #137348;
  --error: #a92729;
  --warning-bg: #fff7f3;
  --shell-width: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 240px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
.ico {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell { width: min(var(--shell-width), calc(100% - 72px)); margin: auto; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 5; padding: 10px 14px; clip-path: inset(50%); background: white; }
.skip-link:focus { clip-path: none; }

.topbar { border-bottom: 1px solid var(--divider); background: var(--surface); }
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  width: 35px;
  height: 35px;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-name { font-size: 1.1875rem; font-weight: 750; letter-spacing: -.02em; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 29px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .875rem;
  white-space: nowrap;
}
.nav-link[aria-current="page"] { color: var(--accent-dark); font-weight: 650; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--accent); }
.nav-link:hover { color: var(--accent-dark); }
.nav-link .ico { width: 17px; height: 17px; }
.nav-balance { color: var(--accent-dark); background: var(--accent-light); padding: 3px 6px; border-radius: 5px; font-size: .75rem; font-variant-numeric: tabular-nums; }

.workspace { padding: 53px 0 20px; }
.masthead { margin-bottom: 34px; }
.masthead h1 { font-size: clamp(2rem, 4vw, 3.125rem); font-weight: 760; letter-spacing: -.06em; line-height: 1.16; }
.masthead h1::after { content: ""; display: inline-block; width: .135em; height: .135em; margin-inline-start: .15em; border-radius: 25%; background: var(--accent); }
.masthead > p { color: var(--muted); margin-top: 13px; font-size: 1rem; line-height: 1.6; }
.panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(23, 32, 53, .025);
}
.panel-header { display: flex; align-items: center; gap: 13px; padding: 22px 22px 19px; min-height: 91px; }
.panel-header > div { min-width: 0; flex: 1; }
.panel-header h2 { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.panel-header p { font-size: .875rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.panel-icon, .footer-icon { display: grid; place-items: center; flex: 0 0 auto; }
.panel-icon { width: 42px; height: 42px; border-radius: 10px; color: var(--accent-dark); background: var(--accent-light); }
.panel-icon .ico { width: 22px; height: 22px; }
.panel-icon-paper { color: #37465e; background: #f0f2f6; }
.panel-body { flex: 1; display: flex; flex-direction: column; padding: 0 22px 19px; }
.document-slot { min-width: 0; flex: 1; display: grid; min-height: 235px; }
.dropzone, .preview {
  border-radius: 11px;
  min-width: 0;
  height: 235px;
}
.dropzone {
  align-content: center;
  justify-items: center;
  gap: 5px;
  display: grid;
  border: 1.5px dashed #c2cce3;
  color: var(--muted);
  background: #fafbfe;
  text-align: center;
  padding: 18px 12px;
  transition: background-color .16s ease, border-color .16s ease;
}
.dropzone:hover, .document-slot.is-dragging .dropzone { border-color: var(--accent); background: #f3f6ff; }
.dropzone:has(button:not(:disabled)) { cursor: pointer; }
.document-slot.is-dragging .preview, .requirements.is-dragging { outline: 2px dashed var(--accent); outline-offset: -3px; background: var(--accent-light); }
.upload-art {
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4ff;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
}
.upload-art .ico { height: 27px; width: 27px; stroke-width: 1.55; }
.upload-art-paper { border-color: #e0e5f2; background: #f0f3fa; color: #3f5689; }
.upload-link {
  background: none;
  border: none;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 4px;
}
.upload-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.upload-link:disabled { cursor: wait; color: var(--subtle); }
.drop-copy { font-size: .875rem; line-height: 1.45; }
.format-label { margin-top: 8px; padding: 4px 8px; border-radius: 5px; font-size: .75rem; color: var(--subtle); background: #edf0f7; }
.format-label > span { margin: 0 2px; }

.panel-end { min-height: 80px; padding: 14px 22px; border-top: 1px solid var(--divider); display: flex; align-items: center; gap: 11px; }
.footer-icon { width: 34px; height: 34px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-light); }
.paper-end .footer-icon { color: #4a596e; background: #f1f3f6; }
.footer-copy { flex: 1; min-width: 0; }
.footer-copy > h3 { color: var(--ink); font-size: .875rem; font-weight: 680; line-height: 1.5; }
.footer-copy > p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.optional { color: var(--subtle); font-size: .75rem; font-weight: 500; margin-inline-start: 4px; }
.requirements-actions { display: flex; align-items: center; gap: 4px; }
.requirements-error { margin: -6px 22px 14px; }
.field-error { padding: 7px 9px; margin-top: 8px; font-size: .8125rem; line-height: 1.5; border-radius: 6px; background: var(--warning-bg); color: var(--error); }
.requirements-error { margin-top: 0; }

.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 640;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button { padding: 0 13px; min-height: 36px; white-space: nowrap; }
.button-quiet { border-color: var(--divider); background: white; color: var(--ink); }
.button-quiet:hover:not(:disabled), .icon-button:hover:not(:disabled) { border-color: var(--strong-divider); background: #f4f6fd; color: var(--accent-dark); }
.button-small { padding-inline: 10px; }
.button-primary { background: var(--accent); color: white; min-height: 44px; padding-inline: 19px; font-size: .9375rem; }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); }
.button-primary[aria-disabled="true"] { cursor: wait; }
.button:disabled, .icon-button:disabled { cursor: not-allowed; color: var(--subtle); }
.button-primary:disabled { color: #5d6780; background: #e8ecf6; border-color: #e8ecf6; }
.button.is-working { color: white; background: var(--accent); border-color: var(--accent); cursor: wait; }
.button.is-working .ico { display: none; }
.button.is-working::before { content: ""; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.45); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.icon-button { background: white; color: var(--muted); padding: 0; width: 36px; height: 36px; }
.icon-button .ico { width: 17px; height: 17px; }

.preview { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--divider); background: #f1f3f8; }
.preview-toolbar { display: flex; gap: 7px; align-items: center; background: white; border-bottom: 1px solid var(--divider); padding: 6px 9px 6px 12px; min-width: 0; }
.preview-toolbar > .ico { color: var(--accent-dark); }
.preview-file { min-width: 0; font-size: .875rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.preview-file > b { font-weight: 650; }
.preview-toolbar .button { min-height: 30px; }
.preview-toolbar .icon-button { width: 32px; height: 32px; }
.preview-scroller { flex: 1; min-height: 0; padding: 15px 17px 17px; overflow: auto; overscroll-behavior: contain; }
.preview-scroller:focus-visible { outline-offset: -3px; }
.paper-sheet {
  margin: 0 auto;
  min-height: 180px;
  width: min(100%, 410px);
  box-shadow: 0 1px 3px rgba(23, 32, 53, .09);
  border: 1px solid #e5e7ec;
  background: white;
  padding: 23px 30px;
  overflow-wrap: anywhere;
  color: #172035;
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", Georgia, serif;
}
.paper-sheet p { margin: 0 0 .65em; white-space: pre-wrap; font-size: .8125rem; line-height: 1.65; }
.paper-sheet p:last-child { margin-bottom: 0; }
.paper-sheet .role-title { text-align: center; font-size: 1.125rem; font-weight: 700; margin-bottom: .8em; }
.paper-sheet .role-h1, .paper-sheet .role-abstractHeading, .paper-sheet .role-referencesHeading { font-size: .9375rem; font-weight: 700; margin-block: .55em .35em; }
.paper-sheet .role-h2, .paper-sheet .role-h3, .paper-sheet .role-keywords { font-weight: 650; }
.paper-sheet .role-caption { text-align: center; }
.preview-caption { display: block; margin: 8px auto 0; text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.segmented { display: inline-flex; flex: 0 0 auto; background: var(--soft); border: 1px solid var(--divider); border-radius: 7px; padding: 2px; }
.segmented > button { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 6px 8px; min-height: 31px; font-size: .8125rem; border-radius: 5px; cursor: pointer; white-space: nowrap; }
.segmented > button[aria-pressed="true"] { border-color: var(--divider); background: white; color: var(--accent-dark); font-weight: 650; box-shadow: 0 1px 2px #1720350d; }
.segmented > button:disabled { cursor: not-allowed; color: var(--subtle); }

.actionbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--divider);
  background: var(--surface);
  border-radius: 12px;
  min-height: 80px;
  padding: 14px 21px;
  margin-top: 20px;
}
.action-message { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.action-indicator { display: block; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; flex: 0 0 auto; background: #8290a9; }
.action-message[data-state="ready"] .action-indicator, .action-message[data-state="busy"] .action-indicator { background: var(--accent); }
.action-message[data-state="complete"] .action-indicator { background: var(--positive); }
.action-message[data-state="error"] .action-indicator { background: var(--error); }
.action-message[data-state="error"] .action-caption { color: var(--error); }
.action-title { font-size: .875rem; font-weight: 700; line-height: 1.45; }
.action-caption { margin-top: 3px; color: var(--muted); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.action-price { margin-top: 4px; font-size: .8125rem; color: var(--accent-dark); line-height: 1.5; font-variant-numeric: tabular-nums; }
.action-buttons { flex: 0 0 auto; display: flex; gap: 7px; align-items: center; }
.result-details { border: 1px solid var(--divider); border-radius: 12px; background: var(--surface); margin-top: 14px; padding: 17px 22px; }
.result-details > h2 { font-size: .9375rem; }
.result-details > ul { margin: 8px 0 0; padding-inline-start: 20px; font-size: .875rem; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.workspace-footer { display: flex; align-items: center; justify-content: center; color: var(--subtle); padding: 24px 0 4px; font-size: .8125rem; }
.workspace-footer span { display: inline-flex; align-items: center; gap: 6px; }
.workspace-footer .ico { width: 14px; height: 14px; }

dialog {
  padding: 0;
  margin: auto;
  border: 1px solid var(--divider);
  width: min(525px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow-y: auto;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  box-shadow: 0 18px 70px #17203538;
}
dialog::backdrop { background: #17203564; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 23px 16px; }
.dialog-header > div { min-width: 0; }
.dialog-header h2 { font-size: 1.25rem; line-height: 1.35; }
.dialog-header p { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
.preset-list { display: grid; gap: 8px; padding: 0 23px 23px; }
.preset-option {
  width: 100%;
  border: 1px solid var(--divider);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  text-align: start;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  cursor: pointer;
}
.preset-option:hover:not(:disabled), .preset-option.current { border-color: #adbdf8; background: #f8f9ff; }
.preset-option:disabled { cursor: wait; }
.preset-option > .ico { color: var(--accent-dark); }
.preset-option > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.preset-title { font-weight: 700; font-size: .9375rem; }
.preset-description, .preset-summary { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.preset-summary { color: var(--subtle); }
.dialog-notice { margin: -8px 23px 21px; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.dialog-notice[data-error="true"] { color: var(--error); }
.requirements-dialog-body { padding: 3px 23px 23px; }
.requirements-dialog-body .paper-sheet { width: 100%; }

.admin-masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.admin-masthead > div > p { color: var(--muted); margin-top: 13px; line-height: 1.6; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 19px 20px 16px; }
.stat > p { font-size: .875rem; color: var(--muted); }
.stat > strong { margin-top: 4px; font-size: 1.85rem; font-weight: 750; line-height: 1.2; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.admin-grid .panel { display: block; padding: 19px 20px; }
.admin-grid h2 { font-size: 1.0625rem; margin-bottom: 13px; }
.admin-side { display: grid; gap: 16px; }
.admin-list { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.admin-list > li { display: grid; gap: 5px; border-top: 1px solid var(--divider); padding: 11px 0; line-height: 1.5; }
.admin-list > li:last-child { padding-bottom: 0; }
.admin-list > li strong { font-size: .875rem; }
.admin-list > li p, .admin-empty, #ai-label { font-size: .875rem; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.admin-ai { display: flex; align-items: center; min-width: 0; gap: 8px; }
.status-chip { min-width: max-content; padding: 3px 6px; border-radius: 5px; font-weight: 650; font-size: .75rem; white-space: nowrap; background: #edf1fa; color: var(--muted); }
.status-chip.ok { background: #e7f5ed; color: var(--positive); }
.status-chip.fail { background: #fff1ed; color: var(--error); }
.table-region { overflow-x: auto; }
.job-table { width: 100%; text-align: start; border-collapse: collapse; font-size: .8125rem; }
.job-table th, .job-table td { border-bottom: 1px solid var(--divider); white-space: nowrap; padding: 10px 9px 10px 0; text-align: start; }
.job-table th { color: var(--muted); font-weight: 650; }
.job-table tr:last-child td { border-bottom: 0; }
.job-table tbody th { color: var(--ink); }
.money-cell { font-variant-numeric: tabular-nums; }
.table-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.table-link[aria-disabled="true"] { cursor: wait; opacity: .65; }

.manage-panel { padding: 21px; margin-top: 16px; }
.manage-heading { margin-bottom: 17px; }
.manage-heading h2, .account-balance h2 { font-size: 1.125rem; font-weight: 700; }
.manage-heading p, .account-balance p { color: var(--muted); margin-top: 5px; line-height: 1.6; font-size: .875rem; }
.manage-heading .admin-ai { margin-top: 8px; }
.manage-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 24px; align-items: start; }
.form-stack { min-width: 0; display: grid; gap: 13px; align-content: start; }
.form-stack fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.form-stack legend { margin-bottom: 10px; padding: 0; font-weight: 700; font-size: .9375rem; }
.field { display: grid; gap: 5px; font-size: .875rem; font-weight: 650; }
.field :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid var(--strong-divider);
  border-radius: 7px;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  background: var(--surface);
}
.field input::placeholder { color: var(--subtle); }
.field textarea { resize: vertical; }
.field :is(input, select, textarea):focus-visible, .check-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field [type="file"] { font-size: .875rem !important; }
.check-field { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 650; min-height: 30px; }
.check-field input { margin: 0; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--accent); }
.form-hint { font-weight: 400; color: var(--muted); font-size: .8125rem; line-height: 1.65; overflow-wrap: anywhere; }
.form-footer { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.form-feedback { min-width: 0; color: var(--positive); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.form-feedback[data-error="true"] { color: var(--error); }
.dialog-form { padding: 3px 23px 23px; }
.dialog-form .button { justify-self: start; }
.grant-history { border-top: 1px solid var(--divider); margin-top: 13px; padding-top: 13px; }
.grant-history summary { color: var(--accent-dark); font-size: .875rem; font-weight: 650; cursor: pointer; }
.grant-history[open] summary { margin-bottom: 8px; }
.ad-editor { padding: 15px; border: 1px solid var(--divider); border-radius: 11px; }

.account-workspace .masthead { margin-bottom: 24px; }
.account-auth { width: min(100%, 465px); padding: 22px; }
.auth-tabs { display: flex; gap: 19px; border-bottom: 1px solid var(--divider); margin-bottom: 19px; }
.auth-tab { padding: 3px 0 9px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .9375rem; }
.auth-tab[aria-current="page"] { color: var(--accent-dark); border-color: var(--accent); font-weight: 700; }
.account-auth h2 { font-size: 1.125rem; margin-bottom: 2px; }
.account-auth .button { margin-top: 4px; }
.admin-setup { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--divider); }
.account-balance { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 15px 23px; padding: 20px; }
.account-balance strong { display: block; margin-top: 4px; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-balance p { flex: 1; min-width: min(100%, 180px); }
.account-workspace .field-error:not(form .field-error) { margin-bottom: 12px; }

.ad-slot { position: relative; }
.ad-slot:not(.ad-filled) { height: 0; overflow: hidden; visibility: hidden; }
.ad-slot:not(.ad-filled) .ad-frame { position: absolute; }
.ad-slot.ad-filled { display: grid; justify-items: start; gap: 5px; padding: 7px 0; }
#ad-top.ad-filled { margin-top: -13px; margin-bottom: 18px; }
#ad-bottom.ad-filled { margin-top: 17px; }
.ad-label { padding: 2px 5px; border: 1px solid var(--strong-divider); border-radius: 4px; font-size: .75rem; color: var(--muted); }
.ad-frame { display: block; width: 100%; height: 300px; border: 0; }
.ad-preference { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 11px; margin-top: 13px; }
.ad-preference p { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.ad-preference button[aria-pressed="true"] { color: var(--accent-dark); background: var(--accent-light); }

@media (max-width: 830px) {
  .shell { width: calc(100% - 40px); }
  .panels { gap: 14px; }
  .panel-header, .panel-end { padding-left: 15px; padding-right: 15px; gap: 9px; }
  .panel-body { padding-inline: 15px; }
  .panel-icon { height: 37px; width: 37px; }
  .panel-icon .ico { height: 19px; width: 19px; }
  .header-button .ico { display: none; }
}
@media (max-width: 700px) {
  .workspace { padding-top: 33px; }
  .panels, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .masthead { margin-bottom: 22px; }
  .masthead > p { margin-top: 9px; }
  .topbar-inner { height: 60px; }
  .panel-header { min-height: 80px; padding-top: 16px; padding-bottom: 16px; }
  .panel-end { min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
  .dropzone, .preview { height: 214px; }
  .document-slot { min-height: 214px; }
  .admin-stats { gap: 8px; }
  .stat { padding: 12px; }
  .manage-columns { grid-template-columns: minmax(0, 1fr); }
  #ad-top.ad-filled { margin-top: 0; }
}
@media (max-width: 520px) {
  .actionbar { align-items: stretch; flex-direction: column; }
  .action-buttons { align-self: stretch; justify-content: flex-end; }
  .usage-grid .job-table :is(th, td) { white-space: normal; padding-right: 5px; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 28px); }
  .main-nav { gap: 11px; }
  .nav-link { font-size: .8125rem; }
  .nav-balance { display: none; }
  .nav-link .ico { display: none; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .masthead h1 { font-size: 1.9rem; }
  .panel-header p { font-size: .8125rem; }
  .panel-header { gap: 8px; }
  .button { padding-inline: 9px; }
  .panel-icon { display: none; }
  .requirements-actions { gap: 0; }
  .requirements-actions .icon-button { width: 30px; }
  .footer-copy > p { white-space: normal; }
  .actionbar { padding: 12px; }
  .action-message { gap: 7px; }
  .action-buttons .ico { width: 15px; height: 15px; }
  .paper-sheet { padding: 16px; }
  .admin-masthead { align-items: flex-start; }
  .admin-masthead .button { min-height: 32px; }
  .account-auth, .manage-panel { padding: 16px; }
}
@media (max-width: 355px) {
  .topbar-inner { gap: 10px; }
  .main-nav { gap: 9px; }
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
