* { box-sizing: border-box; }
html { background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); font-family: "Trebuchet MS", "Segoe UI", sans-serif; background-color: var(--paper); background-image: linear-gradient(rgba(24,35,33,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(24,35,33,.035) 1px, transparent 1px); background-size: 28px 28px; }
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin-top: 0; }
.shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; justify-content: space-between; padding: 26px 22px; color: var(--white); background: var(--night); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-family: Georgia, serif; font-size: 13px; font-weight: 700; letter-spacing: -.18em; padding-right: 3px; }
.brand-mark span + span { opacity: .65; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 1.05rem; }
.brand small { margin-top: 3px; color: var(--amber); font: .65rem/1.2 "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
nav { display: grid; gap: 5px; margin-top: 52px; }
nav a { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-left: 2px solid transparent; color: #b8c6c0; font-size: .9rem; transition: color .2s ease, background .2s ease, transform .2s ease; }
nav a::before { content: "→"; color: var(--blue); opacity: 0; transition: opacity .2s ease; }
nav a:hover, nav a.active { color: var(--white); background: var(--night-soft); transform: translateX(4px); }
nav a:hover::before, nav a.active::before { opacity: 1; }
.module-note { color: #91a39b; font-size: .73rem; line-height: 1.55; }
.sidebar-footer { display: grid; gap: 16px; }
.logout-form { margin: 0; }
.logout-button, .button, button { border: 0; border-radius: 2px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.logout-button { width: 100%; padding: 11px 12px; border: 1px solid #52635d; color: var(--white); background: transparent; }
.logout-button:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
main { width: 100%; max-width: none; padding: 54px 5vw 72px; }
header { position: relative; margin-bottom: 30px; }
header h1, .focus-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
header h1 { max-width: 700px; margin-bottom: 8px; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: .95; }
header > p:last-child, .card p, .focus-card > p:not(.eyebrow) { max-width: 600px; color: var(--muted); line-height: 1.6; }
.eyebrow { margin-bottom: 9px; color: var(--muted); font: 700 .66rem/1 "Courier New", monospace; letter-spacing: .13em; text-transform: uppercase; }
.accent { color: var(--blue); }
.focus-card, .card { border: 1px solid var(--line); border-radius: 2px; background: rgba(255,253,248,.7); box-shadow: 7px 7px 0 rgba(24,35,33,.08); }
.focus-card { position: relative; padding: 32px 34px; border-top: 5px solid var(--blue); background: var(--night); color: var(--white); box-shadow: 10px 10px 0 rgba(77,125,255,.18); }
.focus-card::after { content: "NEXT"; position: absolute; top: 20px; right: 24px; color: var(--blue); font: 700 .65rem "Courier New", monospace; letter-spacing: .18em; }
.focus-card h2 { max-width: 700px; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.focus-card > p:not(.eyebrow) { color: #c2d0ca; }
.priority-list { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: priority; }
.priority-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #40514b; counter-increment: priority; }
.priority-item::before { content: "0" counter(priority); color: var(--blue); font: .7rem "Courier New", monospace; }
.priority-item h2 { grid-column: 2; margin: 0 0 4px; font-size: 1.25rem; }
.priority-item p { grid-column: 2; margin: 0; color: #aebdb6; font-size: .88rem; }
.priority-score { color: var(--amber); font-weight: 700; }
.button, button { display: inline-block; padding: 12px 17px; color: var(--ink); background: var(--blue); }
.button:hover, button:hover { background: #6b94ff; transform: translateY(-2px); }
.button.secondary { color: var(--ink); border: 1px solid var(--ink); background: transparent; }
.button.secondary:hover { color: var(--white); background: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.card { min-width: 0; padding: 23px; }
.card-overdue, .card-courses { grid-column: span 7; }
.card-tasks, .card-profile { grid-column: span 5; }
.card-completion { grid-column: span 4; }
.card-completion:last-child { grid-column: span 12; }
.card-delay { grid-column: span 8; }
.card-estimates, .card-history { grid-column: span 6; }
.card h2 { margin-bottom: 12px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.card dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; text-align: right; }
.summary-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .86rem; }
.summary-table th, .summary-table td { padding: 9px 7px; overflow-wrap: anywhere; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.summary-table th { color: var(--muted); font: 700 .62rem "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.summary-table tbody tr:last-child td { border-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.flash { display: grid; gap: 8px; margin-bottom: 24px; padding: 14px 16px; border-left: 4px solid var(--blue); background: var(--white); }
.flash p { margin: 0; line-height: 1.5; }
.flash-warning { color: #8f5b00; }.flash-error { color: #a8352a; }
.demo-banner { margin-bottom: 24px; padding: 14px 16px; border-left: 4px solid var(--amber); color: #5f4300; background: #fff7dd; line-height: 1.5; }
.demo-checklist{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr) auto;gap:24px;align-items:start;margin-bottom:24px;padding:22px;border:1px solid var(--line);border-top:5px solid var(--amber);background:var(--white);box-shadow:7px 7px 0 rgba(24,35,33,.08)}.demo-checklist h2{margin:0;font:400 1.35rem Georgia,serif}.demo-checklist ol{margin:0;padding-left:20px;color:var(--muted);line-height:1.6}.demo-checklist a{font-weight:700;text-decoration:underline}.demo-checklist button{width:auto;white-space:nowrap}
/* Keep dismissal authoritative over desktop and mobile layout rules. */
.demo-checklist[hidden] { display: none !important; }
.reminder-panel{margin-top:24px;padding:20px;border:1px solid var(--amber);background:#fff7dd}.reminder-panel>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0;border-top:1px solid var(--line)}.reminder-panel form{margin:0}.reminder-panel button{padding:8px 12px;font-size:.82rem}
.overdue-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.overdue-item { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.overdue-item:last-child { border-bottom: 0; padding-bottom: 0; }
.overdue-item h2 { margin: 0; font: 400 1.25rem Georgia, serif; }
.overdue-item form { margin: 0; }
.reschedule-form { display: grid; gap: 6px; margin-top: 3px; }
.reschedule-form label { color: var(--muted); font: 700 .63rem "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.reschedule-form input { padding: 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font: inherit; background: var(--white); }
@media (max-width: 900px) { .shell { grid-template-columns: 190px minmax(0,1fr); } .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .card, .card-completion:last-child { grid-column: span 1; grid-row: auto; } .card:first-child { grid-column: span 2; } .demo-checklist{grid-template-columns:1fr}.demo-checklist button{justify-self:start} }
@media (max-width: 680px) { .shell { display:block; } .sidebar { gap:22px; padding:18px; } nav { display:flex; margin-top:26px; overflow-x:auto; } nav a { white-space:nowrap; } .module-note { display:none; } main { padding:34px 18px 52px; } header h1 { font-size:clamp(2.6rem,15vw,4.5rem); } .grid { grid-template-columns:1fr; } .card:first-child { grid-column:auto; } .focus-card { padding:26px 22px; } }
