:root {
  color-scheme: dark;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    system-ui,
    sans-serif;

  --background: #000000;
  --surface: rgba(28, 28, 30, 0.82);
  --surface-strong: #1c1c1e;
  --surface-soft: #2c2c2e;
  --border: rgba(255, 255, 255, 0.08);

  --text-primary: #f5f5f7;
  --text-secondary: #98989d;
  --text-tertiary: #636366;

  --blue: #0a84ff;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;

  --radius-large: 24px;
  --radius-medium: 18px;
  --radius-small: 13px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  touch-action: manipulation;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;

  color: var(--text-primary);

  background:
    radial-gradient(
      circle at 12% -8%,
      rgba(10, 132, 255, 0.14),
      transparent 36%
    ),
    radial-gradient(
      circle at 88% 0%,
      rgba(94, 92, 230, 0.12),
      transparent 30%
    ),
    var(--background);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
  opacity: 0.42;
}

.hidden {
  display: none !important;
}

.app {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;

  padding:
    calc(env(safe-area-inset-top) + 22px)
    18px
    calc(env(safe-area-inset-bottom) + 36px);
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 22px;
}

.app-eyebrow {
  margin: 0 0 4px;

  color: var(--text-secondary);

  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-title {
  margin: 0;

  font-size: clamp(36px, 10vw, 46px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.055em;
}

.boot-screen,
.login-view {
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;

  padding:
    calc(env(safe-area-inset-top) + 22px)
    18px
    calc(env(safe-area-inset-bottom) + 36px);
}

.boot-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-card {
  display: grid;
  justify-items: center;
  gap: 14px;

  color: var(--text-secondary);

  font-size: 15px;
  font-weight: 600;
}

.boot-card p {
  margin: 0;
}

.boot-spinner {
  width: 28px;
  height: 28px;

  border: 2.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--blue);
  border-radius: 50%;

  animation: boot-spin 0.8s linear infinite;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-shell {
  display: grid;
  gap: 28px;
  align-content: start;

  padding-top: 28px;
}

.login-header {
  display: grid;
  gap: 10px;
}

.login-subtitle,
.login-footnote {
  margin: 0;

  color: var(--text-secondary);

  font-size: 15px;
  line-height: 1.45;
}

.login-footnote {
  color: var(--text-tertiary);
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 12px;

  padding: 18px 16px;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background: var(--surface);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 32px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.field-label {
  color: var(--text-secondary);

  font-size: 13px;
  font-weight: 650;
}

.password-input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);

  font-size: 17px;
  outline: none;
}

.password-input:focus {
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.form-error {
  margin: 0;

  color: var(--red);

  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.primary-button,
.logout-button {
  min-height: 48px;
  padding: 0 16px;

  border: 0;
  border-radius: 14px;

  font-size: 16px;
  font-weight: 680;
}

.primary-button {
  margin-top: 4px;

  background: var(--blue);
  color: #ffffff;
}

.primary-button:disabled {
  opacity: 0.55;
}

.logout-button {
  min-height: 34px;
  padding: 7px 13px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);

  font-size: 14px;
  font-weight: 650;
}

.nav-tabs {
  display: flex;
  gap: 8px;

  margin-bottom: 26px;
  padding: 4px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: rgba(28, 28, 30, 0.72);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-tab {
  flex: 1;

  min-height: 40px;
  padding: 8px 10px;

  border: 0;
  border-radius: 12px;

  background: transparent;
  color: var(--text-secondary);

  font-size: 14px;
  font-weight: 650;
}

.nav-tab.is-active {
  background: rgba(10, 132, 255, 0.18);
  color: var(--blue);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 8px;
}

.section-heading-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.section-header h2 {
  margin: 0;

  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-meta {
  color: var(--text-tertiary);

  font-size: 13px;
  font-weight: 600;
}

.icon-button {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;
  padding: 0;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: rgba(28, 28, 30, 0.72);
  color: var(--blue);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button.is-spinning svg {
  animation: boot-spin 0.8s linear infinite;
}

.source-meta {
  margin: 0 0 6px;

  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
}

.sync-meta {
  margin: 0 0 14px;

  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
}

.sync-meta.is-syncing {
  color: var(--text-secondary);
}

.sync-warning {
  margin: 0 0 14px;
  padding: 12px 14px;

  border: 1px solid rgba(255, 159, 10, 0.28);
  border-radius: 14px;

  background: rgba(255, 159, 10, 0.1);
}

.sync-warning strong {
  display: block;
  margin-bottom: 2px;

  color: var(--orange);

  font-size: 13px;
  font-weight: 700;
}

.sync-warning span {
  color: var(--text-secondary);

  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.detail-cache-note {
  margin: 0 0 10px;

  color: var(--orange);

  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}

.search-field {
  position: relative;

  display: flex;
  align-items: center;

  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 14px;

  width: 18px;
  height: 18px;

  color: var(--text-tertiary);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 44px 0 42px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: rgba(28, 28, 30, 0.72);
  color: var(--text-primary);

  font-size: 17px;
  outline: none;

  appearance: none;
  -webkit-appearance: none;
}

.search-field input:focus {
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.clear-search-button {
  position: absolute;
  right: 10px;

  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: var(--text-tertiary);
}

.clear-search-button svg {
  width: 22px;
  height: 22px;
}

.pull-indicator {
  display: grid;
  place-items: center;

  height: 0;
  overflow: hidden;

  color: var(--text-tertiary);

  font-size: 13px;
  font-weight: 600;

  opacity: 0;
  transition: height 0.15s ease, opacity 0.15s ease;
}

.pull-indicator.is-visible {
  height: 28px;
  margin-bottom: 8px;
  opacity: 1;
}

.pull-indicator.is-ready {
  color: var(--blue);
}

.state-card {
  display: grid;
  justify-items: center;
  gap: 14px;

  margin-bottom: 14px;
  padding: 28px 18px;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background: rgba(28, 28, 30, 0.55);

  color: var(--text-secondary);

  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.state-card p {
  margin: 0;
}

.state-card span {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.secondary-button {
  min-height: 42px;
  padding: 0 16px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);

  font-size: 15px;
  font-weight: 650;
}

.heurigen-list {
  display: grid;
  gap: 10px;
}

.heuriger-card {
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 84px;
  padding: 14px 12px 14px 14px;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background: rgba(28, 28, 30, 0.72);
  color: inherit;
  text-align: left;

  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.heuriger-card:active {
  transform: scale(0.985);
  background: rgba(44, 44, 46, 0.9);
}

.status-dot {
  flex: 0 0 auto;

  width: 10px;
  height: 10px;

  border-radius: 50%;
  background: var(--text-tertiary);
}

.status-dot.is-open {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.14);
}

.status-dot.is-soon {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.14);
}

.heuriger-card-copy {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.heuriger-card-name {
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.heuriger-card-address,
.heuriger-card-status {
  overflow: hidden;

  color: var(--text-secondary);

  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.heuriger-card-status {
  color: var(--text-tertiary);
  font-size: 13px;
}

.heuriger-card-status.is-open {
  color: var(--green);
}

.heuriger-card-status.is-soon {
  color: var(--orange);
}

.heuriger-card-chevron {
  flex: 0 0 auto;

  color: var(--text-tertiary);

  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;

  background: rgba(0, 0, 0, 0.55);

  opacity: 0;
  transition: opacity 0.22s ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.detail-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  display: flex;
  flex-direction: column;

  width: min(100%, 560px);
  max-height: calc(100svh - env(safe-area-inset-top) - 28px);
  margin: 0 auto;
  padding:
    10px
    18px
    calc(env(safe-area-inset-bottom) + 28px);

  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;

  background: #111113;

  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);

  overflow-y: auto;
  overscroll-behavior: contain;

  transform: translateY(108%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px;
  height: 5px;
  margin: 2px auto 14px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 8px;
}

.detail-title-copy {
  min-width: 0;
}

.detail-status {
  margin: 0 0 6px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.detail-status.is-open {
  color: var(--green);
}

.detail-status.is-soon {
  color: var(--orange);
}

.detail-status.is-closed {
  color: var(--text-tertiary);
}

.detail-header h2 {
  margin: 0;

  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.detail-close-button {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;
  color: rgba(255, 255, 255, 0.35);
}

.detail-close-button svg {
  width: 30px;
  height: 30px;
}

.detail-period {
  margin: 0 0 22px;

  color: var(--text-secondary);

  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
}

.detail-section {
  margin-bottom: 22px;
}

.detail-section h3 {
  margin: 0 0 10px;

  color: var(--text-secondary);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-fields {
  display: grid;
  gap: 1px;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.detail-field {
  display: grid;
  gap: 4px;

  padding: 14px 16px;

  background: rgba(28, 28, 30, 0.9);
}

.detail-field-label {
  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 650;
}

.detail-field strong {
  font-size: 16px;
  font-weight: 620;
  line-height: 1.35;
  word-break: break-word;
}

.detail-field a {
  color: var(--blue);
  text-decoration: none;
}

.period-list {
  display: grid;
  gap: 8px;
}

.period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 16px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(28, 28, 30, 0.72);
}

.period-row strong {
  font-size: 15px;
  font-weight: 650;
}

.period-row span {
  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.period-row.is-active {
  border-color: rgba(48, 209, 88, 0.28);
}

.period-row.is-active span {
  color: var(--green);
}

.period-row.is-next {
  border-color: rgba(255, 159, 10, 0.28);
}

.period-row.is-next span {
  color: var(--orange);
}

.period-empty {
  margin: 0;
  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 14px;

  color: var(--text-tertiary);

  font-size: 14px;
  font-weight: 550;
}

.detail-source {
  margin: 0 0 8px;

  color: var(--text-secondary);

  font-size: 14px;
  line-height: 1.45;
}

.detail-readonly-note {
  margin: 0;

  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

body.sheet-open {
  overflow: hidden;
}

.footer-note {
  margin-top: 28px;
}

.footer-note p {
  margin: 0;

  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.section-actions {
  display: flex;
  gap: 8px;
}

.pending-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 18px;
  padding: 14px 16px;

  border: 1px solid rgba(255, 159, 10, 0.3);
  border-radius: 16px;

  background: rgba(255, 159, 10, 0.1);
}

.pending-banner strong {
  display: block;
  margin-bottom: 2px;

  color: var(--orange);

  font-size: 14px;
  font-weight: 720;
}

.pending-banner span {
  color: var(--text-secondary);

  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.status-panel {
  margin-bottom: 18px;
  padding: 18px 16px;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background: var(--surface);
}

.status-panel-title {
  margin: 0 0 6px;

  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.status-panel-body {
  margin: 0;

  color: var(--text-secondary);

  font-size: 14px;
  line-height: 1.45;
}

.publish-preview-list,
.publish-history-list {
  display: grid;
  gap: 8px;
}

.publish-preview-row,
.publish-history-row {
  padding: 14px 16px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(28, 28, 30, 0.72);
}

.publish-preview-row {
  display: grid;
  gap: 4px;
}

.publish-preview-row strong,
.publish-history-top strong {
  font-size: 15px;
  font-weight: 680;
}

.publish-preview-row span,
.publish-history-row p {
  margin: 0;

  color: var(--text-secondary);

  font-size: 13px;
  font-weight: 500;
}

.publish-history-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 4px;
}

.publish-history-top span {
  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 600;
}

#publishButton {
  width: 100%;
}

.heuriger-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-source-badge,
.source-badge {
  flex: 0 0 auto;

  padding: 3px 8px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.card-source-badge.is-edited,
.source-badge.is-edited {
  background: rgba(255, 159, 10, 0.16);
  color: var(--orange);
}

.card-source-badge.is-custom,
.source-badge.is-custom {
  background: rgba(48, 209, 88, 0.16);
  color: var(--green);
}

.source-badge.is-municipal {
  background: rgba(10, 132, 255, 0.16);
  color: var(--blue);
}

.detail-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.dirty-badge {
  padding: 3px 8px;

  border-radius: 999px;

  background: rgba(255, 69, 58, 0.16);
  color: var(--red);

  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.editor-form {
  display: grid;
  gap: 8px;
}

.editor-field {
  display: grid;
  gap: 6px;

  margin-bottom: 10px;
  padding: 12px 14px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(28, 28, 30, 0.72);
}

.editor-field.is-overridden {
  border-color: rgba(255, 159, 10, 0.35);
  background: rgba(255, 159, 10, 0.06);
}

.editor-field.is-readonly {
  background: rgba(255, 255, 255, 0.03);
}

.editor-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.editor-field input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);

  font-size: 16px;
  outline: none;
}

.editor-field input:focus {
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.readonly-value {
  font-size: 15px;
  font-weight: 650;
  word-break: break-word;
}

.baseline-hint {
  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.reset-field-button,
.text-button {
  min-height: 28px;
  padding: 0 8px;

  border: 0;
  border-radius: 8px;

  background: rgba(10, 132, 255, 0.14);
  color: var(--blue);

  font-size: 12px;
  font-weight: 700;
}

.danger-text {
  background: rgba(255, 69, 58, 0.14);
  color: var(--red);
}

.section-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 10px;
}

.section-inline-header h3 {
  margin: 0;
}

.period-editor {
  display: grid;
  gap: 8px;
}

.period-edit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;

  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(28, 28, 30, 0.72);
}

.period-edit-row.is-overridden {
  border-color: rgba(255, 159, 10, 0.35);
}

.period-edit-row.is-added {
  border-color: rgba(48, 209, 88, 0.28);
}

.period-edit-row.is-suppressed {
  opacity: 0.55;
}

.period-origin {
  color: var(--text-tertiary);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.period-edit-row input[type="date"] {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);

  font-size: 16px;
  color-scheme: dark;
}

.period-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.superseded-notice {
  margin-top: 10px;
  padding: 12px 14px;

  border: 1px solid rgba(255, 159, 10, 0.28);
  border-radius: 14px;

  background: rgba(255, 159, 10, 0.08);
  color: var(--orange);

  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}

.editor-actions {
  display: grid;
  gap: 10px;

  margin-top: 8px;
  padding-bottom: 8px;
}

.danger-button {
  border-color: rgba(255, 69, 58, 0.28);
  color: var(--red);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  z-index: 80;

  width: min(calc(100% - 36px), 420px);
  padding: 14px 16px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: rgba(28, 28, 30, 0.94);
  color: var(--text-primary);

  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;

  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);

  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.identity-feedback {
  margin: 0 0 16px;
  padding: 12px 14px;

  border: 1px solid rgba(50, 215, 75, 0.28);
  border-radius: 14px;

  background: rgba(50, 215, 75, 0.1);
  color: var(--green);

  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.identity-review-list,
.identity-registry-list {
  display: grid;
  gap: 10px;
}

.identity-review-card,
.identity-registry-row {
  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: rgba(28, 28, 30, 0.72);
}

.identity-review-card h4,
.identity-registry-row strong {
  margin: 0 0 4px;

  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.identity-review-meta,
.identity-registry-meta {
  margin: 0 0 10px;

  color: var(--text-secondary);

  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.identity-reason {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;

  border-radius: 999px;

  background: rgba(255, 159, 10, 0.14);
  color: var(--orange);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.identity-suggestions {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.identity-suggestion {
  padding: 12px;

  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;

  background: rgba(0, 0, 0, 0.22);
}

.identity-suggestion strong {
  display: block;
  margin-bottom: 2px;

  font-size: 14px;
  font-weight: 650;
}

.identity-suggestion span {
  display: block;

  color: var(--text-secondary);

  font-size: 12px;
  line-height: 1.4;
}

.identity-suggestion-actions,
.identity-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.identity-suggestion-actions .text-button,
.identity-review-actions .text-button,
.identity-review-actions .secondary-button {
  min-height: 36px;
  padding: 0 12px;
}

.identity-aliases {
  margin: 8px 0 0;
  padding: 0;

  list-style: none;
}

.identity-aliases li {
  color: var(--text-tertiary);

  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.identity-status-pill {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.identity-status-pill.is-unlinked {
  background: rgba(255, 159, 10, 0.14);
  color: var(--orange);
}

@media (min-width: 640px) {
  .app,
  .boot-screen,
  .login-view {
    padding-top: calc(env(safe-area-inset-top) + 28px);
  }

  .detail-sheet {
    border-radius: 28px;
    margin-bottom: 18px;
    max-height: min(720px, calc(100svh - 48px));
  }

  .period-edit-row {
    grid-template-columns: 90px 1fr 1fr auto;
    align-items: center;
  }
}
