body {
      margin: 0;
      min-height: 100vh;
      padding: 0;
      background: transparent;
    }

    body.standalone {
      background-color: var(--bg1);
      background-image:
        linear-gradient(var(--pattern-line, rgba(31, 79, 140, 0.05)) 1px, transparent 1px),
        linear-gradient(90deg, var(--pattern-line, rgba(31, 79, 140, 0.05)) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 45%, var(--bg3) 100%);
      background-size: 48px 48px, 48px 48px, 100% 100%;
      padding: 24px 16px 40px;
      overflow-x: clip;
    }

    .cal-wrap {
      max-width: 560px;
      margin: 0 auto;
      transition: max-width 0.3s ease;
    }

    body.embed {
      overflow: hidden;
      min-height: 0;
      height: auto;
    }

    body.embed .cal-wrap {
      max-width: 100%;
      padding-bottom: var(--embed-foot-clearance, 0px);
    }

    body.embed .standalone-bar { display: none !important; }

    .cal {
      background: linear-gradient(175deg, var(--panel) 0%, var(--panel-2) 100%);
      border: 1px solid var(--panel-border);
      border-radius: var(--radius);
      padding: 22px 24px 20px;
      box-shadow: var(--shadow-panel);
      color: var(--text-on-panel);
    }

    body.embed .cal {
      padding: 16px 18px 14px;
      border-radius: var(--radius-sm);
      box-shadow: none;
      border: none;
      background: transparent;
    }

    .cal-top {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-bottom: 16px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--panel-border);
      min-height: 44px;
    }

    body.embed .cal-top {
      margin-bottom: 12px;
      padding-bottom: 10px;
      min-height: 40px;
    }

    .cal-head {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .cal-top .today-slot {
      position: absolute;
      inset-inline-end: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    body.embed.hub-mobile .cal-top .today-slot {
      display: none;
    }

    .cal-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text-on-panel);
      min-width: 140px;
      text-align: center;
      letter-spacing: 0.02em;
      cursor: pointer;
      background: none;
      border: none;
      font-family: inherit;
      padding: 4px 8px;
      border-radius: 8px;
      transition: color 0.15s, background 0.15s;
    }

    .cal-title:hover {
      color: var(--accent);
      background: var(--accent-soft);
    }

    body.embed .cal-title { font-size: 1.05rem; min-width: 120px; }

    .cal-nav {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      border: 1px solid var(--panel-border-dark);
      background: var(--btn-bg);
      color: var(--text-on-panel);
      cursor: pointer;
      font-size: 1.3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 0 var(--panel-border-dark);
      transition: transform 0.12s, border-color 0.15s;
      flex-shrink: 0;
    }

    body.embed .cal-nav { width: 36px; height: 36px; font-size: 1.15rem; }

    .cal-nav:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .cal-nav:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--panel-border-dark); }

    .cal-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      justify-content: center;
      margin-bottom: 14px;
      font-size: 0.78rem;
      color: var(--text-muted-panel);
    }

    body.embed .cal-legend { gap: 10px; margin-bottom: 10px; font-size: 0.72rem; }

    .cal-legend span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      display: inline-block;
      border: 1px solid var(--panel-border);
    }

    .dot.off { background: var(--danger); }
    .dot.hol { background: var(--warning); }
    .dot.today { background: var(--accent); }

    .month-view { display: block; }

    .cal-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
      margin-bottom: 8px;
    }

    .cal-weekdays span {
      text-align: center;
      font-size: 0.78rem;
      color: var(--text-muted-panel);
      font-weight: 700;
      padding: 4px 0;
    }

    body.embed .cal-weekdays span { font-size: 0.72rem; }

    .cal-weekdays span.fri { color: var(--danger); }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
    }

    body.embed .cal-grid { gap: 4px; }

    .cal-day {
      aspect-ratio: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      font-size: 0.95rem;
      color: var(--text-muted-panel);
      cursor: pointer;
      position: relative;
      border: 1px solid transparent;
      padding: 4px;
      min-height: 46px;
      transition: border-color 0.15s, transform 0.12s;
    }

    body.embed .cal-day { font-size: 0.85rem; min-height: 38px; border-radius: 8px; }

    .cal-day .num { line-height: 1.2; font-weight: 500; }

    .cal-day .mark {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      margin-top: 3px;
    }

    .cal-day.other { opacity: 0.2; pointer-events: none; }

    .cal-day.friday:not(.selected) {
      background: var(--off-day);
      color: var(--danger);
    }

    .cal-day.holiday:not(.selected) {
      background: var(--holiday);
      color: var(--warning);
    }

    .cal-day.friday.holiday:not(.selected) {
      background: linear-gradient(135deg, var(--off-day), var(--holiday));
    }

    .cal-day.today {
      box-shadow: inset 0 0 0 2px var(--accent);
      color: var(--accent);
      font-weight: 700;
    }

    .cal-day.selected {
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      box-shadow: none;
      border-color: var(--accent);
    }

    .cal-day.selected .mark { background: #fff !important; }

    .cal-day:not(.other):hover {
      border-color: var(--panel-border-dark);
      transform: scale(1.04);
    }

    .year-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    body.embed .year-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    @media (max-width: 520px) {
      body.embed .year-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* Mobile hub embed only — not desktop home embed (iframe can be <768px wide). */
    html:has(body.embed.hub-mobile) {
      height: 100%;
    }

    body.embed.hub-mobile {
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    body.embed.hub-mobile .cal-wrap {
      flex: 1;
      min-height: 0;
      width: 100%;
      min-width: 0;
      display: flex;
      flex-direction: column;
      padding-bottom: 0;
    }

    body.embed.hub-mobile .cal {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      padding: 6px 2px 4px;
    }

    body.embed.hub-mobile .cal-top {
      flex-shrink: 0;
      margin-bottom: 6px;
      padding-bottom: 4px;
    }

    body.embed.hub-mobile .cal-legend {
      flex-shrink: 0;
      gap: 5px;
      margin-bottom: 4px;
      font-size: 0.6rem;
    }

    body.embed.hub-mobile .cal-weekdays {
      flex-shrink: 0;
      width: 100%;
      min-width: 0;
      gap: 2px;
      margin-bottom: 4px;
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    body.embed.hub-mobile .cal-weekdays span {
      font-size: 0.6rem;
      padding: 2px 0;
    }

    body.embed.hub-mobile .month-view {
      flex: 1;
      min-height: 0;
      width: 100%;
      min-width: 0;
      align-self: stretch;
      display: flex;
      flex-direction: column;
    }

    body.embed.hub-mobile .cal-grid {
      flex: 1;
      min-height: 0;
      width: 100%;
      min-width: 0;
      gap: 2px;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      grid-auto-rows: 1fr;
      align-content: stretch;
      justify-items: stretch;
      align-items: stretch;
    }

    body.embed.hub-mobile .cal-day {
      aspect-ratio: auto;
      width: 100%;
      height: 100%;
      min-height: 0;
      min-width: 0;
      justify-self: stretch;
      align-self: stretch;
      box-sizing: border-box;
      font-size: 0.8rem;
      padding: 2px 1px;
      border-radius: 6px;
    }

    body.embed.hub-mobile .cal-day .mark {
      width: 4px;
      height: 4px;
      margin-top: 1px;
    }

    body.embed.hub-mobile .cal-footer {
      flex-shrink: 0;
      margin-top: 6px;
      padding-top: 6px;
      font-size: 0.72rem;
    }

    body.embed.hub-mobile .cal-footer-top {
      margin-bottom: 0;
    }

    body.embed.hub-mobile .selected-date {
      font-size: 0.76rem;
    }

    body.embed.hub-mobile .cal-nav {
      width: 30px;
      height: 30px;
      font-size: 1rem;
    }

    body.embed.hub-mobile .cal-title {
      font-size: 0.88rem;
    }

    body.embed.hub-mobile #todayBtn {
      padding: 5px 10px !important;
      font-size: 0.7rem !important;
    }

    @media (max-width: 480px) {
      body:not(.embed) .cal-top {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-height: 0;
      }

      body:not(.embed) .cal-top .today-slot {
        position: static;
        transform: none;
        order: -1;
        display: flex;
        justify-content: flex-end;
      }

      body:not(.embed) .cal-head {
        width: 100%;
        justify-content: center;
      }
    }

    @media (max-width: 720px) {
      .year-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 460px) {
      .year-grid { grid-template-columns: 1fr; }
    }

    .mini-month {
      background: var(--btn-bg);
      border: 1px solid var(--panel-border);
      border-radius: 12px;
      padding: 10px 8px 8px;
      cursor: pointer;
      transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
      box-shadow: var(--inset-line);
    }

    body.embed .mini-month { padding: 8px 6px 6px; border-radius: 10px; }

    .mini-month:hover {
      border-color: var(--accent);
      box-shadow: none;
      transform: translateY(-2px);
      background: color-mix(in srgb, var(--panel) 92%, var(--accent) 8%);
    }

    .mini-month.current {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-soft), var(--inset-line);
    }

    .mini-month-title {
      text-align: center;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text-on-panel);
      margin-bottom: 8px;
      padding-bottom: 6px;
      border-bottom: 1px dashed var(--panel-border);
    }

    body.embed .mini-month-title { font-size: 0.8rem; margin-bottom: 6px; }

    .mini-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 2px;
      margin-bottom: 4px;
    }

    .mini-weekdays span {
      text-align: center;
      font-size: 0.58rem;
      color: var(--text-muted-panel);
      font-weight: 600;
    }

    .mini-weekdays span.fri { color: var(--danger); }

    .mini-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 2px;
    }

    .mini-day {
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.62rem;
      border-radius: 4px;
      color: var(--text-muted-panel);
      min-height: 18px;
    }

    body.embed .mini-day { font-size: 0.58rem; min-height: 16px; }

    .mini-day.empty { opacity: 0; pointer-events: none; }

    .mini-day.friday { color: var(--danger); background: var(--off-day); }
    .mini-day.holiday { color: var(--warning); background: var(--holiday); }
    .mini-day.today {
      font-weight: 800;
      box-shadow: inset 0 0 0 1.5px var(--accent);
      color: var(--accent);
    }
    .mini-day.selected {
      background: var(--accent);
      color: #fff;
      font-weight: 700;
    }

    .cal-footer {
      margin-top: 18px;
      padding-top: 16px;
      border-top: 1px solid var(--panel-border);
      font-size: 0.88rem;
      color: var(--text-muted-panel);
    }

    body.embed .cal-footer {
      font-size: 0.8rem;
      margin-top: 12px;
      padding-top: 10px;
    }

    .cal-footer-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }

    .selected-date {
      font-weight: 700;
      color: var(--text-on-panel);
      font-size: 0.95rem;
    }

    body.embed .selected-date { font-size: 0.88rem; }

    .holiday-list {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .holiday-list li {
      padding: 6px 0;
      border-bottom: 1px dashed var(--panel-border);
    }

    .holiday-list li:last-child { border-bottom: none; }

    .badge {
      display: inline-block;
      font-size: 0.72rem;
      padding: 3px 10px;
      border-radius: 8px;
      margin-left: 6px;
      font-weight: 600;
    }

    .badge.off { background: var(--off-day); color: var(--danger); border: 1px solid rgba(240, 113, 120, 0.25); }
    .badge.work { background: rgba(78, 201, 146, 0.14); color: var(--success); border: 1px solid rgba(78, 201, 146, 0.25); }

    .standalone-bar {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      max-width: 960px;
      margin: 0 auto 20px;
    }

    .month-holidays {
      margin-top: 12px;
      max-height: 120px;
      overflow-y: auto;
      font-size: 0.8rem;
      line-height: 1.8;
    }

    body.embed .month-holidays { display: none; }
    body.embed .holiday-list { display: none; }
    body.embed #dayStatus { display: none; }

    /* Popup shell — loaded in parent overlay iframe */
    html:has(body.popup-shell) {
      height: 100%;
    }

    html:has(body.popup-shell.popup-shell--day) {
      height: auto;
    }

    body.popup-shell {
      background: linear-gradient(175deg, var(--panel) 0%, var(--panel-2) 100%);
      min-height: 0;
      height: 100%;
      overflow: hidden;
    }

    body.popup-shell.popup-shell--day {
      height: auto;
      overflow: visible;
    }

    body.popup-shell.popup-shell--day .cal-popup.open {
      height: auto;
    }

    body.popup-shell.popup-shell--day .cal-popup-panel {
      flex: none;
      height: auto;
      max-height: none;
      padding-bottom: 0;
      gap: 0;
    }

    body.popup-shell.popup-shell--day .day-view {
      margin-bottom: 8px;
    }

    body.popup-shell #calWrap,
    body.popup-shell #standaloneBar { display: none !important; }

    body.popup-shell .cal-popup {
      position: static;
      display: none !important;
      padding: 0;
      min-height: 0;
      height: 100%;
      width: 100%;
    }

    body.popup-shell .cal-popup.open {
      display: flex !important;
      flex-direction: column;
    }

    body.popup-shell .cal-popup-backdrop { display: none !important; }

    body.popup-shell .cal-popup-panel {
      flex: 1;
      min-height: 0;
      max-height: 100%;
      height: 100%;
      overflow: hidden;
      width: 100%;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      background: transparent;
      border: none;
      box-shadow: none;
      border-radius: 0;
      padding: 12px 14px 10px;
    }

    body.popup-shell .cal-popup-panel--wide { width: 100%; }

    body.popup-shell .cal-popup-panel--wide .year-popup-body,
    .cal-popup-panel--wide .year-popup-body {
      flex: 1;
      min-height: 0;
      position: relative;
      overflow: hidden;
    }

    body.popup-shell .cal-popup-panel--wide .year-grid,
    .cal-popup-panel--wide .year-grid {
      position: absolute;
      inset: 0;
      height: auto;
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 6px;
      overflow: hidden;
      transition: opacity 0.32s ease, transform 0.32s ease;
    }

    body.popup-shell .cal-popup-panel--wide .mini-month,
    .cal-popup-panel--wide .mini-month {
      padding: 4px 3px 3px;
      min-height: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      border-radius: 8px;
    }

    body.popup-shell .cal-popup-panel--wide .mini-month-title,
    .cal-popup-panel--wide .mini-month-title {
      font-size: 0.68rem;
      margin-bottom: 2px;
      padding-bottom: 2px;
    }

    body.popup-shell .cal-popup-panel--wide .mini-weekdays span,
    .cal-popup-panel--wide .mini-weekdays span {
      font-size: 0.5rem;
    }

    body.popup-shell .cal-popup-panel--wide .mini-days,
    .cal-popup-panel--wide .mini-days {
      flex: 1;
      grid-auto-rows: 1fr;
    }

    body.popup-shell .cal-popup-panel--wide .mini-day,
    .cal-popup-panel--wide .mini-day {
      font-size: clamp(0.45rem, 0.75vw, 0.56rem);
      min-height: 0;
      aspect-ratio: unset;
      border-radius: 3px;
    }

    @media (max-width: 768px) {
      body.popup-shell .cal-popup-panel {
        padding: 10px 8px 8px;
      }

      body.popup-shell.popup-shell--day .cal-popup.open {
        height: auto;
        align-items: center;
        justify-content: center;
      }

      body.popup-shell.popup-shell--day .cal-popup-panel {
        width: 100%;
        max-width: 100%;
        padding: 14px 10px 12px;
      }

      body.popup-shell .cal-popup-panel--wide .year-popup-body,
      .cal-popup-panel--wide .year-popup-body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
      }

      body.popup-shell .cal-popup-panel--wide .year-grid,
      .cal-popup-panel--wide .year-grid {
        position: static;
        inset: auto;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 10px;
        overflow: visible;
        height: auto;
      }

      body.popup-shell .cal-popup-panel--wide .mini-month,
      .cal-popup-panel--wide .mini-month {
        padding: 10px 8px 8px;
        min-height: auto;
      }

      body.popup-shell .cal-popup-panel--wide .mini-month-title,
      .cal-popup-panel--wide .mini-month-title {
        font-size: 0.88rem;
        margin-bottom: 6px;
        padding-bottom: 6px;
      }

      body.popup-shell .cal-popup-panel--wide .mini-weekdays span,
      .cal-popup-panel--wide .mini-weekdays span {
        font-size: 0.62rem;
      }

      body.popup-shell .cal-popup-panel--wide .mini-day,
      .cal-popup-panel--wide .mini-day {
        font-size: 0.72rem;
        min-height: 22px;
      }
    }

    .year-month-layer {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
      opacity: 0;
      transform: scale(0.94);
      pointer-events: none;
      transition: opacity 0.32s ease, transform 0.32s ease;
    }

    .year-month-layer .cal-grid {
      flex: 1;
      min-height: 0;
      grid-auto-rows: 1fr;
    }

    .year-month-layer .cal-day {
      min-height: 0;
      aspect-ratio: unset;
      font-size: clamp(0.75rem, 1.4vw, 0.92rem);
    }

    .cal-popup-panel--wide.showing-month .year-grid {
      opacity: 0;
      transform: scale(1.04);
      pointer-events: none;
    }

    .cal-popup-panel--wide.showing-month .year-month-layer {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }

    body.popup-shell .cal-popup-head {
      flex-shrink: 0;
      margin-bottom: 8px;
      padding-bottom: 8px;
    }

    .year-back-btn[hidden] { display: none; }

    /* Inline popups (standalone only) */
    .cal-popup {
      position: fixed;
      inset: 0;
      z-index: 500;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }

    .cal-popup.open { display: flex; }

    body.embed .cal-popup { display: none !important; }

    body.embed.pick-mode .cal-popup.open { display: flex !important; }

    body.embed.pick-mode .month-holidays { display: none !important; }

    body.embed.pick-mode {
      background: var(--picker-bg, #1a222c);
    }

    html[data-theme="light"] body.embed.pick-mode {
      --picker-bg: #e9ece8;
      --picker-panel: #ffffff;
      --picker-panel-2: #f5f7f9;
      --picker-border: rgba(15, 20, 25, 0.1);
      --picker-btn-bg: #e8ecef;
    }

    html[data-theme="glass"] body.embed.pick-mode {
      --picker-bg: #151c24;
      --picker-panel: #1e2832;
      --picker-panel-2: #182028;
      --picker-border: rgba(255, 255, 255, 0.12);
      --picker-btn-bg: #273039;
    }

    body.embed.pick-mode .cal {
      background: linear-gradient(175deg, var(--picker-panel, var(--panel)) 0%, var(--picker-panel-2, var(--panel-2)) 100%);
      border: 1px solid var(--picker-border, var(--panel-border));
      border-radius: var(--radius-sm);
      box-shadow: none;
    }

    body.embed.pick-mode .cal-nav {
      background: var(--picker-btn-bg, var(--btn-bg));
    }

    body.embed.pick-mode .today-slot {
      display: none !important;
    }

    body.embed.pick-mode .cal-top {
      justify-content: center;
      padding-inline: 0;
    }

    body.embed.pick-mode .cal-top .today-slot {
      display: none !important;
    }

    body.embed.pick-mode #yearCloseBtn {
      display: none;
    }

    body.embed.pick-mode .cal-popup-head .popup-nav {
      gap: 10px;
    }

    .cal-popup-backdrop {
      position: absolute;
      inset: 0;
      background: var(--overlay-bg);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .cal-popup-panel {
      position: relative;
      z-index: 1;
      width: min(560px, 100%);
      max-height: min(90vh, 720px);
      overflow-y: auto;
      background: linear-gradient(175deg, var(--panel) 0%, var(--panel-2) 100%);
      border: 1px solid var(--panel-border);
      border-radius: var(--radius);
      padding: 20px 22px 18px;
      box-shadow: var(--shadow-panel);
      color: var(--text-on-panel);
    }

    .cal-popup-panel--wide {
      width: min(70vw, calc(100% - 32px));
      max-width: min(70vw, calc(100% - 32px));
      max-height: min(70vh, calc(100% - 32px));
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .cal-popup-panel--wide .year-grid {
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    body.embed .cal-popup-panel {
      max-height: 95vh;
    }

    .cal-popup-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--panel-border);
      flex-shrink: 0;
    }

    .cal-popup-head .popup-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-on-panel);
      flex: 1;
      text-align: center;
    }

    .cal-popup-head .popup-nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .cal-popup-close {
      width: 36px;
      height: 36px;
      padding: 0;
      border-radius: 10px;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .day-view {
      padding: 4px 0 0;
    }

    .day-hero {
      text-align: center;
      padding: 20px 16px 18px;
      border-radius: var(--radius-sm);
      background: var(--btn-bg);
      border: 1px solid var(--panel-border);
      margin-bottom: 14px;
    }

    .day-hero .day-num {
      font-size: 3rem;
      font-weight: 900;
      line-height: 1;
      color: var(--accent);
      margin-bottom: 6px;
    }

    .day-hero .day-name {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-on-panel);
      margin-bottom: 4px;
    }

    .day-hero .day-meta {
      font-size: 0.85rem;
      color: var(--text-muted-panel);
    }

    body.embed .day-hero { padding: 16px 12px 14px; }
    body.embed .day-hero .day-num { font-size: 2.4rem; }

    .day-details {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .day-detail-block {
      padding: 14px 16px;
      border-radius: var(--radius-sm);
      background: var(--btn-bg);
      border: 1px solid var(--panel-border);
    }

    .day-detail-block h4 {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-muted-panel);
      margin-bottom: 8px;
    }

    .day-detail-block ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .day-detail-block li {
      padding: 5px 0;
      font-size: 0.88rem;
      color: var(--text-on-panel);
      border-bottom: 1px dashed var(--panel-border);
    }

    .day-detail-block li:last-child { border-bottom: none; }

    .day-empty-note {
      font-size: 0.85rem;
      color: var(--text-muted-panel);
      opacity: 0.7;
    }
