/* App shell + login screen. Values copied from the decoded Claude
   Design export (login block ~L1149-1211, shell block ~L1213-1340). */

/* ---------- Login ---------- */
#login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(90% 70% at 50% 0%, var(--surface-3) 0%, var(--surface-2) 60%);
  font-family: var(--font-body);
}
.login-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.login-brand__title {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
.login-card {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--blue-500); border-radius: 16px;
  box-shadow: 0 6px 18px rgba(12,30,51,0.08); padding: 32px 32px 28px;
}
.login-step { display: flex; flex-direction: column; gap: 18px; }
.login-step__head { display: flex; flex-direction: column; gap: 6px; }
.login-step__title { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); }
.login-step__sub { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 46px; background: var(--surface); border: 1px solid #dadce0;
  border-radius: 8px; cursor: pointer; font-family: 'Roboto', var(--font-body);
  font-size: 14.5px; font-weight: 500; color: #3c4043;
  transition: background 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.google-btn:hover { background: #f8faff; box-shadow: 0 1px 3px rgba(60,64,67,0.2); }
.google-btn:active { background: #f1f3f4; }

.pin-verified { display: flex; align-items: center; gap: 8px; }
.pin-verified span { font-size: 12.5px; font-weight: 600; color: #1b7a4b; }

.pin-row { display: flex; gap: 8px; justify-content: space-between; }
.pin-cell {
  width: 100%; height: 54px; text-align: center; font-family: var(--font-display);
  font-weight: 800; font-size: 22px; color: var(--ink); background: var(--surface);
  border-radius: 10px; outline: none; caret-color: var(--blue-500);
  border: 1.5px solid var(--line); transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.pin-cell:focus { box-shadow: 0 0 0 3px rgba(44,110,209,0.18); }
.pin-cell--error { border-color: #c0392b; }

.pin-error { display: flex; align-items: center; gap: 7px; margin-top: -8px; }
.pin-error span { font-size: 13px; font-weight: 600; color: #c0392b; }

.login-footer { font-size: 12.5px; color: var(--ink-3); }

/* ---------- App shell ---------- */
#app-shell { display: flex; height: 100vh; overflow: hidden; background: var(--page); font-family: var(--font-body); color: var(--ink); }

.sidebar {
  flex: none; display: flex; flex-direction: column; background: var(--navy-800);
  border-right: 1px solid rgba(255,255,255,0.06); padding: 14px 12px; gap: 4px;
  transition: width 180ms var(--ease-out); width: 228px;
}
.sidebar.is-collapsed { width: 62px; }
.sidebar__top { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; }
.sidebar__title {
  flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #ffffff; white-space: nowrap;
}
.sidebar__toggle {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: none; border-radius: 7px;
  background: rgba(255,255,255,0.06); color: var(--steel-300); cursor: pointer;
}
.sidebar__toggle:hover { background: rgba(255,255,255,0.14); color: #ffffff; }

.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; height: 36px;
  padding: 0 9px; border: none; border-radius: 9px; font-family: var(--font-body);
  font-size: 13.5px; text-align: left; cursor: pointer; white-space: nowrap;
  overflow: hidden; transition: background 120ms var(--ease-out);
  background: transparent; color: var(--steel-300); font-weight: 500;
}
.nav-item svg { flex: none; }
.nav-item span { flex: 1; min-width: 0; }
.nav-item.is-active { background: rgba(44,110,209,0.22); box-shadow: inset 0 0 0 1px rgba(122,169,236,0.28); color: #ffffff; font-weight: 600; }
.nav-item .nav-item__tag {
  flex: none; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,0.07);
  font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel-400);
}
.sidebar__divider { height: 1px; background: rgba(255,255,255,0.09); margin: 8px 6px; }
.sidebar__spacer { flex: 1; }
.sidebar__footer { padding: 10px 10px 4px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-500); white-space: nowrap; }

.shell-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

.topbar {
  flex: none; display: flex; align-items: center; gap: 12px; height: 56px;
  padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--cloud);
}
.topbar__back { width: 28px; height: 28px; }
.topbar__title {
  flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 800;
  font-size: 15px; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.topbar__icon-btn { width: 32px; height: 32px; position: relative; }
.topbar__dropdown { position: relative; flex: none; }

.settings-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-top: 1px solid var(--line-soft); }
.settings-row:first-of-type { border-top: none; }
.settings-row > span:first-child { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); }
.settings-row span.is-muted { color: var(--ink-4); }
.settings-row .is-soon { flex: none; font-size: 11px; color: var(--ink-4); }

.switch {
  flex: none; display: inline-flex; align-items: center; width: 36px; height: 21px;
  padding: 3px; border: none; border-radius: 999px; cursor: pointer;
  transition: background 140ms var(--ease-out); background: var(--smoke);
}
.switch.is-on { background: var(--blue-500); }
.switch__knob {
  display: block; width: 15px; height: 15px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 1px 3px rgba(12,30,51,0.25); transition: transform 140ms var(--ease-out);
}
.switch.is-on .switch__knob { transform: translateX(15px); }

.bell-badge {
  position: absolute; top: -5px; right: -5px; display: inline-flex; align-items: center;
  justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: #c0392b; border: 2px solid #ffffff; font-family: var(--font-display);
  font-size: 9px; font-weight: 800; color: #ffffff;
}
.notif-row { display: flex; gap: 10px; padding: 9px; border-top: 1px solid var(--line-soft); border-radius: 8px; }
.notif-row:first-of-type { border-top: none; }
.notif-row__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3);
}
.notif-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-row__text { font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.notif-row__time { font-size: 11px; color: var(--ink-4); }
.popover-head { display: flex; align-items: center; gap: 8px; padding: 7px 9px 9px; }
.popover-head__label { flex: 1; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.popover-head__action { border: none; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--blue-500); cursor: pointer; }

.identity { display: flex; align-items: center; gap: 10px; }
.identity__avatar {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--navy-800); color: #ffffff;
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em;
}
.identity__meta { display: flex; flex-direction: column; line-height: 1.25; }
.identity__name { font-size: 13px; font-weight: 600; color: var(--ink); }
.identity__role { font-size: 11px; color: var(--ink-3); }

.shell-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 18px; }

.page-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 80px 20px; color: var(--ink-3); text-align: center; }
.page-placeholder__title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); }
