:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface2: #f0f2f8;
  --accent: #5a6cf5;
  --accent-h: #4a5ce0;
  --accent-soft: #eef0ff;
  --text: #1a1d2e;
  --text-muted: #7a7f9a;
  --border: #e4e6f0;
  --green: #22c55e;
  --red: #f05050;
  --yellow: #f59e0b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
}

/* ---- Splash ---- */
.splash {
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh;
}

/* ---- Login ---- */
.login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 24px;
}
.login-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(90,108,245,.12);
  width: 100%; max-width: 360px;
}
.logo-mark {
  font-size: 48px; font-weight: 800; letter-spacing: -2px; color: var(--text);
  display: block; margin-bottom: 8px;
}
.logo-mark em { color: var(--accent); font-style: normal; }
.tagline { color: var(--text-muted); margin-bottom: 20px; font-size: 14px; }
.login-error {
  background: #fff0f0; color: var(--red); border-radius: 8px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 20px; line-height: 1.5;
}

/* ---- Layout ---- */
.layout { display: flex; flex-direction: column; min-height: 100dvh; }

/* ---- Header ---- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 56px;
}
.logo-sm {
  font-size: 20px; font-weight: 800; letter-spacing: -1px;
  color: var(--accent); flex-shrink: 0;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav-btn {
  background: none; border: none; cursor: pointer;
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: background .15s, color .15s;
}
.nav-btn:hover { background: var(--surface2); color: var(--text); }
.nav-btn.active { background: var(--accent-soft); color: var(--accent); }
.logout-btn {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--text-muted); padding: 6px 10px;
  border-radius: 8px; transition: color .15s, background .15s; flex-shrink: 0;
}
.logout-btn:hover { color: var(--red); background: #fff0f0; }

/* ---- Main ---- */
.main { flex: 1; max-width: 680px; margin: 0 auto; width: 100%; padding: 24px 16px 48px; }

/* ---- Task Tabs ---- */
.task-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.tab {
  background: none; border: none; cursor: pointer;
  padding: 7px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: background .15s, color .15s;
}
.tab:hover { background: var(--surface2); color: var(--text); }
.tab.active { background: var(--accent); color: #fff; }

/* ---- Quick Input ---- */
.quick-input {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.quick-input input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px; font-family: inherit;
  background: var(--surface); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.quick-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90,108,245,.12);
}
.quick-input input::placeholder { color: var(--text-muted); }
.add-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; font-weight: 300;
}
.add-btn:hover { background: var(--accent-h); }

/* ---- Task List ---- */
.task-list { display: flex; flex-direction: column; gap: 2px; }
.empty { text-align: center; color: var(--text-muted); padding: 48px 0; font-size: 15px; }

/* ---- Task Item ---- */
.task-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.task-item:hover { border-color: #c8cce8; box-shadow: var(--shadow); }
.task-item.expanded { border-color: var(--accent); }

.task-main {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; min-height: 48px;
}
.checkbox {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 6px;
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s; color: #fff;
}
.checkbox:hover { border-color: var(--accent); }
.checkbox.checked { background: var(--green); border-color: var(--green); }

.task-title {
  flex: 1; font-size: 15px; font-weight: 450;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.task-item.done .task-title {
  text-decoration: line-through; color: var(--text-muted);
}

.priority {
  font-size: 11px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; flex-shrink: 0;
}
.priority-high  { background: #ffe4e4; color: #c0392b; }
.priority-medium { background: #fef3cd; color: #b45309; }
.priority-low   { background: #e8f8ee; color: #166534; }

.due-date {
  font-size: 12px; color: var(--text-muted); flex-shrink: 0;
}
.due-date.overdue { color: var(--red); font-weight: 600; }

.expand-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; flex-shrink: 0;
  display: flex; align-items: center; border-radius: 6px;
  transition: background .15s, color .15s;
}
.expand-btn:hover { background: var(--surface2); color: var(--text); }
.expand-btn svg { transition: transform .2s; }
.expand-btn svg.flipped { transform: rotate(180deg); }

/* ---- Task Details ---- */
.task-details {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: #fbfcff;
}
.detail-desc {
  width: 100%;
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; font-family: inherit;
  background: var(--surface); color: var(--text); resize: vertical; min-height: 72px;
  outline: none; transition: border-color .15s;
}
.detail-desc:focus { border-color: var(--accent); }
.detail-desc::placeholder { color: var(--text-muted); }

.detail-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.detail-select, .detail-date {
  padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text);
  outline: none; cursor: pointer; transition: border-color .15s;
}
.detail-select:focus, .detail-date:focus { border-color: var(--accent); }

.idea-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
  user-select: none;
}
.idea-toggle input { cursor: pointer; accent-color: var(--accent); width: 15px; height: 15px; }

.detail-actions { display: flex; justify-content: flex-end; }
.btn-trash {
  background: none; border: 1.5px solid var(--border); color: var(--text-muted);
  padding: 6px 14px; border-radius: 8px; font-size: 13px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.btn-trash:hover { border-color: var(--red); color: var(--red); background: #fff0f0; }

/* ---- Notes ---- */
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.note-item:hover { border-color: #c8cce8; box-shadow: var(--shadow); }

.note-text {
  font-size: 15px; white-space: pre-wrap; word-break: break-word;
  cursor: text; line-height: 1.6;
}
.note-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.note-meta span { font-size: 12px; color: var(--text-muted); }

.note-edit-area {
  width: 100%; border: 1.5px solid var(--accent); border-radius: 8px;
  padding: 10px 12px; font-size: 15px; font-family: inherit; background: var(--surface);
  color: var(--text); resize: vertical; min-height: 80px; outline: none;
}
.note-edit-actions {
  display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end;
}

.btn-save {
  background: var(--accent); color: #fff; border: none;
  padding: 7px 18px; border-radius: 8px; font-size: 13px; cursor: pointer;
  transition: background .15s;
}
.btn-save:hover { background: var(--accent-h); }

.btn-cancel {
  background: none; border: 1.5px solid var(--border); color: var(--text-muted);
  padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-cancel:hover { border-color: var(--text-muted); color: var(--text); }

.btn-trash-sm {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 2px 6px; border-radius: 6px; font-size: 14px;
  transition: color .15s, background .15s;
}
.btn-trash-sm:hover { color: var(--red); background: #fff0f0; }

/* ---- Trash ---- */
.trash-title {
  font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text-muted);
}
.trash-list { display: flex; flex-direction: column; gap: 8px; }
.trash-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.trash-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.trash-content { font-size: 15px; margin-bottom: 6px; word-break: break-word; }
.trash-meta { font-size: 12px; color: var(--red); margin-bottom: 12px; }
.trash-actions { display: flex; gap: 8px; }

.btn-restore {
  background: var(--accent-soft); color: var(--accent); border: none;
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s;
}
.btn-restore:hover { background: #dde1ff; }

.btn-delete {
  background: #fff0f0; color: var(--red); border: none;
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s;
}
.btn-delete:hover { background: #ffd7d7; }

/* ---- Event Types ---- */
.et-section { display: flex; flex-direction: column; gap: 12px; }
.et-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.et-hint { font-size: 13px; color: var(--text-muted); }
.et-hint code { background: var(--surface2); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.et-list { display: flex; flex-direction: column; gap: 6px; }
.et-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.et-inactive { opacity: .55; }

.et-row { display: flex; align-items: center; padding: 14px 16px; gap: 12px; }
.et-info { flex: 1; min-width: 0; }
.et-title { font-size: 15px; font-weight: 500; display: block; }
.et-meta  { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: block; }
.et-controls { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.toggle-btn { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: var(--surface2); color: var(--text-muted); transition: all .15s; }
.toggle-btn.on { background: #e8f8ee; color: #166534; border-color: #bbf7d0; }
.btn-edit { background: none; border: none; cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: 6px; transition: background .15s; }
.btn-edit:hover { background: var(--surface2); }

.et-form { padding: 16px; background: #fbfcff; }
.et-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 12px; }
.et-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-muted); }
.et-form-grid input { padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.et-form-grid input:focus { border-color: var(--accent); }
.et-form-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---- Working Hours ---- */
.wh-form { padding: 4px 0; }
.wh-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.wh-row { display: flex; align-items: center; gap: 10px; }
.wh-day { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; width: 48px; cursor: pointer; user-select: none; flex-shrink: 0; }
.wh-day input { accent-color: var(--accent); cursor: pointer; }
.wh-time { padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; width: 110px; }
.wh-time:focus { border-color: var(--accent); }
.wh-time:disabled { opacity: .4; cursor: not-allowed; }
.wh-sep { color: var(--text-muted); }
.wh-footer { display: flex; align-items: center; justify-content: space-between; }
.wh-tz-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }

/* ---- Bookings list ---- */
.bk-list { display: flex; flex-direction: column; gap: 8px; }
.bk-section-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 4px; }
.bk-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bk-time { font-size: 13px; color: var(--accent); font-weight: 600; }
.bk-who  { font-size: 14px; }
.bk-type { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }

/* ---- Public Booking Page ---- */
.book-wrap { min-height: 100dvh; background: var(--bg); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px 64px; }
.book-card { background: var(--surface); border-radius: 20px; box-shadow: 0 4px 32px rgba(90,108,245,.1); width: 100%; max-width: 560px; overflow: hidden; }
.book-header { padding: 32px 32px 24px; border-bottom: 1px solid var(--border); }
.book-logo { font-size: 18px; font-weight: 800; color: var(--accent); display: block; margin-bottom: 12px; }
.book-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.book-meta { font-size: 14px; color: var(--text-muted); }
.book-error { padding: 40px 32px; text-align: center; color: var(--red); }
.book-empty { padding: 32px 32px; }

.book-dates { display: flex; gap: 6px; padding: 20px 24px 0; overflow-x: auto; scrollbar-width: none; }
.book-dates::-webkit-scrollbar { display: none; }
.book-date-btn { flex-shrink: 0; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: none; cursor: pointer; font-size: 13px; font-family: inherit; white-space: nowrap; transition: all .15s; }
.book-date-btn:hover { border-color: var(--accent); color: var(--accent); }
.book-date-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.book-slots { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px; }
.book-slot-btn { padding: 10px 18px; border: 1.5px solid var(--border); border-radius: 10px; background: none; cursor: pointer; font-size: 14px; font-family: inherit; font-weight: 500; transition: all .15s; }
.book-slot-btn:hover { border-color: var(--accent); color: var(--accent); }
.book-slot-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.book-no-slots { font-size: 14px; color: var(--text-muted); padding: 8px 0; }

.book-submit-btn { display: block; width: calc(100% - 48px); margin: 16px 24px 24px; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.book-submit-btn:hover { background: var(--accent-h); }
.book-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.book-back { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 14px; padding: 20px 32px 0; display: block; }
.book-back:hover { text-decoration: underline; }

.book-form { padding: 20px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.book-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.book-label input { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; outline: none; transition: border-color .15s; }
.book-label input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90,108,245,.12); }
.book-form .book-submit-btn { width: 100%; margin: 8px 0 0; }

.book-done { padding: 48px 32px; text-align: center; }
.book-done-icon { width: 64px; height: 64px; background: #e8f8ee; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--green); margin: 0 auto 20px; }
.book-done h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.book-done-detail { font-size: 15px; color: var(--text); margin-bottom: 6px; }
.book-done-hint { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ---- Bell badge ---- */
.nav-bell { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: #fff; border-radius: 20px;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  padding: 0 4px; display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}

/* ---- Task extras ---- */
.quick-input-wrap { margin-bottom: 16px; }
.quick-input-wrap .quick-input { margin-bottom: 0; }
.task-form-toggle {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 12px; padding: 4px 0; margin-top: 4px; text-decoration: underline;
}
.task-form-extra {
  background: var(--surface); border: 1.5px solid var(--border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start;
}
.assignee-list { display: flex; flex-wrap: wrap; gap: 8px; }
.assignee-item {
  display: flex; align-items: center; gap: 5px; font-size: 13px;
  cursor: pointer; user-select: none;
}
.assignee-item input { accent-color: var(--accent); cursor: pointer; }
.task-project {
  font-size: 11px; background: var(--accent-soft); color: var(--accent);
  padding: 2px 7px; border-radius: 20px; flex-shrink: 0;
}
.task-assignee {
  font-size: 11px; background: #f0f8ff; color: #2563eb;
  padding: 2px 7px; border-radius: 20px; flex-shrink: 0; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-filter {
  display: block; margin-bottom: 12px;
  padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text);
  outline: none; cursor: pointer;
}
.proj-filter:focus { border-color: var(--accent); }

/* ---- Projects ---- */
.proj-section { max-width: 560px; }
.proj-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.proj-title { font-size: 18px; font-weight: 700; }
.proj-form { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.proj-form-inline { display: flex; gap: 8px; align-items: center; padding: 8px 14px; }
.proj-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s;
}
.proj-input:focus { border-color: var(--accent); }
.proj-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.proj-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.proj-item-archived { opacity: .55; }
.proj-name { flex: 1; font-size: 15px; font-weight: 500; }
.proj-controls { display: flex; gap: 8px; align-items: center; }
.proj-archived-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin: 8px 0 6px; }

/* ---- Notification Banner ---- */
.notif-banner {
  background: var(--accent-soft);
  border: 1px solid #d0d5f8;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-banner-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}
.notif-banner-link:hover { color: var(--accent-h); }

/* ---- Notifications View ---- */
.notif-section { max-width: 480px; }
.notif-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.notif-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.notif-row { display: flex; align-items: center; gap: 14px; }
.notif-icon { font-size: 28px; line-height: 1; }
.notif-info { flex: 1; }
.notif-label { font-size: 15px; font-weight: 600; }
.notif-status { font-size: 14px; margin-top: 3px; color: var(--text-muted); }
.notif-status.connected { color: var(--green); font-weight: 500; }
.notif-connect-btn { flex-shrink: 0; }
.notif-hint {
  font-size: 13px; color: var(--text-muted);
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border); line-height: 1.6;
}
.notif-tg-types { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.notif-tg-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.notif-type-row {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  cursor: pointer; user-select: none; padding: 4px 0;
}
.notif-type-row input { accent-color: var(--accent); cursor: pointer; }
.notif-subtitle { font-size: 15px; font-weight: 600; color: var(--text-muted); margin: 20px 0 10px; }
.notif-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.notif-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  transition: border-color .15s, background .15s; position: relative;
}
.notif-item:hover { border-color: #c8cce8; }
.notif-item.unread { background: var(--accent-soft); border-color: #c8d0ff; }
.notif-item-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 14px; font-weight: 500; }
.notif-item-text { font-size: 13px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0; margin-top: 6px;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .login-card { padding: 40px 24px; }
  .header-inner { padding: 0 12px; }
  .main { padding: 16px 12px 40px; }
  .detail-row { flex-direction: column; align-items: flex-start; }
}
