/* Shared calendar workspace (year / month / day detail views) */
.ycw { display: flex; flex-direction: column; gap: 16px; }
.ycw-empty, .ycw-empty-state { text-align: center; padding: 48px 20px; color: #607d8b; background: #fff; border-radius: 16px; border: 1px dashed #cfd8dc; }
.ycw-empty-state.compact { padding: 28px; }
.ycw-empty-state i, .ycw-empty i { font-size: 40px; margin-bottom: 10px; color: #90a4ae; }
.ycw-empty-state h3 { margin: 0 0 8px; color: #263238; }
.ycw-header {
    display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: stretch;
    background: linear-gradient(135deg, #1b2a33 0%, #264653 55%, #2a9d8f 140%);
    color: #fff; border-radius: 18px; padding: 20px 22px;
    box-shadow: 0 16px 36px rgba(27, 42, 51, 0.22);
}
.ycw-header-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.ycw-back {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08); color: #fff; cursor: pointer; flex-shrink: 0;
}
.ycw-eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 4px; color: #fff; }
.ycw-header h1 { margin: 0; font-size: 30px; letter-spacing: -0.03em; color: #fff !important; font-weight: 700; }
.ycw-sub { margin: 6px 0 0; opacity: .92; font-size: 13px; color: #fff; }
.ycw-sub a { color: #b2dfdb; text-decoration: none; font-weight: 600; }
.ycw-sub a:hover { text-decoration: underline; }
.ycw-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.16); color: #fff; }
.ycw-stats { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 8px; min-width: min(420px, 100%); }
.ycw-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px; text-align: center; color: #fff; }
.ycw-stat strong { display: block; font-size: 20px; color: #fff; }
.ycw-stat span { font-size: 11px; opacity: .85; color: #fff; }
.ycw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ycw-selection-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
    background: #e0f2f1; border: 1px solid #80cbc4; border-radius: 12px; padding: 10px 14px; color: #00695c;
}
.ycw-selection-actions { display: flex; gap: 8px; }
.ycw-tabs { display: flex; gap: 6px; background: #eceff1; padding: 4px; border-radius: 12px; width: fit-content; flex-wrap: wrap; }
.ycw-tabs button {
    border: none; background: transparent; padding: 8px 14px; border-radius: 10px; cursor: pointer;
    color: #546e7a; font-weight: 600; font-size: 13px;
}
.ycw-tabs button.active { background: #fff; color: #1b2a33; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ycw-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ycw-wall.single-month { grid-template-columns: 1fr; max-width: 720px; }
.ycw-month {
    background: #fff; border: 1px solid #e3e8ee; border-radius: 16px; padding: 12px;
    box-shadow: 0 8px 18px rgba(38,50,56,.04); display: flex; flex-direction: column; gap: 8px;
}
.ycw-month.focused { border-color: #26a69a; box-shadow: 0 10px 24px rgba(38,166,154,.15); }
.ycw-month.posted { background: linear-gradient(180deg, #fff 0%, #f7faf8 100%); }
.ycw-month-head { display: flex; justify-content: space-between; gap: 8px; }
.ycw-month-head h3 { margin: 0; font-size: 16px; color: #1b2a33; }
.ycw-month-head p { margin: 2px 0 0; font-size: 11px; color: #78909c; }
.ycw-month-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ycw-month-badges .badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; }
.badge.posted { background: #e8f5e9; color: #2e7d32; }
.badge.open { background: #fff8e1; color: #f57f17; }
.badge.soft { background: #eceff1; color: #546e7a; }
.badge.holiday { background: #ffe0b2; color: #e65100; }
.ycw-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.ycw-weekdays span { text-align: center; font-size: 10px; color: #90a4ae; font-weight: 600; }
.ycw-weekdays.large span { font-size: 12px; padding: 4px 0; }
.ycw-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.ycw-days.large { gap: 6px; }
.ycw-day {
    aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; background: #f5f7f9;
    cursor: pointer; position: relative; padding: 0; color: #37474f; font-size: 12px; font-weight: 600;
}
.ycw-days.large .ycw-day { font-size: 14px; border-radius: 10px; min-height: 44px; }
.ycw-day.blank { visibility: hidden; pointer-events: none; }
.ycw-day.weekend { color: #90a4ae; background: #fafbfc; }
.ycw-day.today { outline: 2px solid #26a69a; outline-offset: -2px; }
.ycw-day.holiday { background: #ffe0b2; border-color: #ffb74d; color: #e65100; }
.ycw-day.selected { background: #26a69a; color: #fff; border-color: #00897b; }
.ycw-day.selected.holiday { background: #ef6c00; border-color: #e65100; }
.ycw-day .dot { position: absolute; bottom: 3px; inset-inline-start: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.ycw-month-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ycw-summaries { background: #fff; border: 1px solid #e3e8ee; border-radius: 16px; padding: 16px; }
.ycw-progress-overlay {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(27, 42, 51, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.ycw-progress-card {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 24px 48px rgba(27, 42, 51, 0.28);
    color: #1b2a33;
}
.ycw-progress-card h3 { margin: 0 0 6px; font-size: 18px; }
.ycw-progress-card p { margin: 0 0 14px; color: #607d8b; font-size: 13px; }
.ycw-progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #546e7a; margin-bottom: 8px; }
.ycw-progress-detail { margin-top: 10px; font-size: 12px; color: #78909c; min-height: 1.2em; }

.ycw-summaries-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ycw-summary-table { display: flex; flex-direction: column; max-height: 560px; overflow: auto; border: 1px solid #edf1f5; border-radius: 12px; }
.ycw-summary-table.wide { overflow-x: auto; }
.ycw-summary-head, .ycw-summary-row {
    display: grid; grid-template-columns: 1.4fr repeat(5, .7fr) .8fr; gap: 8px; padding: 10px 12px; font-size: 13px; align-items: center;
}
.ycw-summary-head.with-date { grid-template-columns: 1fr 1.2fr 1fr repeat(3, .7fr) .6fr; }
.ycw-summary-row.with-date { grid-template-columns: 1fr 1.2fr 1fr repeat(3, .7fr) .6fr; }
.ycw-summary-head.monthly-full {
    grid-template-columns: minmax(140px, 1.5fr) minmax(110px, 1.1fr) repeat(19, minmax(72px, .7fr));
    min-width: 1680px;
}
.ycw-summary-row.monthly-full {
    grid-template-columns: minmax(140px, 1.5fr) minmax(110px, 1.1fr) repeat(19, minmax(72px, .7fr));
    min-width: 1680px;
}
.ycw-summary-head.monthly-full.with-month,
.ycw-summary-row.monthly-full.with-month {
    grid-template-columns: minmax(90px, .9fr) minmax(140px, 1.4fr) minmax(110px, 1fr) repeat(19, minmax(72px, .7fr));
    min-width: 1780px;
}
.ycw-summary-head.daily-full {
    grid-template-columns: minmax(48px, .5fr) minmax(140px, 1.4fr) minmax(110px, 1fr) minmax(100px, 1fr) repeat(2, minmax(80px, .7fr)) repeat(5, minmax(72px, .7fr));
    min-width: 1180px;
}
.ycw-summary-row.daily-full {
    grid-template-columns: minmax(48px, .5fr) minmax(140px, 1.4fr) minmax(110px, 1fr) minmax(100px, 1fr) repeat(2, minmax(80px, .7fr)) repeat(5, minmax(72px, .7fr));
    min-width: 1180px;
}
.ycw-summary-head.daily-full.with-date,
.ycw-summary-row.daily-full.with-date {
    grid-template-columns: minmax(80px, .8fr) minmax(48px, .5fr) minmax(140px, 1.3fr) minmax(110px, 1fr) minmax(100px, 1fr) repeat(2, minmax(80px, .7fr)) repeat(5, minmax(72px, .7fr));
    min-width: 1280px;
}
.ycw-summary-head { position: sticky; top: 0; background: #f5f7f9; font-weight: 700; color: #455a64; z-index: 1; }
.ycw-summary-row { border-top: 1px solid #edf1f5; color: #37474f; }
.ycw-summary-row:nth-child(even) { background: #fafbfc; }
.ycw-summary-row.clickable { cursor: pointer; }
.ycw-summary-row.clickable:hover { background: #e0f2f1; }
.ycw-day-hero {
    background: #fff; border: 1px solid #e3e8ee; border-radius: 16px; padding: 20px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.ycw-day-hero-date { font-size: 42px; font-weight: 800; color: #1b2a33; line-height: 1; }
.ycw-day-hero-meta { flex: 1; min-width: 200px; }
.ycw-day-hero-meta h3 { margin: 0 0 6px; font-size: 18px; color: #37474f; }
.ycw-day-hero-meta p { margin: 0; color: #78909c; font-size: 13px; }
@media (max-width: 900px) {
    .ycw-stats { grid-template-columns: repeat(2, 1fr); min-width: 0; width: 100%; }
    .ycw-summary-table:not(.wide) .ycw-summary-head,
    .ycw-summary-table:not(.wide) .ycw-summary-row { grid-template-columns: 1fr 1fr repeat(2, .6fr); }
    .ycw-summary-table:not(.wide) .ycw-summary-head span:nth-child(n+5),
    .ycw-summary-table:not(.wide) .ycw-summary-row span:nth-child(n+5) { display: none; }
}
