/* aCo Calendar — dark theme matched to the agenda-image system */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  background: #0b1622;
  color: #e8eef5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #cfe0ee; }

/* ---------- buttons: filled pills, never blue links, never underlined ---------- */
.pill {
  font-family: Arial, sans-serif;
  font-size: 14px;
  background: #22364a;
  color: #e8eef5;
  border: 1px solid #3a5878;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover { background: #2b4761; }
.pill:focus-visible { outline: 2px solid #f5c542; outline-offset: 2px; }
.pill.primary { background: #35a1e0; border-color: #35a1e0; color: #fff; }
.pill.primary:hover { background: #2b8ac4; }
.pill.danger { background: #5f2430; border-color: #e5534b; }
.pill.danger:hover { background: #74303d; }
.pill.view-btn.active { background: #3a2d5f; border-color: #9a7bd0; color: #fff; }

/* ---------- app chrome ---------- */
#chrome {
  background: #04131d;
  border-bottom: 2px solid #369eea;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.brand { font-size: 20px; font-weight: bold; color: #fff; }
.views { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-group { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex: 1 1 auto; }
#newBtn { margin-left: auto; white-space: nowrap; }
.view-head { padding: 14px 20px 0; }
.view-head h1 { margin: 0; font-size: 24px; }
#rangeTitle { font-size: 16px; font-weight: bold; color: #fff; margin: 0 6px; }

main#view { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 14px 14px 24px; }

/* ---------- footer credit ---------- */
#site-footer {
  border-top: 1px solid #22364a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9db4c8;
}
#site-footer a { color: #cfe0ee; text-decoration: none; }
#site-footer a:hover { text-decoration: underline; }
#site-footer img { display: block; }

/* ---------- shared event bits ---------- */
.isu { color: #ff4d4d; font-weight: bold; }
.ev {
  position: absolute;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12.5px;
  line-height: 1.3;
  overflow: hidden;
  cursor: pointer;
  border-left: 5px solid #4caf7d;
  background: #1d5c38;
  color: #e8eef5;
}
.ev .ev-time { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .ev-title { overflow: hidden; }
.ev.training { outline: 3px solid #f5c542; outline-offset: -3px; }
.ev.important { outline: 3px solid #ff4d4d; outline-offset: -3px; }
.ev.overlap { outline: 3px solid #ff4d4d; outline-offset: -3px; }
.ev.maybe { outline: 2px dashed #f0b429; outline-offset: -2px; color: #16233a; }
.ev.ignored-ev { background: #23282f !important; color: #9aa4ae !important; border-left-color: #6b7280 !important; outline: none; }

.chip {
  display: block;
  border-radius: 6px;
  padding: 2px 7px;
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  border-left: 4px solid #4caf7d;
  background: #1d5c38;
  color: #e8eef5;
}
.chip.training { outline: 2px solid #f5c542; outline-offset: -2px; }
.chip.important { outline: 2px solid #ff4d4d; outline-offset: -2px; }
.chip.overlap { outline: 2px solid #ff4d4d; outline-offset: -2px; }
.chip.maybe { outline: 2px dashed #f0b429; outline-offset: -2px; color: #16233a; }
.chip.ignored-ev { background: #23282f !important; color: #9aa4ae !important; border-left-color: #6b7280 !important; outline: none; }

/* ---------- DAY view (mirrors the agenda image) ---------- */
.day-head {
  background: #04131d;
  color: #fff;
  padding: 16px 20px;
  border-bottom: 2px solid #369eea;
  border-radius: 10px 10px 0 0;
}
.day-head h1 { margin: 0; font-size: 24px; }
.day-head p { margin: 4px 0 0; font-size: 14px; color: #cfe0ee; }
.legend {
  padding: 8px 20px;
  font-size: 13.5px;
  background: #0e1d2e;
  border-bottom: 1px solid #22364a;
}
.legend .sw { font-weight: bold; }
.legend .lg { display: inline-block; margin: 0 14px 4px 0; }
.legend[hidden] { display: none; }
/* Tips toggle — the legend is collapsed by default in all views */
.tips-row { background: #0e1d2e; border-bottom: 1px solid #22364a; padding: 6px 20px; }
.tips-row .legend { background: transparent; border-bottom: none; padding: 8px 0 2px; }
.tips-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: none; cursor: pointer;
  color: #cfe3ff; font: inherit; font-size: 13.5px; padding: 2px 4px;
}
.tips-q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #2f6fd0; color: #fff; font-weight: bold; font-size: 13px; line-height: 1;
}
/* Tips columns — same card treatment as the task columns */
.tips-cols { display: flex; gap: 10px; }
.tips-col { flex: 1 1 0; border: 2px solid; border-radius: 10px; padding: 10px 12px; }
.tips-hd { font-weight: bold; margin-bottom: 6px; }
.tips-col .lg { display: block; margin: 0 0 4px; }
.allday-strip {
  background: #3d1520;
  border-bottom: 2px solid #e5534b;
  padding: 10px 20px;
  font-size: 15px;
}
.allday-strip .ad-item { cursor: pointer; }
.day-body { background: #0b1622; padding: 26px 10px 4px 0; }
.day-flex { display: flex; align-items: flex-start; }
.timeline { position: relative; flex: 1 1 auto; min-width: 0; margin-left: 74px; }
.hr-label {
  position: absolute; left: -74px; width: 62px;
  text-align: right; font-size: 12px; color: #9db4c8;
  transform: translateY(-7px);
}
.hr-line { position: absolute; left: 0; right: 0; border-top: 1px solid #22364a; }
.lane { flex: 0 0 128px; margin-left: 10px; position: relative; }
.lane-hd { font-size: 11px; color: #7c8794; margin-bottom: 4px; }
.ig {
  position: absolute; right: 0; width: 118px;
  box-sizing: border-box; border-radius: 6px; padding: 3px 6px;
  font-size: 10.5px; line-height: 1.25; overflow: hidden;
  background: #23282f; border-left: 4px solid #6b7280; color: #9aa4ae;
  cursor: pointer;
}
.ig b { white-space: nowrap; }
.lane-empty { font-size: 11px; color: #55677c; }

/* marker lines (e.g. 📈 Market open) — a line across the timeline, not an event block */
.marker-line { position: absolute; left: 0; right: 0; border-top: 2px solid #43d17c; pointer-events: none; z-index: 6; }
.marker-tag {
  position: absolute; left: 6px; top: -10px;
  background: #43d17c; color: #0b2417;
  font-size: 10.5px; font-weight: bold; line-height: 1.5;
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
}
.week-col .marker-tag { font-size: 8.5px; padding: 0 5px; top: -8px; left: 3px; max-width: calc(100% - 6px); overflow: hidden; text-overflow: ellipsis; }
.ag-marker { display: flex; align-items: center; gap: 10px; margin: 5px 0; }
.ag-marker-title { font-size: 12.5px; font-weight: bold; color: #7ce2a3; white-space: nowrap; }
.ag-marker-rule { flex: 1 1 auto; border-top: 2px solid #43d17c; }

/* Categorize chips (editor toggle buttons; borders match the style each applies) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent; color: #e8eef4;
  border: 2px solid #54677c; border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: 13.5px; cursor: pointer;
}
.chip-training { border-color: #f5c542; }
.chip-important { border-color: #ff4d4d; }
.chip-maybe { border-style: dashed; border-color: #d9a92c; }
.chip-optional { border-style: dashed; border-color: #9db4c8; }
.chip-parked { border-style: dashed; border-color: #7ea6cf; }
.chip-ignored { border-color: #6b7684; color: #aeb9c4; }
.chip-grad .isu { color: #ff4d4d; font-weight: bold; }
.chip.on { font-weight: bold; color: #fff; }
.chip-training.on { background: #f5c542; border-color: #f5c542; color: #16233a; }
.chip-important.on { background: #ff4d4d; border-color: #ff4d4d; }
.chip-maybe.on { background: #d9a92c; border-color: #d9a92c; color: #16233a; }
.chip-optional.on { background: #54677c; border-color: #54677c; }
.chip-parked.on { background: #31517a; border-color: #31517a; }
.chip-ignored.on { background: #4a545f; border-color: #4a545f; }
.chip-grad.on { background: #571f28; border-color: #ff4d4d; }
/* bold "Ignored" word inside ignored items */
.ig-label { font-weight: bold; font-size: 10.5px; color: #d7dee6; }
.ig-word { font-weight: bold; }
/* pull-to-refresh indicator */
.ptr {
  position: fixed; top: 10px; left: 50%; z-index: 400; pointer-events: none;
  transform: translate(-50%, -70px); transition: transform .2s ease;
  background: #1d2f45; border: 1px solid #2b4a73; color: #cfe3ff;
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px;
}
.ptr.show { transform: translate(-50%, 0); }
/* editor mini day picker (Outlook-style; populated by app.js) */
.mini-label { display: block; font-size: 13px; color: #9db4c8; margin-bottom: 5px; }
.mini-strip { display: flex; gap: 4px; margin-bottom: 8px; }
.mini-dow {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; border: none; color: #9db4c8; font: inherit; cursor: pointer; padding: 4px 0;
}
.mini-dow .dow-l { font-size: 11px; }
.mini-dow .dow-n {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 14px; color: #e8eef4;
}
.mini-dow.sel .dow-n { background: #2f6fd0; color: #fff; font-weight: bold; }
.mini-dow.is-today .dow-n { border: 2px solid #f5c542; }
.mini-day {
  position: relative; background: #0c1725; border: 1px solid #22364a;
  border-radius: 10px; overflow: hidden; cursor: pointer;
}
.mini-hr { position: absolute; left: 0; right: 0; border-top: 1px solid #1b2c40; }
.mini-hr span { position: absolute; left: 6px; top: 2px; font-size: 10px; color: #7e97ad; }
.mini-ev {
  position: absolute; left: 52px; right: 6px; border: 1.5px solid; border-radius: 5px;
  font-size: 10.5px; padding: 1px 6px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; pointer-events: none;
}
.mini-marker { position: absolute; left: 0; right: 0; border-top: 2px solid #43d17c; pointer-events: none; }
.mini-band {
  position: absolute; left: 48px; right: 2px; z-index: 5;
  border: 2px solid #43d17c; background: rgba(67, 209, 124, .20);
  border-radius: 6px; cursor: grab; touch-action: none;
}
.mini-band.clash { border-color: #ff4d4d; background: rgba(255, 77, 77, .20); }
.mini-band-label {
  position: absolute; left: 0; bottom: calc(100% + 5px);
  background: #e8eef4; color: #16233a; border-radius: 999px;
  padding: 2px 9px; font-size: 11.5px; font-weight: bold; white-space: nowrap; pointer-events: none;
}
.mini-band-label.below { bottom: auto; top: calc(100% + 5px); }
.mini-handle { position: absolute; left: 50%; transform: translateX(-50%); width: 44px; height: 12px; cursor: ns-resize; z-index: 6; }
.mini-handle::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 4px; border-radius: 2px; background: #e8eef4;
}
.mini-handle.h-top { top: -6px; }
.mini-handle.h-bot { bottom: -6px; }
.mini-avail { margin-top: 6px; font-size: 13.5px; font-weight: bold; min-height: 18px; }
.mini-avail.free { color: #43d17c; }
.mini-avail.clash { color: #ff8080; }
/* offline note */
.offline-note {
  background: #4a3808; color: #ffd97a; border-bottom: 1px solid #8a6d1f;
  padding: 7px 20px; font-size: 13.5px; font-weight: bold; text-align: center;
}

/* parked (optional) lane — between the timeline and the Ignored lane */
.park-lane { flex: 0 0 128px; margin-left: 10px; position: relative; }
.park-block {
  position: absolute; right: 0; width: 118px;
  box-sizing: border-box; border-radius: 6px; padding: 3px 6px;
  font-size: 10.5px; line-height: 1.25; overflow: hidden;
  border-left: 4px solid #4caf7d; color: #e8eef5;
  cursor: pointer;
}
.park-block b { white-space: nowrap; }
.park-block.training { outline: 3px solid #f5c542; outline-offset: -3px; }
.park-block.important { outline: 3px solid #ff4d4d; outline-offset: -3px; }
.park-block.maybe { outline: 2px dashed #f0b429; outline-offset: -2px; color: #16233a; }

/* ---------- tasks panel ---------- */
.tasks-panel { display: flex; gap: 10px; margin-top: 14px; }
.tcol { flex: 1 1 0; min-width: 0; border-radius: 10px; padding: 10px 12px; }
.tcol h3 { margin: 0 0 6px; font-size: 15px; }
.tcol h4 { margin: 14px 0 6px; font-size: 14px; }
.tcol ul { list-style: none; margin: 0; padding: 0; }
.tcol li {
  display: flex; align-items: flex-start; gap: 4px;
  font-size: 14px; line-height: 1.45; padding: 2px 0;
}
.tcol li .bullet { flex: 0 0 auto; }
.tcol li .ttext { flex: 1 1 auto; overflow-wrap: break-word; }
.tcol li .tbtn {
  flex: 0 0 auto; background: none; border: none; cursor: pointer;
  font-size: 12px; padding: 0 2px; color: inherit; opacity: .55;
}
.tcol li .tbtn:hover { opacity: 1; }
.tcol li .tbtn.on { opacity: 1; }
.tcol .tadd { display: flex; gap: 6px; margin-top: 8px; }
.tcol .tadd input {
  flex: 1 1 auto; min-width: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25); color: #fff; padding: 5px 10px; font-size: 13px; font-family: Arial, sans-serif;
}
.tcol .tadd input::placeholder { color: rgba(255,255,255,.55); }
.tcol .tadd button {
  border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.14); color: #fff; padding: 5px 12px;
  font-size: 13px; cursor: pointer; font-family: Arial, sans-serif;
}
.tcol.light { color: #16233a; }
.tcol.light .tadd input { border-color: rgba(0,0,0,.3); background: rgba(255,255,255,.5); color: #16233a; }
.tcol.light .tadd input::placeholder { color: rgba(0,0,0,.45); }
.tcol.light .tadd button { border-color: rgba(0,0,0,.35); background: rgba(255,255,255,.35); color: #16233a; }
.tasks-empty { font-size: 13px; opacity: .6; }

/* ---------- MONTH view ---------- */
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.month-dow { font-size: 12.5px; color: #9db4c8; text-align: center; padding: 4px 0; font-weight: bold; }
.month-cell {
  background: #0e1d2e; border: 1px solid #22364a; border-radius: 8px;
  min-height: 104px; padding: 5px 6px; overflow: hidden; cursor: pointer;
}
.month-cell.dim { opacity: .45; }
.month-cell.today { border-color: #369eea; box-shadow: inset 0 0 0 1px #369eea; }
.month-cell .dnum { font-size: 13px; font-weight: bold; color: #cfe0ee; margin-bottom: 3px; }
.month-more { font-size: 11.5px; color: #9db4c8; padding: 1px 2px; }

/* ---------- WEEK view ---------- */
.week-wrap { overflow: hidden; }
.week-head, .week-body { display: grid; grid-template-columns: 52px repeat(7, 1fr); }
.week-head .wc-hd {
  text-align: center; font-size: 12.5px; color: #cfe0ee; padding: 6px 2px;
  background: #0e1d2e; border-bottom: 1px solid #22364a;
}
.week-head .wc-hd.today { color: #fff; font-weight: bold; }
.week-allday { display: grid; grid-template-columns: 52px repeat(7, 1fr); border-bottom: 1px solid #22364a; }
.week-allday .wa-cell { padding: 3px; min-height: 8px; }
.week-allday .wa-label { font-size: 10.5px; color: #7c8794; text-align: right; padding: 4px 6px 0 0; }
.week-body { position: relative; }
.week-gutter { position: relative; }
.week-gutter .hr-label { left: auto; right: 6px; width: 44px; }
.week-col { position: relative; border-left: 1px solid #1a2c42; }
.week-col .hr-line { right: 0; }
.week-col.today-col { background: rgba(54, 158, 234, .05); }
.week-col .ev.ig-mini { font-size: 9.5px; padding: 2px 3px; border-left-width: 3px; }

/* ---------- AGENDA view ---------- */
.agenda-day { margin-bottom: 22px; }
.agenda-day h2 {
  font-size: 17px; margin: 0 0 8px; color: #fff;
  border-bottom: 1px solid #22364a; padding-bottom: 5px;
}
.agenda-day h2 .today-tag { color: #7cc0ff; font-size: 13px; }
.ag-row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 6px 10px; margin: 4px 0; border-radius: 8px;
  background: #0e1d2e; border-left: 5px solid #4caf7d; cursor: pointer;
}
.ag-row.training { outline: 2px solid #f5c542; outline-offset: -2px; }
.ag-row.important { outline: 2px solid #ff4d4d; outline-offset: -2px; }
.ag-row.overlap { outline: 2px solid #ff4d4d; outline-offset: -2px; }
.ag-row.maybe { color: #16233a; }
.ag-row.ignored-ev { background: #23282f !important; color: #9aa4ae !important; border-left-color: #6b7280 !important; outline: none; }
.ag-time { flex: 0 0 128px; font-size: 13px; color: #9db4c8; font-weight: bold; }
.ag-row.maybe .ag-time { color: #33465e; }
.ag-title { flex: 1 1 auto; font-size: 14.5px; overflow-wrap: break-word; }
.ag-tags { flex: 0 0 auto; font-size: 12.5px; }
.agenda-none { color: #7c8794; font-size: 14px; padding: 8px 2px; }

/* ---------- editor modal ---------- */
#modal, #gModal, #stockModal, #dateJump {
  position: fixed; inset: 0; background: rgba(2, 8, 16, .72);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 12px; overflow-y: auto; z-index: 50;
}
#modal[hidden], #gModal[hidden], #stockModal[hidden], #dateJump[hidden] { display: none; }
/* sticky app bar (modeled on the aCo app header) */
#appBar {
  position: sticky; top: 0; z-index: 120;
  display: flex; align-items: center; gap: 10px;
  background: #081420; border-bottom: 1px solid #22364a; padding: 8px 16px;
}
.app-id { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: bold; color: #fff; }
.app-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1d2f45; border: 1px solid #2b4a73; border-radius: 50%;
  font-size: 16px; cursor: pointer; color: #e8eef4;
}
.gcal-state { font-size: 12.5px; color: #9db4c8; }
/* settings tabs */
.set-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.set-tab {
  background: #12283f; color: #cfe3ff; border: 1px solid #2b4a73; border-radius: 999px;
  padding: 7px 16px; font: inherit; font-size: 14px; cursor: pointer;
}
.set-tab.active { background: #2f6fd0; color: #fff; border-color: #2f6fd0; font-weight: bold; }
.set-link { display: inline-block; text-decoration: none; }
.cal-panel h4 { margin: 14px 0 6px; font-size: 14px; }
.ms-note { color: #ffd97a; font-size: 13px; }
.g-meta { color: #cfe3ff; font-size: 14px; margin: 0 0 6px; }
.g-note { color: #9db4c8; font-size: 12.5px; margin: 0 0 12px; }
.gcal-chip { display: inline-flex; align-items: center; gap: 6px; color: #7ce2a3; font-size: 13.5px; font-weight: bold; }
.gcal-chip[hidden] { display: none; }
.cal-panel {
  background: #0e1d2e; border-bottom: 1px solid #22364a; padding: 12px 20px;
}
.cal-panel[hidden] { display: none; }
.cal-panel h3 { margin: 0 0 8px; font-size: 15px; }
.cal-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.cal-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.cal-name { flex: 1 1 auto; }
.cal-row select {
  background: #12283f; color: #e8eef4; border: 1px solid #2b4a73;
  border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 13.5px;
}
.modal-card {
  background: #0e1d2e; border: 1px solid #3a5878; border-radius: 12px;
  padding: 18px 20px; width: 100%; max-width: 520px;
}
.modal-card h2 { margin: 0 0 12px; font-size: 19px; color: #fff; }
#editorForm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #9db4c8; }
.fld.wide { grid-column: 1 / -1; }
.fld input[type="text"], .fld input[type="date"], .fld input[type="time"],
.fld select, .fld textarea {
  background: #0b1622; border: 1px solid #3a5878; border-radius: 8px;
  color: #e8eef5; padding: 8px 10px; font-size: 14px; font-family: Arial, sans-serif;
  width: 100%;
}
.fld.check, .marks .check {
  flex-direction: row; align-items: center; gap: 7px;
  color: #e8eef5; font-size: 14px; align-self: end; padding-bottom: 8px;
}
.marks { border: 1px solid #22364a; border-radius: 8px; padding: 8px 12px; margin: 0; }
.marks legend { font-size: 13px; color: #9db4c8; padding: 0 4px; }
.marks .check { display: flex; padding: 3px 0; }
.series-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #f0b429; }
.form-btns { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.form-btns .spacer { flex: 1; }

/* ---------- phone ---------- */
@media (max-width: 700px) {
  main#view { padding: 10px 8px 20px; }
  .brand { font-size: 18px; }
  #rangeTitle { font-size: 14px; margin: 0 2px; }
  .day-head h1 { font-size: 20px; }
  /* Day view on small screens: lanes stay on the RIGHT, like the agenda picture —
     slim 72px lanes, smaller text, tight padding; the timeline compresses to fit. */
  .timeline { margin-left: 56px; }
  .hr-label { left: -56px; width: 46px; }
  .lane, .park-lane { flex-basis: 72px; margin-left: 6px; }
  .lane .lane-hd, .park-lane .lane-hd { width: 68px !important; font-size: 10px; }
  .ig { width: 68px; font-size: 9px; line-height: 1.2; padding: 2px 3px; }
  .ig b { white-space: normal; }
  .park-block { width: 68px; font-size: 9px; line-height: 1.2; padding: 2px 3px; }
  .park-block b { white-space: normal; }
  .tasks-panel { flex-direction: column; }
  .tips-cols { flex-direction: column; }
  .month-cell { min-height: 74px; padding: 4px; }
  .chip { font-size: 10.5px; padding: 1px 4px; }
  .week-head, .week-body, .week-allday { grid-template-columns: 34px repeat(7, 1fr); }
  .week-gutter .hr-label { width: 30px; font-size: 10px; }
  .ev { font-size: 10.5px; padding: 3px 5px; }
  .ag-time { flex-basis: 104px; font-size: 12px; }
  #editorForm { grid-template-columns: 1fr; }
}

/* =====================================================================
   aCo shell pass (Nov 11 late): app bar rebuilt to the aCo app pattern,
   modal takeover fix, close ✕ buttons, photo category icons, User
   settings card + theme, bottom navigation, footer link row.
   ===================================================================== */

/* --- modals take over the full screen, above the sticky app bar --- */
#modal, #gModal, #stockModal, #dateJump { z-index: 160; }
.modal-card { position: relative; }
.cal-panel { position: relative; }
.legend { position: relative; }

/* --- ✕ close button: same spot on every surface --- */
.x-close {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #e8eef5; font-size: 14px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.x-close:hover { background: rgba(255,255,255,.16); }

/* --- tiny rounded photo icons (Family / Emma / Personal / aCo / Stretchy / Work) --- */
.ppl-ico {
  width: 20px; height: 20px; border-radius: 6px; object-fit: contain;
  vertical-align: -5px; margin-right: 2px; background: transparent;
}
.ev .ppl-ico, .chip .ppl-ico, .ag-row .ppl-ico, .ig .ppl-ico, .park-block .ppl-ico {
  width: 15px; height: 15px; border-radius: 4px; vertical-align: -3px;
}
.tcol .ppl-ico { width: 18px; height: 18px; vertical-align: -4px; }

/* --- app bar: identical pattern to the aCo app header --- */
#appBar {
  position: sticky; top: 0; z-index: 120;
  background: #0b1a2b; border-bottom: none;
  padding: 10px 16px 9px; gap: 10px; align-items: flex-start;
}
.app-left { flex: 1 1 auto; min-width: 0; }
.app-title-row { display: flex; align-items: center; min-height: 40px; }
.app-title {
  font-size: 23px; font-weight: 600; color: #fff; margin: 0; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crumbs { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 14.5px; }
.crumb-home { color: #4db2ff; display: inline-flex; align-items: center; }
.crumb-sep, .crumb-here { color: #4db2ff; }
.app-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding-top: 1px; margin-left: auto; }
.bar-btn {
  position: relative; background: none; border: none; padding: 4px;
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.avatar-btn {
  position: relative; background: none; border: none; padding: 0; cursor: pointer;
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
}
.avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #8a97a5; pointer-events: none;
}
.avatar-ring.on { border-color: #2fbf71; }
.avatar-ring.warn { border-color: #f0b429; }
/* app-bar Reconnect pill (Desarae): amber like the avatar's warn ring,
   immediately left of the avatar, only while Google needs reconnecting */
.reconnect-pill { border: none; border-radius: 999px; background: #f0b429; color: #241a02; font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; padding: 7px 13px; cursor: pointer; white-space: nowrap; }
.reconnect-pill[hidden] { display: none; }
.reconnect-pill:disabled { opacity: .65; cursor: default; }
.bell-badge {
  position: absolute; top: -3px; right: -5px;
  background: #e5534b; color: #fff; font-size: 10px; font-weight: bold;
  border-radius: 999px; padding: 1px 5px; line-height: 1.35;
}
.bell-badge[hidden] { display: none; }

/* account menu behind the avatar (Google connect + Lock, like aCo) */
.avatar-menu {
  position: absolute; top: calc(100% + 6px); right: 10px; z-index: 130;
  width: min(300px, calc(100vw - 20px));
  background: #0e1d2e; border: 1px solid #3a5878; border-radius: 12px;
  padding: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.avatar-menu[hidden] { display: none; }
.am-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; padding-right: 30px; }
.am-label { color: #cfe0ee; font-weight: bold; }
.am-wide { width: 100%; margin-top: 8px; }
.am-note { font-size: 12px; color: #7c97ad; margin: 10px 0 0; line-height: 1.45; }

/* search panel (behind the magnifier) */
.search-panel { position: relative; background: #0e1d2e; border-bottom: 1px solid #22364a; padding: 12px 20px; }
.search-panel[hidden] { display: none; }
.search-panel .fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #9db4c8; padding-right: 34px; }
.search-panel input {
  background: #0b1622; border: 1px solid #3a5878; border-radius: 8px;
  color: #e8eef5; padding: 8px 10px; font-size: 14px; font-family: Arial, sans-serif; width: 100%;
}
.search-results { margin-top: 6px; }
.search-hit {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-top: 1px solid #22364a; color: #e8eef5; padding: 8px 4px;
  font: inherit; font-size: 14px; cursor: pointer;
}
.search-hit .sh-date { color: #9db4c8; font-size: 12.5px; display: block; }
.search-none { color: #7c8794; font-size: 13.5px; padding: 8px 4px; }

/* --- User settings card (aCo app pattern) --- */
.user-settings { border: 1px solid #2b4a73; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: #0b1a2b; }
.us-head { background: #274b73; color: #fff; font-size: 16.5px; font-weight: 600; padding: 13px 16px; }
.us-body { padding: 12px 16px 14px; }
.us-label { font-size: 12.5px; letter-spacing: 2px; font-weight: bold; color: #e8eef5; margin-bottom: 8px; }
.theme-seg { display: flex; background: #7e8fa3; border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 8px; }
.theme-opt {
  flex: 1 1 0; border: none; background: transparent; color: #fff;
  font: inherit; font-size: 14.5px; letter-spacing: 1.5px; padding: 9px 0;
  border-radius: 7px; cursor: pointer;
}
.theme-opt.on { background: #35a1e0; font-weight: bold; }
.check-row { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.check-row input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: #35a1e0; }
.check-text { font-size: 15px; color: #e8eef5; }
.check-help { display: block; font-size: 12.5px; color: #8fa6bb; margin-top: 2px; }

/* big blue LOGOUT (aCo settings pattern) — runs the calendar's Lock */
.logout-btn {
  display: block; width: 100%; background: #35a1e0; color: #fff; border: none;
  font: inherit; font-size: 16px; letter-spacing: 2.5px; font-weight: 600;
  padding: 14px 0; margin-top: 16px; cursor: pointer; border-radius: 2px;
}
.logout-btn:hover { background: #2c8ac4; }

/* hide-ignored user setting */
body.hide-ignored .ig, body.hide-ignored .ignored-ev { display: none !important; }

/* --- footer: credit line + link row --- */
#site-footer { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.foot-credit { display: flex; align-items: center; gap: 8px; }
.foot-links { color: #9db4c8; font-size: 13.5px; line-height: 1.9; }
.foot-links a { color: #b9c9d8; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-sep { margin: 0 7px; color: #5f7488; }

/* --- bottom navigation (aCo app shell) --- */
body { padding-bottom: 76px; }
#bottomNav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: #3d6396; display: flex; align-items: flex-end;
  padding: 7px 2px calc(7px + env(safe-area-inset-bottom));
}
.bn-item {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #fff; text-decoration: none; font-size: 9.5px; letter-spacing: .4px; padding: 2px 0;
}
.bn-center { flex: 0 0 62px; display: flex; justify-content: center; text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; }
.bn-notch {
  width: 56px; height: 56px; border-radius: 50%; margin-top: -27px;
  background: #fdfdf8; border: 3px solid #3d6396; overflow: hidden; display: block;
  box-shadow: 0 -2px 8px rgba(0,0,0,.25);
}
.bn-notch img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 700px) {
  #appBar { padding: 8px 12px; }
  .app-title { font-size: 21px; }
  .app-actions { gap: 11px; }
  .avatar-btn, .avatar-img { width: 36px; height: 36px; }
  .bn-item { font-size: 9px; }
}

/* ================= LIGHT THEME =================
   Category colors (event/task/tips blocks) are unchanged — they carry
   their own backgrounds in both themes. Only the app chrome flips. */
html[data-theme="light"] body { background: #eef2f6; color: #1c2b3a; }
html[data-theme="light"] a { color: #1c5f9e; }
html[data-theme="light"] #appBar { background: #f4f7fa; }
html[data-theme="light"] .app-title { color: #12283f; }
html[data-theme="light"] .bar-btn { color: #12283f; }
html[data-theme="light"] #chrome { background: #f4f7fa; }
html[data-theme="light"] .pill { background: #dde7f0; color: #1c2b3a; border-color: #a9bfd2; }
html[data-theme="light"] .pill:hover { background: #cddce9; }
html[data-theme="light"] .pill.primary { background: #35a1e0; border-color: #35a1e0; color: #fff; }
html[data-theme="light"] .pill.danger { background: #f6d9d6; border-color: #e5534b; color: #7c1d18; }
html[data-theme="light"] #rangeTitle { color: #12283f; }
html[data-theme="light"] .day-body { background: #f7fafc; }
html[data-theme="light"] .hr-label { color: #5f7488; }
html[data-theme="light"] .hr-line { border-top-color: #cfdce8; }
html[data-theme="light"] .tips-row { background: #e3ebf3; border-bottom-color: #c3d2e0; }
html[data-theme="light"] .tips-btn { color: #12283f; }
html[data-theme="light"] .modal-card,
html[data-theme="light"] .avatar-menu,
html[data-theme="light"] .user-settings { background: #ffffff; border-color: #b9cbdc; color: #1c2b3a; }
html[data-theme="light"] .modal-card h2 { color: #12283f; }
html[data-theme="light"] .fld { color: #49657f; }
html[data-theme="light"] .fld input[type="text"], html[data-theme="light"] .fld input[type="date"],
html[data-theme="light"] .fld input[type="time"], html[data-theme="light"] .fld select,
html[data-theme="light"] .fld textarea, html[data-theme="light"] .search-panel input {
  background: #f2f6fa; border-color: #a9bfd2; color: #1c2b3a;
}
html[data-theme="light"] .cal-panel, html[data-theme="light"] .search-panel { background: #e8eff6; border-bottom-color: #c3d2e0; }
html[data-theme="light"] .set-tab { background: #dde7f0; color: #1c2b3a; border-color: #a9bfd2; }
html[data-theme="light"] .set-tab.active { background: #2f6fd0; color: #fff; border-color: #2f6fd0; }
html[data-theme="light"] .us-label, html[data-theme="light"] .check-text { color: #12283f; }
html[data-theme="light"] .check-help { color: #5f7488; }
html[data-theme="light"] .marks { border-color: #c3d2e0; }
html[data-theme="light"] .marks legend { color: #49657f; }
html[data-theme="light"] .chip { color: #1c2b3a; }
html[data-theme="light"] .month-cell { background: #ffffff; border-color: #c3d2e0; }
html[data-theme="light"] .month-cell .dnum { color: #33465e; }
html[data-theme="light"] .month-dow { color: #5f7488; }
html[data-theme="light"] .month-more { color: #5f7488; }
html[data-theme="light"] .ag-row { background: #ffffff; }
html[data-theme="light"] .agenda-day h2 { color: #12283f; border-bottom-color: #c3d2e0; }
html[data-theme="light"] .ag-time { color: #5f7488; }
html[data-theme="light"] .agenda-none { color: #5f7488; }
html[data-theme="light"] .week-head .wc-hd { background: #e3ebf3; color: #33465e; border-bottom-color: #c3d2e0; }
html[data-theme="light"] .week-col { border-left-color: #d7e2ec; }
html[data-theme="light"] .week-allday { border-bottom-color: #c3d2e0; }
html[data-theme="light"] .mini-day { background: #f7fafc; border-color: #c3d2e0; }
html[data-theme="light"] .mini-hr { border-top-color: #dde7f0; }
html[data-theme="light"] .mini-dow { color: #5f7488; }
html[data-theme="light"] .mini-dow .dow-n { color: #1c2b3a; }
html[data-theme="light"] .mini-label { color: #49657f; }
html[data-theme="light"] #site-footer { border-top-color: #c3d2e0; color: #5f7488; }
html[data-theme="light"] #site-footer a { color: #1c5f9e; }
html[data-theme="light"] .foot-links { color: #5f7488; }
html[data-theme="light"] .foot-links a { color: #49657f; }
html[data-theme="light"] .x-close { background: rgba(18,40,63,.07); border-color: rgba(18,40,63,.28); color: #12283f; }
html[data-theme="light"] .g-meta { color: #1c5f9e; }
html[data-theme="light"] .g-note { color: #49657f; }
html[data-theme="light"] .am-label { color: #12283f; }
html[data-theme="light"] .am-note { color: #5f7488; }
html[data-theme="light"] .gcal-state { color: #49657f; }
html[data-theme="light"] .search-hit { color: #1c2b3a; border-top-color: #c3d2e0; }
html[data-theme="light"] .search-hit .sh-date { color: #5f7488; }
html[data-theme="light"] .search-none { color: #5f7488; }
html[data-theme="light"] .ms-note { color: #8a6d1f; }
html[data-theme="light"] .cal-row select { background: #ffffff; color: #1c2b3a; border-color: #a9bfd2; }
html[data-theme="light"] .lane-hd { color: #5f7488; }
html[data-theme="light"] .lane-empty { color: #7c97ad; }
html[data-theme="light"] .allday-strip { color: #ffe3df; }
html[data-theme="light"] .series-note { color: #9a6a00; }

/* modals/panels start BELOW the app bar — the bar stays on top, fully
   visible, and no modal title or ✕ is ever covered (Desarae). */
#modal, #gModal, #stockModal, #dateJump { top: var(--bar-h, 78px); }
/* the Settings panel is an in-flow drawer: no fixed offset — it opens in the
   page flow and is scrolled into view just under the sticky bar. */
.cal-panel { scroll-margin-top: calc(var(--bar-h, 78px) + 6px); }
.modal-card { max-height: calc(100dvh - var(--bar-h, 78px) - 28px); }
.cal-panel-inner { max-height: calc(100dvh - var(--bar-h, 78px) - 28px); }

/* full-width Save over a Cancel/Reset row (editor + Display-as popover) */
.form-btns { flex-wrap: wrap; }
.btn-wide { flex: 1 1 100%; padding: 12px; font-size: 15px; }
.btns-sub { display: flex; align-items: center; gap: 10px; width: 100%; }

/* Google detail meta: real G logo, day/time on the line under the calendar */
.g-logo { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
.gm-line2 { display: block; margin-top: 2px; }

/* background events: transparent wash + category border, title at the top,
   lowest layer — regular events lay over them at full width */
.bg-ev { position: absolute; left: 2px; right: 2px; border-radius: 10px; padding: 6px 8px; overflow: hidden; }
.week-col .bg-ev { right: auto; }
.bg-ev .ev-title { font-weight: 700; }

/* declined events: they sit in the Ignored lane in a slightly different
   gray, labeled "Declined" (Desarae) */
.ig.declined { background: #565661; }
.ev.ignored-ev.declined, .ag-row.ignored-ev.declined, .chip.ignored-ev.declined { background: #565661 !important; }
html[data-theme="light"] .ig.declined { background: #c6c6d4; }
html[data-theme="light"] .ev.ignored-ev.declined, html[data-theme="light"] .ag-row.ignored-ev.declined { background: #c6c6d4 !important; }

/* Projects stack (replaces the 3 task columns) */
.tasks-panel { display: block; }
.proj-hd { font-size: 19px; margin: 2px 0 10px; }
.proj { border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; color: #e8ecf4; }
.proj h3 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 7px; }
.proj ul { list-style: none; margin: 0; padding: 0; }
.tmore { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; margin: 2px 0 8px; cursor: pointer; }
.tproj { background: #12233c; color: #e8ecf4; border: 1px solid #3a5578; border-radius: 8px; padding: 6px 4px; font-size: 13px; max-width: 100px; }

/* work icon chip + legend nesting + work location */
.iowa-ico { width: 36px; height: 17px; object-fit: contain; background: #fff; padding: 1px 2px; border-radius: 4px; }
.lg-sub { margin-left: 18px; }
.work-loc-sub { display: block; font-size: 11px; font-weight: 400; opacity: .85; margin-top: 1px; }
.work-loc-card { background: #101f33; border: 1px solid #22344d; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.work-loc-card .fld { display: block; font-size: 13px; color: #b9c6d8; }
.work-loc-card input { width: 100%; box-sizing: border-box; margin-top: 5px; background: #0b1a2b; color: #eef3fa; border: 1px solid #33507a; border-radius: 8px; padding: 9px 10px; font-size: 14.5px; }
.set-note { font-size: 12px; color: #8296ad; margin: 7px 0 0; }
.g-loc { margin: 2px 0 8px; color: #b9c6d8; font-size: 13.5px; }
.chip-deceased.on { background: #4a4a55; border-color: #4a4a55; }

/* date jump popup */
.jump-head { cursor: pointer; }
.dj-card { max-width: 340px; width: 100%; }
.dj-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dj-head h2 { margin: 0; font-size: 19px; }
.dj-nav { background: #12233c; color: #dfe9f5; border: 1px solid #33507a; border-radius: 8px; width: 38px; height: 38px; font-size: 22px; cursor: pointer; }
.dj-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dj-dow { text-align: center; font-size: 11.5px; color: #8296ad; padding: 3px 0; }
.dj-day { background: #12233c; color: #e8ecf4; border: 1px solid #22344d; border-radius: 8px; padding: 9px 0; font-size: 14.5px; cursor: pointer; }
.dj-day.is-today { border-color: #e8a812; }
.dj-day.sel { background: #35a1e0; border-color: #35a1e0; color: #fff; font-weight: 700; }
html[data-theme="light"] .dj-day { background: #fff; color: #16283c; border-color: #c3d2e0; }
html[data-theme="light"] .dj-nav { background: #fff; color: #16283c; border-color: #c3d2e0; }
html[data-theme="light"] .dj-day.sel { background: #35a1e0; color: #fff; }

/* Calendar Settings: horizontally scrolling section chips */
.set-sections { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.set-sections::-webkit-scrollbar { display: none; }
.sec-chip { flex: 0 0 auto; background: #12233c; color: #b9c6d8; border: 1px solid #33507a; border-radius: 999px; padding: 8px 14px; font-size: 12.5px; letter-spacing: .06em; cursor: pointer; }
.sec-chip.active { background: #35a1e0; border-color: #35a1e0; color: #fff; font-weight: 700; }
.sec-pane .check-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; cursor: pointer; }
.sec-pane .check-row input { width: 19px; height: 19px; margin-top: 1px; accent-color: #35a1e0; }
.sec-pane .check-text { font-size: 14.5px; color: #e8ecf4; }
.sec-pane .check-help { display: block; font-size: 12px; color: #8296ad; margin-top: 2px; }

/* Connected calendars groups */
.conn-head { display: flex; align-items: center; gap: 8px; }
.conn-head h4 { margin: 4px 0 10px; }
.info-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: #35a1e0; color: #fff; font-size: 12px; font-weight: 700; font-style: italic; cursor: help; flex: 0 0 auto; }
.info-bubble { display: none; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 230px; background: #12233c; color: #dfe9f5; border: 1px solid #33507a; border-radius: 10px; padding: 9px 11px; font-size: 12.5px; font-style: normal; font-weight: 400; line-height: 1.45; z-index: 30; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.info-tip:hover .info-bubble, .info-tip:focus .info-bubble, .info-tip:focus-within .info-bubble { display: block; }
.conn-group { border: 1px solid #22344d; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; background: #101f33; }
.conn-src { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; flex-wrap: wrap; }
.conn-logo { width: 22px; height: 22px; }
.conn-name { font-weight: 700; font-size: 15.5px; }

/* Settings > Security */
.sec-panel-status { font-size: 13.5px; color: #cfe0ee; line-height: 1.55; }
.sec-btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.sec-err { color: #ff8f89; font-size: 13.5px; margin: 8px 0 0; line-height: 1.4; }
.sec-ok { color: #7ddb9a; font-size: 13.5px; margin: 8px 0 0; line-height: 1.4; }
.sec-pane h4 { margin: 14px 0 6px; font-size: 14px; }

/* stock purchases */
.stock-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.stock-chip { background: #14335f; color: #cfe3ff; border: 1px solid #2b5ea7; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.stock-add { background: transparent; color: #7ab8ff; border: 1px dashed #3a5578; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.m-stock { font-size: 10px; color: #9fc2ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
html[data-theme="light"] .m-stock { color: #1d4e9e; }
html[data-theme="light"] .stock-chip { background: #dbe9fb; color: #14335f; }
html[data-theme="light"] .stock-add { color: #1d5fa8; border-color: #9db9d9; }

/* search-result task highlight */
.hit-flash { animation: hitFlash 2.2s ease; border-radius: 6px; }
@keyframes hitFlash {
  0%, 55% { background: rgba(245,197,66,.55); }
  100% { background: transparent; }
}

.g-orig{font-size:12px;color:#8fa3b8;display:block;margin-top:4px}
.g-orig button{background:none;border:none;color:#6db3f2;text-decoration:underline;cursor:pointer;font-size:12px;padding:0}
.set-sub{margin:14px 0 6px;font-size:13px;letter-spacing:.06em}
.hidden-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid rgba(127,150,175,.18);font-size:13.5px}
.hidden-row .pill{margin-left:auto;padding:4px 12px;font-size:12.5px}

.src-banner{margin:10px 0;padding:9px 12px;border-radius:10px;background:#7a4a12;color:#ffe1a8;font-weight:600;font-size:13.5px}
.src-banner.local{background:#14335f;color:#a9c4e4}
.push-row{margin:10px 0;padding:10px 12px;border:1px solid rgba(127,150,175,.25);border-radius:10px}
.push-row .check-row.slim{padding:4px 0 0}
.ipick{position:relative;display:block}
.ipick-btn{width:100%;display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid #3a5069;background:#122334;color:#e8eef4;font:inherit;cursor:pointer;text-align:left}
.ipick-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:70;background:#122334;border:1px solid #3a5069;border-radius:10px;overflow:hidden;box-shadow:0 12px 30px rgba(0,0,0,.45)}
.ipick-item{display:flex;align-items:center;gap:8px;width:100%;padding:9px 10px;background:none;border:none;color:#e8eef4;font:inherit;cursor:pointer;text-align:left}
.ipick-item:hover,.ipick-item.on{background:#1d3448}
select.ip-hidden{display:none!important}

.bn-plus { background: #ec4899; border-color: #ec4899; color: #fff; font-size: 34px; font-weight: 300; display: flex; align-items: center; justify-content: center; line-height: 1; }

.proj-grid { display: grid; gap: 12px; }
.proj-grid .proj { margin: 0; min-width: 0; }
.tasks-panel.layout-single .proj-grid { grid-template-columns: 1fr; }
.tasks-panel.layout-three .proj-grid { grid-template-columns: repeat(3, 1fr); }
.tasks-panel.layout-multi .proj-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
/* grouped three-column layout (Desarae): Personal | Gigs | Work sections */
.proj-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.proj-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.proj-col .proj { margin: 0; min-width: 0; }
.proj-group-hd { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin: 0 0 -4px; }
/* the add-task row lives INSIDE its card in every layout */
.proj .tadd { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-width: 0; }
.proj .tadd input { flex: 1 1 80px; min-width: 0; box-sizing: border-box; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: #fff; color: #16233a; padding: 5px 10px; font-size: 13px; font-family: Arial, sans-serif; }
.proj .tadd .tproj { flex: 0 1 auto; min-width: 0; }
.proj .tadd button { flex: 0 0 auto; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.16); color: #fff; padding: 5px 12px; font-size: 13px; cursor: pointer; font-family: Arial, sans-serif; }
.proj .ttext { overflow-wrap: break-word; }
/* three-column cards are narrow: stack input / picker / Add inside the card */
.tasks-panel.layout-three .tadd { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.tasks-panel.layout-three .tadd input, .tasks-panel.layout-three .tadd .tproj, .tasks-panel.layout-three .tadd button { width: 100%; max-width: none; flex: none; box-sizing: border-box; }
@media (max-width: 700px) {
  .tasks-panel.layout-three .proj-grid { gap: 8px; }
  .tasks-panel.layout-three .proj-groups { gap: 8px; }
  .tasks-panel.layout-three .proj { padding: 9px 8px; }
  .tasks-panel.layout-three .proj h3 { font-size: 13.5px; }
  .tasks-panel.layout-three .ttext { font-size: 12.5px; }
  .tasks-panel.layout-multi .proj-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
