/* ==========================================================================
   Set Become Get paper theme
   Loaded after style.css. Restyles the public site; the admin shell keeps its
   own look (every rule is scoped to body:not(.admin-shell)).
   ========================================================================== */

:root {
  --desk: #f3efe6;
  --sheet: #fffdf8;
  --ink: #171512;
  --pencil: #5e584e;
  --rule: #dcd5c7;
  --rule-soft: #e7e0d2;
  --sindoor: #ea4a1f;
  --sindoor-text: #c2380f;
  --sheet-shadow: 0 1px 0 rgba(23, 21, 18, 0.06), 0 14px 28px -20px rgba(23, 21, 18, 0.45);
  --sheet-shadow-up: 0 1px 0 rgba(23, 21, 18, 0.06), 0 26px 36px -22px rgba(23, 21, 18, 0.55);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-heading: "Anek Latin", "Anek Devanagari", "Anek Bangla", system-ui, sans-serif;
  --font-body: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Bengali", system-ui, sans-serif;
  --font-button: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Bengali", system-ui, sans-serif;
  --border: 1.5px solid var(--ink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Base ---------- */
body:not(.admin-shell) {
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}
body:not(.admin-shell)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .32 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
body:not(.admin-shell) h1,
body:not(.admin-shell) h2,
body:not(.admin-shell) h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}
body:not(.admin-shell) a { color: var(--ink); text-underline-offset: 3px; }
/* Focus: a quiet ink ring for keyboard users only; fields just darken. */
body:not(.admin-shell) :is(a, button, summary, [tabindex]):focus { outline: none; }
body:not(.admin-shell) :is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
body:not(.admin-shell) :is(input:not([type="range"]), select, textarea):focus,
body:not(.admin-shell) :is(input:not([type="range"]), select, textarea):focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
body:not(.admin-shell) :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]) {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font-body);
}

/* ---------- Buttons and chips ---------- */
body:not(.admin-shell) :is(.small-btn, .square-action, .outline-btn, .public-button, .job-detail-button) {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--desk);
  font-family: var(--font-button);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms var(--ease), background-color 200ms, color 200ms;
}
body:not(.admin-shell) :is(.small-btn, .square-action, .outline-btn) {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
body:not(.admin-shell) :is(.small-btn, .square-action, .outline-btn, .public-button, .job-detail-button):hover {
  background: #2c2924;
  color: var(--desk);
}
body:not(.admin-shell) :is(.small-btn, .square-action, .outline-btn, .filter-btn, .public-button):active { transform: scale(0.96); }
body:not(.admin-shell) .filter-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-button);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background-color 200ms, color 200ms, transform 160ms var(--ease);
}
body:not(.admin-shell) :is(.filter-btn:hover, .filter-btn.active) { background: var(--ink); color: var(--desk); }

/* ---------- Header ---------- */
body:not(.admin-shell) .site-header {
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  background: transparent;
  gap: 12px 24px;
}
body:not(.admin-shell) .main-nav { gap: 4px 20px; }
body:not(.admin-shell) :is(.main-nav > a, .services-menu summary) {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-button);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  background-image: linear-gradient(var(--sindoor), var(--sindoor));
  background-size: 0 2px;
  background-position: 0 85%;
  background-repeat: no-repeat;
  transition: background-size 240ms var(--ease);
}
body:not(.admin-shell) :is(.main-nav > a:hover, .services-menu summary:hover, .services-menu[open] summary) {
  background-color: transparent;
  color: var(--ink);
  background-size: 100% 2px;
}
body:not(.admin-shell) .services-menu-panel {
  border: 0;
  border-radius: 6px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow-up);
  padding: 8px;
  animation: paper-settle 260ms var(--ease) both;
}
body:not(.admin-shell) .services-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
}
body:not(.admin-shell) .services-menu-panel a:hover { background: var(--desk); color: var(--ink); }
body:not(.admin-shell) .services-menu-category {
  color: var(--pencil);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body:not(.admin-shell) .locale-selector {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 14px;
}
body:not(.admin-shell) #loginBtn {
  border-radius: 999px;
  background: var(--ink);
  color: var(--desk);
}

/* ---------- Section headings ---------- */
body:not(.admin-shell) .section { margin-top: clamp(64px, 8vw, 104px); }
body:not(.admin-shell) .section-heading { margin-bottom: 22px; }
body:not(.admin-shell) .arrow-square {
  border: 0;
  padding: 0;
  gap: 12px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
body:not(.admin-shell) .arrow-square h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
}
body:not(.admin-shell) .arrow-square span {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  transition: transform 240ms var(--ease);
}
body:not(.admin-shell) .arrow-square:hover span { background: transparent; color: var(--sindoor-text); transform: translateX(6px); }

/* ---------- Paper sheets (shared look for cards and panels) ---------- */
body:not(.admin-shell) :is(.job-card, .community-card, .prep-card, .workflow-box, .board-item, .updates-box,
  .alert-panel, .eligibility-panel, .tracker-list, .daily-card, .public-card, .public-faq, .job-related-card,
  .board-detail-section, .dashboard-stat-card, .information-section) {
  border: 0;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  color: var(--ink);
}
body:not(.admin-shell) :is(.job-card, .community-card, .prep-card, .board-item, .public-card, .job-related-card) {
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
body:not(.admin-shell) :is(.job-card, .community-card, .prep-card, .board-item, .public-card, .job-related-card):hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: var(--sheet-shadow-up);
}
body:not(.admin-shell) .paper-stamp {
  display: inline-block;
  padding: 2px 10px;
  border: 3px solid var(--sindoor);
  border-radius: 8px;
  color: var(--sindoor-text);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transform: rotate(-8deg);
  animation: paper-stamp 450ms var(--ease) both;
}

/* ---------- Home: hero and notice deck ---------- */
body.home-page #home { width: min(1160px, calc(100% - 40px)); max-width: none; }
body.home-page .paper-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
  min-height: 0;
  padding: clamp(28px, 6vw, 72px) 0 0;
}
body.home-page .paper-hero .hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
body.home-page .paper-hero .hero-copy h1 {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-heading);
  font-stretch: 106%;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  animation: paper-rise 600ms 60ms var(--ease) both;
}
body.home-page .paper-hero h1 mark {
  background: linear-gradient(transparent 62%, rgba(234, 74, 31, 0.35) 62%);
  color: inherit;
}
body.home-page .paper-lede {
  margin: 0;
  max-width: 480px;
  color: var(--pencil);
  font-size: 19px;
  line-height: 1.55;
  animation: paper-rise 600ms 180ms var(--ease) both;
}
body.home-page .paper-hero .search-row {
  display: flex;
  gap: 8px;
  max-width: 540px;
  animation: paper-rise 600ms 300ms var(--ease) both;
}
body.home-page .paper-hero .search-row input {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  font-size: 17px;
}
body.home-page .paper-hero .search-row .square-action { min-height: 54px; padding: 0 24px; font-size: 16px; }
body.home-page .paper-hero .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: paper-rise 600ms 420ms var(--ease) both;
}
body.home-page #boardFilterButtons { display: contents; }

body.home-page .notice-deck {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.deck-stack { position: relative; width: 270px; height: 350px; }
.deck-sheet {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
}
.deck-back-one { transform: rotate(-7deg); animation: paper-settle 700ms 200ms var(--ease) backwards; }
.deck-back-two { transform: rotate(5deg); animation: paper-settle 700ms 340ms var(--ease) backwards; }
.deck-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-1.5deg);
  transition: transform 300ms var(--ease), box-shadow 300ms;
  animation: paper-settle 700ms 480ms var(--ease) backwards;
}
.deck-top:hover { transform: translateY(-8px) rotate(0deg); box-shadow: var(--sheet-shadow-up); }
.deck-top.deal-next { animation: paper-deal-next 420ms var(--ease) backwards; }
.deck-top.deal-prev { animation: paper-deal-prev 420ms var(--ease) backwards; }
.deck-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.deck-flag { color: var(--sindoor-text); white-space: nowrap; }
.deck-title { font-family: var(--font-heading); font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.deck-org { color: var(--pencil); font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-soft); }
.deck-facts { display: flex; flex-direction: column; gap: 4px; }
.deck-fact { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.deck-fact span { color: var(--pencil); }
.deck-fact b { text-align: right; }
.deck-stamp { align-self: flex-end; margin-top: auto; }
.deck-empty { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; text-align: center; }
.deck-empty strong { font-family: var(--font-heading); font-size: 22px; }
.deck-empty span { color: var(--pencil); }
.deck-controls { display: flex; align-items: center; gap: 14px; }
.deck-arrow {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: background-color 200ms, color 200ms, transform 160ms var(--ease);
}
.deck-arrow:hover { background: var(--ink); color: var(--desk); }
.deck-arrow:active { transform: scale(0.94); }
.deck-position { min-width: 72px; text-align: center; font-size: 14px; font-weight: 600; }
.deck-all { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }

/* ---------- Home: closing-soon notices ---------- */
body.home-page #jobList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}
body:not(.admin-shell) .job-card.paper-notice {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  height: auto;
  min-height: 0;
  padding: 20px 22px 22px !important;
  cursor: pointer;
  transform: rotate(var(--tilt, 0deg));
  animation: paper-settle 450ms var(--delay, 0ms) var(--ease) backwards;
}
body:not(.admin-shell) .job-card.paper-notice { text-align: left; }
.paper-notice .notice-stub {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--rule);
}
.paper-notice .notice-count strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}
.paper-notice .notice-count strong.is-urgent { color: var(--sindoor-text); }
.paper-notice .notice-count span { color: var(--pencil); font-size: 13px; }
body:not(.admin-shell) .paper-notice .job-info { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.paper-notice .notice-board { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
body:not(.admin-shell) .paper-notice .job-name { font-family: var(--font-heading); font-size: 21px; font-weight: 700; line-height: 1.15; }
body:not(.admin-shell) .paper-notice .job-org { color: var(--pencil); font-size: 13px; }
body:not(.admin-shell) .paper-notice .job-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: auto 0 0;
}
body:not(.admin-shell) .paper-notice .deadline {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pencil);
  font-size: 13px;
  text-align: left;
}

/* ---------- Home: other sections ---------- */
body.home-page .workflow-grid { gap: 20px; }
body.home-page .workflow-box { padding: 22px; }
body.home-page .workflow-box strong { font-family: var(--font-heading); font-size: 48px; font-weight: 800; line-height: 1; }
body.home-page .mini-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--pencil); }
body:not(.admin-shell) .community-card { padding: 22px; }
body:not(.admin-shell) .community-icon,
body:not(.admin-shell) .prep-icon,
body:not(.admin-shell) .board-item span { border: 0; background: var(--desk); border-radius: 10px; }
body:not(.admin-shell) .carousel-arrow {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
body:not(.admin-shell) .carousel-arrow:hover { background: var(--ink); color: var(--desk); }
body:not(.admin-shell) .prep-card { padding: 20px; text-align: left; }
body:not(.admin-shell) .prep-card.selected { box-shadow: 0 0 0 3px var(--ink), var(--sheet-shadow-up); }
body:not(.admin-shell) .board-item { padding: 14px 16px; text-decoration: none; }
body:not(.admin-shell) .updates-box { padding: 8px 20px; }
body:not(.admin-shell) .update-line { border-color: var(--rule-soft); }
body:not(.admin-shell) .alert-panel,
body:not(.admin-shell) .eligibility-panel { padding: 24px; }
body:not(.admin-shell) .empty-tracker { border: 0; color: var(--pencil); }

/* Daily Learning, in paper */
body:not(.admin-shell) .daily-learning-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
}
body:not(.admin-shell) .daily-learning-heading p { color: var(--pencil); font-size: 15px; }
body:not(.admin-shell) .daily-kicker,
body:not(.admin-shell) .daily-card-label { color: var(--sindoor-text); }
body:not(.admin-shell) .daily-tabs { border-bottom: 0; gap: 8px; }
body:not(.admin-shell) .daily-tab {
  min-height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
}
body:not(.admin-shell) .daily-tab.is-active { background: var(--ink); color: var(--desk); }
body:not(.admin-shell) .daily-tab span { background: var(--desk); color: var(--ink); border-radius: 999px; }
body:not(.admin-shell) .daily-card { transform: rotate(-0.6deg); }
body:not(.admin-shell) :is(.daily-takeaway, .daily-example, .daily-why) {
  border-left: 0;
  border-top: 2px dashed var(--rule);
  background: transparent;
  padding: 12px 0 0;
}
body:not(.admin-shell) :is(.daily-takeaway, .daily-example, .daily-why) > span { color: var(--pencil); }
body:not(.admin-shell) .daily-controls button {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

/* FAQs */
body:not(.admin-shell) #faqList details,
body:not(.admin-shell) .public-faq details { border-color: var(--rule-soft); }
body:not(.admin-shell) #faqList summary,
body:not(.admin-shell) .public-faq summary { min-height: 52px; font-weight: 600; }

/* ---------- Public pages (jobs, communities, services, FAQs, boards…) ---------- */
body:not(.admin-shell):not(.user-workspace-route) .public-page {
  width: min(1160px, calc(100% - 40px));
  padding: clamp(20px, 4vw, 40px) 0 72px;
  color: var(--ink);
  font-family: var(--font-body);
}
body:not(.admin-shell) .public-eyebrow { display: none; }
body:not(.admin-shell) .public-page h1,
body:not(.admin-shell) .job-detail-header h1 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-stretch: 104%;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  animation: paper-rise 500ms var(--ease) both;
}
body:not(.admin-shell) .public-intro { max-width: 60ch; color: var(--pencil); font-size: 18px; margin-bottom: 28px; }
body:not(.admin-shell) .public-section { margin: 40px 0; }
body:not(.admin-shell) .public-section-heading { align-items: baseline; padding-bottom: 12px; border-bottom: 2px dashed var(--rule); }
body:not(.admin-shell) .public-section-heading h2 { font-family: var(--font-heading); font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
body:not(.admin-shell) .public-text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 600; font-family: var(--font-body); }
body:not(.admin-shell) .public-notice { color: var(--pencil); }
body:not(.admin-shell) .public-notice.is-error { color: var(--sindoor-text); }

/* Filter forms sit on one sheet */
body:not(.admin-shell) .public-filter-form {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
  margin: 18px 0;
  padding: 20px;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
}
body:not(.admin-shell) .public-field { color: var(--ink); font-weight: 600; font-size: 14px; }
body:not(.admin-shell) .public-field :is(input, select) { min-height: 48px; padding: 0 14px; border-radius: 12px; font-weight: 400; }
body:not(.admin-shell) .public-more-filters { grid-column: 1 / -1; }
body:not(.admin-shell) .public-more-filters summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
body:not(.admin-shell) .public-more-filters summary::-webkit-details-marker { display: none; }
body:not(.admin-shell) .public-more-filters summary::after { content: "+"; font-size: 20px; transition: transform 250ms var(--ease); }
body:not(.admin-shell) .public-more-filters[open] summary::after { transform: rotate(45deg); }
body:not(.admin-shell) .public-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; padding-top: 8px; animation: paper-drop 240ms var(--ease) both; }
body:not(.admin-shell) .public-form-actions { align-items: center; }

/* Card lists become sheets on the desk */
body:not(.admin-shell) .public-card-list {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 22px;
  margin-top: 20px;
}
body:not(.admin-shell) .public-card {
  padding: 20px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  animation: paper-settle 450ms var(--ease) backwards;
}
body:not(.admin-shell) .public-card:nth-child(4n + 1) { transform: rotate(-0.6deg); }
body:not(.admin-shell) .public-card:nth-child(4n + 2) { transform: rotate(0.5deg); animation-delay: 60ms; }
body:not(.admin-shell) .public-card:nth-child(4n + 3) { transform: rotate(-0.3deg); animation-delay: 120ms; }
body:not(.admin-shell) .public-card:nth-child(4n) { transform: rotate(0.7deg); animation-delay: 180ms; }
body:not(.admin-shell) .public-card:hover { transform: translateY(-6px) rotate(0deg); box-shadow: var(--sheet-shadow-up); }
body:not(.admin-shell) .public-card-title {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}
body:not(.admin-shell) .public-card-title::after { content: ""; position: absolute; inset: 0; }
body:not(.admin-shell) .public-card { position: relative; }
body:not(.admin-shell) .public-card :is(button, a:not(.public-card-title), select, input) { position: relative; z-index: 1; }
body:not(.admin-shell) .public-card p { color: var(--pencil); }
body:not(.admin-shell) .public-card-meta { font-size: 13px; }
body:not(.admin-shell) .public-job-card .notice-stub {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--rule);
}
body:not(.admin-shell) .public-job-card .notice-count strong { display: block; font-family: var(--font-heading); font-size: 44px; font-weight: 800; line-height: 1; }
body:not(.admin-shell) .public-job-card .notice-count strong.is-urgent { color: var(--sindoor-text); }
body:not(.admin-shell) .public-job-card .notice-count span { color: var(--pencil); font-size: 13px; }
body:not(.admin-shell) .public-job-card .notice-board { margin: 0 0 4px; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
body:not(.admin-shell) .public-card .small-btn { min-height: 44px; }
body:not(.admin-shell) .public-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
body:not(.admin-shell) .public-pagination button {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
body:not(.admin-shell) .public-pagination button:disabled { opacity: 0.35; cursor: default; }
body:not(.admin-shell) .public-faq details,
body:not(.admin-shell) .public-page details:not(.public-more-filters) { border-color: var(--rule-soft); }
body:not(.admin-shell) .public-service-card { display: flex; flex-direction: column; gap: 4px; }
body:not(.admin-shell) .public-service-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 12px; background: var(--desk); }
body:not(.admin-shell) .public-service-icon .icon, body:not(.admin-shell) .public-service-icon svg { width: 24px; height: 24px; }
body:not(.admin-shell) .public-faq-section { margin-top: 0; }
body:not(.admin-shell) .public-faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
body:not(.admin-shell) .public-faq-list .public-faq {
  margin: 0;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 200ms;
}
body:not(.admin-shell) .public-faq-list .public-faq:hover { transform: translateY(-4px); box-shadow: var(--sheet-shadow-up); border-color: var(--ink); }
body:not(.admin-shell) .public-faq-list .public-faq[open] { border-color: var(--ink); }
body:not(.admin-shell) .public-faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
body:not(.admin-shell) .public-faq-list summary::-webkit-details-marker { display: none; }
body:not(.admin-shell) .public-faq-list summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; transition: transform 250ms var(--ease); }
body:not(.admin-shell) .public-faq-list details[open] summary::after { transform: rotate(45deg); }
body:not(.admin-shell) .public-faq-list details p { margin: 0 0 20px; padding-top: 14px; border-top: 2px dashed var(--rule); color: var(--pencil); animation: paper-drop 240ms var(--ease) both; }
body:not(.admin-shell) .information-section { padding: 22px; margin: 18px 0; }
body:not(.admin-shell) .information-section h2 { font-family: var(--font-heading); font-weight: 800; }

/* ---------- Job notice page ---------- */
body:not(.admin-shell) .job-details-main { width: min(1160px, calc(100% - 40px)); padding-top: 16px; }
body:not(.admin-shell) .job-breadcrumbs { font-size: 13px; color: var(--pencil); }
body:not(.admin-shell) .job-breadcrumbs a { min-height: 32px; display: inline-flex; align-items: center; color: var(--ink); }
body:not(.admin-shell) .job-details-content {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  grid-template-areas: "header actions" "sections actions";
  gap: 24px 32px;
  align-items: start;
}
body:not(.admin-shell) .job-details-content > .job-detail-header { grid-area: header; }
body:not(.admin-shell) .job-details-content > .job-detail-actions { grid-area: actions; }
body:not(.admin-shell) .job-details-content > :not(.job-detail-header):not(.job-detail-actions) { grid-column: 1; }
body:not(.admin-shell) .job-detail-header {
  position: relative;
  padding: clamp(22px, 4vw, 40px);
  border: 0;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  animation: paper-settle 600ms var(--ease) both;
}
body:not(.admin-shell) .job-detail-header::after {
  content: "VERIFY ON NOTICE";
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 2px 10px;
  border: 3px solid var(--sindoor);
  border-radius: 8px;
  color: var(--sindoor-text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-8deg);
}
body:not(.admin-shell) .job-detail-countdown { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px dashed var(--rule); }
body:not(.admin-shell) .job-detail-countdown strong { font-family: var(--font-heading); font-size: 56px; font-weight: 800; line-height: 1; }
body:not(.admin-shell) .job-detail-countdown strong.is-urgent { color: var(--sindoor-text); }
body:not(.admin-shell) .job-detail-countdown span { color: var(--pencil); }
body:not(.admin-shell) .job-detail-eyebrow { color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding-right: 150px; }
body:not(.admin-shell) .job-detail-subtitle { color: var(--pencil); }
body:not(.admin-shell) a.job-detail-subtitle { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; margin-right: 8px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
body:not(.admin-shell) .job-detail-meta { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 20px; margin-top: 20px; border-top: 2px dashed var(--rule); }
body:not(.admin-shell) .job-detail-field { border-top: 0; border-bottom: 1px solid var(--rule-soft); padding: 12px 0; }
body:not(.admin-shell) .job-detail-field dt { color: var(--pencil); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
body:not(.admin-shell) .job-detail-field dd { font-weight: 600; }
body:not(.admin-shell) .job-detail-actions {
  position: sticky;
  top: 16px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 22px;
  border: 0;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  transform: rotate(0.6deg);
}
body:not(.admin-shell) .job-detail-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 600 15px var(--font-body);
  transition: background-color 200ms, color 200ms, transform 160ms var(--ease);
}
body:not(.admin-shell) .job-detail-button:hover { background: var(--ink); color: var(--desk); }
body:not(.admin-shell) .job-detail-button:active { transform: scale(0.97); }
body:not(.admin-shell) .job-detail-button.is-primary { min-height: 56px; border: 0; background: var(--sindoor); color: var(--ink); font-size: 16px; font-weight: 700; }
body:not(.admin-shell) .job-detail-button.is-primary:hover { background: #d63f16; color: var(--ink); }
body:not(.admin-shell) .job-detail-user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body:not(.admin-shell) .job-detail-user-actions .job-detail-button:last-child:nth-child(odd) { grid-column: 1 / -1; }
body:not(.admin-shell) .job-detail-external-note { margin: 0; font-size: 12px; }
body:not(.admin-shell) .job-detail-closed { border-radius: 8px; border-color: var(--sindoor); color: var(--sindoor-text); }
body:not(.admin-shell) .job-detail-sections { display: flex; flex-direction: column; gap: 20px; }
body:not(.admin-shell) .job-detail-section {
  padding: 22px 24px;
  border: 0;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
}
body:not(.admin-shell) .job-detail-section h2 { margin-top: 0; font-family: var(--font-heading); font-size: 24px; font-weight: 800; padding-bottom: 10px; border-bottom: 2px dashed var(--rule); }
body:not(.admin-shell) .job-related-section h2 { font-family: var(--font-heading); font-weight: 800; }
body:not(.admin-shell) .job-detail-data-table th { background: var(--desk); }
body:not(.admin-shell) .job-detail-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body:not(.admin-shell) .job-detail-section { min-width: 0; overflow-wrap: anywhere; }
html:has(body:not(.admin-shell)), body:not(.admin-shell) { overflow-x: clip; }
@media (max-width: 900px) {
  body:not(.admin-shell) .job-details-content { grid-template-columns: 1fr; grid-template-areas: "header" "actions" "sections"; }
  body:not(.admin-shell) .job-detail-actions { position: static; transform: none; }
  body:not(.admin-shell) .job-detail-header::after { position: static; display: inline-block; margin-bottom: 10px; }
  body:not(.admin-shell) .job-detail-eyebrow { padding-right: 0; }
}

/* ---------- Modal ---------- */
body:not(.admin-shell) .modal {
  border: 0;
  border-radius: 6px;
  background: var(--sheet);
  box-shadow: 0 30px 60px -30px rgba(23, 21, 18, 0.6);
  animation: paper-settle 360ms var(--ease) both;
}
body:not(.admin-shell) .modal-backdrop { z-index: 200; background: rgba(23, 21, 18, 0.45); }
body:not(.admin-shell) .modal-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--sheet);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms, color 200ms, transform 200ms var(--ease);
}
body:not(.admin-shell) .modal-close:hover { background: var(--ink); color: var(--desk); transform: rotate(90deg); }

/* ---------- Sign-in page (also register, forgot, reset and verify) ---------- */
body:not(.admin-shell) .modal-backdrop:has(.auth-view) {
  display: block;
  padding: 0;
  background: var(--desk);
}
body:not(.admin-shell) .modal-backdrop[hidden] { display: none; }
body:not(.admin-shell) .modal-backdrop .modal:has(.auth-view) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  overflow-y: auto;
  padding: 72px 20px 16px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
body:not(.admin-shell) .modal:has(.auth-view) .modal-close { position: fixed; top: 16px; right: 16px; z-index: 2; }
body:not(.admin-shell) .auth-view {
  box-sizing: border-box;
  width: min(440px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 4.5vw, 34px) clamp(20px, 5vw, 40px);
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: 0 1px 0 rgba(23, 21, 18, 0.06), 0 18px 34px -22px rgba(23, 21, 18, 0.5);
  animation: paper-settle 600ms var(--ease) backwards;
}
.auth-brand { position: absolute; top: 18px; left: max(20px, calc(50% - 560px)); min-height: 44px; display: inline-flex; align-items: center; }
.auth-brand img { display: block; height: 36px; width: auto; }
body:not(.admin-shell) .auth-view h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(30px, 8vw, 38px); font-weight: 800; line-height: 1.05; }
.auth-view p { margin: 0; }
.auth-view .auth-intro { color: var(--pencil); font-size: 15px; }
body:not(.admin-shell) .auth-view .auth-google {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms, transform 160ms var(--ease);
}
body:not(.admin-shell) .auth-view .auth-google:hover { background: var(--desk); }
body:not(.admin-shell) .auth-view .auth-google:active { transform: scale(0.98); }
.auth-view .auth-google svg { width: 20px; height: 20px; flex: none; }
.auth-view .auth-divider { display: flex; align-items: center; gap: 10px; color: var(--pencil); font-size: 13px; }
.auth-view .auth-divider::before, .auth-view .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
body:not(.admin-shell) .auth-view .auth-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
body:not(.admin-shell) .auth-view .auth-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 14px; font-weight: 600; }
body:not(.admin-shell) .auth-view .auth-field input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--sheet);
  font-size: 16px;
  font-weight: 400;
}
.auth-view .password-visibility-control { position: relative; display: block; width: 100%; }
body:not(.admin-shell) .auth-view .password-visibility-control input { padding-right: 76px; }
body:not(.admin-shell) .auth-view .password-visibility-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  width: auto;
  height: auto;
  min-width: 64px !important;
  width: 64px !important;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--font-body);
  transform: none;
  cursor: pointer;
}
.auth-view .password-visibility-toggle svg { display: none; }
.auth-view .password-visibility-toggle::after { content: "Show"; }
.auth-view .password-visibility-toggle[aria-pressed="true"]::after { content: "Hide"; }
body:not(.admin-shell) .auth-view .auth-forgot {
  align-self: flex-end;
  min-height: 44px;
  margin: -6px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 14px var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
body:not(.admin-shell) .auth-view .auth-form button[type="submit"] { width: 100%; min-height: 54px; margin: 0; font-size: 16px; }
body:not(.admin-shell) .auth-view .auth-coming-soon {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  margin: 0;
  border: 1.5px dashed #b5ad9e;
  border-radius: 12px;
  background: transparent;
  color: var(--pencil);
  font: 15px var(--font-body);
  cursor: not-allowed;
}
.auth-view .auth-switch { text-align: center; font-size: 15px; }
body:not(.admin-shell) .auth-view .auth-switch button {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 15px var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
.auth-view .auth-legal { color: var(--pencil); font-size: 12px; text-align: center; }
body:not(.admin-shell) .auth-view .auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0; }
body:not(.admin-shell) .auth-view .auth-links button { min-height: 44px; border: 0; background: transparent; color: var(--ink); font: 700 15px var(--font-body); text-decoration: underline; cursor: pointer; }
.auth-view .app-notice { margin: 0; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--desk); font-size: 14px; }

/* ---------- Footer ---------- */
body:not(.admin-shell) .site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: 32px;
  border-top: 1.5px solid var(--ink);
}
body:not(.admin-shell) .footer-links a { color: var(--pencil); text-decoration: none; }
body:not(.admin-shell) .footer-links a:hover { color: var(--ink); text-decoration: underline; }
body:not(.admin-shell) .footer-placeholder { width: auto; height: auto; border: 0; padding: 0; }
body:not(.admin-shell) .footer-resource-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 12px 16px;
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  text-decoration: none;
}
body:not(.admin-shell) .back-top {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  min-height: 44px;
}

/* ---------- Language menu (opens below its button) ---------- */
.paper-lang { position: relative; }
.paper-lang-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 14px var(--font-body);
  cursor: pointer;
}
.paper-lang-button:hover { background: var(--sheet); }
.paper-lang-chevron { font-size: 11px; transition: transform 200ms var(--ease); }
.paper-lang-button[aria-expanded="true"] .paper-lang-chevron { transform: rotate(180deg); }
.paper-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow-up);
  animation: paper-drop 200ms var(--ease) both;
}
.paper-lang-menu[hidden] { display: none; }
.paper-lang-menu li {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}
.paper-lang-menu li:hover,
.paper-lang-menu li:focus { background: var(--desk); outline: none; }
.paper-lang-menu li[aria-selected="true"] { font-weight: 700; }
.paper-lang-menu li[aria-selected="true"]::after { content: "✓"; margin-left: auto; }

/* ---------- Home: file tools ---------- */
.paper-section-lede { margin: -10px 0 22px; color: var(--pencil); }
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 22px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.tool-card:nth-child(odd) { transform: rotate(-0.8deg); }
.tool-card:nth-child(even) { transform: rotate(0.7deg); }
.tool-card:hover { transform: translateY(-8px) rotate(0deg); box-shadow: var(--sheet-shadow-up); }
.tool-card svg { width: 46px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tool-card strong { font-size: 18px; }
.tool-card span { color: var(--pencil); font-size: 14px; }

/* ---------- Home: typing teaser ---------- */
.typing-sheet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
}
.typing-copy { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.typing-copy h2 { margin: 0; font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; }
.typing-copy p { margin: 0; color: var(--pencil); }
.paper-cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--sindoor);
  color: var(--ink) !important;
  font-weight: 700;
  text-decoration: none;
}
.paper-cta span { transition: transform 220ms var(--ease); }
.paper-cta:hover span { transform: translateX(6px); }
.typing-demo {
  flex: 1 1 360px;
  min-width: 0;
  min-height: 110px;
  margin: 0;
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.8;
}
.typing-rest { color: #a39b8c; }
.typing-caret {
  display: inline-block;
  width: 3px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--sindoor);
  animation: paper-caret 1s steps(1) infinite;
}

/* ---------- Home: My Job Preparation ---------- */
.desk-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  align-items: start;
}
.desk-sheet {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.desk-sheet:nth-child(1) { transform: rotate(-0.5deg); }
.desk-sheet:nth-child(3) { transform: rotate(0.5deg); }
.desk-sheet:hover { transform: translateY(-4px) rotate(0deg); box-shadow: var(--sheet-shadow-up); }
.desk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--rule); }
.desk-head h3 { margin: 0; font-size: 22px; font-weight: 800; }
.desk-head strong { font-family: var(--font-heading); font-size: 40px; font-weight: 800; line-height: 1; }
body:not(.admin-shell) .desk-sheet.alert-panel { padding: 22px; margin: 0; }
.desk-sheet p { margin: 0; color: var(--pencil); font-size: 14px; }
.desk-apps:not(:has(.desk-app-list)) .desk-legend { display: none; }
.desk-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--pencil); font-size: 11px; font-weight: 600; }
body:not(.admin-shell) .desk-sheet .tracker-list { padding: 0; margin: 0; background: transparent; box-shadow: none; border-radius: 0; }
.desk-app-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.desk-app { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.desk-app-title { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-app-stage { grid-row: 1; grid-column: 2; color: var(--sindoor-text); font-size: 13px; font-weight: 700; }
.desk-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.desk-steps li { height: 6px; border-radius: 6px; background: var(--rule-soft); }
.desk-steps li.is-done { background: var(--ink); }
.desk-steps li.is-now { background: var(--sindoor); animation: paper-grow 600ms var(--ease) both; transform-origin: left; }
.desk-empty { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.desk-empty p { margin: 0; color: var(--pencil); font-size: 14px; }
.desk-empty-link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.desk-saved-list { display: flex; flex-direction: column; gap: 12px; }
.desk-saved-sheet {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--desk);
  color: var(--ink);
  text-decoration: none;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 250ms var(--ease), background-color 200ms;
}
.desk-saved-sheet:hover { transform: translateX(6px) rotate(0deg); background: #ebe5d8; }
.desk-saved-sheet span { color: var(--pencil); font-size: 13px; }
.desk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.desk-chip {
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--font-body);
  cursor: pointer;
  transition: background-color 200ms, color 200ms, transform 160ms var(--ease);
}
.desk-chip:hover:not(:disabled) { background: var(--ink); color: var(--desk); }
.desk-chip:active:not(:disabled) { transform: scale(0.95); }
.desk-chip.is-on { background: var(--ink); color: var(--desk); cursor: default; }
body:not(.admin-shell) .desk-alerts .alert-controls { display: flex; gap: 8px; width: 100%; }
body:not(.admin-shell) .desk-alerts .alert-controls input { flex: 1; min-width: 0; width: auto; height: 48px; padding: 0 14px; }
body:not(.admin-shell) .desk-alerts .alert-controls .small-btn { height: 48px; min-width: 72px; }

/* ---------- Home: also on Set Become Get ---------- */
.paper-plain-heading { margin: 0; font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; line-height: 1.05; }
.paper-explore { display: flex; flex-direction: column; gap: 24px; }
.paper-explore .section-heading { margin-bottom: 0; }
.explore-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.explore-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.explore-sheet {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
}
.explore-sheet p { margin: 0; color: var(--pencil); }
.sheet-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--rule); color: var(--ink); text-decoration: none; }
.sheet-heading h3 { margin: 0; font-size: 24px; font-weight: 800; }
.sheet-heading span { font-size: 20px; transition: transform 220ms var(--ease); }
.sheet-heading:hover span { transform: translateX(6px); }
[data-empty]:empty::before { content: attr(data-empty); display: block; padding: 6px 0; color: var(--pencil); font-size: 14px; }

/* Latest updates as a notice board */
body:not(.admin-shell) .explore-updates .updates-box { padding: 0; border: 0; background: transparent; box-shadow: none; }
body:not(.admin-shell) .explore-updates .update-line {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 200ms, padding-left 220ms var(--ease);
}
body:not(.admin-shell) .explore-updates a.update-line:hover { background: var(--desk); padding-left: 14px; }
body:not(.admin-shell) .explore-updates .update-type {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--desk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Eligibility call-out: an ink sheet */
.explore-elig { position: relative; background: var(--ink); color: var(--desk); box-shadow: var(--sheet-shadow-up); transform: rotate(0.6deg); }
.explore-elig h3 { margin: 0; color: var(--desk); font-size: 26px; font-weight: 800; }
.explore-elig p { color: #cfc6b5; max-width: 34ch; }
.explore-elig .paper-cta { align-self: flex-start; }
body:not(.admin-shell) .explore-elig-stamp { position: absolute; top: 18px; right: 18px; border-color: var(--sindoor); color: #ff8a66; font-size: 13px; }

/* Boards as chips */
body:not(.admin-shell) .explore-sheet .boards-row { display: flex !important; flex-wrap: wrap; gap: 8px; grid-template-columns: none; }
body:not(.admin-shell) .explore-sheet .board-item {
  flex: none !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 44px;
  width: auto;
  height: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 6px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
body:not(.admin-shell) .explore-sheet .board-item:hover { transform: none; background: var(--ink); color: var(--desk); box-shadow: none; }
body:not(.admin-shell) .explore-sheet .board-item span { width: 32px; height: 32px; margin: 0; display: grid; place-items: center; border: 0; border-radius: 50%; }
body:not(.admin-shell) .explore-sheet .board-item b { white-space: nowrap; overflow-wrap: normal; text-align: left; font-size: 14px; font-weight: 600; }

/* Exam preparation as index cards */
body:not(.admin-shell) .explore-prep .prep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
body:not(.admin-shell) .explore-prep .prep-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: none;
  text-align: left;
}
body:not(.admin-shell) .explore-prep .prep-card:hover { transform: translateY(-4px); box-shadow: var(--sheet-shadow); border-color: var(--ink); }
body:not(.admin-shell) .explore-prep .prep-card .prep-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 4px; }
body:not(.admin-shell) .explore-prep .prep-card strong { font-size: 16px; }
body:not(.admin-shell) .explore-prep .prep-card span:last-child { color: var(--pencil); font-size: 13px; }

/* Communities */
body:not(.admin-shell) .explore-communities .community-card { box-shadow: none; border: 1px solid var(--rule-soft); }
body:not(.admin-shell) .explore-communities .community-card:hover { border-color: var(--ink); box-shadow: var(--sheet-shadow); }

/* FAQs */
body:not(.admin-shell) .explore-faqs #faqList { display: flex; flex-direction: column; }
body:not(.admin-shell) .explore-faqs #faqList details { border: 0; border-bottom: 1px solid var(--rule-soft); padding: 0; background: transparent; }
body:not(.admin-shell) .explore-faqs #faqList summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}
body:not(.admin-shell) .explore-faqs #faqList summary::-webkit-details-marker { display: none; }
body:not(.admin-shell) .explore-faqs #faqList summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; transition: transform 250ms var(--ease); }
body:not(.admin-shell) .explore-faqs #faqList details[open] summary::after { transform: rotate(45deg); }
body:not(.admin-shell) .explore-faqs #faqList details p { margin: 0 0 16px; color: var(--pencil); animation: paper-drop 240ms var(--ease) both; }

@media (max-width: 850px) {
  .explore-layout { grid-template-columns: 1fr; }
}

/* ---------- Standalone pages (tools, typing) ---------- */
body.paper-standalone { margin: 0; font-size: 16px; }
.paper-page-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.paper-brand img { display: block; height: 40px; width: auto; }
.paper-page-nav { flex: 1; display: flex; flex-wrap: wrap; gap: 0 20px; }
.paper-page-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; }
.paper-page-nav a[aria-current="page"] { font-weight: 700; background: linear-gradient(var(--sindoor), var(--sindoor)) 0 85% / 100% 2px no-repeat; }
.paper-privacy { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.paper-page-lede .paper-privacy { display: flex; margin-top: 8px; color: var(--ink); }
.paper-page-header .locale-selector-label { margin-left: auto; }
.typing-top .paper-privacy { margin: 6px 0 0; }
.paper-privacy svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.2; }
.paper-page { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 16px 0 72px; display: flex; flex-direction: column; gap: 22px; }
.paper-page h1 { margin: 0; font-family: var(--font-heading); font-stretch: 104%; font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.paper-page-lede { margin: -8px 0 0; color: var(--pencil); font-size: 18px; }
.paper-page-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  border-top: 1.5px solid var(--ink);
}
.paper-page-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--pencil); text-decoration: none; }
.paper-page-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- File tools ---------- */
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tabs [role="tab"], .tool-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 15px var(--font-body);
  cursor: pointer;
  transition: background-color 200ms, color 200ms, transform 160ms var(--ease);
}
.tool-tabs [role="tab"][aria-selected="true"], .tool-chip[aria-pressed="true"] { background: var(--ink); color: var(--desk); }
.tool-tabs [role="tab"]:active, .tool-chip:active { transform: scale(0.96); }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-panel { display: flex; flex-direction: column; gap: 22px; animation: paper-rise 400ms var(--ease) both; }
.tool-panel[hidden] { display: none; }
.tool-settings { display: flex; flex-direction: column; gap: 14px; }
.tool-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px; max-width: 640px; }
.tool-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.tool-field :is(input:not([type="range"]), select) { min-height: 48px; padding: 0 12px; font-size: 16px; font-weight: 400; }
.tool-field[hidden] { display: none; }
.tool-note { margin: 0; color: var(--pencil); font-size: 13px; }
.tool-work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; align-items: start; }
.tool-drop {
  position: relative;
  min-height: 300px;
  box-sizing: border-box;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  border: 2.5px dashed #b5ad9e;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  cursor: pointer;
  transform: rotate(-0.8deg);
  transition: transform 250ms var(--ease), border-color 250ms;
}
.tool-drop:hover, .tool-drop.is-dragging, .tool-drop:focus-within { transform: translateY(-4px) rotate(0deg); border-color: var(--ink); }
.tool-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tool-drop-empty[hidden] { display: none; }
.tool-drop-empty svg { width: 54px; height: 54px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tool-drop-empty strong { font-family: var(--font-heading); font-size: 24px; }
.tool-drop-empty span, .tool-drop-info { color: var(--pencil); font-size: 14px; }
.tool-drop img { max-width: 100%; max-height: 220px; object-fit: contain; }
.tool-result {
  position: relative;
  min-height: 300px;
  box-sizing: border-box;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  transform: rotate(0.6deg);
}
.tool-result p { margin: 0; }
.tool-result > div:not([hidden]):not(.tool-chips) { display: flex; flex-direction: column; gap: 16px; }
.tool-result-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.tool-waiting { color: var(--pencil); }
.tool-waiting[hidden] { display: none; }
.tool-result-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.tool-result-row img { max-width: 150px; max-height: 150px; border: 1px solid var(--rule); background: #fff; }
.crop-frame {
  position: relative;
  flex: none;
  width: min(180px, 100%);
  max-height: 240px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 6px var(--desk);
}
.crop-frame.is-dragging { cursor: grabbing; }
.crop-frame:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.tool-result-row .crop-frame img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; border: 0; transform-origin: 0 0; pointer-events: none; user-select: none; }
.tool-result-row strong { font-family: var(--font-heading); font-size: 52px; font-weight: 800; line-height: 1; }
.tool-result-row span { color: var(--pencil); font-size: 14px; }
.tool-meter { position: relative; height: 12px; border-radius: 12px; background: var(--rule-soft); }
#resizeBand { position: absolute; top: 0; bottom: 0; border-radius: 12px; background: #bfd8c6; }
#resizeNeedle { position: absolute; top: -4px; width: 5px; height: 20px; margin-left: -2px; border-radius: 3px; background: var(--ink); transition: left 500ms var(--ease); }
.tool-adjust { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; }
.tool-download, .tool-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--desk) !important;
  font: 600 16px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}
.tool-download[hidden] { display: none; }
.tool-action:disabled { opacity: 0.4; cursor: not-allowed; }
.tool-download:active, .tool-action:active { transform: scale(0.97); }
.tool-stamp { position: absolute; top: 22px; right: 24px; font-size: 24px; }
.tool-stamp[hidden] { display: none; }
.tool-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tool-list li { display: flex; align-items: center; gap: 6px; min-height: 56px; border-bottom: 1px solid var(--rule-soft); animation: paper-drop 260ms var(--ease) both; }
.tool-list-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tool-list-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tool-list-text small { color: var(--pencil); }
.tool-list button { width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.tool-list button:disabled { opacity: 0.3; cursor: default; }
.tool-age { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; align-items: end; max-width: 900px; }
.tool-age-result { min-height: 0; max-width: 560px; }
.tool-age-years strong { font-family: var(--font-heading); font-size: 64px; font-weight: 800; line-height: 1; }
body:not(.admin-shell) .paper-stamp.is-ink { border-color: var(--ink); color: var(--ink); }
body:not(.admin-shell) .paper-stamp[hidden] { display: none; }
#ageStamp { align-self: flex-start; }
#ageStamp[hidden] { display: none; }

/* ---------- Typing Arena ---------- */
.typing-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
#typingStage { display: flex; flex-direction: column; gap: 18px; }
#typingStage[hidden], .typing-slip[hidden] { display: none; }
.typing-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; }
.typing-stats p { margin: 0; color: var(--pencil); font-size: 14px; }
.typing-stats strong { font-family: var(--font-heading); font-size: 44px; font-weight: 800; color: var(--ink); }
.typing-stats strong.is-red { color: var(--sindoor-text); }
.typing-paper {
  padding: clamp(22px, 4vw, 44px);
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  animation: paper-rise 500ms var(--ease) both;
}
#typingWords {
  margin: 0;
  min-height: 170px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0 14px;
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.9;
  color: #a39b8c;
  cursor: text;
}
.typing-word.is-right { color: var(--ink); }
.typing-word.is-wrong { color: var(--sindoor-text); text-decoration: line-through; }
.typing-word .is-typed { color: var(--ink); }
.typing-word .is-miss { color: var(--sindoor-text); background: #fbe2d7; }
.typing-word .is-caret { box-shadow: -3px 0 0 var(--sindoor); }
.typing-word.caret-end { box-shadow: 3px 0 0 var(--sindoor); }
.typing-input input { min-height: 58px; padding: 0 18px; font: 500 20px "Noto Sans Mono", ui-monospace, monospace; }
.typing-restart { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; font: 15px var(--font-body); cursor: pointer; }
.typing-slip {
  position: relative;
  align-self: center;
  width: min(460px, 100%);
  box-sizing: border-box;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow-up);
  animation: paper-settle 600ms var(--ease) both;
}
.slip-wpm { margin: 0; font-size: 18px; }
.slip-wpm strong { font-family: var(--font-heading); font-size: 84px; font-weight: 800; line-height: 1; }
.slip-facts { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding-top: 14px; border-top: 2px dashed var(--rule); }
.slip-facts dt { color: var(--pencil); }
.slip-facts dd { margin: 0; font-weight: 700; }
.slip-stamp { position: absolute; right: 26px; top: 30px; font-size: 22px; animation-delay: 450ms; }
.slip-stamp[hidden] { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 850px) {
  body.home-page #home { width: calc(100% - 40px); }
  body.home-page .paper-hero { padding-top: 20px; gap: 32px; }
  body.home-page .paper-hero .hero-copy { gap: 18px; }
  body.home-page .paper-hero .search-row input { width: auto; }
  body.home-page .notice-deck { flex-basis: 100%; }
  body:not(.admin-shell) .arrow-square { max-width: 100%; }
  body:not(.admin-shell) .arrow-square h2 { min-width: 0; flex: 0 1 auto; font-size: clamp(26px, 7.5vw, 36px); overflow-wrap: anywhere; }
  body:not(.admin-shell) .arrow-square span { flex: none; }
  body:not(.admin-shell) .community-carousel { max-width: 100%; min-width: 0; }
  body:not(.admin-shell) .community-viewport { min-width: 0; }
  body:not(.admin-shell) :is(input, select):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]) { min-height: 44px; }
  body:not(.admin-shell) .mobile-bottom-nav {
    background: var(--sheet);
    border-top: 1px solid var(--rule);
    box-shadow: 0 -10px 24px -20px rgba(23, 21, 18, 0.5);
  }
  body:not(.admin-shell) .mobile-bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body:not(.admin-shell) .mobile-bottom-nav a { color: var(--pencil); }
  body.home-page .paper-desk .workflow-grid { gap: 10px; }
  body.home-page .paper-desk .workflow-box { padding: 14px; }
  body.home-page .paper-desk .workflow-box strong { font-size: 36px; }
  .paper-lang-button { padding: 0 12px; font-size: 13px; }
  body:not(.admin-shell) .mobile-bottom-nav :is(a.active, a[aria-current="page"]) {
    background: var(--ink);
    color: var(--desk);
    border-radius: 14px;
  }
}
@media (max-width: 420px) {
  .deck-stack { width: 240px; height: 330px; }
}

/* ---------- Header: language next to the account button ---------- */
body:not(.admin-shell):not(.paper-standalone) .site-header {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 24px;
}
body:not(.admin-shell) .site-header .brand-mark { flex: none; order: 1; }
body:not(.admin-shell) .site-header .main-nav { order: 2; flex: 1 1 auto; min-width: 0; }
body:not(.admin-shell) .site-header .locale-selector-label { order: 3; margin-left: auto; }
body:not(.admin-shell) .site-header #loginBtn { order: 4; flex: none; }

/* ---------- Footer ---------- */
body:not(.admin-shell):not(.user-workspace-route):not(.board-details-shell) .site-footer.paper-footer {
  display: flex !important;
  flex-direction: column;
  gap: 32px;
  width: min(1160px, calc(100% - 40px));
  margin: clamp(80px, 10vw, 128px) auto 0;
  padding: 40px 0 32px;
  border-top: 1.5px solid var(--ink);
}
.paper-footer-top { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.paper-footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.paper-footer-brand p { margin: 0; max-width: 34ch; color: var(--pencil); }
body:not(.admin-shell) .paper-footer .brand-mark { width: auto; height: auto; }
body:not(.admin-shell) .paper-footer .brand-mark img { height: 40px; }
.paper-footer-columns { flex: 3 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.paper-footer-columns div { display: flex; flex-direction: column; }
.paper-footer-columns h2 { margin: 0 0 6px; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.paper-footer-columns a { min-height: 40px; display: inline-flex; align-items: center; color: var(--pencil); text-decoration: none; transition: color 200ms, transform 200ms var(--ease); }
.paper-footer-columns a:hover { color: var(--ink); transform: translateX(4px); }
.paper-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--rule);
}
.paper-footer-bottom p { flex: 1 1 260px; margin: 0; color: var(--pencil); font-size: 13px; }
body:not(.admin-shell) .paper-footer .public-legal-links {
  display: flex !important;
  gap: 4px 20px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
body:not(.admin-shell) .paper-footer .public-legal-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 14px; }
body:not(.admin-shell) .paper-footer .back-top {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--font-body);
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
body:not(.admin-shell) .paper-footer .back-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease); }
body:not(.admin-shell) .paper-footer .back-top:hover { background: var(--ink); color: var(--desk); }
body:not(.admin-shell) .paper-footer .back-top:hover svg { transform: translateY(-3px); }
body:not(.admin-shell) .back-top-wrap { display: none; }

/* ---------- Daily Learning: swipe deck ---------- */
.swipe-deck { position: relative; max-width: 720px; outline: none; }
.swipe-deck:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 6px; }
.swipe-stack { display: grid; }
body:not(.admin-shell) .swipe-card {
  grid-area: 1 / 1;
  position: relative;
  min-height: 280px;
  margin: 0;
  padding: 26px 28px;
  border: 0;
  border-radius: 6px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  user-select: none;
  touch-action: pan-y;
  transform: translateY(calc(var(--depth) * 10px)) scale(calc(1 - var(--depth) * 0.035)) rotate(calc(var(--depth) * 1.2deg));
  transform-origin: 50% 100%;
  transition: transform 320ms var(--ease);
}
body:not(.admin-shell) .swipe-card:not(.is-top) { pointer-events: none; }
body:not(.admin-shell) .swipe-card:not(.is-top) > * { visibility: hidden; }
body:not(.admin-shell) .swipe-card.is-top { z-index: 3; cursor: grab; animation: paper-settle 380ms var(--ease) backwards; }
body:not(.admin-shell) .swipe-card.is-dragging { cursor: grabbing; transition: none; box-shadow: var(--sheet-shadow-up); }
.swipe-hint {
  position: absolute;
  top: 22px;
  padding: 3px 12px;
  border: 4px solid currentColor;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  pointer-events: none;
}
.swipe-hint-known { left: 22px; color: var(--ink); transform: rotate(-10deg); opacity: var(--known, 0); }
.swipe-hint-again { right: 22px; color: var(--sindoor-text); transform: rotate(10deg); opacity: var(--again, 0); }
.swipe-card.show-known .swipe-hint-known, .swipe-card.show-again .swipe-hint-again { opacity: 1; }
.swipe-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 720px; margin-top: 18px; }
.swipe-actions[hidden] { display: none; }
.swipe-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 15px var(--font-body);
  cursor: pointer;
  transition: background-color 200ms, color 200ms, transform 160ms var(--ease);
}
.swipe-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.swipe-btn:active { transform: scale(0.94); }
.swipe-again:hover { border-color: var(--sindoor-text); color: var(--sindoor-text); }
.swipe-known { background: var(--ink); color: var(--desk); }
.swipe-known:hover { background: #2c2924; }
.swipe-progress { margin: 0; color: var(--pencil); font-size: 14px; font-weight: 600; text-align: center; }
.swipe-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border-radius: 6px; background: var(--sheet); box-shadow: var(--sheet-shadow); max-width: 720px; box-sizing: border-box; }
.swipe-done strong { font-family: var(--font-heading); font-size: 30px; }
.swipe-done p { margin: 0; color: var(--pencil); }
body:not(.admin-shell) .daily-modal-content .swipe-card { min-height: 300px; }
@media (max-width: 850px) {
  body:not(.admin-shell) .site-footer.paper-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body:not(.admin-shell) .site-header .main-nav { display: none; }
  body:not(.admin-shell) .site-header { gap: 10px; }
}
@media (max-width: 620px) {
  body:not(.admin-shell) .swipe-card { padding: 22px 18px; min-height: 300px; }
  .swipe-btn span { display: none; }
  .swipe-btn { width: 56px; justify-content: center; padding: 0; }
}

/* ---------- Motion ---------- */
@keyframes paper-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes paper-caret { 50% { opacity: 0; } }
@keyframes paper-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes paper-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes paper-settle { from { opacity: 0; transform: translateY(-30px) rotate(-3deg) scale(1.03); } to { opacity: 1; } }
@keyframes paper-deal-next { from { opacity: 0; transform: translate(90px, -20px) rotate(14deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes paper-deal-prev { from { opacity: 0; transform: translate(-90px, -20px) rotate(-14deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes paper-stamp {
  0% { opacity: 0; transform: scale(3) rotate(-26deg); }
  65% { opacity: 1; transform: scale(0.92) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.admin-shell) *,
  body:not(.admin-shell) *::before,
  body:not(.admin-shell) *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Popups: only the popup scrolls ---------- */
html:has(.modal-backdrop:not([hidden])),
html:has(.modal-backdrop:not([hidden])) body { overflow: hidden; }
body:not(.admin-shell) .modal { overscroll-behavior: contain; }

/* ---------- Hero search: one box, so the input leads and the button follows ---------- */
body:not(.admin-shell) .paper-hero .search-row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--sheet);
  box-shadow: var(--sheet-shadow);
  transition: box-shadow 200ms;
}
body:not(.admin-shell) .paper-hero .search-row:focus-within { box-shadow: 0 0 0 1px var(--ink), var(--sheet-shadow); }
body:not(.admin-shell) .paper-hero .search-row input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  text-overflow: ellipsis;
}
body:not(.admin-shell) .paper-hero .search-row .square-action {
  flex: none;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 15px;
}
@media (max-width: 420px) {
  body:not(.admin-shell) .paper-hero .search-row .square-action {
    width: 44px;
    padding: 0;
    font-size: 0;
    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3efe6' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center / 20px no-repeat;
  }
}

/* ---------- Home communities: nothing clipped, cards can lift ---------- */
body:not(.admin-shell) .explore-communities .community-carousel { display: block; }
body:not(.admin-shell) .explore-communities .carousel-arrow { display: none; }
body:not(.admin-shell) .explore-communities .community-viewport { width: 100%; overflow: visible; }
body:not(.admin-shell) .explore-communities .community-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: 16px;
  width: 100%;
  padding-top: 6px;
  transform: none !important;
}
body:not(.admin-shell) .explore-communities .community-card {
  box-sizing: border-box;
  height: auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: 6px 12px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--sheet);
  text-align: left;
}
body:not(.admin-shell) .explore-communities .community-card:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: var(--sheet-shadow-up); }
body:not(.admin-shell) .explore-communities .community-icon { grid-row: 1; grid-column: 1; width: 44px; height: 44px; margin: 0; display: grid; place-items: center; border-radius: 50%; }
body:not(.admin-shell) .explore-communities .community-title-link { grid-row: 1; grid-column: 2; align-self: center; font-family: var(--font-heading); font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
body:not(.admin-shell) .explore-communities .community-card p { grid-column: 1 / -1; margin: 4px 0 8px; color: var(--pencil); font-size: 14px; line-height: 1.45; }
body:not(.admin-shell) .explore-communities .community-card .join-btn {
  grid-column: 1 / -1;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}
body:not(.admin-shell) .explore-communities .community-card .join-btn:hover,
body:not(.admin-shell) .explore-communities .community-card .join-btn[aria-pressed="true"] { background: var(--ink); color: var(--desk); }
body:not(.admin-shell) .explore-communities .community-card .join-btn[aria-pressed="true"]::before { content: "✓"; margin-right: 6px; }

/* ---------- Services: grouped lists ---------- */
.service-group { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 12px 32px; align-items: start; padding: 28px 0; border-top: 2px dashed var(--rule); }
body:not(.admin-shell) .service-group-head h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; }
.service-group-head p { margin: 6px 0 0; color: var(--pencil); font-size: 14px; }
.service-list { min-width: 0; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); overflow: hidden; }
body:not(.admin-shell) .service-row { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; transition: background-color 200ms; }
body:not(.admin-shell) .service-row:last-child { border-bottom: 0; }
body:not(.admin-shell) .service-row:hover { background: #f7f2e8; }
.service-row-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--desk); }
.service-row-icon svg { width: 22px; height: 22px; }
.service-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.service-row-text strong { font-family: var(--font-heading); font-size: 19px; line-height: 1.25; }
.service-row-text span { color: var(--pencil); font-size: 14px; line-height: 1.4; }
.service-row-arrow { flex: none; transition: transform 220ms var(--ease); }
.service-row:hover .service-row-arrow { transform: translateX(6px); }
@media (max-width: 700px) { .service-group { grid-template-columns: minmax(0, 1fr); padding: 22px 0; } }

/* ---------- One bottom menu on phones and small tablets ---------- */
.mobile-bottom-nav { display: none; }
@media (max-width: 850px) {
  body:not(.admin-shell) .mobile-bottom-nav {
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
    background: var(--sheet);
  }
  body:not(.admin-shell) .mobile-bottom-nav .mobile-bottom-nav-link {
    box-sizing: border-box;
    height: 54px;
    min-width: 0;
    margin: 0;
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--pencil);
    font: 500 11px/1.2 var(--font-body);
    text-decoration: none;
  }
  body:not(.admin-shell) .mobile-bottom-nav .mobile-bottom-nav-link.is-active { background: var(--ink); color: var(--desk); font-weight: 700; }
  .mobile-bottom-nav-link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bottom-nav .icon { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

  /* Footer and Back to top stay clear of the menu. */
  body:not(.admin-shell):not(.user-workspace-route):not(.board-details-shell) .site-footer.paper-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body:not(.admin-shell):not(.user-workspace-route) .paper-footer .back-top { position: static; transform: none; }

  /* Header shrinks with the screen. */
  body:not(.admin-shell):not(.paper-standalone):not(.user-workspace-route) .site-header { width: calc(100% - 40px); min-height: clamp(58px, 13vw, 72px); gap: 8px; }
  body:not(.admin-shell):not(.paper-standalone) .site-header .brand-mark { flex: 0 0 auto; width: auto; height: auto; }
  body:not(.admin-shell):not(.paper-standalone) .site-header .brand-mark img { width: auto; max-width: none; height: clamp(28px, 7.6vw, 42px); }
  body:not(.admin-shell) .site-header .paper-lang-button { min-height: 40px; height: 40px; }
  body:not(.admin-shell):not(.paper-standalone):not(.user-workspace-route) .site-header #loginBtn { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; }

  /* Standalone pages use the same bottom menu instead of top links. */
  body.paper-standalone .paper-page-nav { display: none; }
  body.paper-standalone .paper-page-header { flex-wrap: nowrap; justify-content: space-between; min-height: clamp(58px, 13vw, 72px); }
  body.paper-standalone .paper-brand img { height: clamp(28px, 7.6vw, 42px); }
  body.paper-standalone .paper-page-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

  /* Hero heading stays strong on small screens. */
  body.home-page .paper-hero .hero-copy h1 { font-size: clamp(40px, 10.5vw, 62px); }
}

/* The hero input has no border of its own; the surrounding search box is the field. */
body:not(.admin-shell) .paper-hero .search-row input[type="search"]#jobSearch {
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

/* Home page questions behave like the FAQs page: padded cards that lift. */
body:not(.admin-shell) .explore-faqs #faqList { gap: 12px; padding-top: 4px; }
body:not(.admin-shell) .explore-faqs #faqList details {
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--sheet);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 200ms;
}
body:not(.admin-shell) .explore-faqs #faqList details:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--sheet-shadow-up); }
body:not(.admin-shell) .explore-faqs #faqList details[open] { border-color: var(--ink); }
body:not(.admin-shell) .explore-faqs #faqList summary { padding: 8px 0; }

/* Shorter screens: tighten the sign-in sheet so it fits without a scrollbar. */
@media (max-height: 900px) {
  body:not(.admin-shell) .auth-view { gap: 11px; padding-top: 24px; padding-bottom: 22px; }
}

/* ---------- Never flash the home page on other routes ---------- */
html.not-home #home { display: none; }

/* ---------- Paper loader ---------- */
.paper-loader { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding: 18px 0; box-sizing: border-box; }
.paper-loader.is-page { width: min(1160px, calc(100% - 40px)); margin: 0 auto; min-height: 62vh; padding-top: 40px; }
.paper-loader-mark { width: 76px; height: 76px; overflow: visible; }
.paper-loader-mark .ring { fill: none; stroke: var(--ink); stroke-width: 5; transform-origin: center; animation: loader-ring 1.4s var(--ease) infinite; }
.paper-loader-mark .ring-inner { animation-delay: 0.12s; }
.paper-loader-mark .bull { fill: var(--sindoor); animation: loader-bull 1.4s var(--ease) infinite; }
.paper-loader-mark .arrow { animation: loader-arrow 1.4s cubic-bezier(0.5, 0, 0.2, 1) infinite; }
.paper-loader-mark .arrow path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.paper-loader-mark .arrow .fletch { fill: var(--ink); stroke: none; }
.paper-loader-text { margin: 0; color: var(--pencil); font-size: 14px; font-weight: 600; opacity: 0; animation: loader-text 0.4s 1.2s forwards; }
.paper-loader-sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px; width: 100%; margin-top: 12px; }
.paper-loader-sheet { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 170px; box-sizing: border-box; padding: 22px; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
.paper-loader-sheet:nth-child(odd) { transform: rotate(-0.6deg); }
.paper-loader-sheet:nth-child(even) { transform: rotate(0.6deg); }
.paper-loader-sheet i { height: 11px; border-radius: 6px; background: var(--rule-soft); }
.paper-loader-sheet i:nth-child(1) { width: 34%; height: 30px; }
.paper-loader-sheet i:nth-child(2) { width: 88%; }
.paper-loader-sheet i:nth-child(3) { width: 70%; }
.paper-loader-sheet i:nth-child(4) { width: 46%; margin-top: auto; }
.paper-loader-sheet::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.85) 50%, transparent 75%); animation: loader-sweep 1.4s infinite; }
.deck-loader .paper-loader-sheets { width: 270px; display: block; }
.deck-loader .paper-loader-sheet { min-height: 350px; }
body.home-page #jobList > .paper-loader { grid-column: 1 / -1; }
.public-card-list > .paper-loader, .public-faq-list > .paper-loader { grid-column: 1 / -1; }
@keyframes loader-arrow { 0% { transform: translate(34px, -34px); opacity: 0; } 18% { opacity: 1; } 46% { transform: translate(-2px, 2px); } 54%, 82% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes loader-ring { 0%, 44% { transform: scale(1); } 56% { transform: scale(1.09); } 70%, 100% { transform: scale(1); } }
@keyframes loader-bull { 0%, 44% { r: 6px; } 58% { r: 9px; } 74%, 100% { r: 6px; } }
@keyframes loader-sweep { to { transform: translateX(100%); } }
@keyframes loader-text { to { opacity: 1; } }

/* ---------- Page opening feedback ---------- */
.nav-progress { position: fixed; z-index: 400; top: 0; left: 0; width: 100%; height: 3px; background: var(--sindoor); transform-origin: left; animation: nav-progress 9s cubic-bezier(0.1, 0.7, 0.2, 1) forwards; }
.nav-stalled { position: fixed; z-index: 400; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--ink); color: var(--desk); font-size: 14px; box-shadow: var(--sheet-shadow-up); }
body:not(.admin-shell) .nav-stalled button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--sindoor); color: var(--ink); font-weight: 700; cursor: pointer; }
@keyframes nav-progress { 0% { transform: scaleX(0.06); } 30% { transform: scaleX(0.55); } 100% { transform: scaleX(0.93); } }

/* ---------- Stamps stay inside their paper ---------- */
.deck-stack { height: auto; min-height: 350px; display: grid; grid-template-columns: minmax(0, 1fr); }
.deck-stack > .deck-sheet { min-width: 0; overflow-wrap: anywhere; }
.deck-stack > .deck-sheet { grid-area: 1 / 1; }
.deck-stack > .deck-back-one, .deck-stack > .deck-back-two { position: relative; inset: auto; }
body:not(.admin-shell) .deck-stack > .deck-top { position: relative; inset: auto; min-height: 350px; height: auto; }
.deck-title, .deck-org, .deck-fact b { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.deck-title { -webkit-line-clamp: 3; flex: none; }
.deck-org { -webkit-line-clamp: 2; flex: none; padding-bottom: 0; border-bottom: 0; }
.deck-fact b { -webkit-line-clamp: 2; }
.deck-fact > :not(b) { flex: none; overflow-wrap: normal; white-space: nowrap; }
.deck-fact b { min-width: 0; }
.deck-facts { padding-top: 10px; border-top: 1px solid var(--rule-soft); }
body:not(.admin-shell) .deck-stack .deck-stamp { flex: none; align-self: flex-end; margin: auto 4px 2px 0; }
.deck-head span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper-notice .notice-stub, body:not(.admin-shell) .public-job-card .notice-stub { flex-wrap: wrap; }
body:not(.admin-shell) .slip-stamp { position: static; align-self: flex-start; order: -1; margin: 0 4px 0 0; align-self: flex-end; }
@media (max-width: 460px) {
  body:not(.admin-shell) .explore-elig-stamp { position: static; align-self: flex-start; }
}

/* ---------- Sign-in: a fixed top bar the sheet scrolls under ---------- */
body:not(.admin-shell) .modal-backdrop:has(.auth-view)::before { content: ""; position: fixed; z-index: 3; top: 0; left: 0; right: 0; height: 68px; background: var(--desk); box-shadow: 0 1px 0 var(--rule); }
body:not(.admin-shell) .modal:has(.auth-view) .auth-brand { position: fixed; z-index: 4; top: 12px; }
body:not(.admin-shell) .modal:has(.auth-view) .modal-close { z-index: 4; top: 12px; }

/* ---------- Hero filters: always one line ---------- */
body:not(.admin-shell) .paper-hero .filter-row {
  flex-wrap: nowrap;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: -4px;
  padding: 4px;
}
body:not(.admin-shell) .paper-hero .filter-row::-webkit-scrollbar { display: none; }
body:not(.admin-shell) .paper-hero .filter-row .filter-btn { flex: 0 0 auto; white-space: nowrap; }
body:not(.admin-shell) .paper-hero .filter-row .more-boards { border-style: dashed; font-weight: 700; cursor: pointer; }
@media (max-width: 850px) {
  body:not(.admin-shell) .paper-hero .filter-row { margin: -4px -20px -4px -4px; padding-right: 20px; }
}
.board-picker { display: flex; flex-direction: column; gap: 14px; }
.board-picker h2 { margin: 0; padding-right: 52px; font-family: var(--font-heading); font-size: 28px; font-weight: 800; }
body:not(.admin-shell) .board-picker input { height: 48px; padding: 0 14px; font-size: 16px; }
.board-picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
body:not(.admin-shell) .board-picker-row { min-height: 48px; display: flex; align-items: center; padding: 6px 14px; border: 1.5px solid var(--rule); border-radius: 10px; text-decoration: none; font-weight: 600; transition: border-color 200ms, background-color 200ms; }
body:not(.admin-shell) .board-picker-row:hover { border-color: var(--ink); background: var(--desk); }
.board-picker-row[hidden], .board-picker-empty[hidden] { display: none !important; }
.board-picker-empty { margin: 0; color: var(--pencil); }
@media (max-width: 600px) {
  body:not(.admin-shell) .modal-backdrop:has(.board-picker) { align-items: flex-end; }
  body:not(.admin-shell) .modal:has(.board-picker) { width: 100%; max-width: none; border-radius: 18px 18px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .paper-loader-mark *, .paper-loader-sheet::after, .nav-progress { animation: none !important; }
  .paper-loader-text { opacity: 1; animation: none !important; }
  .paper-loader-sheet::after { display: none; }
  .nav-progress { transform: scaleX(0.6); }
}

/* ---------- Typing levels ---------- */
.typing-levels { align-items: center; margin-top: 14px; }
.typing-levels .tool-chip { min-width: 44px; }
.typing-levels .tool-chip:disabled { opacity: 0.4; border-style: dashed; cursor: not-allowed; }
.slip-rank { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; margin: 18px 0 8px; padding: 0; list-style: none; }
.slip-rank li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--pencil); font-size: 11px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.slip-rank li::before { content: ""; position: relative; z-index: 1; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid var(--rule-soft); border-radius: 50%; background: var(--sheet); }
.slip-rank li + li::after { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; border-top: 2px dashed var(--rule-soft); }
.slip-rank li.is-reached::before { border-color: var(--sindoor); background: var(--sindoor); }
.slip-rank li.is-reached + li.is-reached::after { border-top: 2px solid var(--sindoor); }
.slip-rank li[aria-current] span { padding: 4px 5px; border: 2px solid var(--sindoor); border-radius: 5px; color: var(--sindoor-text, #C2380F); font-family: "Anek Latin", "Anek Devanagari", "Anek Bangla", sans-serif; font-weight: 800; font-size: 12px; white-space: nowrap; transform: rotate(-4deg); }
@media (max-width: 360px) {
  .slip-rank li { font-size: 9px; }
  .slip-rank li[aria-current] span { padding: 2px; font-size: 9.5px; transform: rotate(-3deg); }
}

/* ---------- Finished file preview ---------- */
.tool-preview { display: grid; gap: 8px; width: 100%; min-width: 0; }
.tool-preview[hidden] { display: none; }
.tool-preview-pages { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; max-height: 420px; overflow: auto; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 8px; background: var(--desk); }
.tool-preview-pages img, .tool-preview-pages canvas { max-width: 100%; height: auto; background: #fff; box-shadow: var(--sheet-shadow); }
.tool-preview-pages canvas { width: min(100%, 360px); }
body:not(.admin-shell) .tool-preview-open { justify-self: start; min-height: 36px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- Sliders: a paper ruler with a red marker ---------- */
body:not(.admin-shell) input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
body:not(.admin-shell) input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 10%) bottom left / 100% 7px no-repeat; }
body:not(.admin-shell) input[type="range"]::-moz-range-track { height: 14px; border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 5%) bottom left / calc(100% - 1.5px) 7px no-repeat; }
body:not(.admin-shell) input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 28px; margin-top: -8px; border: 2px solid var(--ink); border-radius: 5px; background: var(--sindoor); box-shadow: var(--sheet-shadow); }
body:not(.admin-shell) input[type="range"]::-moz-range-thumb { width: 14px; height: 24px; border: 2px solid var(--ink); border-radius: 5px; background: var(--sindoor); box-shadow: var(--sheet-shadow); }
body:not(.admin-shell) input[type="range"]:focus { outline: none; }
body:not(.admin-shell) input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
body:not(.admin-shell) input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
body:not(.admin-shell) input[type="range"]:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Ask before pages become pictures ---------- */
.compress-ask { display: grid; gap: 10px; padding: 16px; border: 2px dashed var(--sindoor); border-radius: 8px; background: var(--sheet); }
.compress-ask[hidden] { display: none; }
.compress-ask p { margin: 0; font-size: 14px; line-height: 1.5; }
.compress-ask p { white-space: pre-line; }
.file-viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--desk); }
.file-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.file-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule-soft); background: var(--sheet); font-size: 13px; }
.file-viewer-body { overflow: auto; padding: 16px; text-align: center; }
.file-viewer-body :is(img, canvas) { display: block; width: auto; max-width: min(100%, 900px); height: auto; margin: 0 auto 16px; background: #fff; box-shadow: var(--sheet-shadow); cursor: zoom-in; }
.file-viewer-body :is(img, canvas).is-zoomed { width: max(200%, 900px); max-width: none; margin-left: 0; cursor: zoom-out; }

/* ---------- Job format v2: article, eligibility check, Eligibility Checker page ---------- */
body:not(.admin-shell) .job-article .job-document > :first-child { margin-top: 0; }
body:not(.admin-shell) .job-document h2 { margin: 28px 0 10px; font-family: var(--font-heading); font-size: 22px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px dashed var(--rule); }
body:not(.admin-shell) .job-document h3 { margin: 18px 0 6px; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
body:not(.admin-shell) .job-document :is(p, li) { line-height: 1.65; }
body:not(.admin-shell) .job-document-toc { margin: 0 0 8px; padding: 14px 18px; border: 1.5px dashed var(--rule); border-radius: 4px; background: var(--desk); }
body:not(.admin-shell) .job-document-toc h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pencil); }
body:not(.admin-shell) .job-document-toc a { color: var(--ink); }
body:not(.admin-shell) .job-document-toc a:hover { color: var(--sindoor-text); }
body:not(.admin-shell) .job-document table { width: auto; min-width: min(100%, 420px); }
body:not(.admin-shell) .job-document :is(th, td) { border: 1px solid var(--rule); padding: 9px 12px; }
body:not(.admin-shell) .job-document th { background: var(--desk); font-weight: 700; text-align: left; }

body:not(.admin-shell) .eligibility-form :is(input[type="date"], select) { min-height: 48px; padding: 0 14px; border: var(--border); border-radius: 12px; background: var(--sheet); color: var(--ink); font: inherit; font-weight: 400; }
body:not(.admin-shell) .eligibility-results h2 { font-family: var(--font-heading); font-weight: 800; }
body:not(.admin-shell) .eligibility-job h3 a { color: var(--ink); text-decoration: none; }
body:not(.admin-shell) .eligibility-job h3 a:hover { color: var(--sindoor-text); }
body:not(.admin-shell) .eligibility-job h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }

/* Eligibility check on the job page: tool fields, pill chips, a counter like
   the "days left" figure, and a stamp per post. */
body:not(.admin-shell) .job-eligibility-form { display: flex; flex-direction: column; gap: 18px; margin: 18px 0 24px; }
body:not(.admin-shell) .job-eligibility-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
body:not(.admin-shell) .job-eligibility-fields .tool-field :is(input, select) { width: 100%; box-sizing: border-box; border: var(--border); border-radius: 12px; background: var(--sheet); color: var(--ink); font-family: var(--font-body); }
body:not(.admin-shell) .job-eligibility-group { display: flex; flex-direction: column; gap: 8px; }
body:not(.admin-shell) .job-eligibility-group .tool-result-label { color: var(--pencil); font-size: 11px; text-transform: uppercase; }
body:not(.admin-shell) .job-eligibility-summary { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 14px 0; border-top: 2px dashed var(--rule); border-bottom: 2px dashed var(--rule); color: var(--pencil); }
body:not(.admin-shell) .job-eligibility-summary strong { font-family: var(--font-heading); font-size: 56px; font-weight: 800; line-height: 1; color: var(--ink); }
body:not(.admin-shell) .job-eligibility-summary strong.is-none { color: var(--sindoor-text); }
body:not(.admin-shell) .job-eligibility-results { list-style: none; margin: 0; padding: 0; }
body:not(.admin-shell) .job-eligibility-post { padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
body:not(.admin-shell) .job-eligibility-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
body:not(.admin-shell) .job-eligibility-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body:not(.admin-shell) .job-eligibility-title h3 { margin: 0; font-size: 20px; font-weight: 800; }
body:not(.admin-shell) .job-eligibility-stamp { flex: none; font-size: 13px; text-transform: uppercase; white-space: nowrap; margin-top: 4px; }
body:not(.admin-shell) .job-eligibility-stamp.is-settled { animation: none; }
body:not(.admin-shell) .paper-stamp.is-pencil { border-style: dashed; border-color: var(--pencil); color: var(--pencil); }
body:not(.admin-shell) .job-eligibility-reasons { margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: 14px; }
body:not(.admin-shell) .job-eligibility-reasons li { padding-left: 18px; position: relative; }
body:not(.admin-shell) .job-eligibility-reasons li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 700; }
body:not(.admin-shell) .job-eligibility-reasons li.is-fail { color: var(--sindoor-text); }
body:not(.admin-shell) .job-eligibility-reasons li.is-fail::before { content: "✕"; color: var(--sindoor-text); }
body:not(.admin-shell) .job-eligibility-subhead { margin: 12px 0 4px; color: var(--pencil); font-size: 11px; text-transform: uppercase; }
body:not(.admin-shell) .job-eligibility-checks { margin: 0; padding: 0; list-style: none; color: var(--pencil); font-size: 14px; }
body:not(.admin-shell) .job-eligibility-checks li { padding-left: 22px; position: relative; }
body:not(.admin-shell) .job-eligibility-checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 10px; border: 1.5px solid var(--pencil); border-radius: 2px; }
body:not(.admin-shell) .job-eligibility-note { margin: 16px 0 0; }
body:not(.admin-shell) .job-how-to-apply .job-detail-video-frame { width: 100%; border-radius: 4px; overflow: hidden; box-shadow: var(--sheet-shadow); }
body:not(.admin-shell) .job-how-to-apply .job-detail-video-note { margin: 10px 0 0; color: var(--pencil); }
body:not(.admin-shell) .job-how-to-apply-steps { margin-top: 14px; }
body:not(.admin-shell) .job-how-to-apply-steps ol { padding-left: 0; list-style: none; counter-reset: step; }
body:not(.admin-shell) .job-how-to-apply-steps ol > li { counter-increment: step; position: relative; padding: 10px 0 10px 48px; border-bottom: 1px solid var(--rule-soft); }
body:not(.admin-shell) .job-how-to-apply-steps ol > li::before { content: counter(step); position: absolute; left: 0; top: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--font-heading); font-weight: 800; }
@media (max-width: 560px) {
  body:not(.admin-shell) .job-eligibility-head { flex-direction: column; gap: 8px; }
  body:not(.admin-shell) .job-eligibility-summary strong { font-size: 44px; }
}
body:not(.admin-shell) :is(.eligibility-check-field, .profile-check-field) input[type="checkbox"] { accent-color: var(--sindoor); }

/* ---------- User workspace and dashboard (paper) ---------- */
body.user-workspace-route .user-dashboard-layout { width: min(1200px, 100%); box-sizing: border-box; margin: 0 auto; padding: 8px 24px 64px; min-height: 0; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; background: transparent; color: var(--ink); font: 15px/1.55 var(--font-body); }
body.user-workspace-route .user-dashboard-sidebar { position: sticky; top: 16px; gap: 4px; padding: 18px; border: 0; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
body.user-workspace-route .user-dashboard-brand { font-family: var(--font-heading); font-weight: 800; }
body.user-workspace-route .user-dashboard-nav { gap: 2px; }
body.user-workspace-route .user-dashboard-nav-label { padding: 4px 14px 8px; color: var(--pencil); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
body.user-workspace-route .user-dashboard-nav-label.is-section { margin-top: 12px; padding-top: 14px; border-top: 2px dashed var(--rule); }
body.user-workspace-route .user-dashboard-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
body.user-workspace-route .user-dashboard-nav a:hover { background: var(--desk); }
body.user-workspace-route .user-dashboard-nav a.is-active { background: var(--ink); color: var(--desk); }
body.user-workspace-route .site-header #loginBtn { display: none; }
body.user-workspace-route .site-header { display: flex !important; align-items: center; }
body.user-workspace-route .site-header .user-workspace-actions { margin-left: auto; font-family: var(--font-body); }
body.user-workspace-route :is(.user-notification-trigger, .user-workspace-account-trigger, .user-workspace-menu-button) { min-height: 44px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); }
body.user-workspace-route .user-notification-count { background: var(--sindoor); color: var(--ink); }
body.user-workspace-route .user-dashboard-main .public-page { width: 100%; padding: 0; }
body.user-workspace-route .user-dashboard-main .public-page h1 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.03em; }

.dashboard-overview { display: flex; flex-direction: column; gap: 28px; }
.dashboard-label { color: var(--pencil); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.dashboard-more { color: var(--ink); font-weight: 700; font-size: 14px; text-underline-offset: 3px; }
.dashboard-more:hover { color: var(--sindoor-text); }
.dashboard-heading { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.dashboard-heading-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 360px; }
.dashboard-heading-text .public-eyebrow { margin: 0; color: var(--pencil); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.dashboard-heading-text h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1; }
.dashboard-heading-text .public-intro { margin: 0; color: var(--pencil); font-size: 17px; }
.dashboard-profile-slip { flex: 0 1 340px; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); transform: rotate(0.8deg); }
.dashboard-profile-slip p { margin: 0; color: var(--pencil); font-size: 14px; }
.dashboard-slip-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dashboard-slip-top strong { font-family: var(--font-heading); font-size: 22px; font-weight: 800; }
.dashboard-profile-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.dashboard-profile-bar span { height: 8px; border: 1.5px dashed var(--pencil); border-radius: 2px; box-sizing: border-box; }
.dashboard-profile-bar span.is-filled { border: 0; background: var(--ink); }
.dashboard-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dashboard-counter { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); color: var(--ink); text-decoration: none; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.dashboard-counter:hover { transform: translateY(-4px); box-shadow: var(--sheet-shadow-up); }
.dashboard-counter strong { font-family: var(--font-heading); font-size: 56px; font-weight: 800; line-height: 1; }
.dashboard-counter strong.is-urgent, .dashboard-days strong.is-urgent { color: var(--sindoor-text); }
.dashboard-counter span { color: var(--pencil); }
.dashboard-overview .public-section { margin: 0; }
.dashboard-job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dashboard-job { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
.dashboard-job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.dashboard-days { display: flex; align-items: baseline; gap: 8px; }
.dashboard-days strong { font-family: var(--font-heading); font-size: 44px; font-weight: 800; line-height: 1; }
.dashboard-days span { color: var(--pencil); font-size: 13px; }
.dashboard-job .paper-stamp { font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.dashboard-rule { width: 100%; margin: 0; border: 0; border-top: 2px dashed var(--rule); }
.dashboard-job h3 { margin: 0; font-family: var(--font-heading); font-size: 21px; font-weight: 800; line-height: 1.15; }
.dashboard-job h3 a { color: var(--ink); text-decoration: none; }
.dashboard-job h3 a:hover { color: var(--sindoor-text); }
.dashboard-job-note { margin: 0; color: var(--pencil); font-size: 14px; }
.dashboard-job-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
body:not(.admin-shell) .dashboard-apply { border-color: var(--sindoor); background: var(--sindoor); color: var(--ink); }
body:not(.admin-shell) .dashboard-dark { align-self: flex-start; background: var(--ink); color: var(--desk); }
.dashboard-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.dashboard-prep { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dashboard-sheet { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 22px 24px; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
.dashboard-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--rule); }
.dashboard-sheet-head h2 { margin: 0; font-family: var(--font-heading); font-size: 26px; font-weight: 800; }
.dashboard-app { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.dashboard-app-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dashboard-app-title { font-family: var(--font-heading); font-size: 19px; font-weight: 800; color: var(--ink); text-decoration: none; }
.dashboard-app-next { color: var(--pencil); font-size: 13px; white-space: nowrap; text-transform: capitalize; }
.dashboard-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.dashboard-stages li { display: flex; flex-direction: column; gap: 6px; color: var(--pencil); font-size: 12px; }
.dashboard-stage-bar { height: 8px; border: 1.5px dashed var(--pencil); border-radius: 2px; box-sizing: border-box; }
.dashboard-stages li.is-done { color: var(--ink); }
.dashboard-stages li.is-done .dashboard-stage-bar { border: 0; background: var(--ink); }
.dashboard-stages li.is-now { color: var(--ink); font-weight: 700; }
.dashboard-stages li.is-now .dashboard-stage-bar { border: 0; background: var(--sindoor); }
.dashboard-add { align-self: flex-start; margin-top: 12px; }
.dashboard-update { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; }
.dashboard-update:last-child { border-bottom: 0; }
.dashboard-update-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border: 1.5px solid var(--ink); border-radius: 50%; }
.dashboard-update.is-unread .dashboard-update-dot { border-color: var(--sindoor); background: var(--sindoor); }
.dashboard-update-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dashboard-update-when { color: var(--pencil); font-size: 13px; }
.dashboard-daily { gap: 12px; transform: rotate(-0.6deg); }
.dashboard-daily h3 { margin: 0; font-family: var(--font-heading); font-size: 34px; font-weight: 800; line-height: 1; }
.dashboard-daily p { margin: 0; color: var(--pencil); }
.dashboard-daily .paper-stamp { font-size: 12px; text-transform: uppercase; }
.dashboard-prep-links { gap: 4px; }
.dashboard-prep-link { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink); font-weight: 600; text-decoration: none; }
.dashboard-prep-link:last-child { border-bottom: 0; }
.dashboard-prep-link:hover { color: var(--sindoor-text); }

@media (max-width: 1000px) {
  .dashboard-job-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dashboard-split, .dashboard-prep { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  body.user-workspace-route .user-dashboard-layout { grid-template-columns: minmax(0, 1fr); padding: 4px 16px calc(110px + env(safe-area-inset-bottom)); gap: 0; }
  body.user-workspace-route .user-dashboard-sidebar { position: fixed; top: 0; border-radius: 0; }
  .dashboard-heading { gap: 18px; }
  .dashboard-profile-slip { flex-basis: 100%; transform: none; }
  .dashboard-counters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dashboard-counter { padding: 14px 12px; }
  .dashboard-counter strong { font-size: 40px; }
  .dashboard-counter span { font-size: 12px; }
  .dashboard-job-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-sheet { padding: 16px; }
  .dashboard-sheet-head h2 { font-size: 22px; }
  .dashboard-daily { transform: none; }
}
body:not(.admin-shell) .dashboard-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
@media (min-width: 851px) { body.user-workspace-route .user-dashboard-drawer-header { display: none; } }
.dashboard-job-top { flex-wrap: wrap; }
.dashboard-days, .dashboard-job-top .paper-stamp, .dashboard-counter strong, .dashboard-slip-top strong { flex: none; overflow-wrap: normal; white-space: nowrap; }
.dashboard-daily .dashboard-daily-meaning { color: var(--ink); }
.dashboard-heading-text .public-eyebrow { display: block; }
@media (max-width: 850px) {
  body.user-workspace-route .site-header .user-workspace-menu-button { flex: 0 0 44px; width: 44px; padding: 0; }
  body.user-workspace-route .user-notification-popover { top: 72px; }
  body:not(.admin-shell) .mobile-bottom-nav { gap: 0; padding-inline: 2px; }
  body:not(.admin-shell) .mobile-bottom-nav .mobile-bottom-nav-link { padding-inline: 0; font-size: 10.5px; letter-spacing: -0.01em; }
}
/* Header order on the workspace: menu (phones), logo, links, then bell and account on the right. */
body.user-workspace-route .site-header .user-workspace-actions { order: 9; }
@media (max-width: 850px) {
  body.user-workspace-route .site-header { gap: 10px; }
  body.user-workspace-route .site-header .brand-mark { margin: 0; }
  body.user-workspace-route .site-header .user-workspace-actions { margin-left: auto; }
}
body:not(.admin-shell) .profile-form .profile-picker-trigger { min-height: 48px; box-sizing: border-box; align-items: center; border: var(--border); border-radius: 12px; background-color: var(--sheet); color: var(--ink); }
body.user-workspace-route .user-dashboard-brand img { display: block; height: 32px; width: auto; }
@media (max-width: 850px) {
  body.user-workspace-route .user-dashboard-drawer-close { width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); }
}

/* ---------- Daily Learning page ---------- */
.learn-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
.learn-calendar { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
.learn-month-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 2px dashed var(--rule); font-family: var(--font-heading); font-size: 20px; }
.learn-month-bar button { width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.learn-month-bar button:disabled { opacity: 0.3; cursor: default; }
.learn-weekdays, .learn-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.learn-weekdays { color: var(--pencil); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.learn-days button { position: relative; min-height: 40px; padding: 0; border: 1.5px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); font: 500 14px var(--font-body); cursor: pointer; }
.learn-days button.in-range { background: var(--desk); }
.learn-days button.is-today { border-color: var(--ink); }
.learn-days button.has-cards { font-weight: 800; }
.learn-days button.has-cards::after, .learn-legend span { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sindoor); }
.learn-days button.has-cards::after { position: absolute; bottom: 4px; left: calc(50% - 3px); }
.learn-days button[aria-pressed="true"] { background: var(--ink); color: var(--desk); }
.learn-days button:disabled { opacity: 0.3; cursor: default; }
.learn-legend { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--pencil); font-size: 13px; }
.learn-calendar .tool-chip { align-self: flex-start; }
.learn-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow-wrap: anywhere; }
.learn-content h2 { margin: 0; padding-bottom: 10px; border-bottom: 2px dashed var(--rule); font-family: var(--font-heading); font-size: 28px; font-weight: 800; }
#results { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
.learn-count, .learn-empty { margin: 0; color: var(--pencil); }
.learn-sheet { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
.learn-day-title { margin: 0; font-family: var(--font-heading); font-size: 22px; font-weight: 800; }
.learn-label { color: var(--sindoor-text); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.learn-card, .learn-word { padding-bottom: 14px; border-bottom: 1px solid var(--rule-soft); }
.learn-card h4 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 20px; font-weight: 800; }
.learn-card img { max-width: 100%; max-height: 240px; object-fit: cover; border-radius: 4px; }
.learn-card p, .learn-word p { margin: 4px 0; }
.learn-word-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.learn-word-head strong { font-family: var(--font-heading); font-size: 20px; font-weight: 800; }
.learn-word-head span, .learn-source, .learn-example { color: var(--pencil); font-size: 14px; }
@media (max-width: 800px) {
  .learn-layout { grid-template-columns: minmax(0, 1fr); }
  .learn-calendar { position: static; }
  .learn-sheet { padding: 16px; }
}

/* ==========================================================================
   Admin and author workspace, in the paper design
   ========================================================================== */
body.admin-shell { background: var(--desk); color: var(--ink); font-family: var(--font-body); }
body.admin-shell :is(h1, h2, h3) { font-family: var(--font-heading); letter-spacing: -0.015em; }
body.admin-shell :is(button, input, select, textarea) { font-family: var(--font-body); }
body.admin-shell .admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 24px; width: min(1400px, 100%); box-sizing: border-box; margin: 0 auto; padding: 0 20px 48px; align-items: start; }
body.admin-shell .admin-topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-start; gap: 14px; min-height: 0; padding: 14px 0; border: 0; background: transparent; }
body.admin-shell .admin-brand-link img { display: block; height: 34px; width: auto; }
body.admin-shell .admin-role { padding: 2px 10px; border: 2px solid var(--sindoor); border-radius: 8px; color: var(--sindoor-text); font-family: var(--font-heading); font-size: 12px; font-weight: 800; text-transform: uppercase; transform: rotate(-5deg); white-space: nowrap; }
body.admin-shell .admin-topbar-account { display: flex; flex-direction: row; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }
body.admin-shell .admin-topbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
body.admin-shell .admin-menu-button { display: none; }
body.admin-shell .admin-sidebar { position: sticky; top: 12px; display: block; padding: 12px; border: 0; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
body.admin-shell .admin-nav { display: flex; flex-direction: column; gap: 2px; overflow: visible; }
body.admin-shell .admin-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
body.admin-shell .admin-nav a:hover { background: var(--desk); }
body.admin-shell .admin-nav a.is-active { background: var(--ink); color: var(--desk); }
body.admin-shell .admin-main { min-width: 0; }
body.admin-shell .admin-content { max-width: none; margin: 0; padding: 4px 0 0; overflow-wrap: anywhere; }
body.admin-shell .admin-page-heading h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
body.admin-shell .admin-button { min-height: 42px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; }
body.admin-shell .admin-button.is-primary { background: var(--sindoor); border-color: var(--sindoor); color: var(--ink); }
body.admin-shell .admin-button:disabled { opacity: 0.45; }
body.admin-shell .admin-content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea), body.admin-shell dialog :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) { box-sizing: border-box; max-width: 100%; min-height: 42px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--sheet); color: var(--ink); }
body.admin-shell .admin-content textarea.admin-paste-answer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
body.admin-shell :is(.admin-table-wrap, .admin-paste-preview, .admin-section, .admin-card, .admin-stat, .admin-dashboard-card, .admin-paste-step, .admin-dialog) { border: 0; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
body.admin-shell :is(.admin-paste-step, .admin-section) { padding: 16px 18px; }
body.admin-shell .admin-table-wrap { overflow-x: auto; }
body.admin-shell table th { background: var(--desk); }
body.admin-shell .admin-content :is(th, td) { border-color: var(--rule); }
/* Actions follow the content instead of floating over it. */
body.admin-shell .admin-form-actions { position: static; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 16px 0 0; border: 0; border-top: 2px dashed var(--rule); background: transparent; box-shadow: none; }
body.admin-shell .admin-form-actions > .admin-button { flex: 0 0 auto; width: auto; }
body.admin-shell .admin-gate { border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); border: 0; }
@media (max-width: 850px) {
  body.admin-shell .admin-layout { display: block; padding: 0 14px 40px; }
  body.admin-shell .admin-menu-button { display: inline-flex; align-items: center; }
  body.admin-shell .admin-role { display: none; }
  body.admin-shell .admin-sidebar { display: none; position: static; margin-bottom: 14px; }
  body.admin-shell .admin-layout.is-menu-open .admin-sidebar { display: block; }
  body.admin-shell .admin-nav { flex-direction: column; }
  body.admin-shell .admin-topbar { gap: 10px; }
  body.admin-shell .admin-topbar-name { max-width: 28vw; font-size: 13px; }
  body.admin-shell .admin-brand-link img { height: 26px; }
}
body.admin-shell .admin-layout, body.admin-shell .admin-layout :is(p, span, td, th, label, a, li, small, strong) { font-family: var(--font-body); }
body.admin-shell .admin-layout :is(h1, h2, h3), body.admin-shell .admin-stat-card strong { font-family: var(--font-heading); }
body.admin-shell .admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
body.admin-shell :is(.admin-stat-card, .admin-resource-card, .admin-subsection) { border: 0; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); }
body.admin-shell .admin-stat-card strong { font-size: 40px; font-weight: 800; line-height: 1; }
body.admin-shell .admin-subsection { margin-top: 20px; padding: 16px 18px; }
body.admin-shell .admin-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; }
body.admin-shell .admin-table { background: var(--sheet); }
body.admin-shell .admin-notice { border-radius: 4px; background: var(--sheet); }
body.admin-shell .admin-status { border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }

/* ---------- Mock test list ---------- */
.mock-page .mock-block { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; min-width: 0; }
.mock-page h2 { margin: 0; padding-bottom: 10px; border-bottom: 2px dashed var(--rule); font-family: var(--font-heading); font-size: 26px; font-weight: 800; }
.mock-page #mocks p { margin: 0; }
.mock-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.mock-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 4px; background: var(--sheet); box-shadow: var(--sheet-shadow); min-width: 0; }
.mock-card h3 { margin: 0; font-family: var(--font-heading); font-size: 21px; font-weight: 800; }
.mock-card p { color: var(--pencil); font-size: 14px; }
.mock-label { color: var(--pencil); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mock-card .mock-when { color: var(--sindoor-text); font-weight: 700; }
.mock-button { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 44px; margin-top: auto; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px var(--font-body); text-decoration: none; cursor: pointer; }
.mock-page a.mock-button.is-main { border-color: var(--sindoor); background: var(--sindoor); color: var(--ink); }
.mock-big { font-family: var(--font-heading); font-size: 56px; font-weight: 800; line-height: 1; }
.mock-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; font-size: 12px; }
.mock-month span:not(:empty) { padding: 4px 0; border: 1.5px solid transparent; border-radius: 8px; }
.mock-month span.is-today { border-color: var(--ink); }
.mock-month span.is-done { background: var(--sindoor); font-weight: 700; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chip { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.mock-chip[aria-pressed="true"] { background: var(--ink); color: var(--desk); }
.mock-select { align-self: flex-start; min-height: 44px; max-width: 100%; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--sheet); color: var(--ink); }
.mock-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-weight: 600; text-decoration: none; }
@media (max-width: 850px) { .mock-top { grid-template-columns: minmax(0, 1fr); } }

/* Phones have the bottom menu, so footers do not repeat its destinations. */
@media (max-width: 850px) {
  :is(.paper-page-footer, .site-footer) a:is([href="/"], [href="/jobs"], [href="/tools/"], [href="/communities"], [href="/services"]):not(.brand-mark):not(:has(img)) { display: none; }
}

/* Mock test report */
.mock-page #mocks { display: flex; flex-direction: column; gap: 20px; }
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.report-row small { color: var(--pencil); grid-column: 1 / -1; }
.report-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--rule-soft); overflow: hidden; }
.report-track span { display: block; height: 100%; background: var(--ink); }
.report-track span.is-weak { background: var(--sindoor); }
.report-options { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-card .report-question { color: var(--ink); font-size: 16px; white-space: pre-wrap; }
.report-rings { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; }
.report-ring { width: 150px; height: 150px; flex: none; }
.report-ring-big { font: 800 28px var(--font-heading); fill: var(--ink); }
.report-ring-small { font: 600 11px var(--font-body); fill: var(--pencil); }
.report-legend { display: flex; flex-direction: column; gap: 8px; }
.report-legend p { display: flex; align-items: center; gap: 8px; margin: 0; }
.report-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
