/* Screen styles. One section per screen; shared pieces live in app.css. */

/* ------------------------------------------------------------ board header */
.board-head { background: transparent; }
.cal-screen { background: var(--canvas); }
/* Wall display: one continuous white canvas next to the cream rail (Skylight-style). */
.wall .main { background: var(--canvas); }
.head-date { font-weight: 600; font-size: var(--t-md); }
.wx-hilo { color: var(--ink-3); font-weight: 600; font-size: var(--t-sm); margin-left: 4px; }
.pill-emoji { font-size: 18px; line-height: 1; }

/* ------------------------------------------------------------ calendar */
.cal-screen { --gutter: 64px; }
.cal-toolbar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s6) var(--s3); flex-wrap: wrap;
  border-top: 1px solid var(--line); }
.wall .cal-toolbar, .cal-screen .cal-toolbar:first-child { border-top: 0; }
.cal-title { font-size: var(--t-xl); min-width: 220px; }
.cal-nav { display: flex; gap: var(--s2); align-items: center; }
.cal-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.calview { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.dayheads { display: grid; border-bottom: 1px solid var(--line); }
.dayhead { display: flex; align-items: center; gap: 8px; padding: var(--s2) var(--s3) var(--s3); border-left: 1px solid var(--line); min-width: 0; }
.dh-name { font-weight: 700; font-size: var(--t-sm); color: var(--ink-2); }
.dh-num { font: 500 var(--t-lg)/1 var(--font-display); }
.dayhead.today .dh-name { color: var(--accent); }
.dayhead.today .dh-num { background: var(--accent); color: var(--accent-ink); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--t-md); }
.lanehead .dh-name { color: var(--ink); font-size: var(--t-base); }
.lane-all { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }

.allday { display: grid; border-bottom: 1px solid var(--line); }
.allday-label { font-size: var(--t-2xs); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 6px 0 0; text-align: right; }
.allday-cell { display: flex; flex-direction: column; gap: 3px; padding: 5px 4px; border-left: 1px solid var(--line); min-width: 0; }
.allday-cell.row { flex-direction: row; flex-wrap: wrap; }
.ev-pill { border: 0; border-radius: var(--r-xs); padding: 4px 8px; text-align: left; font-weight: 700; font-size: var(--t-xs);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }

.tgrid-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.tgrid-scroll::-webkit-scrollbar { display: none; }
.tgrid { display: grid; position: relative; }
.tgutter { position: relative; }
.hour-label { position: absolute; right: 8px; transform: translateY(-50%); font-size: var(--t-2xs); font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.hour-label:first-child { transform: none; }
.tcol { position: relative; border-left: 1px solid var(--line); }
.tcol.today { background: color-mix(in oklab, var(--accent) 3.5%, transparent); }
.hline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.nowline { position: absolute; left: -1px; right: 0; height: 2px; background: var(--accent); z-index: 3; }
.nowline::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.ev { position: absolute; border: 0; margin: 0 2px; max-width: calc(100% - 4px); border-radius: var(--r-sm); padding: 5px 8px; text-align: left;
  overflow: hidden; display: flex; flex-direction: column; gap: 1px; color: var(--ink); z-index: 1;
  box-shadow: inset 3px 0 0 var(--m), 0 0 0 1.5px var(--canvas); transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1); }
.ev:hover { z-index: 2; transform: translateY(-1px); box-shadow: inset 3px 0 0 var(--m), 0 0 0 1.5px var(--canvas), var(--shadow-2); }
.ev-title { font-weight: 700; font-size: var(--t-xs); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ev-time { font-size: var(--t-2xs); color: var(--ink-2); font-weight: 600; }
.ev-people { position: absolute; right: 5px; bottom: 5px; }

.month { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 var(--s6) var(--s4); }
.month-head { display: grid; grid-template-columns: repeat(7, 1fr); }
.month-head > div { padding: var(--s2) var(--s2) var(--s2); font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.month-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 0; }
.mcell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 0; overflow: hidden; cursor: pointer; }
.mcell.out { background: color-mix(in oklab, var(--ink) 2.5%, transparent); }
.mcell.out .mnum { color: var(--ink-3); }
.mnum { font: 500 var(--t-md)/1 var(--font-display); padding: 2px 4px 4px; align-self: flex-start; }
.mcell.today .mnum { background: var(--accent); color: var(--accent-ink); border-radius: var(--r-full); padding: 4px 8px; }
.mev { border: 0; background: none; text-align: left; font-size: var(--t-xs); font-weight: 600; padding: 2px 5px; border-radius: var(--r-xs);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; color: var(--ink); }
.mev .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--m); flex: none; }
.mev:not(.m-tint) { background: none !important; }
.more { font-size: var(--t-2xs); font-weight: 700; color: var(--ink-3); padding: 0 5px; }

.schedule { flex: 1; overflow: auto; padding: var(--s2) var(--s6) var(--s10); max-width: 900px; }
.sday { display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.sday-head { display: flex; gap: var(--s3); align-items: flex-start; }
.sday-num { font: 500 var(--t-2xl)/1 var(--font-display); min-width: 40px; }
.sday-head.today .sday-num { color: var(--accent); }
.sday-list { display: flex; flex-direction: column; gap: var(--s2); }
.sev { border: 0; border-radius: var(--r-md); padding: var(--s3) var(--s4); display: grid; grid-template-columns: 130px 1fr auto; gap: var(--s3);
  align-items: center; text-align: left; color: var(--ink); box-shadow: inset 4px 0 0 var(--m); }
.sev-time { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.sev-title { font-weight: 700; }
@media (max-width: 760px) {
  .cal-toolbar { padding: var(--s3) var(--s4); }
  .cal-title { min-width: 0; font-size: var(--t-lg); width: 100%; }
  .schedule { padding: 0 var(--s4) var(--s10); }
  .sday { grid-template-columns: 1fr; gap: var(--s2); }
  .sev { grid-template-columns: 1fr auto; } .sev-time { grid-column: 1 / -1; }
  .month { padding: 0 var(--s2) var(--s2); }
  .mev { font-size: 10px; } .mev .dot { display: none; }
}

.evd { display: flex; flex-direction: column; gap: var(--s4); padding-bottom: var(--s4); }
.evd-row { display: flex; gap: var(--s3); align-items: flex-start; } .evd-row > .icon { color: var(--ink-3); margin-top: 2px; }
.evd-people { display: flex; flex-wrap: wrap; gap: var(--s2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-items: end; }
.toggle { display: flex; align-items: center; gap: 10px; height: 46px; margin-bottom: var(--s4); font-weight: 600; }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); }

/* ------------------------------------------------------------ phone tightening */
@media (max-width: 760px) {
  .topbar { padding: var(--s4) var(--s4) var(--s2); gap: var(--s2); }
  .topbar-title { gap: var(--s3); flex-wrap: wrap; }
  .topbar-title h1 { font-size: var(--t-xl); }
  .clock, .head-date { display: none; }
  .wx { font-size: var(--t-base); } .wx-hilo { display: none; }
  .chips { padding: 0 var(--s4) var(--s3); }
  .pill { height: 30px; font-size: var(--t-xs); }
  .cal-toolbar { display: grid; grid-template-columns: 1fr auto; row-gap: var(--s3); }
  .cal-title { grid-column: 1; width: auto; font-size: var(--t-lg); }
  .cal-nav { grid-column: 2; }
  .cal-nav .btn { height: 36px; padding: 0 12px; }
  .cal-toolbar .seg { grid-column: 1 / -1; width: 100%; }
  .cal-toolbar .seg-item { flex: 1; justify-content: center; padding: 0; }
  .cal-toolbar > .btn-primary { display: none; }
}

/* "New photos" pill in the board header (ui/new-photos.js) */
.ph-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-full); cursor: pointer;
  font-weight: 700; font-size: var(--t-sm); color: var(--accent-ink); background: var(--accent); box-shadow: var(--shadow-2); animation: fade var(--dur-3) var(--ease); }
