:root { --bg:#EEF1EE; --surface:#fff; --ink:#16211D; --ink-soft:#4B5750; --line:#DCE1DB; --amber:#C98A1F; --amber-soft:#F6E6C8; --teal:#2F6F5E; --teal-soft:#DCEAE4; --slate:#3C5A8A; --slate-soft:#DDE5F1; --red:#B4472F; --radius:14px; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--bg); font-family:"IBM Plex Sans",sans-serif; font-size:16px; line-height:1.45; }
button,input,select,textarea { font:inherit; } button { cursor:pointer; } button:disabled { cursor:not-allowed; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid var(--slate); outline-offset:2px; }
.topbar { min-height:76px; display:flex; align-items:center; gap:28px; padding:12px max(24px, calc((100vw - 1220px) / 2)); border-bottom:1px solid var(--line); background:rgba(255,255,255,.75); }
.brand { color:var(--ink); text-decoration:none; font:600 25px/1 "Fraunces",serif; letter-spacing:-.8px; white-space:nowrap; }.brand-mark { display:inline-grid; place-items:center; width:29px; height:29px; margin-right:7px; color:#fff; background:var(--teal); border-radius:9px; font-size:19px; }
.tabs { display:flex; gap:3px; padding:4px; border:1px solid var(--line); background:var(--surface); border-radius:999px; }.tab { padding:7px 14px; color:var(--ink-soft); border:0; border-radius:999px; background:transparent; font-size:14px; font-weight:600; }.tab:hover { background:var(--bg); }.tab.is-active { background:var(--ink); color:#fff; }
.utility-actions { margin-left:auto; display:flex; align-items:center; gap:12px; }
.identity { display:flex; align-items:center; gap:8px; color:var(--ink-soft); font-size:13px; white-space:nowrap; }.identity input { width:132px; padding:6px 2px; border:0; border-bottom:1px solid var(--ink-soft); background:transparent; color:var(--ink); font-family:"IBM Plex Mono",monospace; font-size:13px; }.identity input::placeholder { color:#849087; }
.logout-button { padding:9px 12px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); font-size:13px; font-weight:600; }
.auth-screen { min-height:100vh; display:grid; place-items:center; padding:32px 20px; background:linear-gradient(135deg, #eef4f1 0%, #f9f8f3 100%); }
.auth-card { width:min(500px, 100%); max-height:min(90vh, 760px); overflow-y:auto; padding:32px 28px 28px; border:1px solid var(--line); border-radius:22px; background:rgba(255,255,255,.88); box-shadow:0 26px 60px rgba(22,33,29,.08); }
.auth-card h1 { margin:0 0 10px; font:600 clamp(30px,5vw,42px)/1.04 "Fraunces",serif; letter-spacing:-1.3px; }
.auth-eyebrow { margin-bottom:9px; }
.auth-subtitle { margin:0 0 20px; color:var(--ink-soft); font-size:14.5px; }
.auth-switch { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:18px; padding:5px; border:1px solid var(--line); border-radius:999px; background:#f7f9f7; }
.auth-tab { padding:9px 12px; border:0; border-radius:999px; background:transparent; color:var(--ink-soft); font-size:14px; font-weight:600; }
.auth-tab.is-active { background:var(--ink); color:#fff; }
.auth-form { display:grid; gap:13px; }
.auth-form label { display:grid; gap:5px; color:var(--ink-soft); font-size:13px; font-weight:600; }
.auth-form input { width:100%; padding:9px 12px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); font-size:14px; }
.auth-row-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:480px) { .auth-row-grid { grid-template-columns:1fr; } }
.auth-button { width:100%; margin-top:6px; }

/* Google OAuth & Auth divider styling */
.google-auth-section { margin-bottom: 12px; position: relative; }
.google-auth-btn, button.google-auth-btn, .button.google-auth-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #ffffff !important; color: #1f2937 !important; border: 1px solid #d1d5db !important; border-radius: 9px; padding: 10px 14px; font-size: 14px; font-weight: 600; transition: all 0.15s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.06); cursor: pointer; }
.google-auth-btn:hover, button.google-auth-btn:hover, .button.google-auth-btn:hover { background: #f9fafb !important; border-color: #9ca3af !important; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.g-signin-slot { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 44px; }
.g-signin-slot iframe { margin: 0 auto !important; }
.google-svg { flex-shrink: 0; }
.auth-divider { display: flex; align-items: center; text-align: center; margin: 14px 0 12px; color: var(--ink-soft); font-size: 11.5px; font-family: "IBM Plex Mono", monospace; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--line); }
.auth-divider span { padding: 0 10px; }
.google-verified-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--teal-soft); border: 1px solid var(--teal); border-radius: 8px; margin-bottom: 14px; }
.google-verified-badge { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.google-verified-info { flex: 1; font-size: 12px; line-height: 1.35; color: var(--ink); }
.google-verified-info strong { display: block; font-size: 12.5px; }
.google-verified-info span { color: var(--teal); font-family: "IBM Plex Mono", monospace; }
.google-unlink-btn { background: transparent; border: 0; color: var(--ink-soft); font-size: 11.5px; text-decoration: underline; cursor: pointer; padding: 0; }
.google-unlink-btn:hover { color: var(--red); }
.auth-row-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .auth-row-three { grid-template-columns: 1fr; } }

/* Dialog Backdrop & Base Modal */
dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}
dialog:not([open]) {
  display: none !important;
}

/* Google Auth Modal (Responsive, Authentic, Never Trapped) */
.google-auth-dialog {
  width: min(450px, calc(100vw - 32px));
  max-height: 90vh;
  margin: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
}
.google-modal-inner { padding: 24px 22px 20px; }
.google-modal-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; position: relative; }
.google-modal-titles { flex: 1; min-width: 0; }
.google-modal-header h3 { font: 600 19px "Fraunces", serif; margin: 0 0 3px; letter-spacing: -0.4px; }
.google-modal-sub { margin: 0; font-size: 13px; color: var(--ink-soft); }
.google-modal-header .icon-button { margin-left: auto; background: transparent; border: 0; font-size: 22px; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.google-modal-header .icon-button:hover { background: var(--bg); color: var(--ink); }

.google-accounts-list { display: grid; gap: 9px; margin-bottom: 14px; }
.google-account-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); width: 100%; text-align: left; cursor: pointer; transition: all 0.15s ease; }
.google-account-item:hover { background: var(--bg); border-color: var(--slate); transform: translateX(2px); }
.google-avatar-circle { width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.google-account-meta { flex: 1; min-width: 0; }
.google-account-meta strong { display: block; font-size: 13.5px; color: var(--ink); }
.google-account-meta span { font-size: 12px; color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; }
.google-verify-tag { font: 600 10.5px "IBM Plex Mono", monospace; color: var(--teal); background: var(--teal-soft); padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }

.google-setup-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.google-setup-info { margin: 0 0 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.google-input-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.google-config-row { display: flex; gap: 8px; }
.google-config-row input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 12px; font-family: "IBM Plex Mono", monospace; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.google-config-row button { padding: 8px 14px; font-size: 12.5px; white-space: nowrap; }
.google-config-status { display: block; margin-top: 6px; font-size: 11px; font-family: "IBM Plex Mono", monospace; color: var(--teal); }

.google-steps-box { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-soft); }
.google-steps-title { margin: 0 0 6px; color: var(--ink); }
.google-steps-list { margin: 0; padding-left: 18px; line-height: 1.5; }
.google-steps-list li { margin-bottom: 3px; }
.google-steps-list a { color: var(--slate); font-weight: 600; }

.google-custom-divider { display: flex; align-items: center; text-align: center; margin: 12px 0; color: var(--ink-soft); font-size: 10.5px; font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.05em; }
.google-custom-divider::before, .google-custom-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--line); }
.google-custom-divider span { padding: 0 8px; }

.google-demo-fallback-box { margin-bottom: 10px; }
.google-demo-note { margin: 0 0 8px; font-size: 11.5px; color: var(--ink-soft); }

.google-security-notice { margin: 12px 0 0; font-size: 11px; line-height: 1.4; color: var(--ink-soft); text-align: center; }

/* GitHub Badge on Profile Card */
.profile-social-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.profile-social-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 500 11.5px "IBM Plex Mono", monospace; text-decoration: none; border: 1px solid var(--line); transition: all 0.12s ease; }
.profile-social-pill.github { background: #24292e; color: #ffffff; border-color: #24292e; }
.profile-social-pill.github:hover { background: #000000; border-color: #000000; }
.profile-social-pill.leetcode { background: #FFF4E5; color: #FFA116; border-color: #FFE0B2; }
.profile-social-pill.leetcode:hover { background: #FFE0B2; }
.profile-social-pill.gfg { background: #E8F5E9; color: #2E7D32; border-color: #C8E6C9; }
.profile-social-pill.gfg:hover { background: #C8E6C9; }
.profile-verified-google-badge { font: 600 10px "IBM Plex Mono", monospace; color: var(--teal); background: var(--teal-soft); border: 1px solid var(--teal); padding: 2px 7px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 6px; }

.app-shell { width:min(1160px, calc(100% - 48px)); margin:0 auto; padding:52px 0 72px; }.panel[hidden] { display:none; }.section-intro { max-width:670px; margin-bottom:30px; }.eyebrow { margin:0 0 6px; color:var(--ink-soft); font-family:"IBM Plex Mono",monospace; font-size:11px; font-weight:500; letter-spacing:.09em; text-transform:uppercase; }.section-intro h1 { margin:0 0 9px; font:600 clamp(34px,5vw,53px)/1.02 "Fraunces",serif; letter-spacing:-1.9px; }.section-intro p:not(.eyebrow) { margin:0; color:var(--ink-soft); font-size:17px; }
.card,.horizon-card { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }.horizon-card { min-height:232px; padding:23px 25px 20px; }.card { padding:22px 24px; }.card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }.card-heading h2 { margin:0; font:600 22px/1.1 "Fraunces",serif; letter-spacing:-.55px; }.data-note,.unit { color:var(--ink-soft); font:400 11px "IBM Plex Mono",monospace; }.text-action { padding:0; border:0; background:transparent; color:var(--slate); font-size:13px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }.text-action:hover { color:var(--ink); }.count-badge { display:inline-grid; min-width:22px; place-items:center; padding:2px 6px; border-radius:999px; color:#805512; background:var(--amber-soft); vertical-align:2px; font:500 11px "IBM Plex Mono",monospace; }.count-badge.slate { color:var(--slate); background:var(--slate-soft); }
.profile-heading,.profile-identity,.profile-stats { display:flex; align-items:center; }.profile-heading { justify-content:space-between; gap:18px; }.profile-card-actions { display:flex; align-items:center; gap:14px; }.profile-identity { gap:16px; min-width:0; }.profile-avatar { flex:0 0 68px; width:68px; height:68px; overflow:hidden; display:grid; place-items:center; border:1px solid var(--teal); border-radius:50%; color:var(--teal); background:var(--teal-soft); font:600 22px "Fraunces",serif; }.profile-avatar img { width:100%; height:100%; object-fit:cover; }.profile-avatar-large { width:88px; height:88px; flex-basis:88px; }.profile-initials { line-height:1; }.profile-heading h2 { margin:0; font:600 27px/1.05 "Fraunces",serif; letter-spacing:-.6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.profile-email { margin:5px 0 0; color:var(--ink-soft); font:400 12px "IBM Plex Mono",monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.profile-status,.profile-label { color:var(--ink-soft); font:500 10px "IBM Plex Mono",monospace; text-transform:uppercase; letter-spacing:.06em; }.profile-status { padding:5px 8px; border-radius:999px; color:var(--teal); background:var(--teal-soft); white-space:nowrap; }.profile-details { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:22px 0 19px; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }.profile-details div { min-width:0; }.profile-label { display:block; margin-bottom:4px; }.profile-details strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }.profile-stats { gap:0; justify-content:space-between; }.profile-stats div { display:grid; gap:2px; min-width:0; }.profile-stats strong { font:600 20px "IBM Plex Mono",monospace; }.profile-stats span { color:var(--ink-soft); font-size:11px; }
.profile-photo-editor { display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:16px; margin-bottom:20px; }.profile-upload { display:grid; gap:6px; color:var(--ink-soft); font-size:13px; font-weight:600; }.profile-upload input { width:100%; padding:8px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); font-size:13px; }.profile-upload-note { grid-column:2; margin:5px 0 0; color:var(--ink-soft); font-size:12px; }.profile-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.profile-form-grid label { display:grid; gap:6px; color:var(--ink-soft); font-size:13px; font-weight:600; }.profile-form-grid input { width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); }.profile-course-field { grid-column:1 / -1; }
.dashboard-columns { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:20px; }.compact-list { min-height:106px; }.list-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--line); }.list-row:first-child { border-top:0; padding-top:0; }.list-primary { min-width:0; font-weight:600; }.list-primary span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.list-meta { margin-top:2px; color:var(--ink-soft); font:400 11px "IBM Plex Mono",monospace; }.status-word { color:var(--teal); font:500 11px "IBM Plex Mono",monospace; white-space:nowrap; }.empty-state { display:grid; place-items:center; min-height:95px; padding:18px; color:var(--ink-soft); background:#f8faf8; border:1px dashed var(--line); border-radius:9px; text-align:center; font-size:14px; }
.platform-row { margin-top:20px; }
.platform-card { display:flex; flex-direction:column; }
.platform-form,.leetcode-form,.gfg-form { display:flex; align-items:end; gap:12px; }
.platform-form label,.leetcode-form label,.gfg-form label { flex:1; display:grid; gap:6px; color:var(--ink-soft); font-size:13px; font-weight:600; }
.platform-form input,.leetcode-form input,.gfg-form input { width:100%; padding:9px 10px; color:var(--ink); border:1px solid var(--line); border-radius:7px; background:#fff; }
.leetcode-status,.gfg-status { margin-top:18px; flex:1; display:flex; flex-direction:column; justify-content:center; }
.leetcode-image,.gfg-image,.gfg-card-svg { display:block; width:100%; max-width:100%; height:auto; border:1px solid var(--line); border-radius:9px; background:#fff; }
.loading-spinner { display:inline-block; width:15px; height:15px; border:2px solid var(--teal); border-top-color:transparent; border-radius:50%; animation:spin 0.75s linear infinite; vertical-align:middle; margin-right:8px; }
@keyframes spin { to { transform:rotate(360deg); } }
.form-card { padding-bottom:25px; }.form-grid { display:grid; grid-template-columns:1.35fr .65fr .7fr .65fr 1.1fr auto; gap:13px; align-items:end; }.form-grid label,.offer-form label,dialog label { display:block; color:var(--ink-soft); font-size:13px; font-weight:600; }.form-grid input,.form-grid select,.offer-form select,dialog textarea { width:100%; margin-top:6px; padding:9px 10px; color:var(--ink); border:1px solid var(--line); border-radius:7px; background:#fff; }.form-grid fieldset { min-height:69px; margin:0; padding:0; border:0; }.form-grid legend { margin-bottom:8px; color:var(--ink-soft); font-size:13px; font-weight:600; }.radio-label { display:inline-flex!important; align-items:center; gap:5px; margin-right:12px; color:var(--ink)!important; font-size:13px!important; font-weight:400!important; }.radio-label input { width:auto; margin:0; }.form-submit { padding-bottom:0; }.button { padding:10px 14px; border:1px solid var(--teal); border-radius:7px; color:#fff; background:var(--teal); font-size:14px; font-weight:600; }.button:hover { filter:brightness(.91); }.slate-button { border-color:var(--slate); background:var(--slate); }.secondary-button { color:var(--ink); border-color:var(--line); background:#fff; }
.table-card { margin-top:20px; }.table-wrap { overflow-x:auto; }.data-table { width:100%; border-collapse:collapse; text-align:left; }.data-table th { padding:0 11px 10px; color:var(--ink-soft); border-bottom:1px solid var(--line); font:500 10px "IBM Plex Mono",monospace; letter-spacing:.06em; text-transform:uppercase; }.data-table td { padding:13px 11px; border-bottom:1px solid var(--line); font-size:14px; }.data-table th:first-child,.data-table td:first-child { padding-left:0; }.data-table th:last-child,.data-table td:last-child { padding-right:0; }.data-table tr:last-child td { border-bottom:0; }.mono { font-family:"IBM Plex Mono",monospace; font-size:12px!important; }.topic-cell { font-weight:600; }.pill { display:inline-block; padding:3px 7px; border-radius:999px; font:500 10px "IBM Plex Mono",monospace; text-transform:capitalize; }.pill.easy,.pill.done { color:var(--teal); background:var(--teal-soft); }.pill.medium,.pill.confirmed { color:#805512; background:var(--amber-soft); }.pill.hard,.pill.cancelled { color:var(--red); background:#f5dfda; }.due-date { color:var(--amber); font-weight:600; }.table-button { padding:5px 8px; border:1px solid var(--line); border-radius:5px; color:var(--slate); background:#fff; font-size:12px; font-weight:600; }.table-button:hover:not(:disabled) { background:var(--slate-soft); }.table-button:disabled,.table-button.is-disabled { opacity:.55; cursor:not-allowed; background:#f2f4f2; color:#849087; border-color:#dce1db; }
.tag-pill { display:inline-block; padding:2px 7px; border-radius:6px; font:600 10.5px "IBM Plex Mono",monospace; letter-spacing:.04em; text-transform:uppercase; border:1px solid transparent; }
.tag-dsa { background:var(--teal-soft); color:var(--teal); border-color:#b8d6cb; }
.tag-dbms { background:var(--slate-soft); color:var(--slate); border-color:#bacbde; }
.tag-cn { background:var(--amber-soft); color:#805512; border-color:#e5ce9f; }
.tag-os { background:#efe8fa; color:#6932b0; border-color:#d6c2f2; }
body.theme-dark .tag-dsa { background:#1e4033; color:#68c49a; border-color:#2f5948; }
body.theme-dark .tag-dbms { background:#263750; color:#8eafe4; border-color:#385075; }
body.theme-dark .tag-cn { background:#4a3820; color:#e7b653; border-color:#6e532c; }
body.theme-dark .tag-os { background:#3b2456; color:#c5a0f5; border-color:#583482; }
.offer-section { margin-bottom:20px; }.offer-toggle { padding:10px 14px; color:var(--slate); border:1px solid #b9c8dc; border-radius:8px; background:var(--slate-soft); font-size:14px; font-weight:600; transition:all .15s ease; }.offer-toggle:hover { border-color:var(--slate); background:#d0ddec; }
.offer-form { display:grid; gap:14px; margin-top:12px; padding:18px; border:1px solid #cdd8e8; border-radius:12px; background:var(--slate-soft); }
.offer-form-main { display:grid; grid-template-columns:130px 140px 120px 1.5fr auto; gap:12px; align-items:end; }
.offer-form label { display:block; color:var(--ink-soft); font-size:13px; font-weight:600; }
.offer-form select,.offer-form input { width:100%; margin-top:5px; padding:9px 10px; color:var(--ink); border:1px solid #b9c8dc; border-radius:7px; background:#fff; font-size:14px; }
.offer-form input[type="time"] { font-family:"IBM Plex Mono",monospace; }
.offer-submit-col { padding-bottom:0; }
.quick-time-presets { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding-top:10px; border-top:1px dashed #cad6e6; }
.preset-label { color:var(--ink-soft); font:500 11px "IBM Plex Mono",monospace; text-transform:uppercase; letter-spacing:.05em; }
.preset-chips { display:flex; gap:6px; flex-wrap:wrap; }
.chip-button { padding:4px 9px; border:1px solid #b9c8dc; border-radius:999px; background:#fff; color:var(--slate); font:500 11px "IBM Plex Mono",monospace; transition:all .12s ease; }
.chip-button:hover { background:var(--slate); color:#fff; border-color:var(--slate); }

.grid-card { padding:22px 0 0; overflow:hidden; }.grid-card .card-heading { padding:0 24px; }.schedule-scroll { overflow-x:auto; }
.schedule-grid { display:grid; grid-template-columns:105px repeat(7,minmax(118px,1fr)); min-width:890px; border-top:1px solid var(--line); }
.grid-header,.time-label,.slot-cell { min-height:74px; padding:8px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); box-sizing:border-box; }
.grid-header { display:grid; place-items:center; color:var(--ink-soft); background:#fafbfa; font:600 12px "IBM Plex Mono",monospace; }
.time-label { display:flex; flex-direction:column; justify-content:center; padding:8px 10px; color:var(--ink); background:#f7faf8; font-size:12px; }
.time-display { font-weight:600; font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--ink); }
.time-24h { font-size:10px; font-family:"IBM Plex Mono",monospace; color:var(--ink-soft); }

.slot-cell { display:flex; flex-direction:column; justify-content:space-between; border-top:0; border-left:0; color:var(--ink-soft); background:#fff; font-size:12px; position:relative; transition:background .15s ease; }
.slot-cell-multi { justify-content:flex-start; gap:6px; padding:6px; overflow-y:auto; }
.slot-offer { display:flex; flex-direction:column; justify-content:space-between; min-height:62px; padding:6px; border:1px solid var(--line); border-radius:6px; color:var(--ink-soft); background:#fff; }
.slot-offer.is-open { background:var(--slate-soft); border-color:#b9c8dc; }.slot-offer.is-mine { background:var(--teal-soft); border-color:#b8d6cb; }.slot-offer.is-booked-mine { background:#fbf2e3; border-color:#e5ce9f; }.slot-offer.is-booked { background:#edf0ed; border-color:var(--line); }
.slot-cell.is-empty { width:100%; border:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#a3b0a7; }
.slot-cell.is-empty:hover { background:#f4f7f4; color:var(--slate); border-color:var(--line); }
.empty-plus { font-size:17px; line-height:1; font-weight:600; }
.empty-hint { font:500 10px "IBM Plex Mono",monospace; text-transform:uppercase; letter-spacing:.04em; opacity:0; transition:opacity .15s ease; }
.slot-cell.is-empty:hover .empty-hint { opacity:1; }

.slot-cell.is-open { background:var(--slate-soft); border-left:3px solid var(--slate); }
.slot-cell.is-mine { background:var(--teal-soft); border-left:3px solid var(--teal); }
.slot-cell.is-booked-mine { background:#fbf2e3; border-left:3px solid var(--amber); }
.slot-cell.is-booked { background:#edf0ed; color:#7d8982; }

.slot-cell-header { display:flex; align-items:flex-start; justify-content:space-between; gap:4px; width:100%; }
.slot-host { font-weight:600; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); }
.slot-badge-mine { font:600 10px "IBM Plex Mono",monospace; color:var(--teal); text-transform:uppercase; }
.slot-badge-booked { font:600 10px "IBM Plex Mono",monospace; color:#805512; text-transform:uppercase; }
.slot-duration-pill { font:500 9px "IBM Plex Mono",monospace; padding:1px 4px; border-radius:4px; background:rgba(0,0,0,.06); color:var(--ink-soft); flex-shrink:0; }
.slot-topic-badge { font-size:10px; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:2px; }
.slot-peer { font-size:11px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); }
.slot-role-tag { font:500 10px "IBM Plex Mono",monospace; color:var(--ink-soft); }
.slot-taken-label { font:500 11px "IBM Plex Mono",monospace; color:#7d8982; }

.slot-action-btn { width:100%; padding:3px 6px; border-radius:5px; font-size:11px; font-weight:600; text-align:center; transition:all .12s ease; margin-top:4px; }
.slot-action-btn.book-btn { border:1px solid var(--slate); background:var(--slate); color:#fff; }
.slot-action-btn.book-btn:hover { background:#2a4570; border-color:#2a4570; }
.slot-action-btn.remove-btn { border:1px solid #dca69a; background:#fff; color:var(--red); font-size:10px; padding:2px 4px; }
.slot-action-btn.remove-btn:hover { background:#f5dfda; border-color:var(--red); }
.topic-sub { display:block; font-size:11px; color:var(--ink-soft); margin-top:2px; font-family:"IBM Plex Sans",sans-serif; }

.grid-corner { background:#fafbfa; }
dialog { width:min(500px, calc(100% - 30px)); border:1px solid var(--line); border-radius:14px; color:var(--ink); box-shadow:0 20px 60px rgba(22,33,29,.2); }dialog::backdrop { background:rgba(22,33,29,.36); }.dialog-heading { display:flex; justify-content:space-between; align-items:start; margin-bottom:20px; }.dialog-heading h2 { margin:0; font:600 27px/1 "Fraunces",serif; }.icon-button { width:30px; height:30px; padding:0; border:0; border-radius:50%; background:var(--bg); color:var(--ink); font-size:22px; line-height:1; }.sliders { display:grid; gap:16px; margin-bottom:20px; }.sliders label { display:grid; grid-template-columns:1fr 28px; align-items:center; color:var(--ink); }.sliders output { text-align:right; color:var(--slate); font-family:"IBM Plex Mono",monospace; }.sliders input { grid-column:1 / -1; width:100%; accent-color:var(--slate); }.optional { color:var(--ink-soft); font-weight:400; }.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }.toast { position:fixed; z-index:5; left:50%; bottom:24px; max-width:min(500px,calc(100% - 32px)); padding:11px 15px; color:#fff; background:var(--ink); border-radius:8px; box-shadow:0 5px 25px rgba(0,0,0,.16); opacity:0; transform:translate(-50%,12px); pointer-events:none; transition:opacity .2s,transform .2s; font-size:14px; }.toast.is-visible { opacity:1; transform:translate(-50%,0); }
.reject-button { margin-left:4px; color:var(--red); }.reject-button:hover { border-color:#dfb5ac; background:#f5dfda; }
.feedback-summary { display:grid; gap:4px; min-width:140px; }.feedback-comment { color:var(--ink-soft); font-size:12px; line-height:1.35; white-space:pre-wrap; }
@media (max-width:900px) { .topbar { flex-wrap:wrap; gap:12px 20px; }.identity { margin-left:auto; }.form-grid { grid-template-columns:1fr 1fr; }.form-submit { grid-column:span 2; }.form-submit .button { width:100%; }.dashboard-columns { gap:14px; }.offer-form-main { grid-template-columns:1fr 1fr; }.offer-submit-col { grid-column:span 2; }.offer-submit-col .button { width:100%; } }
@media (max-width:720px) { .topbar { padding:12px 20px; }.tabs { order:3; width:100%; }.tab { flex:1; }.identity { margin-left:auto; }.app-shell { width:min(100% - 32px, 1160px); padding-top:38px; }.dashboard-columns { grid-template-columns:1fr; }.horizon-card,.card { padding-left:17px; padding-right:17px; }.profile-heading { align-items:flex-start; }.profile-card-actions { align-items:flex-end; flex-direction:column; gap:8px; }.profile-status { display:none; }.profile-details { grid-template-columns:1fr; gap:11px; margin:18px 0 16px; }.profile-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:13px 18px; }.profile-photo-editor { grid-template-columns:1fr; justify-items:start; }.profile-upload-note { grid-column:auto; }.profile-form-grid { grid-template-columns:1fr; }.profile-course-field { grid-column:auto; }.form-grid { grid-template-columns:1fr; }.form-submit { grid-column:auto; }.platform-form,.leetcode-form,.gfg-form { align-items:stretch; flex-direction:column; }.platform-form .button,.leetcode-form .button,.gfg-form .button { width:100%; }.leetcode-image,.gfg-image,.gfg-card-svg { min-height:130px; }.table-card { padding-left:17px; padding-right:17px; }.data-table { min-width:600px; }.offer-form-main { grid-template-columns:1fr; }.offer-form-main label,.offer-form-main .button { width:100%; }.grid-card { padding-left:0; padding-right:0; }.grid-card .card-heading { padding-left:17px; padding-right:17px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; } }

body.theme-dark { --bg:#111815; --surface:#1B2521; --ink:#F1F5F2; --ink-soft:#AAB8B0; --line:#34433C; --amber:#E7B653; --amber-soft:#4A3820; --teal:#68C49A; --teal-soft:#1E4033; --slate:#8EAFE4; --slate-soft:#263750; --red:#ED8067; color-scheme:dark; }
body.theme-dark .topbar { background:rgba(27,37,33,.92); }
body.theme-dark .tabs,.theme-dark .logout-button,.theme-dark .auth-card,.theme-dark .auth-switch { background:var(--surface); }
body.theme-dark .tab:hover { background:#26332D; }
body.theme-dark .tab.is-active,.theme-dark .auth-tab.is-active { background:var(--ink); color:#111815; }
body.theme-dark .identity input { border-color:var(--ink-soft); }
body.theme-dark .logout-button,.theme-dark .auth-card,.theme-dark .auth-form input,.theme-dark .profile-upload input,.theme-dark .profile-form-grid input { color:var(--ink); border-color:var(--line); }
body.theme-dark .logout-button:hover { background:#26332D; border-color:var(--ink-soft); }
body.theme-dark .auth-screen { background:linear-gradient(135deg,#16231E 0%,#111815 100%); }
body.theme-dark .auth-card { background:rgba(27,37,33,.94); box-shadow:0 26px 60px rgba(0,0,0,.28); }
body.theme-dark .auth-switch { background:#202C27; }
body.theme-dark input,body.theme-dark select,body.theme-dark textarea { color:var(--ink); background:#202B26; border-color:var(--line); }
body.theme-dark input::placeholder,body.theme-dark textarea::placeholder { color:#819188; }
body.theme-dark .empty-state { background:#18221E; }
body.theme-dark .horizon-card,body.theme-dark .card { background:var(--surface); }
body.theme-dark .profile-status,.theme-dark .count-badge,.theme-dark .count-badge.slate { color:var(--ink); }
body.theme-dark .leetcode-image { background:#111815; filter:brightness(.82) contrast(1.08); }
body.theme-dark .gfg-card-svg,.theme-dark .gfg-image { background:#1B2521; }
body.theme-dark .secondary-button,.theme-dark .table-button,.theme-dark .chip-button { color:var(--ink); background:#202B26; border-color:var(--line); }
body.theme-dark .secondary-button:hover { background:#2A3932; border-color:var(--ink-soft); }
body.theme-dark .table-button:hover:not(:disabled),body.theme-dark .chip-button:hover { background:var(--slate); color:#111815; border-color:var(--slate); }
body.theme-dark .table-button.reject-button:hover { background:#3F231D; color:var(--red); border-color:#6E3023; }
body.theme-dark .offer-toggle { background:var(--slate-soft); color:var(--slate); border-color:#3C5272; }
body.theme-dark .offer-toggle:hover { background:#30435F; border-color:var(--slate); }
body.theme-dark .offer-form { background:#202F47; border-color:#405678; }
body.theme-dark .offer-form select,body.theme-dark .offer-form input,.theme-dark .chip-button { background:#202B26; }
body.theme-dark .quick-time-presets { border-color:#405678; }
body.theme-dark .grid-header,body.theme-dark .time-label { background:#202B26; }
body.theme-dark .slot-cell,body.theme-dark .slot-cell.is-empty { background:#18221E; }
body.theme-dark .slot-cell.is-empty:hover { background:#26332D; }
body.theme-dark .slot-cell.is-open { background:#263750; }
body.theme-dark .slot-cell.is-open:hover { background:#334A6C; }
body.theme-dark .slot-cell.is-mine { background:var(--teal-soft); }
body.theme-dark .slot-cell.is-booked { background:#29332F; }
body.theme-dark dialog { background:var(--surface); }
body.theme-dark .icon-button { background:#26332D; color:var(--ink); }
body.theme-dark .icon-button:hover { background:#33433B; }
body.theme-dark .text-action:hover { color:var(--teal); }
body.theme-dark .toast { background:#F1F5F2; color:#111815; }
.theme-toggle { width:38px; height:38px; padding:0; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; color:var(--ink); background:var(--surface); font-size:18px; line-height:1; }
.theme-toggle:hover { background:var(--bg); }
body.theme-dark .theme-toggle:hover { background:#26332D; border-color:var(--ink-soft); }
@media (max-width:720px) { .theme-toggle { width:34px; height:34px; font-size:16px; } }

/* Landing page styles */
.landing-screen { min-height:100vh; display:flex; flex-direction:column; background:var(--bg); }
.landing-nav { position:sticky; top:0; z-index:40; background:rgba(238,241,238,.88); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.landing-nav-inner { width:min(1200px, calc(100% - 48px)); margin:0 auto; min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.landing-menu { display:flex; align-items:center; gap:26px; }
.landing-nav-link { color:var(--ink-soft); text-decoration:none; font-size:14px; font-weight:600; transition:color .15s ease; }
.landing-nav-link:hover { color:var(--teal); }
.landing-nav-actions { display:flex; align-items:center; gap:10px; }
.landing-guest-actions,.landing-user-actions { display:flex; align-items:center; gap:10px; }
.landing-btn { padding:8px 16px; font-size:13.5px; font-weight:600; border-radius:999px; }
.landing-primary-btn { background:var(--teal); border-color:var(--teal); color:#fff; }
.landing-primary-btn:hover { background:#24584b; }

.landing-hero { width:min(1200px, calc(100% - 48px)); margin:0 auto; padding:64px 0 76px; display:grid; grid-template-columns:1.12fr .88fr; gap:48px; align-items:center; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; padding:5px 14px; border-radius:999px; background:var(--teal-soft); color:var(--teal); font:600 11.5px "IBM Plex Mono",monospace; letter-spacing:.05em; text-transform:uppercase; margin-bottom:18px; }
.hero-badge-dot { width:7px; height:7px; border-radius:50%; background:var(--teal); }
.hero-title { margin:0 0 18px; font:700 clamp(38px,5vw,58px)/1.04 "Fraunces",serif; letter-spacing:-1.8px; color:var(--ink); }
.hero-highlight { color:var(--teal); background:linear-gradient(135deg, var(--teal) 0%, var(--slate) 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.hero-subtitle { margin:0 0 28px; font-size:17.5px; line-height:1.55; color:var(--ink-soft); max-width:540px; }
.hero-cta-group { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:30px; }
.hero-cta-btn { padding:13px 22px; font-size:15px; font-weight:600; border-radius:10px; transition:transform .15s ease, box-shadow .15s ease; }
.hero-cta-btn:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(47,111,94,.18); }
.hero-primary { background:var(--teal); color:#fff; border-color:var(--teal); }
.hero-primary:hover { background:#24584b; }
.hero-secondary { background:var(--surface); color:var(--ink); border-color:var(--line); }
.hero-secondary:hover { background:#f5f7f5; }

.hero-metrics-pills { display:grid; grid-template-columns:1fr 1fr; gap:10px; max-width:540px; }
.metric-pill { display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); font-size:12.5px; }
.metric-pill strong { color:var(--ink); font-weight:600; }
.metric-pill span { color:var(--ink-soft); font-size:11.5px; }
.pill-icon { font-size:15px; }

.hero-showcase-wrapper { position:relative; }
.showcase-card { border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:0 24px 60px rgba(22,33,29,.09); overflow:hidden; }
.showcase-header { display:flex; align-items:center; justify-content:space-between; padding:12px 18px; background:#f7faf8; border-bottom:1px solid var(--line); }
.showcase-dots { display:flex; gap:6px; }
.showcase-dots .dot { width:10px; height:10px; border-radius:50%; }
.dot.red { background:#ff5f56; } .dot.yellow { background:#ffbd2e; } .dot.green { background:#27c93f; }
.showcase-title-bar { font:500 11px "IBM Plex Mono",monospace; color:var(--ink-soft); }
.showcase-status-badge { font:600 10px "IBM Plex Mono",monospace; color:var(--teal); background:var(--teal-soft); padding:3px 8px; border-radius:999px; }
.showcase-grid { padding:18px; display:grid; gap:14px; }
.showcase-widget { border:1px solid var(--line); border-radius:12px; padding:13px 15px; background:#fbfdfb; }
.widget-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; }
.widget-head h4 { margin:2px 0 0; font:600 14.5px "Fraunces",serif; color:var(--ink); letter-spacing:-.3px; }
.widget-pill { font:600 10px "IBM Plex Mono",monospace; padding:3px 7px; border-radius:999px; background:var(--amber-soft); color:#805512; }
.widget-pill.slate { background:var(--slate-soft); color:var(--slate); }
.mock-bars { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; align-items:end; height:68px; padding-top:8px; }
.mock-bar-col { display:flex; flex-direction:column; align-items:center; gap:4px; height:100%; justify-content:flex-end; }
.mock-bar-col span { font:500 9.5px "IBM Plex Mono",monospace; color:var(--ink-soft); }
.mock-bar { width:100%; border-radius:4px 4px 0 0; background:var(--slate-soft); border:1px solid #c8d7e9; }
.mock-bar.b1 { height:35%; } .mock-bar.b2 { height:92%; background:var(--teal); border-color:var(--teal); }
.mock-bar.b3 { height:50%; } .mock-bar.b4 { height:75%; } .mock-bar.b5 { height:28%; } .mock-bar.b6 { height:60%; } .mock-bar.b7 { height:42%; }
.mock-bar-col.is-today span { font-weight:700; color:var(--teal); }

.mock-platform-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mock-platform-item { display:flex; align-items:center; gap:10px; padding:10px; border-radius:9px; background:var(--surface); border:1px solid var(--line); }
.platform-logo { width:32px; height:32px; border-radius:8px; display:grid; place-items:center; font:700 11px "IBM Plex Mono",monospace; }
.platform-logo.leet { background:#FFF4E5; color:#FFA116; border:1px solid #FFE0B2; }
.platform-logo.gfg { background:#E8F5E9; color:#2E7D32; border:1px solid #C8E6C9; }
.platform-meta { display:flex; flex-direction:column; font-size:12px; }
.platform-meta strong { color:var(--ink); font-size:13px; font-weight:600; }
.platform-meta span { color:var(--ink-soft); font-size:11px; }

.landing-section { width:min(1200px, calc(100% - 48px)); margin:0 auto; padding:76px 0; }
.landing-section.alt-bg { width:100%; background:rgba(0,0,0,.025); padding:76px max(24px, calc((100vw - 1200px)/2)); }
.section-header-center { text-align:center; max-width:680px; margin:0 auto 44px; }
.section-header-center h2 { font:600 clamp(28px,4vw,40px)/1.15 "Fraunces",serif; letter-spacing:-1.2px; margin:6px 0 12px; color:var(--ink); }
.section-lead { font-size:16px; color:var(--ink-soft); line-height:1.55; margin:0; }

.features-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:22px; }
.feature-card { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:28px 24px; display:flex; flex-direction:column; transition:transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform:translateY(-4px); box-shadow:0 16px 36px rgba(22,33,29,.07); }
.feature-icon-bubble { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:22px; margin-bottom:18px; }
.feature-icon-bubble.teal { background:var(--teal-soft); color:var(--teal); }
.feature-icon-bubble.slate { background:var(--slate-soft); color:var(--slate); }
.feature-icon-bubble.amber { background:var(--amber-soft); color:var(--amber); }
.feature-icon-bubble.purple { background:#EFE8FA; color:#7B44C4; }
.feature-card h3 { font:600 20px "Fraunces",serif; letter-spacing:-.4px; margin:0 0 10px; color:var(--ink); }
.feature-card p { color:var(--ink-soft); font-size:14px; line-height:1.55; margin:0 0 18px; flex:1; }
.feature-tag { align-self:flex-start; padding:4px 10px; border-radius:999px; font:500 11px "IBM Plex Mono",monospace; color:var(--ink-soft); background:var(--bg); border:1px solid var(--line); }

.workflow-steps { display:flex; align-items:stretch; justify-content:space-between; gap:16px; }
.workflow-step { flex:1; padding:24px 20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); text-align:center; }
.step-number { font:700 28px "Fraunces",serif; color:var(--teal); margin-bottom:10px; }
.workflow-step h4 { font:600 18px "Fraunces",serif; margin:0 0 8px; color:var(--ink); }
.workflow-step p { font-size:13.5px; color:var(--ink-soft); margin:0; line-height:1.5; }
.workflow-connector { align-self:center; font-size:24px; color:var(--line); font-weight:700; }

.landing-cta-banner { width:min(1200px, calc(100% - 48px)); margin:20px auto 72px; padding:52px 36px; border-radius:24px; background:linear-gradient(135deg, #1B352E 0%, #16211D 100%); color:#fff; text-align:center; box-shadow:0 24px 60px rgba(22,33,29,.15); }
.cta-banner-inner h2 { font:600 clamp(26px,4vw,38px)/1.15 "Fraunces",serif; margin:0 0 12px; color:#fff; letter-spacing:-.8px; }
.cta-banner-inner p { color:#D2DCD6; font-size:16px; max-width:560px; margin:0 auto 28px; }
.cta-banner-actions { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }

.landing-footer { border-top:1px solid var(--line); padding:48px max(24px, calc((100vw - 1200px)/2)) 28px; background:var(--surface); }
.footer-inner { display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; margin-bottom:28px; }
.footer-brand p { color:var(--ink-soft); font-size:13.5px; margin:8px 0 12px; max-width:280px; }
.footer-badge { font:500 10.5px "IBM Plex Mono",monospace; color:var(--teal); background:var(--teal-soft); padding:3px 8px; border-radius:999px; }
.footer-links { display:flex; gap:44px; }
.footer-col { display:flex; flex-direction:column; gap:8px; }
.footer-col strong { font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; font-family:"IBM Plex Mono",monospace; color:var(--ink-soft); margin-bottom:4px; }
.footer-col a { color:var(--ink); text-decoration:none; font-size:14px; }
.footer-col a:hover { color:var(--teal); text-decoration:underline; }
.footer-bottom { border-top:1px solid var(--line); padding-top:20px; font-size:12.5px; color:var(--ink-soft); font-family:"IBM Plex Mono",monospace; }

.auth-card-top { margin-bottom:12px; }
.auth-back-btn { background:transparent; border:0; padding:0; font-size:13px; font-weight:600; color:var(--slate); cursor:pointer; display:inline-flex; align-items:center; gap:4px; }
.auth-back-btn:hover { color:var(--ink); text-decoration:underline; }

/* CS Core Sheets (Striver's CN, DBMS, OS) */
.cs-overview-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; margin-bottom:22px; }
.cs-subject-summary-card { padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); cursor:pointer; transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease; position:relative; }
.cs-subject-summary-card:hover { transform:translateY(-2px); border-color:var(--ink-soft); box-shadow:0 8px 24px rgba(0,0,0,.04); }
.cs-subject-summary-card.is-os { border-top:4px solid var(--teal); }
.cs-subject-summary-card.is-dbms { border-top:4px solid var(--amber); }
.cs-subject-summary-card.is-cn { border-top:4px solid var(--slate); }

.cs-subject-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.cs-subject-badge { font:600 11px "IBM Plex Mono",monospace; padding:3px 8px; border-radius:999px; letter-spacing:.04em; }
.cs-subject-badge.os { color:var(--teal); background:var(--teal-soft); }
.cs-subject-badge.dbms { color:#805512; background:var(--amber-soft); }
.cs-subject-badge.cn { color:var(--slate); background:var(--slate-soft); }
.cs-subject-pct { font:700 20px "IBM Plex Mono",monospace; color:var(--ink); }

.cs-subject-summary-card h3 { font:600 18px "Fraunces",serif; margin:0 0 6px; letter-spacing:-.3px; }
.cs-subject-desc { font-size:12.5px; color:var(--ink-soft); margin:0 0 14px; line-height:1.4; min-height:36px; }
.cs-progress-bar-bg { height:8px; background:var(--bg); border-radius:999px; overflow:hidden; margin-bottom:10px; }
.cs-progress-bar-bg.small { height:6px; margin-bottom:0; margin-top:4px; }
.cs-progress-bar-fill { height:100%; border-radius:999px; transition:width .35s ease; }
.cs-progress-bar-fill.os { background:var(--teal); }
.cs-progress-bar-fill.dbms { background:var(--amber); }
.cs-progress-bar-fill.cn { background:var(--slate); }

.cs-subject-footer { display:flex; justify-content:space-between; align-items:center; font:500 11.5px "IBM Plex Mono",monospace; color:var(--ink-soft); }
.cs-view-link { color:var(--slate); font-weight:600; }

/* CS Core Toolbar */
.cs-toolbar-card { padding:18px 20px; margin-bottom:24px; }
.cs-toolbar-top { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.cs-subject-pills { display:flex; gap:6px; flex-wrap:wrap; }
.cs-tab { padding:7px 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink-soft); font-size:13px; font-weight:600; cursor:pointer; transition:all .12s ease; }
.cs-tab:hover { background:var(--bg); color:var(--ink); }
.cs-tab.is-active { background:var(--ink); color:#fff; border-color:var(--ink); }
.cs-tab-count { font-size:11px; font-family:"IBM Plex Mono",monospace; opacity:.8; margin-left:3px; }

.cs-search-box { position:relative; min-width:240px; flex:1; max-width:360px; }
.cs-search-box input { width:100%; padding:8px 12px 8px 32px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-size:13.5px; }
.cs-search-box input:focus { outline:none; border-color:var(--slate); box-shadow:0 0 0 2px var(--slate-soft); }
.search-icon { position:absolute; left:10px; top:50%; transform:translateY(-50%); font-size:13px; pointer-events:none; opacity:.6; }

.cs-toolbar-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding-top:12px; border-top:1px solid var(--line); }
.cs-status-filters { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.filter-label { font:500 11px "IBM Plex Mono",monospace; color:var(--ink-soft); text-transform:uppercase; margin-right:4px; letter-spacing:.05em; }
.filter-chip { padding:4px 10px; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--ink-soft); font-size:12px; font-weight:500; cursor:pointer; transition:all .12s ease; }
.filter-chip:hover { background:var(--bg); color:var(--ink); }
.filter-chip.is-active { background:var(--slate-soft); color:var(--slate); border-color:var(--slate); font-weight:600; }
.filter-chip.hot-chip.is-active { background:#fef3c7; color:#b45309; border-color:#f59e0b; }
.cs-difficulty-filters label { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--ink-soft); font-weight:600; }
.cs-difficulty-filters select { padding:4px 8px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--ink); font-size:12px; }

/* CS Core Topic Checklist */
.cs-topics-heading-row { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.cs-section-title { font:600 20px "Fraunces",serif; margin:0; letter-spacing:-.4px; }
.cs-category-group { margin-bottom:22px; }
.cs-category-header { display:flex; justify-content:space-between; align-items:center; padding-bottom:8px; margin-bottom:10px; border-bottom:1px solid var(--line); }
.cs-category-header h3 { font:600 15px "Fraunces",serif; color:var(--ink); margin:0; }
.cs-category-progress { font:500 11px "IBM Plex Mono",monospace; color:var(--ink-soft); }
.cs-topics-list { display:grid; gap:10px; }

.cs-topic-card { border:1px solid var(--line); border-radius:10px; background:var(--surface); padding:14px 16px; transition:all .15s ease; }
.cs-topic-card:hover { border-color:#b8c4ba; box-shadow:0 4px 14px rgba(0,0,0,.03); }
.cs-topic-card.is-completed { background:#fbfdfb; border-color:#d3ded5; }
.cs-topic-main { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:flex-start; }
.cs-checkbox-wrap { display:flex; align-items:center; cursor:pointer; margin-top:3px; }
.cs-topic-checkbox { width:18px; height:18px; accent-color:var(--teal); cursor:pointer; }
.cs-topic-content { min-width:0; }
.cs-topic-title-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:4px; }
.cs-topic-title { font-size:15px; font-weight:600; margin:0; color:var(--ink); line-height:1.3; }
.cs-topic-title.is-crossed { color:var(--ink-soft); text-decoration:line-through; text-decoration-color:var(--ink-soft); }
.cs-topic-tags { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.cs-subject-pill-tag { font:600 9.5px "IBM Plex Mono",monospace; padding:2px 6px; border-radius:4px; text-transform:uppercase; letter-spacing:.04em; }
.cs-subject-pill-tag.os { color:var(--teal); background:var(--teal-soft); }
.cs-subject-pill-tag.dbms { color:#805512; background:var(--amber-soft); }
.cs-subject-pill-tag.cn { color:var(--slate); background:var(--slate-soft); }
.cs-hot-badge { font:600 10px "IBM Plex Mono",monospace; padding:2px 7px; border-radius:999px; color:#b45309; background:#fef3c7; border:1px solid #fde68a; }

.cs-topic-desc { font-size:13px; color:var(--ink-soft); line-height:1.45; margin-top:5px; }
.cs-topic-desc p { margin:0 0 6px; }
.cs-takeaway { font-size:12px; color:var(--teal); background:var(--teal-soft); padding:6px 10px; border-radius:6px; border-left:3px solid var(--teal); line-height:1.35; }

.cs-topic-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.cs-icon-btn { width:30px; height:30px; display:grid; place-items:center; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--ink-soft); cursor:pointer; font-size:14px; transition:all .12s ease; position:relative; }
.cs-icon-btn:hover { background:var(--bg); color:var(--ink); border-color:var(--ink-soft); }
.cs-icon-btn.bookmark-btn.is-active { color:#d97706; border-color:#f59e0b; background:#fffbeb; font-size:16px; }
.cs-icon-btn.notes-btn.has-notes { color:var(--slate); border-color:var(--slate); }
.cs-icon-btn.notes-btn.is-active { background:var(--slate-soft); border-color:var(--slate); }
.notes-dot { position:absolute; top:3px; right:3px; width:5px; height:5px; border-radius:50%; background:var(--slate); }

.cs-sm2-badge { padding:5px 9px; border-radius:6px; font:600 11px "IBM Plex Mono",monospace; cursor:pointer; transition:all .12s ease; border:1px solid transparent; text-decoration:none; }
.cs-sm2-badge.add-queue { background:var(--bg); color:var(--ink-soft); border-color:var(--line); }
.cs-sm2-badge.add-queue:hover { background:var(--teal-soft); color:var(--teal); border-color:var(--teal); }
.cs-sm2-badge.in-queue { background:var(--teal-soft); color:var(--teal); border-color:var(--teal); }
.cs-resource-link { padding:5px 9px; font:600 11px "IBM Plex Mono",monospace; color:var(--slate); border:1px solid var(--line); border-radius:6px; text-decoration:none; transition:all .12s ease; }
.cs-resource-link:hover { background:var(--slate-soft); color:var(--slate); border-color:var(--slate); }

.cs-notes-drawer { margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); animation:fadeIn .2s ease; }
.cs-notes-inner label { display:block; font-size:12.5px; color:var(--ink-soft); margin-bottom:6px; }
.cs-notes-inner textarea { width:100%; min-height:72px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--ink); font-size:13px; font-family:inherit; resize:vertical; }
.cs-notes-actions { display:flex; justify-content:flex-end; margin-top:6px; }
.cs-save-notes-btn { font-size:12px; padding:6px 12px; }

/* Dashboard CS Readiness Widget */
.cs-readiness-card { margin-top:20px; }
.dash-cs-summary-layout { display:grid; grid-template-columns:230px 1fr; gap:24px; align-items:center; }
.dash-cs-score-box { display:flex; flex-direction:column; gap:4px; border-right:1px solid var(--line); padding-right:20px; }
.dash-cs-big-num { font-size:38px; font-weight:700; color:var(--teal); line-height:1; }
.dash-cs-score-label { font-size:13px; font-weight:600; color:var(--ink); }
.dash-cs-score-sub { font-size:11.5px; color:var(--ink-soft); font-family:"IBM Plex Mono",monospace; }
.dash-cs-hot-alert { font-size:11.5px; font-weight:600; color:#b45309; background:#fef3c7; padding:4px 8px; border-radius:6px; margin-top:6px; border:1px solid #fde68a; width:fit-content; }
.dash-cs-hot-alert.done { color:var(--teal); background:var(--teal-soft); border-color:var(--teal); }
.dash-cs-bars-box { display:grid; gap:10px; }
.dash-cs-subject-row { display:grid; gap:4px; }
.dash-cs-subject-meta { display:flex; justify-content:space-between; align-items:center; font-size:13px; }
.dash-cs-name { font-weight:600; color:var(--ink); }
.dash-cs-stat { font-size:11.5px; color:var(--ink-soft); }

@media (max-width:960px) {
  .landing-hero { grid-template-columns:1fr; gap:36px; padding:44px 0 54px; }
  .workflow-steps { flex-direction:column; }
  .workflow-connector { display:none; }
  .cs-overview-grid { grid-template-columns:1fr; }
  .dash-cs-summary-layout { grid-template-columns:1fr; }
  .dash-cs-score-box { border-right:none; border-bottom:1px solid var(--line); padding-right:0; padding-bottom:14px; }
}
@media (max-width:720px) {
  .landing-menu { display:none; }
  .hero-metrics-pills { grid-template-columns:1fr; }
  .landing-cta-banner { padding:36px 20px; }
  .landing-footer { padding-left:20px; padding-right:20px; }
  .footer-links { gap:28px; }
  .cs-topic-main { grid-template-columns:auto 1fr; }
  .cs-topic-actions { grid-column:span 2; justify-content:flex-start; margin-top:8px; }
}

/* Dark mode overrides for landing & CS Core */
body.theme-dark .landing-nav { background:rgba(27,37,33,.92); border-color:var(--line); }
body.theme-dark .landing-nav-link:hover { color:var(--teal); }
body.theme-dark .showcase-card,body.theme-dark .feature-card,body.theme-dark .workflow-step,body.theme-dark .landing-footer { background:var(--surface); border-color:var(--line); }
body.theme-dark .showcase-header { background:#202B26; border-color:var(--line); }
body.theme-dark .metric-pill,body.theme-dark .showcase-widget,body.theme-dark .mock-platform-item { background:#202B26; border-color:var(--line); }
body.theme-dark .hero-secondary { background:#202B26; color:var(--ink); border-color:var(--line); }
body.theme-dark .hero-secondary:hover { background:#2A3932; border-color:var(--ink-soft); }
body.theme-dark .hero-primary:hover,body.theme-dark .landing-primary-btn:hover { background:#52a882; color:#111815; }
body.theme-dark .feature-card:hover { border-color:var(--ink-soft); box-shadow:0 16px 36px rgba(0,0,0,.4); }
body.theme-dark .landing-section.alt-bg { background:rgba(255,255,255,.02); }
body.theme-dark .landing-cta-banner { background:linear-gradient(135deg, #162B24 0%, #101614 100%); border:1px solid var(--line); }
body.theme-dark .auth-back-btn { color:var(--slate); }
body.theme-dark .auth-back-btn:hover { color:var(--ink); }

body.theme-dark .cs-subject-summary-card { background:var(--surface); border-color:var(--line); }
body.theme-dark .cs-topic-card { background:var(--surface); border-color:var(--line); }
body.theme-dark .cs-topic-card.is-completed { background:#16241e; border-color:#20382d; }
body.theme-dark .cs-takeaway { background:#192e24; color:#7ce0b8; border-color:var(--teal); }
body.theme-dark .cs-hot-badge { background:#3b2910; color:#fcd34d; border-color:#78350f; }
body.theme-dark .filter-chip.is-active { background:#22344a; color:#93c5fd; border-color:#3b82f6; }
body.theme-dark .cs-notes-inner textarea { background:#16211d; color:#fff; border-color:var(--line); }
body.theme-dark .cs-icon-btn { background:var(--surface); border-color:var(--line); }
body.theme-dark .cs-icon-btn.bookmark-btn.is-active { background:#3b2910; color:#fcd34d; border-color:#78350f; }
body.theme-dark .dash-cs-hot-alert { background:#3b2910; color:#fcd34d; border-color:#78350f; }
body.theme-dark .dash-cs-hot-alert.done { background:#192e24; color:#7ce0b8; border-color:var(--teal); }

body.theme-dark .google-auth-btn { background:#202B26; color:var(--ink); border-color:var(--line); box-shadow:none; }
body.theme-dark .google-auth-btn:hover { background:#2A3932; border-color:var(--ink-soft); }
body.theme-dark .google-auth-dialog { background:var(--surface); border-color:var(--line); box-shadow:0 24px 60px rgba(0,0,0,0.5); }
body.theme-dark .google-account-item { background:#202B26; border-color:var(--line); }
body.theme-dark .google-account-item:hover { background:#2A3932; border-color:var(--slate); }
body.theme-dark .google-setup-card { background:#18231F; border-color:var(--line); }
body.theme-dark .google-steps-box { border-top-color:var(--line); }
body.theme-dark .google-config-row input { background:#16211D; color:var(--ink); border-color:var(--line); }
body.theme-dark .google-verified-banner { background:#192e24; border-color:var(--teal); }
body.theme-dark .profile-verified-google-badge { background:#192e24; color:#7ce0b8; border-color:var(--teal); }

/* Live Backend Status Indicator */
.backend-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  transition: all 0.2s ease;
  user-select: none;
}

body.theme-dark .backend-status-badge {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}

.backend-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: pulse-dot 2s infinite ease-in-out;
}

.backend-status-badge.offline {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.3);
}

body.theme-dark .backend-status-badge.offline {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.backend-status-badge.offline .status-dot {
  background-color: #f59e0b;
  box-shadow: none;
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.schedule-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.refresh-slots-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.refresh-slots-btn:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

.refresh-slots-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
