/* ============ Tokens ============ */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --border: #e3e6ef;
  --text: #1a1d29;
  --text-muted: #666d80;
  --text-faint: #949bad;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --info: #0284c7;
  --info-soft: #f0f9ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ============ Layout ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 236px;
  flex: 0 0 236px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: grid; place-items: center; font-size: 19px;
}
.brand-text strong { display: block; font-size: 14.5px; }
.brand-text span { font-size: 11.5px; color: var(--text-faint); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-faint); padding: 0 10px 6px; font-weight: 600;
}
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-muted); font-weight: 500;
  transition: background .12s, color .12s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a .ico { width: 19px; text-align: center; font-size: 15px; }
.nav a .badge-count {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px;
}

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sidebar-foot .foot-note { font-size: 11.5px; color: var(--text-faint); padding: 0 10px; }
.sidebar-foot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--ok); margin-right: 6px; }

.who {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; text-align: left;
}
.who:hover { background: var(--surface-2); }
.who-avatar {
  width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px;
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700;
}
.who-name { font-weight: 600; font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-switch { font-size: 11.5px; color: var(--primary); font-weight: 600; }

.lbl-short { display: none; }

.main { flex: 1; min-width: 0; padding: 24px 28px 60px; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h1 { font-size: 22px; }
.page-head p { margin: 3px 0 0; color: var(--text-muted); font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #4338ca; border-color: #4338ca; }
.btn-danger { color: var(--danger); border-color: #f3c9c9; background: var(--danger-soft); }
.btn-danger:hover { background: #fde8e8; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn-icon { padding: 6px 8px; }

/* ============ Cards & grid ============ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.card-head {
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--text-faint); font-weight: 400; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ============ Stat tiles ============ */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.stat .k { font-size: 11.5px; color: var(--text-muted); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.stat.is-danger .v { color: var(--danger); }
.stat.is-warn .v { color: var(--warn); }
.stat.is-ok .v { color: var(--ok); }

/* ============ Student cards ============ */
.student-card { overflow: hidden; display: flex; flex-direction: column; }
.student-top {
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.avatar {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 42px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px;
}
.avatar-sm { width: 26px; height: 26px; border-radius: 8px; flex-basis: 26px; font-size: 11px; }
.student-top .name { font-weight: 650; font-size: 15px; }
.student-top .meta { font-size: 12px; color: var(--text-faint); }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.mini-stats div { padding: 11px 8px; text-align: center; border-right: 1px solid var(--border); }
.mini-stats div:last-child { border-right: 0; }
.mini-stats .n { font-size: 19px; font-weight: 700; }
.mini-stats .l { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.mini-stats .n.danger { color: var(--danger); }
.mini-stats .n.warn { color: var(--warn); }
.mini-stats .n.ok { color: var(--ok); }

.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--ok); transition: width .3s; }

.student-body { padding: 14px 18px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.section-mini { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 6px; }

/* ============ Assignment items ============ */
.task {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .12s, background .12s;
}
.task + .task { margin-top: 8px; }
.task:hover { border-color: #cdd3e4; }
.task.overdue { border-color: #f5cccc; background: var(--danger-soft); }
.task.due_today { border-color: #f6e0b5; background: var(--warn-soft); }
.task.done { background: var(--surface-2); border-color: var(--border); }
.task.done .task-title { text-decoration: line-through; color: var(--text-faint); }

.check {
  appearance: none; -webkit-appearance: none;
  width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px;
  border: 1.8px solid #c3c9da; border-radius: 6px; cursor: pointer;
  background: var(--surface); transition: all .12s; position: relative;
}
.check:hover { border-color: var(--primary); }
.check:checked { background: var(--ok); border-color: var(--ok); }
.check:checked::after {
  content: ""; position: absolute; left: 5.5px; top: 2px;
  width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 550; word-break: break-word; }
.task-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 5px; font-size: 11.5px; color: var(--text-faint); }
.task-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.task:hover .task-actions, .task:focus-within .task-actions { opacity: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 550;
  background: var(--surface-2); color: var(--text-muted);
}
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip .swatch { width: 8px; height: 8px; border-radius: 99px; }

/* ============ Session cards ============ */
.session {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.session + .session { margin-top: 12px; }
.session-head {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  border-left: 4px solid var(--primary); background: var(--surface);
}
.session.today .session-head { background: var(--info-soft); }
.session-head .title { font-weight: 600; }
.session-head .when { font-size: 12.5px; color: var(--text-muted); }
.session-body { padding: 12px 16px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }

.day-group-head {
  display: flex; align-items: baseline; gap: 9px;
  margin: 22px 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--border);
}
.day-group-head strong { font-size: 14px; }
.day-group-head span { font-size: 12px; color: var(--text-faint); }
.day-group-head .today-pill {
  background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 650;
  padding: 1px 8px; border-radius: 99px;
}

/* ============ Week grid ============ */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); min-height: 108px; padding: 8px;
}
.week-day.today { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.week-day h4 { font-size: 11.5px; color: var(--text-muted); margin-bottom: 7px; }
.week-day.today h4 { color: var(--primary); }
.week-slot {
  font-size: 11.5px; padding: 5px 7px; border-radius: 7px; margin-bottom: 5px;
  background: var(--surface-2); border-left: 3px solid var(--primary); cursor: pointer;
}
.week-slot:hover { background: #e8ecf7; }
.week-slot .s-name { font-weight: 600; display: block; line-height: 1.3; }
.week-slot .s-time { color: var(--text-faint); font-size: 10.5px; }

/* ============ Forms ============ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.field .hint { font-size: 11.5px; color: var(--text-faint); font-weight: 400; margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.textarea { min-height: 76px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.switch input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

.slot-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(17, 20, 32, .45);
  display: grid; place-items: center; padding: 20px; z-index: 60;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--surface); border-radius: 18px; width: min(560px, 100%);
  max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px -16px rgba(16, 24, 40, .35);
  animation: pop .16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 9px; justify-content: flex-end; }
.modal-wide { width: min(720px, 100%); }

/* ============ Toast ============ */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 9px; z-index: 90; }
.toast {
  background: #1c2030; color: #fff; padding: 11px 15px; border-radius: 11px;
  font-size: 13px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.5); max-width: 380px;
  animation: slide .18s ease-out;
}
@keyframes slide { from { opacity: 0; transform: translateX(14px); } }
.toast.error { background: #b91c1c; }
.toast.ok { background: #047857; }

/* ============ Misc ============ */
.empty { text-align: center; padding: 34px 18px; color: var(--text-faint); }
.empty .ico { font-size: 30px; display: block; margin-bottom: 8px; opacity: .65; }
.empty p { margin: 0 0 12px; font-size: 13px; }

.filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 7px;
  font-size: 12.5px; font-weight: 550; color: var(--text-muted); cursor: pointer;
}
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.1); }

.notify-preview {
  background: #11141f; color: #dfe3ee; border-radius: var(--radius-sm);
  padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; white-space: pre-wrap; line-height: 1.6; max-height: 320px; overflow: auto;
}
.log-item { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.log-item:last-child { border-bottom: 0; }

.trend { display: flex; align-items: flex-end; gap: 5px; height: 90px; padding-top: 6px; }
.trend-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; }
.trend-col .bars { display: flex; flex-direction: column-reverse; gap: 2px; }
.trend-col i { display: block; border-radius: 3px 3px 0 0; min-height: 2px; }
.trend-col i.done { background: var(--ok); }
.trend-col i.missed { background: var(--danger); }
.trend-col i.open { background: #cbd2e4; }
.trend-label { font-size: 9.5px; color: var(--text-faint); text-align: center; margin-top: 4px; }

.loading { padding: 40px; text-align: center; color: var(--text-faint); }

/* ============ Màn hình "Bạn là ai?" ============ */
.picker-backdrop {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: 24px calc(24px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
  background: linear-gradient(160deg, #6366f1, #a855f7 55%, #ec4899);
  overflow-y: auto;
}
.picker {
  background: var(--surface); border-radius: 22px; padding: 28px 26px 24px;
  width: min(520px, 100%); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45);
  animation: pop .2s ease-out;
}
.picker-head { text-align: center; margin-bottom: 22px; }
.picker-logo {
  width: 54px; height: 54px; border-radius: 17px; margin: 0 auto 12px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: grid; place-items: center; font-size: 27px;
}
.picker-head h2 { font-size: 21px; margin-bottom: 6px; }
.picker-head p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.picker-group + .picker-group { margin-top: 18px; }
.picker-group-label {
  font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-faint); margin-bottom: 9px;
}
.picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; }
.picker-card {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 16px 10px; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; transition: border-color .12s, transform .08s, box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
}
.picker-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px -8px rgba(79, 70, 229, .5); }
.picker-card:active { transform: scale(.97); }
.picker-avatar {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 17px;
}
.picker-name { font-weight: 600; font-size: 13.5px; text-align: center; line-height: 1.25; }
.picker-foot { margin-top: 18px; text-align: center; }

/* ============ Thiết bị cảm ứng ============ */
@media (hover: none) {
  .task-actions { opacity: 1; }
  .check { width: 24px; height: 24px; flex-basis: 24px; border-radius: 7px; }
  .check:checked::after { left: 7.5px; top: 3.5px; width: 5px; height: 11px; }
  .btn { padding: 10px 15px; }
  .btn-sm { padding: 8px 12px; }
  /* iOS tự phóng to trang khi ô nhập có cỡ chữ < 16px */
  .input, .select, .textarea { font-size: 16px; }
}

/* ============ Điện thoại / máy tính bảng dọc ============ */
@media (max-width: 900px) {
  .app { flex-direction: column; }

  /* Thanh điều hướng chuyển xuống đáy màn hình cho vừa tầm ngón tay */
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    width: 100%; flex-basis: auto; height: auto; z-index: 50;
    flex-direction: row; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px -12px rgba(16, 24, 40, .3);
  }
  .brand, .nav-label, .sidebar-foot .foot-note, .lbl { display: none; }
  .lbl-short { display: block; }

  .nav { flex-direction: row; gap: 0; flex: 1; }
  .nav a {
    flex: 1; flex-direction: column; gap: 3px; padding: 7px 2px;
    font-size: 10.5px; text-align: center; position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .nav a .ico { font-size: 19px; width: auto; }
  .nav a.active { background: transparent; }
  .nav a .badge-count { position: absolute; top: 2px; right: 50%; margin-right: -22px; }

  .sidebar-foot { margin: 0; flex: 0 0 auto; justify-content: center; }
  .who { border: 0; padding: 7px 8px; background: transparent; flex-direction: column; gap: 3px; }
  .who-name, .who-switch { display: none; }
  .who-avatar { width: 26px; height: 26px; flex-basis: 26px; }

  .main {
    padding: 16px 14px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    padding-left: calc(14px + env(safe-area-inset-left));
    padding-right: calc(14px + env(safe-area-inset-right));
  }

  .page-head h1 { font-size: 19px; }
  .page-head { margin-bottom: 16px; }
  .stat .v { font-size: 22px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .week { gap: 6px; }
  .week-day { min-height: 88px; padding: 6px; }
  .week-slot { font-size: 10.5px; padding: 4px 5px; }
  .field-row { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: 1fr 1fr; }
  .modal { border-radius: 18px 18px 0 0; width: 100%; max-height: 92vh; align-self: flex-end; }
  .modal-backdrop { padding: 0; place-items: end center; }
  .modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .picker { padding: 24px 18px 20px; }
  .picker-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); right: 12px; left: 12px; }
  .toast { max-width: none; }
}

/* Màn hình hẹp: lưới tuần xếp dọc cho dễ đọc */
@media (max-width: 640px) {
  .week { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
  .stat-row { gap: 9px; }
}

/* Khi chạy như ứng dụng trên iPhone/iPad (đã thêm vào màn hình chính) */
@media (display-mode: standalone) {
  body { overscroll-behavior-y: contain; }
}

/* ============ Đăng nhập ============ */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 26px 26px;
}

.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.login-brand .brand-text { display: flex; flex-direction: column; }
.login-brand .brand-text strong { font-size: 16px; }
.login-brand .brand-text span { font-size: 12px; color: var(--text-muted); }

.login-submit { width: 100%; justify-content: center; margin-top: 4px; }

.login-error {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid #f3c9c9;
  color: var(--danger);
  font-size: 12.5px;
}

.signout { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 900px) { .signout { display: none; } }
