.app-logo.shine { width: 36px; height: 36px; display: inline-flex; border-radius: 11px; flex-shrink: 0; }
.app-logo img { display: block; width: 100%; height: 100%; }
#menu-title { display: flex; align-items: center; gap: .65rem; }
.shine { position: relative; overflow: hidden; isolation: isolate; }
.home-tabs {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .25rem;
  padding: .25rem; border: 1px solid #384963; border-radius: 1rem;
  background: linear-gradient(105deg,#25334b,#192537); box-shadow: inset 0 1px 0 #ffffff14;
}
.home-tabs :is(a,button) {
  min-width: 0; min-height: 40px; padding: .35rem .15rem; display: flex;
  align-items: center; justify-content: center; gap: .45rem;
  border-radius: .74rem; color: #dbe6f4; font-size: .85rem; font-weight: 750; text-decoration: none;
}
.home-tabs .ui-icon { width: 1.05rem; height: 1.05rem; }
.home-tabs a[aria-current] { color: #fff; background: linear-gradient(105deg,#225dc7,#007caa); box-shadow: 0 2px 8px #1989df50; }
.home-tabs button { color: #332007; background: linear-gradient(105deg,#ffbc35,#ff922b); }
.home-tabs a:hover, .home-tabs a:focus-visible { background-color: #354862; }
.home-alerts { display: grid; gap: .56rem; margin: .7rem 0 1rem; }
.home-alerts a {
  --accent: #17ad92; --ink: #096658;
  display: flex; align-items: center; gap: .8rem; min-height: 72px; padding: .7rem .95rem;
  border: 1px solid color-mix(in srgb,var(--accent) 47%,var(--border)); border-radius: .98rem;
  background: linear-gradient(110deg,color-mix(in srgb,var(--accent) 10%,var(--surface)),var(--surface));
  box-shadow: 0 4px 14px color-mix(in srgb,var(--accent) 12%,transparent); color: inherit; text-decoration: none;
}
.home-alerts .home-book { --accent: #e69c27; --ink: #895000; }
.home-alerts a:hover { border-color: var(--accent); }
.home-alerts .ui-emblem { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #12242c; }
.home-alerts a > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.home-alerts strong { font: 800 1.06rem/1.2 Bricolage,Jakarta,sans-serif; }
.home-alerts p { margin-top: .22rem; color: var(--ink); font-size: .83rem; }
.home-arrow {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 1px solid color-mix(in srgb,var(--accent) 52%,transparent); color: var(--ink); font-size: 1.35rem;
}
[data-theme="dark"] .home-reminders { --ink: #80dcca; }
[data-theme="dark"] .home-book { --ink: #f1c778; }
.home-overview { display: grid; gap: .85rem; }
.home-overview .oil-chart { margin: 0; }
.home-overview .hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-color: #3084a1;
  background: radial-gradient(ellipse at top left,#154c60 0%,transparent 64%), linear-gradient(125deg,#102b3c,#101e31 76%);
  box-shadow: inset 0 1px 0 #8aeeff32, 0 4px 20px #0798c129;
}
.hero-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1rem; }
.hero-topline .metric-label { color: #a6f3ff; letter-spacing: .11em; }
.hero-topline .ui-emblem { color: #8eedff; box-shadow: inset 0 0 0 1px #72dcf545, 0 0 12px #20b8df24; }
.hero-clock { display: grid; gap: .12rem; justify-items: end; margin-inline-start: auto; color: #c3d4e4; font-size: .75rem; }
.clock-face { display: inline-flex; align-items: center; gap: .42rem; color: #97fff0; font-size: 1rem; font-variant-numeric: tabular-nums; text-shadow: 0 0 9px #51ebce65; }
.clock-face .ui-icon { width: .94rem; height: .94rem; }
.clock-face small { font-size: .65rem; letter-spacing: .07em; }
.menu-sheet[open] { display: flex; flex-direction: column; width: min(88vw,310px); height: 100dvh; max-height: 100dvh; min-height: 0; padding: 0; overflow: hidden; border-radius: 0; background: var(--surface); }
.drawer-header, .drawer-footer { flex: none; padding: .8rem .85rem; }
.drawer-header { border-bottom: 1px solid var(--border); }
.drawer-profile { display: flex; gap: .65rem; align-items: center; margin-bottom: .68rem; }
.drawer-profile > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.drawer-profile #menu-title { font-size: 1.04rem; }
#drawer-account, #drawer-vehicle { display: block; margin-top: .12rem; font-size: .8rem; color: var(--muted); }
#drawer-vehicle { font-size: .71rem; }
.drawer-close { align-self: start; padding: 0; min-width: 32px; min-height: 32px; font-size: 1.35rem; }
.drawer-mark { display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 30% 20%,#264e5d,#121b28 76%); border: 1px solid #379282; }
.drawer-scroll { padding: .8rem .85rem; overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; }
.drawer-garage,.drawer-backup,.drawer-feature,.drawer-pro { display: flex; align-items: center; gap: .65rem; padding: .65rem .78rem; border-radius: .72rem; font-size: .87rem; font-weight: 750; text-decoration: none; min-height: 43px; }
.drawer-garage { background: #e6faf1; border: 1px solid #82d7b7; color: #086048; }
.drawer-arrow { margin-left: auto; }
.drawer-pro,.drawer-feature { width: 100%; margin-bottom: .55rem; }
.drawer-pro { justify-content: center; color: #331a16; background: linear-gradient(110deg,#ffcc4f,#ff9148 52%,#fc6788); }
.drawer-feature { justify-content: flex-start; min-height: 49px; }
.drawer-service { background: linear-gradient(110deg,#007a56,#007b70); color: #fff; }
.drawer-alert { background: linear-gradient(110deg,#1c3047,#152237); color: #ffda95; border: 1px solid #a08550; }
.drawer-feature > span[data-icon] { display: grid; place-items: center; width: 29px; height: 29px; background: #ffffff18; border-radius: .5rem; }
.menu-sheet .menu-list { gap: .15rem; }
.menu-sheet .menu-list a,.menu-sheet .drawer-add { justify-content: flex-start; min-height: 43px; }
.drawer-add { color: var(--blue-dark); background: var(--blue-light); font-size: .9rem; }
.drawer-footer { margin: 0; border-top: 1px solid var(--border); }
.drawer-backup { color: var(--blue-dark); background: var(--blue-light); }
.drawer-footer .theme-picker { margin: .55rem 0 0; }
.menu-sheet :is(.drawer-backup,.drawer-garage,.drawer-alert)[aria-current] { outline: 2px solid currentColor; outline-offset: -2px; }
[data-theme="dark"] .drawer-garage { background: #133a32; color: #8ce6c9; border-color: #317664; }
@media (max-height: 540px) {
  .menu-sheet[open] { overflow-y: auto; }
  .drawer-scroll { overflow: visible; flex: none; }
}
.hero-reading .km { color: #edfdff; text-shadow: 0 0 12px #55e0ff60, 0 0 26px #30a5ff40; }
.hero .hero-stats strong { text-shadow: 0 0 9px #37dac455; }
.hero .hero-stats a + a strong { text-shadow: 0 0 9px #b3a4ff66; }
@media screen and (prefers-reduced-motion: no-preference) {
  .home-overview .hero::before {
    content: ''; position: absolute; z-index: -1; inset: -45% auto -45% 0; width: 48%; pointer-events: none;
    background: linear-gradient(90deg,transparent,#87edff08 28%,#bbf9ff2b 48%,#71d6ff0d 68%,transparent);
    animation: odometer-shine 6.5s ease-in-out infinite;
  }
}
.service-shortcuts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.service-shortcuts a, .dashboard-shortcut {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .6rem 1rem; border: 1px solid transparent;
  border-radius: .8rem; text-decoration: none; font-size: .87rem; font-weight: 750;
}
.service-shortcuts .ui-icon, .dashboard-shortcut .ui-icon { width: 1.1rem; height: 1.1rem; }
.service-shortcuts .schedule-shortcut, .dashboard-shortcut { color: #fff; background: linear-gradient(110deg,#225bc2,#006e94); box-shadow: 0 2px 8px #167cbe30; }
.service-shortcuts .book-shortcut { color: #704309; background: #fff3d8; border-color: #d8ad59; }
[data-theme="dark"] .service-shortcuts .book-shortcut { color: #ffda92; background: #342a1b; border-color: #8e6a38; }
.service-shortcuts a:hover, .dashboard-shortcut:hover { filter: brightness(1.08); }
@media (max-width: 490px) {
  .service-shortcuts { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
  .service-shortcuts a { gap: .35rem; padding-inline: .35rem; text-align: center; }
}
body[data-page="beranda"] .date-strip { justify-content: flex-end; }
body[data-page="beranda"] .date-strip time { flex: none; }
@media (min-width: 760px) {
  body[data-page="beranda"] main { display: grid; grid-template-columns: 1fr auto; }
  body[data-page="beranda"] main > :is(#content,#notice,footer) { grid-column: 1 / -1; }
  body[data-page="beranda"] .date-strip { align-items: center; }
  .home-alerts:has(.home-book) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-overview { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
}
@media (max-width: 415px) {
  .home-tabs :is(a,button) { font-size: .76rem; gap: .23rem; }
  .home-tabs .ui-icon { width: .88rem; height: .88rem; }
  .bar-inner .app-logo.shine { width: 29px; height: 29px; }
}
@keyframes odometer-shine {
  0%, 68% { transform: translateX(-190%) skewX(-20deg); }
  91%, 100% { transform: translateX(360%) skewX(-20deg); }
}
.reading-summary, .reading-history {
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: .9rem;
  background: var(--surface);
}
.reading-summary { display: grid; gap: .3rem; border-inline-start: 3px solid var(--blue); }
.reading-summary strong, .reading-history strong { font-variant-numeric: tabular-nums; }
.reading-summary span, .reading-history small { color: var(--muted); }
.reading-summary output, .reading-history small { display: block; font-size: .875rem; }
.reading-summary output:empty { display: none; }
.reading-history summary { cursor: pointer; font-weight: 700; }
.reading-history ul { list-style: none; padding: 0; margin: .5rem 0 0; max-height: 15rem; overflow-y: auto; }
.reading-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .6rem; padding: .6rem 0; border-top: 1px solid var(--border); font-size: .875rem; }
.reading-history p { margin-top: .5rem; }
@media screen and (prefers-reduced-motion: no-preference) {
  .shine::after {
    content: ''; position: absolute; inset: -30% auto -30% 0; width: 45%; pointer-events: none;
    background: linear-gradient(90deg,transparent,#fff6,transparent);
    animation: odometer-shine 5s ease-in-out infinite;
  }
  .home-tabs button.shine::after { animation-delay: .6s; }
}
