/* Hallmark · v2.0.0 · redesign: full · scope: app · theme: brand · shape: app screen · signature: Pip's notebook */
/* The original orange book mark anchors a quieter workspace; the desk opens directly into a learner's own material. */
:root {
  --desk-bg: #131517;
  --desk-panel: #1c1e20;
  --desk-ink: #f8f4ec;
  --desk-muted: #b4b1a9;
  --desk-orange: #ff864e;
  --desk-rule: #393b3b;
  --desk-rule-strong: #505251;
  --desk-paper: #f5eada;
  --desk-paper-ink: #24221e;
  --desk-paper-dim: #655c50;
  --desk-skin: #f5b496;
  --desk-olive: #dbe6bc;
  --desk-tan: #f4d5ab;
  --desk-focus: #ffa16b;
  --desk-shadow: #0006;
  --desk-feature-back: #ef863c;
  --desk-surface-up: #242729;
  --desk-shell: #17191b;
  --desk-display: Georgia, "Times New Roman", serif;
  --desk-ui: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --desk-icon-ground: #32281f;
  --desk-active: #302820;
  --bg: var(--desk-bg);
  --shell: var(--desk-shell);
  --panel: var(--desk-panel);
  --panel-2: var(--desk-surface-up);
  --line: var(--desk-rule);
  --line-2: var(--desk-rule-strong);
  --text: var(--desk-ink);
  --muted: var(--desk-muted);
  --orange: var(--desk-orange);
  --font-ui: var(--desk-ui);
  --sidebar-width: 222px;
  --radius: 16px;
}
html, body { overflow-x: clip; }
.skip-workspace { position: fixed; inset: 8px auto auto 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--desk-paper); color: var(--desk-paper-ink); transform: translateY(-150%); }
.skip-workspace:focus { transform: translateY(0); }
body:has(#app[hidden]) .skip-workspace { display: none; }
:where(button,a,input,select,textarea,[tabindex]):focus-visible { outline: 2px solid var(--desk-focus); outline-offset: 3px; }
.brand-lockup { font: 720 26px/1 var(--desk-ui); letter-spacing: -1.5px; gap: 9px; }
.brand-lockup .brand-mark, .boot-screen .brand-mark { width: 34px; height: 34px; border: 0; border-radius: 7px; background: url('/icon.svg') center/contain no-repeat; }
.brand-mark > span { visibility: hidden; }
.brand-dot { color: var(--desk-orange); }
.app-brand { align-self: flex-start; }
.sidebar { padding: 26px 16px 16px; }
.sidebar .app-brand { padding-inline: 9px; }
.workspace-label { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--desk-muted); padding-inline: 11px; margin: 34px 0 9px; }
.main-nav { gap: 4px; }
.nav-item { padding: 10px 11px; border: 0; min-height: 45px; border-radius: 9px; font-weight: 500; }
.nav-item.active { color: var(--desk-ink); background: var(--desk-active); }
.nav-item.active .nav-icon { color: var(--desk-orange); }
.nav-count { margin-left: auto; }
.sidebar-bottom { border-top-color: var(--desk-rule); }
.streak-mini { margin: 0 0 12px; padding: 9px 10px; }
.streak-mini small { margin: 0; }
.streak-flame { background: transparent; border: none; width: 26px; }
.profile-mini { padding: 8px 6px; }
.topbar { min-height: 64px; padding-inline: clamp(23px,3.3vw,54px); background: var(--desk-bg); }
.topbar-actions { gap: 10px; }
.topbar .top-create { min-height: 38px; padding: 6px 14px; border-radius: 9px; }
.topbar .avatar-small { min-width: 38px; width: 38px; height: 38px; }
.topbar .search-button { min-height: 36px; border: 0; background: transparent; }
.search-button span svg { width: 17px; height: 17px; }
.page-content { max-width: 1330px; padding: 30px clamp(23px,3.3vw,54px) 92px; }
.section-head h1, .study-title h1, .activity-header h1 { font-weight: 580; letter-spacing: -1px; }
.section-head { margin-bottom: 25px; }
.button { font-weight: 560; }
.button-primary { background: var(--desk-orange); color: var(--desk-paper-ink); border-color: transparent; }
.button-primary:hover { background: var(--desk-focus); }
:is(.button,.desk-main-action,.desk-tool,.desk-file,.desk-footer-tools button) { transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .18s cubic-bezier(.2,.8,.25,1); }
:is(.button,.desk-main-action,.desk-tool,.desk-file,.desk-footer-tools button):active:not(:disabled) { transform: translateY(1px); }
.desk-home { margin: 0 auto; min-width: 0; }
.desk-title, .desk-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.desk-title { margin-bottom: 18px; }
.desk-title h1 { font: 580 29px/1.15 var(--desk-ui); letter-spacing: -1.2px; margin: 0; }
.desk-title > span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--desk-muted); }
.desk-title > span svg, .desk-section-title > svg { width: 16px; height: 16px; color: var(--desk-muted); }
.desk-feature { position: relative; display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); overflow: hidden; isolation: isolate; min-height: 260px; background: var(--desk-paper); border-radius: 16px; }
.desk-feature-copy { min-width: 0; align-self: center; padding: 30px clamp(24px,3.3vw,58px); }
.desk-feature-copy h2 { max-width: 11ch; font: 500 clamp(38px,3.9vw,64px)/.99 var(--desk-display); letter-spacing: -.052em; color: var(--desk-paper-ink); margin: 0; overflow-wrap: break-word; }
.desk-feature-copy p { max-width: 42ch; margin: 16px 0 20px; color: var(--desk-paper-dim); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.desk-main-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 17px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--desk-ink); background: var(--desk-paper-ink); }
.desk-main-action:hover { background: var(--desk-rule-strong); }
.desk-main-action svg { width: 16px; height: 16px; }
.desk-cover-art { align-self: stretch; position: absolute; inset: 0 0 0 auto; width: 47%; height: 100%; object-fit: cover; object-position: center 10%; background: var(--desk-feature-back); }
.desk-tools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 16px 0 24px; }
.desk-tool { position: relative; min-width: 0; min-height: 104px; text-align: left; display: grid; align-content: center; grid-template-columns: 40px minmax(0,1fr); column-gap: 12px; padding: 15px; color: var(--desk-ink); border: 1px solid var(--desk-rule); background: var(--desk-panel); border-radius: 13px; }
.desk-tool:hover, .desk-footer-tools button:hover { transform: translateY(-2px); background: var(--desk-surface-up); border-color: var(--desk-rule-strong); }
.desk-tool-symbol { border-radius: 11px; width: 40px; height: 40px; display: grid; place-items: center; align-self: center; grid-row: span 2; background: var(--desk-skin); color: var(--desk-paper-ink); }
.desk-tool:nth-child(2) .desk-tool-symbol { background: var(--desk-olive); }
.desk-tool:nth-child(3) .desk-tool-symbol { background: var(--desk-tan); }
.desk-tool strong { font-size: 16px; line-height: 1.22; font-weight: 580; }
.desk-tool small { font-size: 12px; line-height: 1.4; color: var(--desk-muted); margin-top: 4px; }
.desk-tool > .desk-chevron { display: none; }
.desk-lower { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(225px,.85fr); gap: 16px; }
.desk-library, .desk-timer { min-width: 0; padding: 20px; border-radius: 14px; border: 1px solid var(--desk-rule); background: var(--desk-panel); }
.desk-section-title h2 { font: 570 19px/1.3 var(--desk-ui); letter-spacing: -.55px; margin: 0; }
.desk-link { min-height: 40px; border: 0; background: transparent; color: var(--desk-muted); font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.desk-link:hover { color: var(--desk-ink); background: var(--desk-surface-up); }
.desk-section-title > .desk-link { margin-block: -7px; margin-inline-end: -6px; }
.desk-library-empty { display: flex; gap: 15px; align-items: center; min-height: 95px; padding: 16px 0 2px; }
.desk-folder { width: 44px; height: 40px; color: var(--desk-tan); }
.desk-library-empty strong, .desk-file strong { display: block; font-size: 15px; font-weight: 560; }
.desk-library-empty span, .desk-file small, .desk-file time { display: block; font-size: 13px; color: var(--desk-muted); }
.desk-file, .desk-review { width: 100%; padding: 12px 2px; display: grid; align-items: center; grid-template-columns: 34px minmax(0,1fr) auto 16px; gap: 10px; border: 0; border-top: 1px solid var(--desk-rule); text-align: left; background: transparent; color: var(--desk-ink); }
.desk-file:first-of-type { margin-top: 14px; }
.desk-file:hover, .desk-review:hover { background: var(--desk-surface-up); }
.desk-file strong { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.desk-file-glyph { width: 32px; height: 35px; display: grid; place-items: center; color: var(--desk-orange); }
.desk-file .desk-chevron, .desk-review .desk-chevron, .desk-footer-tools .desk-chevron { width: 15px; height: 15px; color: var(--desk-muted); }
.desk-review { display: flex; font-size: 14px; min-height: 44px; color: var(--desk-orange); }
.desk-review .desk-chevron { margin-left: auto; }
.desk-clock { display: flex; align-items: baseline; gap: 2px; margin: 12px 0; font: 500 40px/1.05 var(--desk-ui); font-variant-numeric: tabular-nums; letter-spacing: -2px; }
.desk-clock > :nth-child(2) { color: var(--desk-muted); }
.desk-timer-actions { display: flex; align-items: center; gap: 10px; }
.desk-timer-actions .button { min-height: 35px; padding: 5px 12px; border-color: var(--desk-rule-strong); background: var(--desk-surface-up); }
.desk-footer-tools { display: flex; align-items: center; margin-top: 15px; gap: 8px; flex-wrap: wrap; }
.desk-footer-tools button { display: inline-flex; align-items: center; gap: 8px; background: transparent; border-radius: 7px; border: 1px solid transparent; color: var(--desk-muted); font-size: 13px; padding: 7px 9px; min-height: 40px; }
.desk-footer-tools button > svg:first-child { width: 16px; height: 16px; }
.desk-footer-tools > span { margin-left: auto; font-size: 13px; color: var(--desk-muted); }
.pingu-launch { position: fixed; z-index: 25; right: max(18px,env(safe-area-inset-right)); bottom: max(18px,env(safe-area-inset-bottom)); width: 54px; height: 54px; padding: 3px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--desk-paper); background: var(--desk-tan); box-shadow: 0 3px 13px var(--desk-shadow); transition: transform .22s cubic-bezier(.22,.9,.28,1); }
.pingu-launch img { width: 100%; height: 100%; display: block; }
.pingu-launch span { position: absolute; right: calc(100% + 7px); top: 50%; transform: translate(4px,-50%); opacity: 0; pointer-events: none; white-space: nowrap; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--desk-rule); background: var(--desk-panel); color: var(--desk-ink); font-size: 13px; transition: opacity .15s ease, transform .15s ease; }
.pingu-launch:is(:hover,:focus-visible) { transform: translateY(-2px); }
.pingu-launch:is(:hover,:focus-visible) span { opacity: 1; transform: translate(0,-50%); }
#app[data-view="tutor"] .pingu-launch, body:has(.modal-backdrop) .pingu-launch { display: none; }
.auth-layout { grid-template-columns: minmax(0,1.12fr) minmax(370px,.88fr); min-height: 100svh; padding: clamp(18px,2vw,34px); gap: clamp(25px,4vw,85px); max-width: 1700px; margin: 0 auto; }
.auth-story { display: grid; justify-content: stretch; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto minmax(150px,1fr); min-height: 0; padding: clamp(26px,3.3vw,55px) clamp(26px,3.3vw,55px) 0; overflow: hidden; border: 0; border-radius: 20px; gap: 24px; background: var(--desk-paper); color: var(--desk-paper-ink); }
.auth-story .brand-dot { color: var(--desk-paper-dim); }
.auth-story-copy { margin: 0; padding: 0; max-width: 600px; align-self: end; }
.auth-story-copy h1 { font: 500 clamp(46px,5.8vw,88px)/.94 var(--desk-display); letter-spacing: -.06em; margin: 0; color: var(--desk-paper-ink); }
.auth-story-copy h1::first-line { color: inherit; }
.auth-story-copy .auth-intro { max-width: 43ch; color: var(--desk-paper-dim); font-size: 16px; line-height: 1.48; margin: 15px 0 0; }
.auth-art { margin: 0 calc(-1 * clamp(26px,3.3vw,55px)); position: relative; min-height: 180px; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.auth-panel { min-width: 0; padding: 40px clamp(10px,2.5vw,42px) 40px 0; }
.auth-card { width: min(100%,365px); }
.auth-heading { margin-bottom: 23px; }
.auth-heading h2 { font-size: 34px; letter-spacing: -1.35px; font-weight: 580; margin: 0 0 8px; }
.auth-heading p, .auth-note { color: var(--desk-muted); }
.auth-switch { display: inline-flex; gap: 3px; padding: 4px; margin: 0 0 27px; background: var(--desk-panel); border: 1px solid var(--desk-rule); border-radius: 12px; }
.auth-tab { min-height: 37px; padding: 6px 14px; background: transparent; border: 0; border-radius: 8px; font-weight: 550; margin: 0; color: var(--desk-muted); }
.auth-tab.active { color: var(--desk-paper-ink); background: var(--desk-paper); }
.auth-card input { background: var(--desk-panel); }
.auth-card .auth-note { font-size: 12px; line-height: 1.5; margin-top: 22px; }
.auth-card .button-primary { padding: 11px; }
.auth-panel-foot, .auth-mobile-brand { display: none; }
.auth-layout .brand-mark > span { visibility: hidden; }
@media(min-width:1500px){.desk-feature{min-height:300px}.desk-tool{min-height:112px}}
@media(max-width:1150px) and (min-width:961px){ :root{--sidebar-width:202px}.desk-tools{gap:8px}.desk-tool{column-gap:8px;padding:12px;grid-template-columns:34px minmax(0,1fr)}.desk-tool-symbol{width:34px;height:36px}.desk-tool strong{font-size:15px} }
@media(max-width:960px){
  .page-content{padding-bottom:138px}.mobile-nav{min-height:64px; padding:4px 10px max(4px,env(safe-area-inset-bottom))}.mobile-nav-item{min-height:52px}.mobile-nav-item small{font-size:12px}
  .pingu-launch{display:none}
  .mobile-nav .mobile-nav-item[data-page="tutor"]{order:5}
  .mobile-nav .mobile-nav-item[data-page="tutor"] span{height:27px;width:27px;margin-top:-5px;border-radius:50%;background:var(--desk-tan) url("/pingu.svg") center/100% no-repeat}
  .mobile-nav .mobile-nav-item[data-page="tutor"] span svg{display:none}
  .mobile-nav .mobile-nav-item[data-page="tutor"].active span{outline:2px solid var(--desk-focus);outline-offset:1px}
  .topbar .search-button kbd{display:none}.topbar{min-height:60px;padding-inline:22px}.auth-layout{gap:25px}
}
@media(max-width:700px){
  .auth-layout{display:block;padding:14px;min-height:100svh}.auth-story{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(100px,.85fr);grid-template-rows:auto auto;min-height:150px;gap:10px 14px;position:relative;padding:19px 18px;isolation:isolate;border-radius:15px}
  .auth-story .brand-lockup{font-size:20px;gap:6px}.auth-story .brand-mark{width:25px;height:25px}.auth-story-copy{align-self:end;grid-column:1}.auth-story-copy h1{font-size:clamp(29px,7vw,41px);letter-spacing:-.055em;line-height:1}.auth-story-copy .auth-intro{display:none}.auth-art{position:absolute;inset:0 0 0 auto;width:43%;height:100%;min-height:0;margin:0}.auth-art img{object-position:54% 50%}
  .auth-panel{min-height:0;padding:30px 12px;align-items:center}.auth-card{max-width:395px}.auth-switch{margin-bottom:20px}.auth-heading h2{font-size:29px}
  .desk-title h1{font-size:24px}.desk-title>span{font-size:12px}.desk-title>span svg{display:none}.page-content{padding-inline:16px;padding-top:21px}
  .desk-feature{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);min-height:205px;border-radius:13px}.desk-feature-copy{padding:20px 15px}.desk-feature-copy h2{font-size:clamp(30px,5.2vw,38px);letter-spacing:-.055em}.desk-feature-copy p{font-size:13px;line-height:1.35;margin:9px 0 12px}.desk-cover-art{width:43%;object-fit:cover;object-position:53% 46%}.desk-main-action{min-height:40px;padding:8px 12px;font-size:13px}
  .desk-tools{grid-template-columns:minmax(0,1fr);gap:0;border:1px solid var(--desk-rule);border-radius:12px;background:var(--desk-panel);padding:0 13px;margin:13px 0 16px}.desk-tool{grid-template-columns:34px minmax(0,1fr) auto;column-gap:11px;min-height:59px;padding:10px 0;border:0;border-top:1px solid var(--desk-rule);border-radius:0;background:transparent}.desk-tool:first-child{border-top:0}.desk-tool-symbol{width:32px;height:32px;border-radius:9px}.desk-tool-symbol svg{width:17px;height:17px}.desk-tool strong{font-size:15px}.desk-tool small{font-size:12px;grid-column:2;grid-row:2;margin-top:1px}.desk-tool>.desk-chevron{display:block;width:15px;height:15px;grid-column:3;grid-row:1 / span 2;align-self:center;color:var(--desk-muted)}.desk-tool:hover{transform:none}
  .desk-lower{grid-template-columns:minmax(0,1fr);gap:12px}.desk-library,.desk-timer{padding:16px}.desk-section-title h2{font-size:17px}.desk-library-empty{min-height:67px;gap:11px}.desk-library-empty strong{font-size:14px}.desk-timer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 8px}.desk-timer .desk-section-title{grid-column:1}.desk-timer .desk-section-title>svg{display:none}.desk-clock{grid-column:1;font-size:31px;margin:0}.desk-timer-actions{grid-column:2;grid-row:1 / span 2}.desk-file time{display:none}.desk-file{grid-template-columns:30px minmax(0,1fr) 15px}
  .desk-footer-tools>span{margin-left:0}.desk-footer-tools{gap:2px}
}
@media(max-width:360px){
  .desk-feature{min-height:220px}.desk-feature-copy{padding:17px 12px}.desk-main-action{padding-inline:10px}.desk-title>span{font-size:11px}.topbar{padding-inline:15px}.desk-tool{min-height:57px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
}
