/* Techstep Student app. Phone first; navy, white and the brand's gold and cyan accents. */
:root { --navy: #0B1A45; --navy-2: #12285F; --cyan: #22C3E6; --cyan-ink: #0A7EA4; --gold: #F7680A; --ink: #0B1F3A; --muted: #55657C; --line: #DFE6EE; --bg: #F2F5F9; --ok: #1F7A50; --bad: #B23A2E; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
a { color: var(--cyan-ink); }
ul { list-style: none; }
svg { width: 22px; height: 22px; flex: none; }
.top { position: sticky; top: 0; z-index: 10; background: var(--navy); padding: calc(10px + env(safe-area-inset-top)) 18px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand b { color: var(--gold); font-weight: 600; }
main { max-width: 620px; margin: 0 auto; padding: 22px 18px calc(96px + env(safe-area-inset-bottom)); }
h1 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 28px 0 10px; }
.hello { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.94rem; margin-top: 4px; }
.small { color: var(--muted); font-size: 0.86rem; margin-top: 12px; line-height: 1.55; }
.empty { background: #fff; border: 1px dashed #C7D2DF; border-radius: 16px; padding: 18px; color: var(--muted); font-size: 0.95rem; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { display: inline-block; margin-bottom: 10px; font-size: 0.92rem; text-decoration: none; }
.back::before { content: "\2039  "; }

.card { background: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 1px 0 rgba(11,31,58,.04); }
.card.soft { background: #E8F0F8; gap: 4px; }
.k { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: #2B3D57; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid #C9D4E0; border-radius: 12px; padding: 13px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(34,195,230,.35); border-color: var(--cyan-ink); }
input:disabled { background: #F1F4F8; color: var(--muted); }
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 14px 22px; font: 600 1rem system-ui, sans-serif; text-decoration: none; cursor: pointer; min-height: 48px; }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .6; }
.btn.sm { padding: 10px 16px; min-height: 42px; font-size: 0.92rem; }
.btn.sm svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px #B9C6D6; }
.btn.danger { color: var(--bad); box-shadow: inset 0 0 0 1.5px #E5B9B4; margin-top: 14px; width: 100%; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.88rem; text-decoration: underline; padding: 10px; cursor: pointer; }
.out { display: grid; margin-top: 14px; }
.ref-alert { border-radius: 14px; padding: 13px 16px; margin-bottom: 16px; font-size: 0.95rem; background: #E3F4EA; color: #14532D; border: 1px solid #B9E0C8; }
.ref-alert.err { background: #FCE9E6; color: #7A1F15; border-color: #F1BDB6; }

/* sign in */
.top + main .auth { padding-top: 6px; }
.auth { display: grid; gap: 16px; }
.auth-logo { background: var(--navy); border-radius: 18px; padding: 16px 20px; width: 240px; height: auto; box-sizing: content-box; }
.auth h1 { font-size: 2rem; }
.lede { color: var(--muted); }
.code { font-size: 1.7rem; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }

/* home */
.next { display: grid; gap: 3px; background: var(--navy); color: #fff; text-decoration: none; border-radius: 22px; padding: 20px; margin-top: 18px; position: relative; overflow: hidden; }
.next::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--navy-2); }
.next > * { position: relative; z-index: 1; }
.next .k { color: var(--gold); }
.next b { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; margin: 4px 0; }
.next span:not(.k) { color: #C3D0E0; font-size: 0.94rem; }
.next.none { background: #fff; color: var(--ink); border: 1.5px dashed #B9C6D6; }
.next.none::after { display: none; }
.next.none .k { color: var(--cyan-ink); }
.next.none span:not(.k) { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stats div { background: #fff; border-radius: 16px; padding: 14px; text-align: center; }
.stats b { display: block; font-size: 1.5rem; letter-spacing: -0.03em; }
.stats span { font-size: 0.8rem; color: var(--muted); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.quick a { background: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.quick svg { color: var(--cyan-ink); width: 26px; height: 26px; }

/* classes */
.class { background: #fff; border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 58px 1fr; gap: 14px; margin-bottom: 10px; }
.date { background: var(--navy); color: #fff; border-radius: 14px; height: 62px; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.date b { font-size: 1.45rem; letter-spacing: -0.02em; }
.date span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.class .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.class h3 { font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em; }
.meta { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 0.88rem; margin-top: 5px; }
.meta svg { width: 16px; height: 16px; }
.info { font-size: 0.86rem; color: #2B3D57; background: var(--bg); border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.locked { font-size: 0.84rem; color: var(--muted); }
.tag { flex: none; font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #E8EEF5; color: #33475F; white-space: nowrap; }
.tag.ok { background: #DDF2E6; color: var(--ok); }
.tag.bad { background: #FBE4E1; color: var(--bad); }
.pick button { width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font: inherit; color: var(--ink); margin-bottom: 10px; cursor: pointer; line-height: 1.45; }
.pick small { color: var(--muted); }
.pick svg { color: var(--cyan-ink); }

/* notes, inbox */
.search { margin: 12px 0; }
.resource { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); margin-top: 12px; }
.resource > svg:first-child { color: var(--cyan-ink); width: 28px; height: 28px; }
.resource span { flex: 1; display: grid; }
.resource small { color: var(--muted); font-size: 0.84rem; }
.resource > svg:last-child { color: #9AA9BC; }
.noteitem { display: grid; gap: 3px; background: #fff; border-radius: 16px; padding: 15px; text-decoration: none; color: var(--ink); margin-bottom: 10px; }
.noteitem span { color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.noteitem small { color: #8493A8; font-size: 0.78rem; margin-top: 4px; }
.editor textarea { min-height: 42vh; }
.msg { background: #fff; border-radius: 16px; margin-top: 10px; overflow: hidden; }
.msg summary { padding: 15px; cursor: pointer; display: grid; gap: 2px; list-style: none; }
.msg summary::-webkit-details-marker { display: none; }
.msg small { color: #8493A8; font-size: 0.8rem; }
.msg div { padding: 0 15px 16px; color: #2B3D57; font-size: 0.95rem; overflow-wrap: anywhere; }

/* me */
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay span { display: block; font-size: 0.76rem; color: var(--muted); }
.pay b { font-size: 1.1rem; letter-spacing: -0.02em; }
.pay .due b { color: var(--bad); }
.pay .clear b { color: var(--ok); }
.bar { height: 8px; border-radius: 4px; background: #E3EAF2; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--cyan-ink); border-radius: 4px; }
.reqs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.reqs li:last-child { border-bottom: 0; }
.reqs small { display: block; color: var(--muted); font-size: 0.8rem; }
.links { gap: 0; padding: 4px 18px; }
.links a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.links a:last-child { border-bottom: 0; color: var(--bad); }

/* bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 7px 0; text-decoration: none; color: #7A8AA0; font-size: 0.7rem; font-weight: 600; border-radius: 12px; }
.tabs a[aria-current] { color: var(--navy); background: #EAF1F8; }
@media (min-width: 700px) { main { padding-top: 34px; } .tabs { max-width: 620px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px 18px 0 0; } }
