/* learn.teknosell.com home: sign in and the course hub (learn/index.html). */
:root {
  --navy: #103E67; --title: #185182; --gold: #EFB360; --red: #C70B16; --green: #4DB363;
  --ground: #F3F6FA; --line: #DCE4EE; --muted: #5F7896; --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 'Source Sans Pro', 'Source Sans 3', system-ui, sans-serif; color: var(--navy); background: var(--ground); }
h1, h2, h3 { font-family: Montserrat, system-ui, sans-serif; color: var(--title); margin: 0; }
a { color: var(--title); }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.logo { font: 800 19px Montserrat, sans-serif; letter-spacing: .5px; color: var(--navy); text-decoration: none; }
.logo span { color: var(--gold); }
.logo em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 6px; font-size: 15px; letter-spacing: 0; }
.spacer { flex: 1; }
.who { font-size: 14px; color: var(--muted); background: var(--ground); padding: 5px 12px; border-radius: 99px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 36px 24px 80px; }
.loading { color: var(--muted); padding: 40px 0; }

.btn { display: inline-flex; align-items: center; gap: 7px; font: 700 15px Montserrat, sans-serif; border: 2px solid var(--red); background: var(--red); color: #fff; padding: 11px 20px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.line:hover { border-color: var(--navy); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.navy { background: var(--navy); border-color: var(--navy); }

/* sign in */
.signin { max-width: 440px; margin: 7vh auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 34px 32px; box-shadow: 0 10px 30px rgba(16,62,103,.07); }
.signin h1 { font-size: 26px; margin-bottom: 8px; }
.signin p { margin: 0 0 18px; color: var(--muted); }
.signin label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.signin input { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 7px; color: var(--navy); }
.signin input:focus { outline: none; border-color: var(--title); }
.signin input.code { font: 700 26px/1 'IBM Plex Mono', Consolas, monospace; letter-spacing: 10px; text-align: center; }
.signin .btn { width: 100%; justify-content: center; margin-top: 18px; }
.signin .err { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 1em; }
.signin .small { font-size: 13px; color: var(--muted); margin-top: 16px; }
.signin .small a { cursor: pointer; }

/* hub */
.hello { margin-bottom: 26px; }
.hello h1 { font-size: 30px; }
.hello p { margin: 6px 0 0; color: var(--muted); }
.section { margin-top: 34px; }
.section h2 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section h2 small { font: 600 13px 'Source Sans Pro', sans-serif; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card .th { aspect-ratio: 16/8; background: var(--line) center/cover no-repeat; }
.card .cb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; line-height: 1.35; }
.card .meta { font-size: 13px; color: var(--muted); }
.card .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.rows { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row:first-child { border-top: 0; }
.row .tx { flex: 1; min-width: 220px; }
.row .tx b { display: block; }
.row .tx small { color: var(--muted); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--ground); color: var(--muted); margin-right: 4px; }
.chip.ok { background: #E4F4E8; color: #2B7A3D; }
.chip.wait { background: #FDF0DD; color: #9A5B07; }
.chip.bad { background: #FBE3E4; color: var(--red); }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: 10px; padding: 26px; color: var(--muted); }
.tools { display: flex; gap: 12px; flex-wrap: wrap; }
.tool { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; text-decoration: none; color: var(--navy); min-width: 240px; flex: 1; }
.tool b { font-family: Montserrat, sans-serif; color: var(--title); display: block; margin-bottom: 4px; }
.tool span { font-size: 14px; color: var(--muted); }
.tool:hover { border-color: var(--title); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; font-weight: 600; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--red); }
@media (max-width: 600px) { .top { padding: 12px 16px; } .wrap { padding: 24px 16px 60px; } .signin { padding: 26px 20px; } }
