/* SupEmail: shared user-facing theme. Keep application layout and hidden states. */
:root {
  --neo-ink: #181818;
  --neo-paper: #fff8e8;
  --neo-yellow: #ffd83d;
  --neo-pink: #ffc1d5;
  --neo-sky: #b9ddff;
  --neo-mint: #d8edb1;
  --neo-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --bg: var(--neo-paper);
  --surface: #fffef9;
  --surface-soft: #f3eedf;
  --line: var(--neo-ink);
  --text: var(--neo-ink);
  --muted: #55534e;
  --blue: #181818;
  --blue-soft: var(--neo-sky);
  --green: #275425;
  --green-soft: var(--neo-mint);
  --red: #9e2039;
  --shadow: 6px 6px 0 var(--neo-ink);
}

html { min-width: 0; background: var(--neo-paper); }
.neo-theme [hidden] { display: none !important; }
body.neo-theme {
  background: var(--neo-paper);
  backdrop-filter: none;
  color: var(--neo-ink);
  font-family: "Arial", "Helvetica Neue", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.neo-theme ::selection { color: var(--neo-ink); background: var(--neo-yellow); }
.neo-theme :is(h1, h2, h3) { color: var(--neo-ink); font-weight: 900; letter-spacing: -.045em; line-height: 1.12; }
.neo-theme :is(h1, h2, h3, p) { overflow-wrap: break-word; }
.neo-theme :is(button, input, select, textarea) { font: inherit; }
.neo-theme :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #1556be;
  outline-offset: 4px;
}
.neo-theme :is(button, a) { -webkit-tap-highlight-color: transparent; }
.neo-theme :is(.topbar, .share-topbar) {
  backdrop-filter: none;
  min-height: 82px;
  height: auto;
  padding: 16px clamp(18px, 3vw, 46px);
  gap: 20px;
  border-bottom: 3px solid var(--neo-ink);
  background: var(--neo-paper);
}
.neo-theme :is(.brand, .share-brand) { color: var(--neo-ink); font-size: 22px; font-weight: 900; letter-spacing: -.055em; }
.neo-theme :is(.brand b, .share-brand b) { color: inherit; font-weight: 500; letter-spacing: -.035em; }
.neo-theme .brand { gap: 14px; }
.neo-theme .brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  flex: 0 0 auto;
  border: 2px solid var(--neo-ink);
  border-radius: 2px;
  background: var(--neo-yellow);
  box-shadow: 3px 3px 0 var(--neo-ink);
}
.neo-theme .brand-mark span { width: 27px; height: 20px; border: 2px solid var(--neo-ink); border-radius: 0; }
.neo-theme .brand-mark::before, .neo-theme .brand-mark::after { top: 13px; width: 17px; background: var(--neo-ink); }
.neo-theme .brand-mark::before { left: 4px; }
.neo-theme .brand-mark::after { right: 4px; }
.neo-theme .service-status { color: var(--neo-ink); font: 11px var(--neo-mono); }
.neo-theme .service-status i { border: 1.5px solid var(--neo-ink); background: #7ba66a; box-shadow: none; }
.neo-theme :is(.eyebrow, .nav-title, .api-form label, .key-create-form legend, .key-create-form label) {
  color: var(--neo-ink);
  font-family: var(--neo-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .075em;
}
.neo-theme .eyebrow { margin-bottom: 10px; }
.neo-theme :is(.primary-button, .secondary-button, .danger-button, .small-button, .icon-button,
  .guest-login-link, .guest-access-button, .back-link, .trash-view-button) {
  min-height: 42px;
  height: auto;
  padding: 10px 15px;
  border: 2px solid var(--neo-ink);
  border-radius: 2px;
  color: var(--neo-ink);
  background: var(--neo-yellow);
  box-shadow: 3px 3px 0 var(--neo-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.neo-theme.neo-shared button { min-height: 42px; border: 2px solid var(--neo-ink); border-radius: 2px; color: var(--neo-ink); background: var(--neo-yellow); box-shadow: 3px 3px 0 var(--neo-ink); font-weight: 800; }
.neo-theme :is(.secondary-button, .small-button, .icon-button, .guest-access-button, .back-link),
.neo-theme.neo-shared button.secondary { background: var(--neo-sky); }
.neo-theme .danger-button { background: var(--neo-pink); color: #63152a; }
.neo-theme .icon-button { padding: 6px; font-size: 23px; }
.neo-theme :is(.primary-button, .secondary-button, .danger-button, .small-button, .icon-button,
  .guest-login-link, .guest-access-button, .back-link, .trash-view-button):hover:not(:disabled),
.neo-theme.neo-shared button:hover:not(:disabled) {
  color: var(--neo-ink);
  background: var(--neo-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--neo-ink);
}
.neo-theme :is(.primary-button, .secondary-button, .danger-button, .small-button, .icon-button,
  .guest-login-link, .guest-access-button, .back-link, .trash-view-button):active:not(:disabled),
.neo-theme.neo-shared button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.neo-theme button:disabled { opacity: .55; box-shadow: 1px 1px 0 var(--neo-ink); transform: none; }
.neo-theme :is(.text-button, .admin-access-link) { color: var(--neo-ink); font-weight: 800; text-underline-offset: 4px; }
.neo-theme .text-button { border: 0; box-shadow: none; background: transparent; }
.neo-theme :is(.text-button, .admin-access-link):hover { text-decoration: underline; }
.neo-theme :is(input:not([type="radio"]):not([type="checkbox"]), select, .slug-input-wrap) {
  min-height: 46px;
  border: 2px solid var(--neo-ink);
  border-radius: 2px;
  color: var(--neo-ink);
  background: #fffef9;
  font-size: 14px;
  box-shadow: none;
}
.neo-theme :is(input, select):focus { border-color: var(--neo-ink); background: #fff; box-shadow: none; }
.neo-theme :is(input, select, textarea) { accent-color: var(--neo-ink); }
.neo-theme input::placeholder { color: #716d62; opacity: 1; }
.neo-theme .slug-input-wrap input { min-height: 42px; border: 0; }
.neo-theme :is(.access-card, .address-bar, .guest-address-bar, .workspace, .guest-workspace,
  .api-heading, .api-tool-panel, .api-docs, .account-summary, .notes-sidebar,
  .editor-card, .trash-card, .welcome-card, .dialog, .share-card) {
  border: 3px solid var(--neo-ink);
  border-radius: 3px;
  background: #fffef9;
  box-shadow: var(--shadow);
}

/* Public home */
.neo-theme .guest-shell { width: min(1320px, calc(100% - 64px)); margin: 38px auto 56px; }
.neo-theme .guest-address-bar { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; padding: 38px; background: var(--neo-yellow); }
.neo-theme .guest-address-bar h1 { max-width: 530px; font-size: clamp(35px, 3.8vw, 56px); letter-spacing: -.055em; }
.neo-theme .guest-address-bar > div > p:last-child { max-width: 410px; margin-top: 18px; color: #37352f; font-size: 14px; }
.neo-theme .guest-address-bar .address-form { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.1fr); gap: 12px 8px; padding: 24px; border: 3px solid var(--neo-ink); background: #fffef9; box-shadow: 4px 4px 0 var(--neo-ink); }
.neo-form-label { grid-column: 1 / -1; margin: 0 0 5px; font: 700 11px var(--neo-mono); letter-spacing: .09em; }
.neo-theme .guest-address-bar .address-form .primary-button { grid-column: 1 / 3; }
.neo-theme .guest-address-bar .address-form .icon-button { grid-column: 3; justify-self: end; }
.neo-theme .guest-address-bar .address-form .at-sign { display: block; text-align: center; }
.neo-theme .guest-address-bar .address-form input { grid-column: 1; }
.neo-theme .guest-address-bar .address-form .at-sign { grid-column: 2; }
.neo-theme .guest-address-bar .address-form select { grid-column: 3; padding-right: 22px; font-size: 12px; }
.neo-theme .guest-workspace { margin-top: 30px; grid-template-columns: 300px minmax(0, 1fr); min-height: 460px; }
.neo-theme :is(.guest-mailbox-panel, .mailbox-panel) { padding: 24px; background: var(--neo-pink); border-right: 3px solid var(--neo-ink); }
.neo-theme .guest-inbox-panel { padding: 0; }
.neo-theme .guest-mailbox-panel > strong { font-weight: 900; font-size: 18px; }
.neo-theme .inbox-toolbar { min-height: 98px; padding: 22px 26px; background: var(--neo-sky); border-bottom: 3px solid var(--neo-ink); }
.neo-theme .inbox-toolbar .eyebrow { margin-bottom: 5px; }
.neo-theme .inbox-toolbar h2 { font-size: 27px; }
.neo-theme .empty-state { min-height: 355px; padding: 44px 28px; }
.neo-theme .empty-state h3 { font-size: 25px; }
.neo-theme .empty-state p { max-width: 370px; font-size: 13px; line-height: 1.7; }
.neo-theme .empty-icon { width: 72px; height: 54px; background: var(--neo-yellow); border: 3px solid var(--neo-ink); border-radius: 2px; box-shadow: 4px 4px 0 var(--neo-ink); transform: rotate(-7deg); }
.neo-theme .empty-icon::before, .neo-theme .empty-icon::after { background: var(--neo-ink); width: 40px; }
.neo-theme .expiry-row { align-items: center; gap: 10px; padding: 15px 12px; border: 2px solid var(--neo-ink); border-radius: 2px; background: var(--neo-yellow); color: var(--neo-ink); }
.neo-theme .expiry-row span { font: 11px var(--neo-mono); }
.neo-theme .expiry-row strong { font-size: 25px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.neo-theme .privacy-note { border: 2px solid var(--neo-ink); border-radius: 2px; background: #fff8e8; box-shadow: 3px 3px 0 var(--neo-ink); }
.neo-theme .privacy-note strong { color: var(--neo-ink); }
.neo-theme .privacy-note p { color: #4f4b43; }
.neo-theme .guest-message-layout { margin: 0; border: 0; border-radius: 0; }

/* Sign in */
.neo-theme .access-gate { width: min(1130px, calc(100% - 64px)); margin: auto; min-height: calc(100vh - 82px); grid-template-columns: 1fr 440px; gap: clamp(30px, 7vw, 110px); padding: 64px 0; align-items: center; }
.access-intro { padding: 20px 0; }
.access-intro .neo-stamp { display: inline-block; margin-bottom: 32px; padding: 8px 12px; border: 2px solid var(--neo-ink); background: var(--neo-sky); box-shadow: 3px 3px 0 var(--neo-ink); font: 700 11px var(--neo-mono); letter-spacing: .06em; transform: rotate(-3deg); }
.neo-theme .access-intro h2 { margin: 0; font-size: clamp(48px, 5.8vw, 78px); line-height: .98; letter-spacing: -.065em; }
.access-intro h2 span { display: inline-block; padding: 0 8px 7px 0; background: var(--neo-yellow); }
.access-intro > p { max-width: 340px; margin: 26px 0 32px; color: var(--muted); line-height: 1.7; }
.neo-feature-list { display: flex; gap: 10px; flex-wrap: wrap; }
.neo-feature-list span { padding: 9px 12px; border: 2px solid var(--neo-ink); font: 700 11px var(--neo-mono); box-shadow: 3px 3px 0 var(--neo-ink); background: var(--neo-pink); }
.neo-feature-list span:nth-child(2) { background: var(--neo-yellow); }
.neo-feature-list span:nth-child(3) { background: var(--neo-sky); }
.neo-theme .access-card { width: 100%; padding: 34px; box-shadow: 9px 9px 0 var(--neo-ink); }
.neo-theme .access-brand { justify-content: flex-start; margin-bottom: 30px; }
.neo-theme .access-state { text-align: left; }
.neo-theme .access-state h1 { font-size: 33px; }
.neo-theme .access-state > p:not(.eyebrow) { color: var(--muted); }
.neo-theme .access-form { gap: 10px; }
.neo-theme .access-form .primary-button { min-height: 48px; margin-top: 14px; }
.neo-theme .access-divider { font-family: var(--neo-mono); }
.neo-theme .access-divider::before, .neo-theme .access-divider::after { height: 2px; }
.neo-theme .guest-access-note { margin-top: 12px !important; line-height: 1.6; }
.neo-theme .admin-access-link { font: 11px var(--neo-mono); text-decoration: underline; }
.neo-theme .access-spinner { border-color: var(--neo-sky); border-top-color: var(--neo-ink); }

/* Signed-in inbox, API and account */
.neo-theme .app-shell { width: min(1440px, calc(100% - 64px)); margin-top: 30px; }
.neo-theme .section-tabs { gap: 0; padding: 0; margin-bottom: 24px; border: 2px solid var(--neo-ink); border-radius: 2px; background: #fffef9; box-shadow: 4px 4px 0 var(--neo-ink); }
.neo-theme .section-tabs button { min-height: 45px; height: auto; padding: 10px 24px; border: 0; border-radius: 0; color: var(--neo-ink); font-size: 13px; font-weight: 800; }
.neo-theme .section-tabs button + button { border-left: 2px solid var(--neo-ink); }
.neo-theme .section-tabs button:hover { background: var(--neo-sky); }
.neo-theme .section-tabs button.is-active { color: var(--neo-ink); background: var(--neo-yellow); box-shadow: none; }
.neo-theme .address-bar { background: var(--neo-yellow); }
.neo-theme .address-bar h1 { font-size: 32px; }
.neo-theme .form-hint { color: #454036; font-family: var(--neo-mono); font-size: 10px; }
.neo-theme .workspace { margin-top: 28px; }
.neo-theme .mailbox-list { padding: 3px 7px 8px 1px; gap: 10px; }
.neo-theme .mailbox-item { border: 2px solid var(--neo-ink); border-radius: 2px; background: #fff9ed; box-shadow: 2px 2px 0 var(--neo-ink); }
.neo-theme .mailbox-item:hover { background: var(--neo-yellow); }
.neo-theme .mailbox-item.is-active { color: var(--neo-ink); border-color: var(--neo-ink); background: var(--neo-sky); box-shadow: 3px 3px 0 var(--neo-ink); }
.neo-theme .mailbox-avatar { color: var(--neo-ink); border: 1.5px solid var(--neo-ink); border-radius: 0; background: #fffef9; }
.neo-theme .message-list { border-color: var(--neo-ink); border-right-width: 2px; }
.neo-theme .message-row { border-bottom: 2px solid var(--neo-ink); background: #fffef9; }
.neo-theme .message-row:hover, .neo-theme .message-row.is-active { background: #fff0bd; }
.neo-theme .message-row.is-active { box-shadow: inset 5px 0 var(--neo-ink); }
.neo-theme .message-view { background: #fffef9; }
.neo-theme :is(.message-otp, .otp-block, .api-result, .otp-result) { border: 2px solid var(--neo-ink); border-radius: 2px; background: var(--neo-mint); color: #244323; }
.neo-theme :is(.message-otp strong, .otp-block strong, .otp-result strong) { color: var(--neo-ink); font-weight: 900; }
.neo-theme .otp-block button { border: 2px solid var(--neo-ink); border-radius: 2px; color: var(--neo-ink); }
.neo-theme :is(.tag, .method, .step-number, .guide-number, .key-status, .key-scope-list span, .account-permission-list span) { border: 1.5px solid var(--neo-ink); border-radius: 1px; color: var(--neo-ink); font-family: var(--neo-mono); }
.neo-theme .api-heading { background: var(--neo-sky); }
.neo-theme .api-heading h1 { font-size: 34px; }
.neo-theme .api-panel-title h2 { font-size: 25px; }
.neo-theme .api-tools-grid .api-tool-panel:first-child { background: #fff5d0; }
.neo-theme .api-tools-grid .api-tool-panel:nth-child(2) { background: #ffe6ee; }
.neo-theme :is(.api-code-block, .api-error-table-wrap, .api-direct-url, .api-security-note, .api-inline-code, .api-auth-alternative, .api-key-card, .key-limit-note, .api-key-secret, .key-token-line code, .key-detail-grid > div, .key-create-form fieldset) { border: 2px solid var(--neo-ink); border-radius: 2px; }
.neo-theme .api-key-card { background: #f3eedf; }
.neo-theme .account-summary { background: #fffef9; }
.neo-theme .account-stats { gap: 14px; }
.neo-theme .account-stats span { border: 2px solid var(--neo-ink); border-radius: 2px; background: var(--neo-yellow); box-shadow: 3px 3px 0 var(--neo-ink); }
.neo-theme .account-stats span:nth-child(2) { background: var(--neo-pink); }
.neo-theme .account-stats strong { color: var(--neo-ink); font-size: 35px; font-weight: 900; line-height: 1.15; letter-spacing: -.05em; }
.neo-theme .account-stats small { color: var(--neo-ink); font-family: var(--neo-mono); }
.neo-theme .last-updated { font-family: var(--neo-mono); }
.neo-theme .toast { border: 2px solid var(--neo-ink); border-radius: 2px; background: var(--neo-yellow); color: var(--neo-ink); box-shadow: 4px 4px 0 var(--neo-ink); font-weight: 700; }
.neo-theme :is(.toast.is-error, .fatal-notice) { border: 2px solid var(--neo-ink); border-radius: 2px; background: var(--neo-pink); color: #63152a; }

/* Private and shared Notepad */
.neo-theme .notepad-shell { gap: 26px; padding: 30px; grid-template-columns: 285px minmax(0, 1fr); }
.neo-theme .notes-sidebar { padding: 22px; background: var(--neo-pink); }
.neo-theme .sidebar-heading h1 { font-size: 34px; }
.neo-theme .sidebar-heading { gap: 8px; }
.neo-theme .sidebar-heading h1 { display: flex; align-items: center; gap: 7px; font-size: 32px; white-space: nowrap; }
.neo-theme .sidebar-heading .count-badge { margin: 0; }
.neo-theme :is(.account-label, .note-item-time, .note-characters, .note-item small, .path-line, .note-time-line, .editor-footer, .updated, .share-status, .save-status) { color: #4c4942; font-family: var(--neo-mono); }
.neo-theme .count-badge { min-height: 26px; border: 2px solid var(--neo-ink); border-radius: 2px; background: #fffef9; color: var(--neo-ink); font: 800 12px var(--neo-mono); }
.neo-theme .privacy-dot { background: #456f31; box-shadow: none; }
.neo-theme .note-search { margin-top: 22px; }
.neo-theme .note-search input { padding-left: 37px; }
.neo-theme .search-icon { top: 15px; border-color: var(--neo-ink); }
.neo-theme .search-icon::after { background: var(--neo-ink); }
.neo-theme .note-list { gap: 12px; padding: 3px 7px 12px 1px; margin-top: 16px; }
.neo-theme .note-item { padding: 13px; border: 2px solid var(--neo-ink); border-radius: 2px; color: var(--neo-ink); background: #fff9ed; box-shadow: 2px 2px 0 var(--neo-ink); }
.neo-theme .note-item:hover { background: var(--neo-yellow); transform: none; border-color: var(--neo-ink); }
.neo-theme .note-item.is-active { color: var(--neo-ink); background: var(--neo-yellow); border-color: var(--neo-ink); box-shadow: 3px 3px 0 var(--neo-ink); }
.neo-theme .note-item.is-active::before { display: none; }
.neo-theme .note-item strong { font-weight: 800; }
.neo-theme .note-quantity { padding: 3px 5px; border: 1px solid var(--neo-ink); border-radius: 1px; background: var(--neo-sky); color: var(--neo-ink); }
.neo-theme .trash-view-button { margin-top: auto; background: #fff9ed; }
.neo-theme .editor-card { background: #fffef9; }
.neo-theme .editor-heading { padding: 22px; border-bottom: 3px solid var(--neo-ink); background: var(--neo-sky); }
.neo-theme .editor-heading .toolbar { flex-wrap: wrap; }
.neo-theme .editor-heading .toolbar button { min-height: 38px; padding: 8px 10px; border-radius: 2px; font-size: 12px; }
.neo-theme .editor-heading h2 { font-size: 30px; }
.neo-theme .path-line > span { color: var(--neo-ink); border: 1px solid var(--neo-ink); border-radius: 1px; background: #fffef9; }
.neo-theme .editor-hint { border-bottom: 2px solid var(--neo-ink); background: #fff3c4; color: #444038; font-size: 11px; }
.neo-theme .editor-hint strong { color: var(--neo-ink); }
.neo-theme kbd { border: 1px solid var(--neo-ink); border-bottom-width: 2px; border-radius: 1px; color: var(--neo-ink); }
.neo-theme :is(#notepad-content, #shared-content) { color: #24231f; background: #fffef9; font: 14px/1.8 var(--neo-mono); }
.neo-theme #notepad-content:focus { box-shadow: inset 0 0 0 2px #e2b62c; }
.neo-theme .editor-footer { border-top: 2px solid var(--neo-ink); background: #f3eedf; font-size: 10px; }
.neo-theme .footer-stat { color: var(--neo-ink); }
.neo-theme .save-status { border: 2px solid var(--neo-ink); border-radius: 2px; background: #fffef9; color: var(--neo-ink); }
.neo-theme .save-status.is-saving { border-color: var(--neo-ink); color: var(--neo-ink); background: var(--neo-yellow); }
.neo-theme .save-status.is-saved { border-color: var(--neo-ink); color: #244323; background: var(--neo-mint); }
.neo-theme .save-status.is-error { border-color: var(--neo-ink); color: #63152a; background: var(--neo-pink); }
.neo-theme .welcome-card { background: #fff5d0; }
.neo-theme .welcome-card h2 { max-width: 490px; font-size: 38px; }
.neo-theme .welcome-card p { color: #55534e; font-size: 13px; }
.neo-theme .welcome-icon { border: 2px solid var(--neo-ink); border-radius: 2px; color: var(--neo-ink); background: var(--neo-yellow); box-shadow: 4px 4px 0 var(--neo-ink); transform: rotate(-6deg); }
.neo-theme :is(.trash-item, .empty-list, .empty-trash, .radio-option) { border: 2px solid var(--neo-ink); border-radius: 2px; background: #fff9ed; }
.neo-theme .trash-heading { border-bottom: 2px solid var(--neo-ink); }
.neo-theme .dialog-backdrop { background: rgb(24 24 24 / .6); overflow-y: auto; }
.neo-theme .dialog { max-height: calc(100dvh - 40px); overflow-y: auto; padding: 26px; }
.neo-theme .dialog h2 { font-size: 28px; }
.neo-theme .dialog :is(p, label, legend, small) { color: #4c4942; }
.neo-theme .dialog .form-error { color: #9e2039; }
.neo-theme .radio-option:has(input:checked) { border-color: var(--neo-ink); background: var(--neo-yellow); box-shadow: 2px 2px 0 var(--neo-ink); }
.neo-theme .radio-option strong { color: var(--neo-ink); }
.neo-theme .note-heading { border-bottom: 3px solid var(--neo-ink); background: var(--neo-sky); }
.neo-theme .edit-panel { border-top: 2px solid var(--neo-ink); background: #fff3c4; }
.neo-theme .lock-icon { display: inline-block; padding: 10px 18px; border: 2px solid var(--neo-ink); background: var(--neo-yellow); box-shadow: 3px 3px 0 var(--neo-ink); transform: rotate(-5deg); }
.neo-theme .share-status { color: #4c4942; }
.neo-theme .share-status.is-error { color: #9e2039; }

@media (min-width: 1181px) and (max-width: 1380px) {
  .neo-theme .editor-heading { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .neo-theme .guest-address-bar { grid-template-columns: 1fr; gap: 28px; }
  .neo-theme .guest-address-bar h1 { max-width: 700px; }
  .neo-theme .guest-address-bar > div > p:last-child { max-width: 600px; }
  .neo-theme .guest-workspace { grid-template-columns: 260px minmax(0, 1fr); }
  .neo-theme .access-gate { gap: 36px; grid-template-columns: 1fr 410px; }
}
@media (max-width: 760px) {
  .neo-theme :is(.topbar, .share-topbar) { position: static; min-height: 74px; padding: 14px 18px; flex-wrap: wrap; gap: 14px; }
  .neo-theme .brand { font-size: 18px; gap: 10px; }
  .neo-theme .brand-mark { width: 38px; height: 34px; }
  .neo-theme .brand-mark::before, .neo-theme .brand-mark::after { top: 11px; }
  .neo-theme .brand-mark::before { left: 2px; }
  .neo-theme .brand-mark::after { right: 2px; }
  .neo-theme .topbar-actions { gap: 12px; }
  .neo-theme .service-status { display: none; }
  .neo-theme :is(.app-shell, .guest-shell) { width: calc(100% - 36px); margin: 22px auto 38px; }
  .neo-theme .guest-address-bar { padding: 24px; gap: 24px; }
  .neo-theme .guest-address-bar h1 { font-size: 40px; }
  .neo-theme .guest-address-bar .address-form { padding: 18px; }
  .neo-theme .guest-workspace { display: block; }
  .neo-theme :is(.mailbox-panel, .guest-mailbox-panel) { border-right: 0; border-bottom: 3px solid var(--neo-ink); }
  .neo-theme .workspace { display: block; }
  .neo-theme .guest-mailbox-panel .privacy-note { margin-top: 22px; }
  .neo-theme .guest-address-actions { grid-template-columns: 1fr 1fr; }
  .neo-theme .inbox-toolbar { padding: 20px; }
  .neo-theme .empty-state { min-height: 300px; }
  .neo-theme .access-gate { width: calc(100% - 44px); min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 0 42px; }
  .access-intro { padding: 0; }
  .access-intro .neo-stamp { margin-bottom: 22px; }
  .neo-theme .access-intro h2 { font-size: 47px; }
  .access-intro > p { margin: 18px 0; max-width: 500px; font-size: 13px; }
  .neo-feature-list { display: none; }
  .neo-theme .access-card { padding: 26px; box-shadow: 6px 6px 0 var(--neo-ink); }
  .neo-theme .access-brand { display: none; }
  .neo-theme .section-tabs { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .neo-theme .section-tabs button { padding: 10px 7px; font-size: 12px; }
  .neo-theme .notepad-shell { padding: 18px; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .neo-theme .notes-sidebar { min-height: 0; max-height: none; padding: 18px; }
  .neo-theme .note-list { padding-bottom: 8px; }
  .neo-theme .note-item { min-width: 190px; }
  .neo-theme .trash-view-button { margin-top: 8px; }
  .neo-theme .editor-heading { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
  .neo-theme .top-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .neo-theme .save-status { order: 0; min-height: 36px; padding: 6px 8px; font-size: 10px; }
  .neo-theme .back-link { min-height: 36px; padding: 8px 10px; font-size: 11px; }
  .neo-theme .editor-hint { padding: 12px 18px; }
  .neo-theme #notepad-content { padding: 20px; }
  .neo-theme .share-shell { width: calc(100% - 36px); margin: 24px auto; }
  .neo-theme .dialog { padding: 20px; }
}
@media (max-width: 480px) {
  .neo-theme.neo-guest .brand b { display: none; }
  .neo-theme .guest-login-link { min-height: 38px; padding: 9px 10px; font-size: 11px; }
  .neo-theme .guest-address-bar { padding: 20px; }
  .neo-theme .guest-address-bar h1 { font-size: 36px; }
  .neo-theme .guest-address-bar .address-form { grid-template-columns: minmax(0, 1fr) 46px; padding: 16px; gap: 12px; }
  .neo-theme .guest-address-bar .address-form :is(input, select) { grid-column: 1 / -1; font-size: 14px; }
  .neo-theme .guest-address-bar .address-form .at-sign { display: none; }
  .neo-theme .guest-address-bar .address-form .primary-button { grid-column: 1; grid-row: auto; padding: 11px 12px; }
  .neo-theme .guest-address-bar .address-form .icon-button { grid-column: 2; grid-row: auto; width: 42px; }
  .neo-theme .address-bar { padding: 20px; }
  .neo-theme .address-bar .address-form { grid-template-columns: minmax(0, 1fr) 46px; }
  .neo-theme .address-bar .address-form :is(input, select) { grid-column: 1 / -1; }
  .neo-theme .address-bar h1 { font-size: 29px; }
  .neo-theme :is(.guest-mailbox-panel, .mailbox-panel) { padding: 20px; }
  .neo-theme .account-summary { padding: 20px; }
  .neo-theme .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neo-theme .editor-heading .toolbar { gap: 10px; }
  .neo-theme .editor-heading .toolbar button { flex: 1 1 auto; }
  .neo-theme .welcome-card { padding: 24px; }
  .neo-theme .welcome-card h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .neo-theme *, .neo-theme *::before, .neo-theme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Guest page layout: readable small text, a wider address column, and the active inbox first on phones. */
.neo-theme.neo-guest :is(.eyebrow, .last-updated, .privacy-note p, .message-row time) { font-size: 12px; }
.neo-theme.neo-guest .expiry-row span { font-size: 12px; }
.neo-theme.neo-guest .message-preview { font-size: 13px; }
.neo-theme.neo-guest .guest-workspace { grid-template-columns: 340px minmax(0, 1fr); }
.neo-theme.neo-guest #guest-address .address-domain { white-space: nowrap; }
@media (max-width: 1050px) {
  .neo-theme.neo-guest .guest-workspace { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .neo-theme.neo-guest.has-inbox .guest-shell { display: flex; flex-direction: column; }
  .neo-theme.neo-guest.has-inbox .guest-workspace { order: 1; margin-top: 0; }
  .neo-theme.neo-guest.has-inbox .guest-address-bar { order: 2; margin-top: 30px; }
  .neo-theme.neo-guest.has-inbox .guest-mailbox-panel .privacy-note { display: none; }
}
@media (max-width: 480px) {
  .neo-theme.neo-guest :is(.brand, .guest-login-link) { min-height: 44px; }
}
