:root {
  color-scheme: light;

  --ground: #F6F7F5;
  --surface: #FFFFFF;
  --band: #ECEFE9;
  --clock-bg: #171B1E;
  --clock-panel: #1F252A;

  --ink: #15181B;
  --muted: #4E565E;
  --clock-ink: #F4F6F4;
  --clock-muted: #B6C0C9;

  --primary: #0E5CAD;
  --primary-hover: #0A498C;
  --primary-tint: #EAF2FB;

  --signal: #1B6B4F;
  --signal-tint: #E7F3EE;
  --clock-signal: #84D2B7;

  --danger: #B42828;
  --danger-hover: #8F1E1E;
  --danger-tint: #FBEAEA;

  --rule: #D3D9D3;
  --rule-strong: #15181B;
  --rule-dark: rgba(244, 246, 244, 0.16);

  --font-display: "Bitter", "Liberation Serif", Georgia, serif;
  --font-body: "IBM Plex Sans", "Liberation Sans", sans-serif;
  --font-clock: "IBM Plex Mono", "Liberation Mono", monospace;

  --r-sm: 3px;
  --r-md: 6px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 150ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--ground);
}

body {
  margin: 0;
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

code {
  font-family: var(--font-clock);
  font-size: 0.9em;
  background: var(--band);
  padding: 0.1em 0.35em;
  border-radius: var(--r-sm);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.clock-module :focus-visible,
.slip-clock :focus-visible,
.tracker-clock-bar :focus-visible,
.kode-display-box :focus-visible,
.band-dark :focus-visible {
  outline-color: var(--clock-ink);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.mt-16 {
  margin-top: 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.wrap-medium {
  max-width: 1020px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-ver {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  line-height: 1.3;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 18px;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  padding-block: 10px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-desktop a:hover {
  color: var(--ink);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--ink);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-mobile {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  padding-block: 8px;
}

.nav-mobile-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--band);
}

.nav-mobile-list a:last-child {
  border-bottom: none;
}

.nav-mobile-list a:hover {
  color: var(--primary);
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.25;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform 80ms var(--ease);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--ink);
  color: var(--surface);
}

.btn-ghost {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--ink);
  background-color: var(--band);
}

.btn-danger-ghost {
  background-color: transparent;
  color: var(--danger);
  border-color: var(--rule);
}

.btn-danger-ghost:hover:not(:disabled) {
  background-color: var(--danger-tint);
  border-color: var(--danger);
  color: var(--danger-hover);
}

.btn-sm {
  min-height: 44px;
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}

.text-link:hover {
  color: var(--primary-hover);
}

/* Status Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-academic,
.tag-urgent {
  background-color: var(--primary-tint);
  color: var(--primary);
}

.tag-game {
  background-color: var(--signal-tint);
  color: var(--signal);
}

.tag-danger {
  background-color: var(--danger-tint);
  color: var(--danger);
}

.tag-muted {
  background-color: var(--band);
  color: var(--muted);
}

/* Section Rhythm & Bands */
.section {
  padding-block: 56px;
  scroll-margin-top: 72px;
}

.band-paper {
  background-color: var(--band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band-ground {
  background-color: var(--ground);
}

.band-white {
  background-color: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band-dark {
  background-color: var(--clock-bg);
  color: var(--clock-ink);
}

.section-head {
  margin-bottom: 28px;
  max-width: 660px;
}

.section-head-split {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.band-dark .section-title {
  color: var(--clock-ink);
}

.section-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 60ch;
}

.band-dark .section-desc {
  color: var(--clock-muted);
}

/* Hero Section */
.hero-section {
  padding-block: 36px 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-context {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 17ch;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-facts {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hero-fact dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-fact dd {
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

/* Hero Morning Desk Slip */
.desk-slip {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  min-width: 0;
}

.slip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 2px solid var(--rule-strong);
}

.slip-caption {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.slip-title {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.slip-date {
  font-family: var(--font-clock);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--band);
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

.slip-body {
  padding: 16px 20px;
}

.slip-group + .slip-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.slip-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.slip-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: baseline;
  padding-block: 7px;
  border-top: 1px solid var(--band);
}

.slip-row:first-of-type {
  border-top: none;
  padding-top: 2px;
}

.slip-time {
  font-family: var(--font-clock);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.slip-text {
  font-size: 0.9375rem;
  color: var(--ink);
}

.slip-deadline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.slip-empty {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.slip-empty-copy {
  min-width: 0;
}

.slip-more {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.slip-deadline-copy {
  min-width: 0;
}

.slip-strong {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.slip-sub {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--muted);
}

.slip-clock {
  background: var(--clock-bg);
  color: var(--clock-ink);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.slip-clock-meta {
  min-width: 0;
}

.slip-clock-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--clock-signal);
  font-weight: 500;
}

.slip-clock-game {
  margin-top: 2px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--clock-ink);
}

.slip-clock-sub {
  font-size: 0.8125rem;
  color: var(--clock-muted);
}

.slip-countdown {
  font-family: var(--font-clock);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--clock-ink);
  white-space: nowrap;
}

/* Date Stamp */
.date-stamp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  align-self: flex-start;
}

.date-stamp svg {
  color: var(--primary);
  flex-shrink: 0;
}

.date-stamp-main {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.date-stamp-sub {
  font-family: var(--font-clock);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Kartu Hari Ini Workspace */
.today-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.timetable-sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: 22px 20px;
  min-width: 0;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.sheet-head-plain {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 18px;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.sheet-subtitle {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}

.agenda-list {
  display: flex;
  flex-direction: column;
}

.agenda-item {
  display: grid;
  grid-template-columns: 54px 22px 1fr;
  gap: 12px;
  align-items: start;
  padding-block: 14px;
  border-bottom: 1px solid var(--band);
}

.agenda-item:last-child {
  border-bottom: none;
}

.agenda-time {
  font-family: var(--font-clock);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: 1px;
}

.agenda-check {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1.5px solid var(--muted);
  border-radius: var(--r-sm);
  background: var(--surface);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.agenda-check::before {
  content: "";
  position: absolute;
  inset: -12px;
}

.agenda-check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--surface);
  border-bottom: 2px solid var(--surface);
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.agenda-check:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.agenda-check:checked::after {
  opacity: 1;
}

.agenda-body {
  min-width: 0;
}

.agenda-head-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.agenda-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.agenda-note {
  margin-top: 3px;
  font-size: 0.875rem;
  color: var(--muted);
}

.agenda-item.is-done .agenda-title {
  text-decoration: line-through;
  color: var(--muted);
}

.agenda-item.is-done .agenda-time,
.agenda-item.is-done .agenda-note {
  opacity: 0.7;
}

/* Jadwal Kuliah Hari Ini (Kartu Hari Ini) */
.today-schedule-wrap {
  margin-top: 12px;
}

.today-schedule-list {
  display: flex;
  flex-direction: column;
}

.today-schedule-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-block: 12px;
  border-bottom: 1px solid var(--band);
}

.today-schedule-item:last-child {
  border-bottom: none;
}

.today-schedule-time {
  font-family: var(--font-clock);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.today-schedule-body {
  min-width: 0;
}

.today-schedule-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.today-schedule-room {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.today-schedule-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--band);
  display: flex;
  justify-content: flex-end;
}

.today-empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* Jadwal Kuliah Section */
.jadwal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.jadwal-form-panel {
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 22px 20px;
  min-width: 0;
}

.jadwal-form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jadwal-form-actions [hidden] {
  display: none;
}

.jadwal-ledger {
  border-top: 2px solid var(--rule-strong);
  padding-top: 18px;
  min-width: 0;
}

.jadwal-groups {
  display: flex;
  flex-direction: column;
}

.jadwal-groups > .empty-state {
  margin-top: 16px;
}

.jadwal-day-group {
  padding-top: 18px;
  border-bottom: 1px solid var(--rule);
}

.jadwal-day-group:last-child {
  border-bottom: none;
}

.jadwal-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.jadwal-day-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.jadwal-day-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.jadwal-day-count {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
}

.jadwal-day-rows {
  display: flex;
  flex-direction: column;
}

.jadwal-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-block: 14px;
  border-bottom: 1px solid var(--band);
}

.jadwal-row:last-child {
  border-bottom: none;
}

.jadwal-row.is-editing {
  background: var(--primary-tint);
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: var(--r-sm);
}

.jadwal-row-main {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.jadwal-time {
  font-family: var(--font-clock);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.jadwal-info {
  min-width: 0;
}

.jadwal-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.jadwal-room {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.jadwal-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet-subhead {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.today-deadlines {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}

.today-deadline-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--band);
}

.today-deadline-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.today-deadline-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.today-deadline-meta {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Signature Matte Desk-Clock Module */
.clock-module {
  background: var(--clock-bg);
  color: var(--clock-ink);
  border-radius: var(--r-md);
  padding: 24px 22px;
  box-shadow: 0 2px 6px rgba(21, 24, 27, 0.08);
  min-width: 0;
}

.clock-module-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.clock-source {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clock-signal);
}

.clock-game-name {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clock-ink);
  line-height: 1.2;
}

.clock-game-region {
  margin-top: 3px;
  font-size: 0.875rem;
  color: var(--clock-muted);
}

.clock-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clock-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.clock-link:hover {
  color: var(--clock-signal);
}

.clock-display {
  margin-top: 20px;
  padding: 18px 16px;
  background: var(--clock-panel);
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-sm);
}

.clock-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clock-muted);
}

.clock-digits {
  margin-top: 6px;
  font-family: var(--font-clock);
  font-size: clamp(2.15rem, 7vw, 2.85rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--clock-ink);
}

.clock-local {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--clock-muted);
}

.clock-rule {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--clock-muted);
}

.clock-weekly {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clock-weekly-value {
  margin-top: 4px;
  font-family: var(--font-clock);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clock-ink);
}

.clock-weekly-meta {
  font-size: 0.875rem;
  color: var(--clock-muted);
}

.clock-custom-drawer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
}

.clock-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.clock-drawer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clock-ink);
}

.today-custom-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.today-custom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.875rem;
}

.today-custom-row:first-child {
  border-top: none;
  padding-top: 0;
}

.today-custom-row span {
  font-family: var(--font-clock);
  font-size: 0.875rem;
  color: var(--clock-signal);
}

/* Tracker Reset Game */
.notice-strip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--ink);
}

.notice-strip svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.tracker-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.tracker-board,
.custom-sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 22px 20px;
  min-width: 0;
}

.tracker-block + .tracker-block {
  margin-top: 22px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.field-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

.game-selector {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--rule);
  gap: 1px;
}

.game-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border: none;
  background: var(--surface);
  text-align: left;
  transition: background-color var(--dur) var(--ease);
}

.game-option:hover {
  background: var(--ground);
}

.game-option.is-active {
  background: var(--primary-tint);
}

.game-option-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.game-option.is-active .game-option-name {
  color: var(--primary);
}

.game-option-genre {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.game-option-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  flex-shrink: 0;
  background: var(--surface);
}

.game-option.is-active .game-option-check {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.region-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-option {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--ground);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.region-option:hover {
  border-color: var(--ink);
}

.region-option.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.tracker-clock-bar {
  margin-top: 22px;
  background: var(--clock-bg);
  color: var(--clock-ink);
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.tracker-clock-cell {
  padding: 20px 18px;
}

.tracker-clock-cell-weekly {
  border-top: 1px solid var(--rule-dark);
}

.tracker-clock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clock-status-live {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clock-signal);
}

.clock-status-muted {
  font-size: 0.8125rem;
  color: var(--clock-muted);
}

.tracker-digits {
  margin-top: 10px;
  font-family: var(--font-clock);
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--clock-ink);
}

.tracker-digits-sm {
  font-size: clamp(1.1rem, 3.8vw, 1.25rem);
  padding-top: 8px;
  line-height: 1.3;
}

.tracker-footer-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tracker-footer-bar .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.tracker-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Forms */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  transition: border-color var(--dur) var(--ease);
}

.form-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.form-input:hover {
  border-color: var(--muted);
}

.form-input:focus {
  border-color: var(--primary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-error {
  padding: 10px 12px;
  background: var(--danger-tint);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Custom Reset List */
.custom-list-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.custom-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.custom-reset-list {
  display: flex;
  flex-direction: column;
}

.custom-item {
  padding-block: 14px;
  border-top: 1px solid var(--band);
}

.custom-item:first-child {
  border-top: none;
  padding-top: 4px;
}

.custom-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.custom-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.custom-item-rule {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.custom-item-timers {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: var(--clock-bg);
  color: var(--clock-ink);
  border-radius: var(--r-sm);
}

.custom-timer-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--clock-muted);
}

.custom-timer-val {
  display: block;
  margin-top: 2px;
  font-family: var(--font-clock);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clock-ink);
}

.custom-timer-val-weekly {
  color: var(--clock-signal);
}

.custom-item-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  padding: 16px;
  background: var(--ground);
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Perencana Deadline Mini */
.deadline-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.deadline-form-panel {
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 22px 20px;
  min-width: 0;
}

.deadline-ledger {
  border-top: 2px solid var(--rule-strong);
  padding-top: 18px;
  min-width: 0;
}

.ledger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.deadline-list {
  display: flex;
  flex-direction: column;
}

.deadline-list > .empty-state {
  margin-top: 16px;
}

.deadline-item {
  padding-block: 16px;
  border-bottom: 1px solid var(--rule);
}

.deadline-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deadline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.deadline-course {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--muted);
}

.deadline-item-foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deadline-date-text {
  font-family: var(--font-clock);
  font-size: 0.875rem;
  color: var(--muted);
}

.deadline-actions {
  display: flex;
  gap: 8px;
}

.deadline-item.is-done .deadline-title {
  text-decoration: line-through;
  color: var(--muted);
}

.deadline-item.is-done {
  opacity: 0.72;
}

/* Panel Kode Pribadi */
.kode-mode-line {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.kode-mode-line .tag-muted {
  background-color: var(--surface);
  border: 1px solid var(--rule);
}

.kode-sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: 22px 20px;
  min-width: 0;
}

.kode-copy {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}

.kode-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kode-display-box {
  margin-top: 18px;
  padding: 18px 16px;
  background: var(--clock-bg);
  color: var(--clock-ink);
  border-radius: var(--r-md);
  box-shadow: 0 2px 6px rgba(21, 24, 27, 0.08);
}

.kode-display-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.kode-code-text {
  font-family: var(--font-clock);
  font-size: clamp(1.2rem, 4.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--clock-ink);
  overflow-wrap: anywhere;
  user-select: all;
}

.kode-copy-btn {
  background: var(--clock-panel);
  color: var(--clock-ink);
  border-color: var(--rule-dark);
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
}

.kode-copy-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}

.kode-copy-feedback {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clock-signal);
}

.kode-lifecycle {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.kode-lifecycle-list {
  margin-top: 10px;
  border-top: 1px solid var(--rule);
}

.kode-lifecycle-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-block: 12px;
  border-bottom: 1px solid var(--band);
}

.kode-lifecycle-row dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.kode-lifecycle-row dd {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.kode-save-tip {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink);
}

.kode-warning {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--danger-tint);
  border: 1px solid var(--danger);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--danger);
}

.kode-confirm-label {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.kode-confirm-label .agenda-check {
  margin: 0;
  flex-shrink: 0;
}

.kode-input-mono {
  font-family: var(--font-clock);
  font-size: 1rem;
}

.kode-recover-box {
  padding: 14px;
  background: var(--ground);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kode-recover-box[hidden] {
  display: none;
}

.kode-recover-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.kode-status-ledger {
  margin-top: 4px;
}

.kode-status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding-block: 12px;
  border-bottom: 1px solid var(--band);
}

.kode-status-row:last-child {
  border-bottom: none;
}

.kode-status-row dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.kode-status-row dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.discord-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.discord-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discord-row-actions [hidden] {
  display: none;
}

.discord-pair-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.discord-pair-panel[hidden] {
  display: none;
}

.discord-pair-box {
  margin-top: 0;
}

.discord-pair-code {
  font-family: var(--font-clock);
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.14em;
  color: var(--clock-ink);
  user-select: all;
}

.discord-pair-expiry {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--clock-muted);
}

.discord-pair-guide {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.discord-pair-guide code {
  font-family: var(--font-clock);
  font-size: 0.875rem;
  padding: 1px 5px;
  background: var(--band);
  border-radius: var(--r-sm);
  color: var(--ink);
}

.discord-status-note {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.discord-status-note[hidden] {
  display: none;
}

.kode-active-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kode-logout-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Editorial Split (Cara Kerja & FAQ) */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.editorial-intro {
  max-width: 34ch;
}

.steps-ledger {
  border-top: 2px solid var(--rule-strong);
}

.step-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
}

.step-marker {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.step-desc {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 56ch;
}

/* Prinsip SelaHari (Dark Manifesto Band) */
.principles-ledger {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule-dark);
}

.principle-cell {
  padding-block: 24px;
  border-bottom: 1px solid var(--rule-dark);
}

.principle-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clock-ink);
}

.principle-desc {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--clock-muted);
  max-width: 48ch;
}

/* FAQ Ledger */
.faq-ledger {
  border-top: 2px solid var(--rule-strong);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 14px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--dur) var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--ink);
}

.faq-answer {
  padding-bottom: 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* Footer */
.site-footer {
  background: var(--ground);
  border-top: 2px solid var(--rule-strong);
  padding-block: 28px 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--ink);
}

.footer-sep {
  color: var(--muted);
}

.footer-note {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 60ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--primary-hover);
}

/* Document Pages (Privasi & Ketentuan) */
.doc-wrap {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 20px;
}

.doc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.doc-back-link:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

.doc-main {
  padding-block: 36px 56px;
}

.doc-head {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--rule-strong);
}

.doc-context {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}

.doc-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.doc-effective {
  margin-top: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}

.doc-lead {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 64ch;
}

.doc-body {
  display: flex;
  flex-direction: column;
}

.doc-section {
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
}

.doc-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-heading {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 3.2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doc-section p {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 65ch;
}

.doc-section p.doc-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc-list {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 65ch;
}

.doc-list li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}

.doc-sheet {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 4px 18px;
}

.doc-ledger-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-block: 14px;
  border-bottom: 1px solid var(--band);
}

.doc-ledger-row:last-child {
  border-bottom: none;
}

.doc-ledger-row dt {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.doc-ledger-row dd {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.doc-inline-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-inline-link:hover {
  color: var(--primary-hover);
}

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: var(--ink);
  color: var(--clock-ink);
  border: 1px solid rgba(244, 246, 244, 0.24);
  border-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(21, 24, 27, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms var(--ease),
    transform 180ms var(--ease),
    visibility 0s linear 180ms,
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 180ms var(--ease),
    transform 180ms var(--ease),
    visibility 0s linear 0s,
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.back-to-top:hover {
  background-color: var(--primary);
  border-color: var(--primary-hover);
}

.back-to-top:active {
  transform: translateY(1px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Tablet & Desktop Breakpoints */
@media (min-width: 640px) {
  .btn-sm {
    min-height: 38px;
  }

  .jadwal-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
  }

  .jadwal-row-actions {
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .agenda-head-line {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .hero-fact {
    padding-right: 16px;
  }

  .hero-fact + .hero-fact {
    padding-left: 16px;
    border-left: 1px solid var(--rule);
  }

  .game-selector {
    grid-template-columns: 1fr 1fr;
  }

  .tracker-clock-bar {
    grid-template-columns: 1fr 1fr;
  }

  .tracker-clock-cell-weekly {
    border-top: none;
    border-left: 1px solid var(--rule-dark);
  }

  .tracker-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .step-row {
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: baseline;
  }

  .kode-actions {
    flex-direction: row;
    align-items: center;
  }

  .kode-display-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .kode-status-row {
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .kode-active-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .doc-ledger-row {
    grid-template-columns: 190px 1fr;
    gap: 16px;
    align-items: baseline;
  }
}

@media (min-width: 860px) {
  .wrap,
  .doc-wrap {
    padding-inline: 32px;
  }

  .doc-main {
    padding-block: 52px 72px;
  }

  .doc-section {
    padding-block: 28px;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none;
  }

  .section {
    padding-block: 76px;
  }

  .hero-section {
    padding-block: 72px 88px;
    min-height: min(780px, calc(100vh - 65px));
    display: flex;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
  }

  .section-head-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .today-grid {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
  }

  .timetable-sheet {
    padding: 26px 28px;
  }

  .kode-sheet {
    padding: 26px 28px;
  }

  .clock-module {
    padding: 28px 26px;
  }

  .tracker-layout {
    grid-template-columns: 1.25fr 0.9fr;
    gap: 28px;
  }

  .tracker-board,
  .custom-sheet {
    padding: 26px 28px;
  }

  .tracker-digits-sm {
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .deadline-layout {
    grid-template-columns: 0.82fr 1.35fr;
    gap: 36px;
  }

  .jadwal-layout {
    grid-template-columns: 0.82fr 1.35fr;
    gap: 36px;
  }

  .editorial-split {
    grid-template-columns: 0.52fr 1fr;
    gap: 48px;
  }

  .principles-ledger {
    grid-template-columns: 1fr 1fr;
  }

  .principle-cell {
    padding: 28px 28px 28px 0;
  }

  .principle-cell:nth-child(even) {
    padding: 28px 0 28px 28px;
    border-left: 1px solid var(--rule-dark);
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .back-to-top {
    right: 28px;
    bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .back-to-top,
  .back-to-top.is-visible {
    transition: none !important;
    transform: none !important;
  }
}
