:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f7;
  --color-border: #e2e2e2;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-black: #111111;
  --color-danger: #b3261e;
  --color-danger-bg: #fdecea;
  --color-success: #1e7a34;
  --color-success-bg: #e9f7ee;
  --radius: 6px;
  --max-width: 720px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--color-black);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px 64px;
}

.container.wide {
  max-width: 980px;
}

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 16px;
  background: var(--color-bg);
}

.site-header:not(.hero) {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* The banner image carries no baked-in brand text (see hero-background-clean):
   the brand shown on it comes from the branding settings. */
.site-header.hero {
  border-bottom: none;
  padding: 0;
  height: clamp(120px, 22vw, 220px);
  background-image: url("/static/images/hero-background-clean.png");
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
  background-color: #0c1220;
}

.page-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-row.wide {
  max-width: 980px;
}

h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

h2 {
  font-size: 16px;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

p.lead {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 0;
}

.notification-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 8px;
}

.notification-email-edit {
  margin-top: 8px;
  max-width: 360px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-black);
  outline-offset: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--color-black);
  background: var(--color-black);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  min-height: 46px;
  line-height: 1.2;
}

.btn:hover {
  opacity: 0.85;
}

.btn.secondary {
  background: #fff;
  color: var(--color-black);
}

.btn.danger {
  background: #fff;
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn.block {
  width: 100%;
}

.btn.small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}

.alert.error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid #f3c8c5;
}

.alert.success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid #bfe6c9;
}

.alert.info {
  background: #eef1f4;
  color: #33404d;
  border: 1px solid #d8dee5;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 12px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #eee;
  color: #333;
  white-space: nowrap;
}

.badge.status-active { background: #e9f7ee; color: var(--color-success); }
.badge.status-inactive { background: #f2f2f2; color: #888; }
.badge.priority-required { background: #fdecea; color: var(--color-danger); }
.badge.priority-preferred { background: #eef3fd; color: #1a4fb3; }
.badge.priority-designer_choice { background: #f2f2f2; color: #555; }
.badge.rstatus-pending { background: #f2f2f2; color: #555; }
.badge.rstatus-working { background: #eef3fd; color: #1a4fb3; }
.badge.rstatus-completed { background: #e9f7ee; color: var(--color-success); }
.badge.rstatus-not_possible { background: #fdecea; color: var(--color-danger); }
.badge.rstatus-recheck_requested { background: #fff6e0; color: #8a6a00; }
.badge.rstatus-needs_discussion { background: #fdecea; color: #8a2f2f; }

.fee-details {
  margin-top: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.fee-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.pin-input {
  letter-spacing: 0.4em;
  font-size: 24px;
  text-align: center;
}

/* Audio player */
.player {
  background: var(--color-black);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 16px;
}

.player .version-label {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 10px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  font-size: 18px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seek-bar {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #555;
  outline: none;
}

.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.seek-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #ccc;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.add-mark-btn {
  margin-top: 14px;
  width: 100%;
}

/* Revision list */
.revision-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}

.revision-item .rev-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.revision-item .rev-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.revision-item .rev-text {
  font-size: 14px;
  margin: 6px 0;
  white-space: pre-wrap;
}

.revision-item .rev-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.revision-item .rev-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.rev-attachments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.rev-attachments-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.rev-attachment-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}

.rev-attachment-comment {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Version comparison */
.compare-root {
  margin-bottom: 16px;
}

.compare-toolbar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.compare-toolbar .hint {
  margin: 6px 0 10px;
}

.ab-switch .btn {
  flex: 1;
}

.compare-columns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .compare-columns {
    flex-direction: row;
  }
  .compare-columns .compare-col {
    flex: 1;
    min-width: 0;
  }
}

.compare-col {
  background: var(--color-black);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 14px;
}

.compare-col .player-controls {
  margin-top: 8px;
}

.compare-col .play-btn.small {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.compare-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-col-head .version-label {
  font-size: 12px;
  color: #bbb;
}

.now-playing {
  font-size: 12px;
  color: #ddd;
  margin-top: 8px;
}

.compare-col .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: #666;
}

.compare-mute-btn {
  margin-top: 12px;
  width: 100%;
}

#compare-error {
  margin-bottom: 12px;
}

.waveform-wrap {
  margin: 10px 0 4px;
}

.waveform-canvas {
  width: 100%;
  height: 56px;
  display: block;
  cursor: pointer;
  background: #1a1a1a;
  border-radius: 4px;
}

.waveform-status {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 18px 0;
  background: #1a1a1a;
  border-radius: 4px;
}

.waveform-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #999;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.ai-polish-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ai-polish-btn {
  color: #3a3a6e;
  border-color: #d6d6ec;
  background: #f5f5fb;
}

.ai-polish-btn:disabled {
  opacity: 0.6;
}

#ai-polish-hint {
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  padding: 32px 16px;
  font-size: 14px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: var(--max-width);
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
  }
  .modal {
    border-radius: 12px;
    max-height: 80vh;
  }
}

.radio-group label, .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  padding: 8px 0;
  cursor: pointer;
}

.radio-group input, .checkbox-group input {
  margin-top: 3px;
}

.radio-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Priority cards (3-column grid, PC and mobile alike) */
.priority-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.priority-card {
  min-width: 0;
  display: block;
  cursor: pointer;
  padding: 0;
}

.priority-card-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.priority-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border: 2px solid #d8d8d8;
  border-radius: var(--radius);
  padding: 16px 10px;
  background: #fff;
  min-height: 100px;
  justify-content: center;
}

.priority-card-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #999;
  flex-shrink: 0;
  position: relative;
}

.priority-card-title {
  font-size: 14px;
  font-weight: 700;
}

.priority-card-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  /* break at Japanese phrase boundaries (no lone trailing kana) */
  word-break: auto-phrase;
  text-wrap: balance;
}

.priority-card.is-selected .priority-card-body {
  border-color: var(--color-black);
  background: #f2f2f2;
}

.priority-card.is-selected .priority-card-radio-dot {
  border-color: var(--color-black);
}

.priority-card.is-selected .priority-card-radio-dot::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-black);
}

.priority-card.is-selected .priority-card-title::after {
  content: " ✓";
}

@media (max-width: 420px) {
  .priority-cards {
    gap: 8px;
  }
  .priority-card-body {
    padding: 10px 4px;
    min-height: 88px;
    gap: 6px;
  }
  .priority-card-title {
    font-size: 12px;
  }
  .priority-card-desc {
    font-size: 10px;
    line-height: 1.35;
  }
  .priority-card-radio-dot {
    width: 14px;
    height: 14px;
  }
}

/* Attachment slots */
.attachment-slot {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fafafa;
}

.attachment-slot-file {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.attachment-slot-size {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 12px;
}

.attachment-comment-input {
  margin-top: 8px;
  min-height: 44px;
  font-size: 13px;
}

.attachment-remove-btn {
  margin-top: 8px;
}

.attachment-slot input[type="file"] {
  width: 100%;
  font-size: 13px;
  padding: 8px 0;
}

.rev-attachments-readonly {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
}

.rev-attachment-readonly-row {
  margin-bottom: 8px;
}

.rev-attachment-readonly-row audio {
  width: 100%;
  height: 32px;
  margin-top: 4px;
}

.rev-status-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.rev-producer-comment {
  margin-top: 8px;
  font-size: 13px;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 8px 10px;
  line-height: 1.6;
}

.rev-client-confirm {
  margin-top: 10px;
}

.rev-client-confirm .btn-row {
  margin-top: 6px;
}

.rev-fee-block {
  margin-top: 10px;
  background: #fff4e5;
  border: 1px solid #f0d9b5;
  border-radius: var(--radius);
  padding: 12px 14px;
}

.rev-fee-title {
  font-size: 13px;
  font-weight: 700;
  color: #8a5a00;
}

.rev-fee-amount {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.rev-fee-reason {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav .links a {
  font-size: 13px;
  margin-left: 14px;
  text-decoration: none;
  color: var(--color-text-muted);
}

.status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.copy-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.copy-box input {
  flex: 1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.summary-grid .stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}

.summary-grid .stat .num {
  font-size: 20px;
  font-weight: 700;
  display: block;
}

.summary-grid .stat .label {
  font-size: 11px;
  color: var(--color-text-muted);
}

a.summary-grid .stat, .summary-grid a.stat {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.summary-grid a.stat:hover {
  border-color: var(--color-text-muted);
}

.workflow-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.rev-seek-btn {
  margin-top: 8px;
  margin-right: 8px;
}

footer.app-footer {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  padding: 24px 16px;
}

.notify-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  cursor: pointer;
}

.notify-toggle-row:last-child {
  border-bottom: none;
}

.notify-toggle-row input[type="checkbox"] {
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.read-status {
  font-size: 12px;
  margin-top: 4px;
}

.read-status.confirmed {
  color: var(--color-success, #2a7a3a);
}

.read-status.unconfirmed {
  color: var(--color-text-muted, #888);
}

/* ---- Brand: logo / name / subtitle (rendered by templates/partials/brand.html) ---- */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-context {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.header-left:has(.brand-lockup) .header-context {
  padding-left: 14px;
  border-left: 1px solid var(--color-border);
}

.brand-lockup {
  --brand-logo-h: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.brand-lockup.brand-size-small { --brand-logo-h: 28px; }
.brand-lockup.brand-size-large { --brand-logo-h: 48px; }

.brand-logo-wrap {
  display: inline-flex;
  flex: 0 0 auto;
}

/* Aspect ratio is always preserved (circular logo stays circular). */
.brand-logo {
  display: block;
  height: var(--brand-logo-h);
  width: auto;
  max-width: calc(var(--brand-logo-h) * 4);
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.brand-lockup:hover .brand-name {
  opacity: 0.85;
}

/* Light surface: the white admin header. */
.brand-surface-light {
  color: var(--color-black);
}

.brand-surface-light .brand-subtitle {
  color: var(--color-text-muted);
}

/* Dark surface: the hero banner. The logo has a transparent background with
   mid-grey strokes, so it sits on a soft light disc to stay legible. */
.brand-surface-dark {
  padding: 5px 18px 5px 14px;
  color: #f3f6fb;
  background: rgba(10, 16, 30, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.brand-surface-dark.has-logo {
  padding-left: 5px;
}

.brand-surface-dark .brand-logo-wrap {
  padding: 3px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
}

.brand-surface-dark .brand-subtitle {
  color: rgba(232, 238, 248, 0.78);
}

.hero-brand-row {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 16px;
}

.hero-brand-row.brand-pos-center { justify-content: center; }
.hero-brand-row.brand-pos-right { justify-content: flex-end; }

@media (max-width: 480px) {
  .brand-lockup { --brand-logo-h: 30px; gap: 8px; }
  .brand-lockup.brand-size-small { --brand-logo-h: 24px; }
  .brand-lockup.brand-size-large { --brand-logo-h: 36px; }
  .brand-name { font-size: 15px; }
  .brand-subtitle { font-size: 9.5px; }
  .hero-brand-row { padding: 10px 12px; }
  .header-left { gap: 10px; }
  .header-left:has(.brand-lockup) .header-context { padding-left: 10px; }
  .brand-surface-light .brand-subtitle { display: none; }
}

/* ---- Brand settings screen ---- */
.brand-preview-box {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.brand-preview-label {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.brand-preview-stage {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
}

.brand-preview-stage.light { background: #ffffff; }

.brand-preview-stage.dark {
  background: #0c1220 url("/static/images/hero-background-clean.png") left top / cover no-repeat;
}

.brand-preview-stage.brand-pos-center { justify-content: center; }
.brand-preview-stage.brand-pos-right { justify-content: flex-end; }

.brand-preview-off {
  font-size: 12px;
  color: var(--color-text-muted);
}

.brand-preview-stage.dark .brand-preview-off {
  color: rgba(255, 255, 255, 0.7);
}

.brand-current-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.brand-current-logo img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px;
}

.brand-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  column-gap: 24px;
}

/* Admin header: the nav links never wrap or shrink, so the brand side is the
   one that gives way (and only at very narrow widths). */
.site-header .links {
  flex-shrink: 0;
  white-space: nowrap;
}

.top-nav .links .header-user,
.top-nav .links .header-logout {
  margin-left: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.top-nav .links .header-logout {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 480px) {
  .top-nav .links a,
  .top-nav .links .header-user,
  .top-nav .links .header-logout {
    margin-left: 10px;
  }
}
