/* AppleSense v2: presentation-only overrides, loaded after the pinned application CSS. */
:root {
  --bg: #f5f5f7;
  --surface: #fff;
  --surface-alt: #f5f5f7;
  --topbar: #1d1d1f;
  --dark-card: #202024;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --line-strong: #d2d2d7;
  --ok: #248a3d;
  --danger: #c93432;
  --radius: 22px;
  --as-shadow: 0 8px 30px rgba(0, 0, 0, .045);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", sans-serif;
  letter-spacing: -.012em;
}
button, input, select, textarea { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 4px;
}

/* Navigation retains the application's permission-filtered menus. */
.topbar {
  background: rgba(251, 251, 253, .94);
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, .045);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.topbar-inner { max-width: 1240px; padding-inline: 30px; }
.brand-name { font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.brand-name::after {
  content: "AppleSense";
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .06em;
  font-weight: 500;
}
.who-name { font-weight: 600; }
.who-meta { color: var(--muted); }
.topbar .chip {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 13px;
}
.topbar .chip:hover { background: #eaeaf0; }
.topbar .chip-ident.is-alt { color: #fff; background: var(--accent); border-color: var(--accent); }
.topbar .notify-badge { background: var(--accent); color: #fff; }
.tabs-bar { background: #fff; padding: 9px 30px; }
.tabs-bar .tabs { max-width: 1180px; }
.tabs { border: 0; background: transparent; padding: 0; gap: 8px; flex-wrap: wrap; }
.tab { font-size: 13px; font-weight: 500; border-radius: 999px; padding: 9px 16px; }
.tab-active, .tab-active:hover { color: var(--accent); background: #eaf3fe; }
.tab-menu, .ident-menu { border-color: var(--line); border-radius: 18px; box-shadow: 0 16px 50px rgba(0, 0, 0, .12); padding: 8px; }
.tab-item { border-radius: 10px; padding: 11px 12px; font-weight: 500; }
.tab-item.on { background: #edf5ff; }
.shell { max-width: 1240px; padding: 24px 30px 100px; }
.crumb { margin-top: 8px; font-size: 12px; }
.crumb:empty { display: none; }
.as-version-nav { display: flex; justify-content: flex-end; gap: 14px; align-items: center; color: var(--muted); font-size: 11px; }
.as-v1-link { color: var(--accent); text-decoration: none; font-size: 12px; }
.as-v1-link:hover { text-decoration: underline; }
.as-login-footer { text-align: center; margin-top: 24px; }
#panel-head { padding: 28px 0 14px; }
h1.page-title { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.eyebrow { font-size: 11px; letter-spacing: .08em; margin-top: 0; }
.page-lead { font-size: 15px; line-height: 1.75; margin-top: 14px; }

/* One shared component system carries the style into every real feature. */
.card { padding: 26px; border-color: rgba(0, 0, 0, .065); box-shadow: var(--as-shadow); }
.card h2 { font-size: 18px; letter-spacing: -.025em; }
.card-dark { background: linear-gradient(135deg, #19191b, #2b303a); border-color: transparent; }
.card-dark .hint, .stat-hero .stat-label, .stat-hero .stat-sub { color: #b7bcc5; }
.btn { border-radius: 999px; font-weight: 500; font-size: 14px; padding: 11px 20px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-primary { box-shadow: 0 3px 10px rgba(0, 113, 227, .12); }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn-danger:hover:not(:disabled) { border-color: var(--danger); }
.field label { font-size: 12px; font-weight: 500; }
.field select, .field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 11px 13px;
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, .1); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.segmented { border: 0; border-radius: 999px; background: #e8e8ed; padding: 4px; }
.segmented button { border-radius: 999px; font-weight: 500; }
.segmented button.on { color: var(--ink); background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .09); }
.stat-grid { gap: 18px; }
.stat { border-color: rgba(0, 0, 0, .05); padding: 25px; box-shadow: var(--as-shadow); }
.stat-value { font-weight: 700; font-size: 36px; letter-spacing: -.045em; margin-top: 10px; }
.stat-hero { background: linear-gradient(140deg, #19191b, #283646); }
.stat-value.stat-text { font-size: 22px; }
table.data th, table.data td { padding: 14px 13px; }
table.data thead th { font-weight: 600; background: #f8f8fa; }
tr.row-self td { background: #edf5ff; }
.modal { border-radius: 26px; border-color: transparent; box-shadow: 0 24px 90px rgba(0, 0, 0, .2); }
.modal-head { padding: 23px 26px; }
.modal-body { padding: 24px 26px; }
.modal-title { font-weight: 650; letter-spacing: -.025em; }
.modal-close { border-radius: 50%; }
.reauth-card { border-radius: 26px; box-shadow: 0 24px 90px rgba(0, 0, 0, .16); }
.msg, .notify-prompt { border-radius: 16px; }
.progress-fill, .goal-fill { background: linear-gradient(90deg, #0071e3, #64b7ff); }
.section-label { color: var(--muted); font-weight: 600; }
.filter-row { gap: 12px; }

/* Login is a quiet, focused entry point; all original authentication controls remain. */
#view-login { max-width: 520px; padding-top: calc(90px + env(safe-area-inset-top, 0px)); }
.login-brand { margin-bottom: 32px; }
.login-brand .brand-logo { width: 66px; height: 66px; margin-bottom: 24px; }
.login-brand h1 { font-size: clamp(32px, 4.5vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -.055em; }
.login-brand p { color: var(--muted); font-size: 11px; margin-top: 14px; letter-spacing: .13em; }
.as-login-label { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .07em; margin-bottom: 15px; }
#login-forms, #login-gate { padding: 36px; border-radius: 28px; box-shadow: 0 18px 65px rgba(0, 0, 0, .055); }
#login-forms > h2 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
#login-forms > .hint { font-size: 14px; line-height: 1.7; }
#login-forms .btn-block { min-height: 50px; }
#btn-google-login { font-size: 15px; }
#btn-bio-login { background: #f5f5f7; border-color: transparent; }
/* v2 uses company Google sign-in until its origin is enabled for passkeys. */
#btn-bio-login, #login-forms > .divider, #login-forms > .hint:last-child,
#btn-reauth-bio, #reauth .divider, .card:has(> #device-list) { display: none !important; }
#view-loading { max-width: 500px; padding-top: 20vh; }
#view-loading .card { border-radius: 24px; }

/* Home: a large introduction, live progress, upcoming event, then real shortcuts. */
.as-home #panel-head { padding: 66px 0 38px; }
.as-home h1.page-title { font-size: clamp(43px, 5.6vw, 70px); line-height: 1.08; }
.as-home-kicker { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--accent); margin: 0 0 17px; }
.as-home-lead { font-size: clamp(18px, 2.1vw, 24px); color: var(--muted); margin: 16px 0 0; letter-spacing: -.03em; }
.as-home-pane > :is(.notify-prompt, .notice-prompt) { margin-bottom: 22px; }
.wx { padding: 20px 24px; border-radius: 22px; background: #fff; border-color: rgba(0, 0, 0, .05); margin-bottom: 26px; }
.wx-temp { font-weight: 650; }
#home-targets:not(:empty) { padding-top: 24px; }
#home-targets > .section-label { font-size: 32px; letter-spacing: -.045em; font-weight: 650; color: var(--ink); margin: 0 0 24px; }
#home-targets .goal-strip { padding: 28px; border-radius: 24px; margin-bottom: 18px; box-shadow: var(--as-shadow); }
#home-targets .goal-title { font-size: 17px; font-weight: 600; }
#home-targets .goal-pct { font-size: 36px; font-weight: 650; letter-spacing: -.045em; }
#home-targets .goal-head { margin-bottom: 16px; }
#home-targets .goal-bar { height: 8px; }
#home-targets .goal-foot { margin-top: 16px; }
#home-targets .goal-strip:nth-of-type(2) {
  background: linear-gradient(135deg, #1d1d20, #263346);
  color: #fff;
  border-color: transparent;
  border-left-color: #69baff;
}
#home-targets .goal-strip:nth-of-type(2) :is(.goal-sub, .goal-nums, .goal-days, .goal-note) { color: #c0c5d0; }
#home-targets .goal-strip:nth-of-type(2) .goal-bar { background: rgba(255, 255, 255, .16); }
#home-targets .goal-strip:nth-of-type(2).is-behind .goal-verdict { color: #ffb0a9; }
#home-targets .goal-strip:nth-of-type(2).is-done .goal-verdict { color: #88e4a1; }
.home-rank { border-radius: 24px; padding: 28px; margin-bottom: 24px; }
.home-rank-num { font-size: 46px; font-weight: 650; letter-spacing: -.04em; }
.home-rank-title { font-size: 17px; font-weight: 600; }
.home-rank-line { padding-block: 9px; }
#home-next-ev:not(:empty) { margin: 34px 0 54px; }
#home-next-ev:not(:empty)::before {
  content: "接下來的行程";
  display: block;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.04em;
}
.nev { padding: 24px; border-radius: 22px; background: #fff; border-color: rgba(0, 0, 0, .05); box-shadow: var(--as-shadow); }
.nev-icon { width: 50px; height: 50px; display: grid; place-items: center; background: #edf5ff; border-radius: 15px; }
.nev-title { font-size: 17px; font-weight: 600; }
.nev-count { padding: 7px 13px; border-radius: 999px; color: var(--accent); background: #edf5ff; font-size: 12px; }

/* Wrappers contain the existing tiles; permission checks and click handlers stay intact. */
.as-group { margin-top: 62px; }
.as-group > .section-label { color: var(--ink); margin: 0 0 26px; font-size: 34px; line-height: 1.2; letter-spacing: -.045em; font-weight: 650; }
.as-group > .section-sublabel { margin: 28px 0 15px; font-size: 13px; font-weight: 500; }
.as-group > .section-sublabel:first-of-type { margin-top: 0; }
.home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.as-home-pane > .home-grid { margin-block: 32px; }
.home-tile {
  position: relative;
  min-height: 170px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 19px;
  padding: 26px;
  border: 1px solid rgba(0, 0, 0, .035);
  border-radius: 24px;
  box-shadow: var(--as-shadow);
  transition: transform .2s, box-shadow .2s;
}
.home-tile::after { content: "↗"; position: absolute; right: 23px; bottom: 23px; font-size: 18px; color: #86868b; }
.home-tile:hover { transform: translateY(-4px); border-color: rgba(0, 113, 227, .18); box-shadow: 0 15px 40px rgba(0, 0, 0, .08); }
.home-icon { width: 46px; height: 46px; font-size: 25px; display: grid; place-items: center; border-radius: 14px; background: #f1f6ff; }
.home-label { text-align: left; font-size: 18px; letter-spacing: -.025em; font-weight: 600; padding-right: 15px; }
.home-note { text-align: left; padding-right: 10px; line-height: 1.55; }
.home-tile.is-disabled::after { content: none; }
.as-group-operations { padding: 38px; border-radius: 32px; background: #161618; }
.as-group-operations > .section-label { color: #f5f5f7; }
.as-group-operations > .section-sublabel { color: #b6b6bf; }
.as-group-operations .home-tile { color: #fff; background: #27272b; border-color: rgba(255, 255, 255, .06); box-shadow: none; }
.as-group-operations .home-tile:nth-child(4n+1):not(.is-disabled) { background: linear-gradient(145deg, #0877df, #0759aa); }
.as-group-operations .home-tile:nth-child(4n+2):not(.is-disabled) { background: linear-gradient(145deg, #7356ce, #543ca7); }
.as-group-operations .home-tile:nth-child(4n+3):not(.is-disabled) { background: linear-gradient(145deg, #237d65, #155644); }
.as-group-operations .home-icon { background: rgba(255, 255, 255, .12); }
.as-group-operations .home-tile::after, .as-group-operations .home-note { color: #d0d2df; }
.as-group-management > .section-label::before { content: "MANAGEMENT"; display: block; color: var(--accent); font-size: 11px; letter-spacing: .1em; margin-bottom: 12px; }
.as-group-management .home-tile:first-child:not(.is-disabled) { background: linear-gradient(140deg, #1e2026, #293d56); color: #fff; }
.as-group-management .home-tile:first-child .home-icon { background: rgba(73, 157, 255, .15); }

@media (max-width: 1000px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .as-group-operations { padding: 28px; }
  .home-tile { padding: 22px; }
}
@media (max-width: 640px) {
  .topbar-inner { padding-inline: 15px; gap: 10px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 13px; }
  .brand-name::after { font-size: 9px; }
  .topbar .brand-logo { width: 27px; height: 27px; }
  .topbar-right { gap: 6px; }
  .topbar .chip { padding: 7px 10px; font-size: 11px; }
  .who-name { font-size: 12px; }
  .tabs-bar { padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)); border-top-color: var(--line); background: rgba(255, 255, 255, .98); }
  .tabs { flex-wrap: nowrap; gap: 2px; }
  .tab, .tab-parent { font-size: 10px; padding: 5px 3px; border-radius: 12px; flex-direction: column; }
  .tab-active, .tab-active:hover { background: #edf5ff; color: var(--accent); }
  .shell { padding: 18px 18px calc(100px + env(safe-area-inset-bottom, 0px)); }
  #panel-head { padding: 20px 0 10px; }
  .as-home #panel-head { padding: 42px 0 28px; }
  .as-home h1.page-title { font-size: 43px; }
  .as-home-lead { font-size: 18px; margin-top: 13px; }
  .card { padding: 20px; border-radius: 20px; }
  .stat { padding: 20px; }
  .stat-value { font-size: 30px; }
  .btn { padding: 10px 16px; }
  .btn-sm { padding: 7px 12px; }
  #view-login { padding-top: calc(54px + env(safe-area-inset-top, 0px)); }
  #login-forms, #login-gate { padding: 27px; }
  .login-brand h1 { font-size: 35px; }
  .wx { padding: 17px; }
  #home-targets:not(:empty) { padding-top: 18px; }
  #home-targets > .section-label, .as-group > .section-label { font-size: 28px; margin-bottom: 20px; }
  #home-targets .goal-strip { padding: 22px 20px; }
  #home-targets .goal-pct { font-size: 29px; }
  #home-targets .goal-title { font-size: 15px; }
  #home-targets .goal-figs { gap: 5px; }
  #home-targets .goal-head { margin-bottom: 14px; }
  #home-targets .goal-foot { margin-top: 14px; }
  .home-rank { padding: 22px 20px; }
  .home-rank-num { font-size: 38px; }
  #home-next-ev:not(:empty) { margin: 30px 0 40px; }
  #home-next-ev:not(:empty)::before { font-size: 26px; }
  .nev { padding: 19px; gap: 12px; flex-wrap: wrap; }
  .nev-icon { width: 40px; height: 40px; font-size: 21px; }
  .nev-title { font-size: 15px; }
  .nev-count { margin-left: auto; font-size: 11px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-tile { min-height: 151px; padding: 20px 17px; gap: 16px; border-radius: 20px; }
  .home-icon { width: 40px; height: 40px; font-size: 23px; }
  .home-label { font-size: 16px; padding-right: 11px; }
  .home-tile::after { right: 15px; bottom: 19px; font-size: 15px; }
  .home-note { font-size: 11px; }
  .as-group { margin-top: 43px; }
  .as-group-operations { padding: 26px 14px; margin-inline: -5px; border-radius: 25px; }
  .as-group-operations > :is(.section-label, .section-sublabel) { margin-left: 6px; }
  .modal { border-radius: 0; }
  .modal-head { padding: 20px; }
  .modal-body { padding: 20px; }
}
@media (max-width: 380px) {
  .topbar .brand-name { font-size: 12px; }
  .topbar .brand-logo { width: 22px; height: 22px; }
  .topbar .chip { padding-inline: 8px; }
  .home-label { font-size: 14px; }
  .home-tile { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .home-tile:hover { transform: none; }
}
@media print {
  .as-group-operations, .as-group-operations .home-tile { background: #fff; color: #000; }
  .as-group-operations > .section-label { color: #000; }
  .as-home #panel-head { padding-top: 0; }
}

/* Dashboard composition: real data in the original AppleSense demo layout.
   These selectors only affect the replacement home and the feature directory. */
.as-home #panel-head { display: none; }
.as-dashboard { --as-dashboard-gap: 20px; }
.as-hero {
  min-height: 295px;
  padding: 76px 0 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}
.as-hero-copy { min-width: 0; }
.as-date, .as-kicker { margin: 0 0 13px; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.as-hero h1 { margin: 0; font-size: clamp(44px, 5.8vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -.055em; }
.as-hero-lead { color: var(--muted); font-size: clamp(18px, 2.4vw, 26px); font-weight: 500; line-height: 1.5; margin: 18px 0 0; letter-spacing: -.03em; }
.as-hero #home-weather { flex: 0 1 320px; min-width: 0; margin-bottom: 7px; }
.as-hero #home-weather:empty { display: none; }
.as-hero .wx { margin: 0; padding: 15px 18px; border-radius: 22px; gap: 12px; background: #fff; box-shadow: var(--as-shadow); }
.as-hero .wx-icon { font-size: 28px; }
.as-hero .wx-temp { font-size: 24px; }
.as-hero .wx-desc { font-size: 12px; }
.as-hero .wx-sub { font-size: 10px; }
.as-hero .wx-where { display: none; }
.as-hero .wx-sub::after { content: attr(data-where); }
.as-hero .wx-typhoon { margin-top: 12px; padding: 12px; }
.as-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.as-section-heading h2, .as-management h2, .as-assistant h2 { margin: 0; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.045em; font-weight: 650; }
.as-section-heading .as-kicker { margin-bottom: 9px; }
.as-performance { padding: 22px 0 54px; }
.as-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--as-dashboard-gap); align-items: stretch; }
.as-dashboard .as-metrics #home-targets { display: contents; padding: 0; }
.as-dashboard .as-metrics #home-targets > .section-label,
.as-dashboard .as-metrics #home-ranking > .section-label { display: none; }
.as-dashboard .as-metrics #home-ranking:empty { display: none; }
.as-dashboard .as-metrics #home-targets .goal-strip {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 322px;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 28px;
  box-shadow: 0 8px 35px rgba(0, 0, 0, .045);
}
.as-dashboard .as-metrics #home-targets .goal-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; flex: 1; margin: 0 0 24px; }
.as-dashboard .as-metrics #home-targets .goal-title { font-size: 16px; line-height: 1.5; font-weight: 550; }
.as-dashboard .as-metrics #home-targets .goal-sub { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; }
.as-dashboard .as-metrics #home-targets .goal-figs { flex-direction: column; align-items: flex-start; gap: 11px; }
.as-dashboard .as-metrics #home-targets .goal-pct { font-size: clamp(36px, 3.6vw, 48px); line-height: 1.05; font-weight: 650; letter-spacing: -.05em; }
.as-dashboard .as-metrics #home-targets .goal-nums { font-size: 12px; }
.as-dashboard .as-metrics #home-targets .goal-bar { height: 7px; flex-shrink: 0; }
.as-dashboard .as-metrics #home-targets .goal-foot { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 17px; }
.as-dashboard .as-metrics #home-targets .goal-verdict { font-size: 11px; font-weight: 500; line-height: 1.7; }
.as-dashboard .as-metrics #home-targets .goal-days { display: block; font-size: 10px; }
.as-dashboard .as-metrics #home-targets .goal-note { font-size: 11px; }
.as-dashboard .as-metrics #home-targets .goal-strip:nth-of-type(2) { border-color: transparent; background: linear-gradient(145deg, #19191c 5%, #24262e 65%, #253b50); }
.as-dashboard .as-metrics #home-targets .goal-pace::after { display: none; }
.as-dashboard .as-metrics #home-ranking { display: flex; min-width: 0; }
.as-dashboard .as-metrics .home-rank { width: 100%; min-height: 322px; margin: 0; padding: 28px; border-radius: 28px; display: flex; flex-direction: column; }
.as-dashboard .as-metrics .home-rank-top { flex-direction: column; align-items: flex-start; gap: 15px; }
.as-dashboard .as-metrics .home-rank-count { gap: 6px; }
.as-dashboard .as-metrics .home-rank-num { font-size: 48px; font-weight: 650; }
.as-dashboard .as-metrics .home-rank-title { font-size: 15px; font-weight: 600; }
.as-dashboard .as-metrics .home-rank-say .hint { font-size: 11px; line-height: 1.6; }
.as-dashboard .as-metrics .home-rank-lines { margin-top: 20px; padding-top: 12px; }
.as-dashboard .as-metrics .home-rank-line { flex-wrap: wrap; gap: 4px 8px; padding: 7px 0; font-size: 11px; }
.as-dashboard .as-metrics .home-rank-label { width: auto; min-width: 65px; }
.as-dashboard .as-metrics .home-rank-unit2 { font-size: 10px; }
.as-dashboard .as-metrics .home-rank .btn { margin-top: auto; padding: 9px 0 0; border: 0; border-radius: 0; background: transparent; color: var(--accent); justify-content: flex-start; font-size: 12px; }
.as-day-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 22px; padding: 0 0 84px; align-items: stretch; }
.as-day-card { min-width: 0; padding: 31px; border-radius: 28px; background: #fff; box-shadow: 0 8px 35px rgba(0, 0, 0, .035); }
.as-day-card .as-section-heading { margin-bottom: 24px; }
.as-day-card .as-section-heading h2 { font-size: 28px; }
.as-dashboard .as-day-card #home-next-ev { margin: 0; }
.as-dashboard .as-day-card #home-next-ev::before { content: none; }
.as-day-card .nev { margin: 0; padding: 21px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; gap: 15px; flex-wrap: wrap; }
.as-day-card .nev-icon { background: #f2f6fd; border-radius: 14px; width: 45px; height: 45px; }
.as-day-card .nev-title { font-size: 15px; }
.as-day-card .nev-meta { font-size: 11px; line-height: 1.65; }
.as-day-card .nev-count { margin-left: auto; padding: 6px 10px; font-size: 10px; }
.as-notice-content { display: grid; gap: 15px; }
.as-notice-content:empty { display: none; }
.as-notice-content :is(.card, .notify-prompt, .notice-prompt) { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.as-notice-content :is(.notify-prompt-title, .notice-prompt-title, .card h2) { font-size: 14px; line-height: 1.5; font-weight: 600; }
.as-notice-content :is(.hint, .notice-prompt-sub) { font-size: 12px; }
.as-notice-content .notify-prompt-icon { font-size: 20px; }
.as-notice-content .inbox-items { font-size: 11px; }
.as-day-card > .as-text-button, .as-day-card .as-notice-content + button { margin-top: 22px; }
.as-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 0; border-radius: 0; color: var(--accent); padding: 6px 0; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.as-text-button:hover { text-decoration: underline; }
.as-text-button::after { content: "›"; font-size: 20px; line-height: 1; }
.as-workflow { padding: 78px 0 82px; background: #000; color: #fff; box-shadow: 0 0 0 100vmax #000; clip-path: inset(0 -100vmax); }
.as-workflow .as-section-heading { margin-bottom: 33px; }
.as-workflow .as-kicker, .as-workflow .as-text-button { color: #69b8ff; }
.as-workflow .as-section-heading h2 { max-width: 740px; }
.as-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.as-shortcut { min-width: 0; min-height: 238px; padding: 26px; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; overflow: hidden; border: 0; border-radius: 26px; color: #fff; text-align: left; font-family: inherit; cursor: pointer; transition: transform .2s, filter .2s; }
.as-shortcut::before { content: ""; position: absolute; width: 170px; height: 170px; right: -68px; bottom: -84px; border-radius: 50%; background: rgba(255, 255, 255, .11); pointer-events: none; }
.as-shortcut:hover { transform: translateY(-4px); filter: brightness(1.06); }
.as-shortcut-blue { background: linear-gradient(145deg, #087ae1, #064e99); }
.as-shortcut-purple { background: linear-gradient(145deg, #805cdf, #5035ad); }
.as-shortcut-orange { background: linear-gradient(145deg, #ee763c, #b74620); }
.as-shortcut-green { background: linear-gradient(145deg, #2da772, #09774a); }
.as-shortcut-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 15px; background: rgba(255, 255, 255, .15); margin-bottom: auto; }
.as-shortcut-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.as-shortcut strong { display: block; font-size: 21px; line-height: 1.3; letter-spacing: -.035em; font-weight: 600; padding-right: 14px; }
.as-shortcut small { display: block; margin-top: -9px; padding-right: 12px; color: rgba(255, 255, 255, .75); font-size: 11px; line-height: 1.6; font-weight: 400; }
.as-shortcut > span:last-child:not(.as-shortcut-icon) { position: absolute; right: 22px; bottom: 29px; font-size: 22px; line-height: 1; }
.as-management { padding: 80px 0; display: flex; align-items: center; justify-content: space-between; gap: 36px; border-bottom: 1px solid var(--line); }
.as-management p:not(.as-kicker) { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 650px; }
.as-management .as-text-button { flex-shrink: 0; }
.as-assistant { margin-top: 65px; padding: 41px 44px; border-radius: 28px; background: linear-gradient(115deg, #eaf2ff, #f1ecfa); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.as-assistant h2 { font-size: 30px; }
.as-assistant p:not(.as-kicker) { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 12px 0 0; }
.as-assistant .as-text-button { flex-shrink: 0; }
.as-empty { color: var(--muted); font-size: 13px; line-height: 1.7; padding: 14px 0; }
.as-directory { padding: 2px 0 12px; }
.as-directory-group + .as-directory-group { margin-top: 28px; }
.as-directory-group h3 { margin: 0 0 11px; font-size: 13px; color: var(--muted); letter-spacing: .025em; font-weight: 550; }
.as-directory-list { display: grid; gap: 5px; }
.as-directory-item { display: block; width: 100%; padding: 16px; border: 1px solid transparent; border-radius: 14px; background: #f5f5f7; color: var(--ink); text-align: left; font-family: inherit; cursor: pointer; }
.as-directory-item:hover { border-color: #c5defa; background: #edf5ff; }
.as-directory-item b { display: block; font-size: 15px; font-weight: 550; }
.as-directory-item small { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 4px; }
.as-directory-item:disabled, .as-directory-item.is-disabled { opacity: .55; cursor: default; }
.as-directory input[type="search"] { width: 100%; margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-family: inherit; font-size: 15px; }

@media (max-width: 1000px) {
  .as-hero { min-height: 265px; padding-top: 60px; gap: 25px; }
  .as-hero #home-weather { flex-basis: 240px; }
  .as-metrics { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
  .as-shortcut { padding: 23px 20px; min-height: 222px; }
  .as-shortcut strong { font-size: 19px; }
  .as-day-card { padding: 26px; }
  .as-management { gap: 25px; }
}
@media (max-width: 760px) {
  .as-hero { flex-wrap: wrap; align-items: flex-start; padding: 48px 0 45px; min-height: 0; }
  .as-hero-copy { width: 100%; }
  .as-hero #home-weather { flex: 0 1 340px; margin: 0; }
  .as-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-dashboard .as-metrics #home-ranking { grid-column: 1 / -1; }
  .as-dashboard .as-metrics .home-rank { min-height: 0; }
  .as-dashboard .as-metrics .home-rank-top { flex-direction: row; align-items: center; gap: 22px; }
  .as-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-day-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 62px; }
  .as-management, .as-assistant { align-items: flex-start; flex-direction: column; gap: 24px; }
  .as-management .as-text-button, .as-assistant .as-text-button { align-self: flex-start; }
}
@media (max-width: 640px) {
  .as-dashboard { --as-dashboard-gap: 14px; }
  .as-hero { padding-top: 42px; }
  .as-hero h1 { font-size: 46px; letter-spacing: -.055em; }
  .as-hero-lead { font-size: 20px; margin-top: 14px; }
  .as-date { font-size: 10px; }
  .as-section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 23px; }
  .as-section-heading h2, .as-management h2 { font-size: 33px; line-height: 1.15; }
  .as-performance { padding: 14px 0 38px; }
  .as-metrics { grid-template-columns: 1fr; }
  .as-dashboard .as-metrics #home-targets .goal-strip { min-height: 270px; padding: 26px; border-radius: 25px; }
  .as-dashboard .as-metrics #home-targets .goal-head { gap: 24px; margin-bottom: 22px; }
  .as-dashboard .as-metrics #home-targets .goal-pct { font-size: 43px; }
  .as-dashboard .as-metrics #home-targets .goal-figs { flex-direction: row; align-items: baseline; gap: 15px; flex-wrap: wrap; }
  .as-dashboard .as-metrics #home-targets .goal-sub { display: block; }
  .as-dashboard .as-metrics #home-targets .goal-days { display: block; }
  .as-dashboard .as-metrics .home-rank { padding: 26px; border-radius: 25px; }
  .as-dashboard .as-metrics .home-rank-top { flex-wrap: wrap; }
  .as-day-card { padding: 26px; border-radius: 25px; }
  .as-day-card .as-section-heading h2 { font-size: 27px; }
  .as-day-card .as-section-heading { margin-bottom: 21px; }
  .as-workflow { padding: 58px 0 60px; }
  .as-workflow .as-section-heading { margin-bottom: 25px; }
  .as-workflow .as-section-heading h2 { font-size: 33px; }
  .as-shortcuts { gap: 12px; }
  .as-shortcut { min-height: 212px; padding: 21px 18px; border-radius: 23px; gap: 17px; }
  .as-shortcut-icon { width: 43px; height: 43px; border-radius: 13px; }
  .as-shortcut-icon svg { width: 23px; height: 23px; }
  .as-shortcut strong { font-size: 18px; }
  .as-shortcut small { font-size: 10px; margin-top: -9px; }
  .as-shortcut > span:last-child:not(.as-shortcut-icon) { right: 15px; bottom: 25px; font-size: 18px; }
  .as-management { padding: 58px 0; }
  .as-management p:not(.as-kicker) { font-size: 14px; margin-top: 14px; }
  .as-assistant { margin-top: 42px; padding: 29px; border-radius: 25px; }
  .as-assistant h2 { font-size: 27px; }
  .as-assistant p:not(.as-kicker) { font-size: 13px; }
  .as-text-button { font-size: 13px; }
  .as-directory-item { padding: 15px; }
}
@media (max-width: 360px) {
  .as-hero h1 { font-size: 40px; }
  .as-shortcut { padding-inline: 15px; min-height: 215px; }
  .as-shortcut strong { font-size: 16px; }
  .as-shortcut small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-shortcut:hover { transform: none; }
}
@media print {
  .as-workflow { background: #fff; color: #000; box-shadow: none; clip-path: none; }
  .as-shortcut { color: #000; background: #fff; border: 1px solid #ddd; }
  .as-shortcut small { color: #555; }
  .as-hero, .as-management { padding-block: 24px; }
}

/* Integration with the real-data dashboard renderer. */
.as-text-button::after { content: none; }
.as-shortcut-icon {
  display: block;
  flex-shrink: 0;
  padding: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.as-shortcut > span:not(.as-shortcut-arrow) { display: block; position: relative; z-index: 1; }
.as-shortcut small { margin-top: 7px; }
.as-management > .as-section-heading, .as-assistant > .as-section-heading { margin-bottom: 0; }
.as-summary { min-height: 74px; padding: 19px 23px; border-radius: 20px; color: #f5f5f7; background: radial-gradient(ellipse at 100% 0, #393951, transparent 70%), #1d1d20; display: flex; align-items: center; gap: 16px; box-shadow: 0 10px 35px rgba(0, 0, 0, .09); }
.as-summary-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #83bfff; box-shadow: 0 0 0 7px rgba(104, 177, 255, .11); margin: 0 6px; }
.as-summary > span:not(.as-summary-dot) { flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; }
.as-summary .as-text-button { color: #83bfff; font-size: 12px; }
.as-summary + .as-performance { padding-top: 76px; }
.as-summary + .as-day-grid { padding-top: 58px; }
.as-metrics-empty { margin: 0; padding: 24px 0 5px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.as-performance:has(.goal-strip) > .as-metrics-empty,
.as-performance:has(.home-rank) > .as-metrics-empty { display: none; }
.as-dashboard .as-day-card #home-next-ev:empty::after { content: "可從行事曆查看完整行程安排。"; display: block; padding: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.as-notice-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-width: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; font-family: inherit; cursor: pointer; }
.as-notice-row:first-child { padding-top: 0; }
.as-notice-row:last-child { border-bottom: 0; padding-bottom: 0; }
.as-notice-row > span { min-width: 0; }
.as-notice-row b { display: block; font-weight: 550; font-size: 14px; line-height: 1.6; }
.as-notice-row small { display: block; margin-top: 5px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.as-notice-row em { flex-shrink: 0; padding: 4px 8px; border-radius: 999px; color: #99640c; background: #fff6e5; font-size: 10px; font-weight: 500; font-style: normal; white-space: nowrap; }
.as-notice-row em.as-overdue { color: #b72a22; background: #ffeded; }
.as-notice-row:hover b { color: var(--accent); }
.as-notice-empty { padding-top: 12px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.as-notice-empty + .hint { margin-top: -5px; }
.as-inbox-details { margin-top: 35px; padding: 19px 23px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.as-inbox-details > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 500; }
.as-inbox-details[open] > summary { margin-bottom: 20px; color: var(--ink); }
.as-inbox-details .inbox-card { padding: 0; border: 0; box-shadow: none; }
.as-inbox-details .inbox-card h2 { font-size: 16px; }
.as-inbox-details .inbox-group { margin-top: 15px; }
.as-inbox-details .inbox-head { font-size: 13px; }
.as-inbox-details .inbox-items { font-size: 12px; }
@media (max-width: 640px) {
  .as-shortcut-icon { padding: 10px; }
  .as-shortcut small { margin-top: 7px; }
  .as-summary { min-height: 80px; padding: 18px; gap: 12px; flex-wrap: wrap; }
  .as-summary > span:not(.as-summary-dot) { font-size: 12px; }
  .as-summary .as-text-button { margin-left: auto; font-size: 11px; }
  .as-summary + .as-performance { padding-top: 54px; }
  .as-summary + .as-day-grid { padding-top: 38px; }
  .as-notice-row { gap: 12px; }
  .as-notice-row b { font-size: 13px; }
  .as-notice-row small { font-size: 11px; }
  .as-inbox-details { margin-top: 28px; padding: 18px; }
}
