/* We Are Frequency platform — gold, sand and deep ocean; red/amber/green only for status. */
:root {
  /* We Are Frequency brand: gold from the logo, sand from the website, deep ocean for contrast */
  --gold: #DD9742;
  --gold-d: #B9772A;
  --sand: #F3E8DE;
  --shell: #FBF7F2;
  --ocean: #0E1B2C;
  --sea: #1E3A5F;
  --glass: #5FB3AC;         /* sea-glass teal: the electric/spacey accent */
  --ember: #C0573E;
  --yellow: #F4DDBC;
  --orange: var(--gold);
  --coral: #E3A86A;
  --red: var(--gold);       /* accent (active tab, focus) */
  --ink: #1B1A19;
  --ink2: #57524C;
  --ink3: #8C857D;
  --line: #E8DDD1;
  --soft: #F7F0E8;
  --paper: #FFFDF9;
  --tint: #FBF1E3;
  --ok: #3E8E6E;
  --warn: #E0A23A;
  --bad: #C0573E;
  --radius: 12px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Space Grotesk", "Inter", -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
.boot { display: grid; place-items: center; height: 100vh; }
.muted { color: var(--ink2); } .faint { color: var(--ink3); } .small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; padding: 10px 20px; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { font-family: var(--serif); font-size: 17px; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 7px 11px; border-radius: 8px; text-decoration: none; color: var(--ink2); white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.who { display: flex; align-items: center; gap: 8px; color: var(--ink2); white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--ink); text-decoration: none; }
main { max-width: 1400px; margin: 0 auto; padding: 20px 20px 90px; }
.pagehead { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pagehead h1 { flex: 1 1 auto; min-width: 200px; }
.pagehead > .row { flex: 0 1 auto; }
.who { margin-left: auto; }
.mobonly { display: none; }
.sub { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.sub a { padding: 9px 12px; text-decoration: none; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.sub a.on { color: var(--ink); border-bottom-color: var(--red); }
.bottom { display: none; }

@media (max-width: 760px) {
  .top-in { padding: 8px 14px; }
  .nav, .who .name { display: none; }
  .mobonly { display: flex; }
  .pagehead > .row { flex: 1 1 100%; }
  main { padding: 14px 14px 96px; }
  h1 { font-size: 21px; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; }
  .bottom a { flex: 1 0 auto; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; text-decoration: none; color: var(--ink3); font-size: 10.5px; font-weight: 500; border-radius: 8px; }
  .bottom a .ic { font-size: 17px; line-height: 1; }
  .bottom.scroll { scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .bottom.scroll::-webkit-scrollbar { display: none; }
  .bottom.scroll a { flex: 0 0 auto; min-width: 66px; scroll-snap-align: start; }
  .bottom a.on { color: var(--ink); background: var(--tint); }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 500; text-decoration: none; white-space: nowrap; min-height: 36px; }
.btn:hover { border-color: var(--ink3); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #333; }
.btn.accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { padding: 4px 10px; min-height: 28px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn.danger-on { background: #FBE5E2; color: #A12A1D; border-color: #F2C3BC; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); min-height: 36px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 80px; resize: vertical; }
.search { max-width: 280px; }
label.f { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 4px; }
.chk { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--red); }

/* ---------- status ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); flex: 0 0 8px; }
.dot.g { background: #1B7A43; } .dot.y { background: #7DDB8F; } .dot.a { background: #F08A00; } .dot.r { background: var(--bad); } .dot.x { background: #C8C8C8; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--soft); white-space: nowrap; }
.pill.g { background: #1B7A43; color: #fff; } .pill.g .dot.g { background: #fff; } .pill.a { background: #FFE2BF; color: #8A4A00; } .pill.y { background: #D7F5DC; color: #1D6B3D; } .pill.r { background: #FBE5E2; color: #A12A1D; } .pill.x { background: #EFEFEF; color: #777; text-decoration: line-through; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.tag.hol { background: var(--yellow); } .tag.school { background: #FFE4B8; } .tag.fest { background: var(--coral); color: #fff; } .tag.other { background: var(--soft); }

/* ---------- cards & tables ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; display: block; }
.stat b { display: block; font-size: 24px; font-family: var(--serif); }
.stat span { color: var(--ink2); font-size: 12.5px; }
.stat.alert { border-color: var(--red); background: #FFF4F1; }
.tablewrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink2); background: var(--soft); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; cursor: pointer; user-select: none; }
.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; max-width: 340px; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { cursor: pointer; }
.t tbody tr:hover td { background: var(--tint); }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t td .clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t tfoot td { font-weight: 600; background: var(--soft); }
.empty { padding: 30px; text-align: center; color: var(--ink3); }
.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }

/* ---------- agenda ---------- */
.month { margin-bottom: 26px; }
.month h2 { position: sticky; top: 54px; background: var(--paper); padding: 8px 0; z-index: 5; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.day { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.day.weekend { background: linear-gradient(90deg, var(--tint), transparent 60%); }
.day.today { box-shadow: inset 3px 0 0 var(--red); }
.dnum { font-family: var(--serif); font-size: 20px; line-height: 1; padding-left: 6px; }
.dnum small { display: block; font-family: var(--sans); font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.dbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dmarks { display: flex; gap: 6px; flex-wrap: wrap; }
.ev { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 8px; cursor: pointer; background: var(--paper); }
.ev:hover { border-color: var(--ink3); border-left-color: var(--red); }
.ev.own { border-left: 6px solid #FF9900; background: #FFF4E2; } .ev.ext { border-left: 6px solid #2F6FB3; background: #E8F1FB; }
.ev.corp { border-left: 6px solid #7A5AA8; background: #F2EDF9; } .ev.priv { border-left: 6px solid #C2457A; background: #FBEAF1; } .ev.cancel { opacity: .5; }
.ev .tm { font-variant-numeric: tabular-nums; color: var(--ink2); font-size: 12.5px; min-width: 82px; }
.ev .ti { font-weight: 600; }
.ev .lu { color: var(--ink2); font-size: 12.5px; white-space: pre-line; }
.addday { color: var(--ink3); font-size: 12.5px; cursor: pointer; padding: 2px 0; border: 0; background: none; text-align: left; }
.addday:hover { color: var(--red); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--soft); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.kcol h3 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink2); display: flex; justify-content: space-between; margin-bottom: 8px; }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; }
.kcard:hover { border-color: var(--ink3); }

/* ---------- staffing ---------- */
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.sday { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sday h3 { font-family: var(--sans); font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.sday .evs { font-size: 12px; color: var(--ink2); margin-bottom: 8px; }
.shift { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.shift.full { background: #F3FAF6; }
.shift.short { border-color: #F2C3BC; }
.people { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.person { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 4px 2px 8px; border-radius: 99px; background: var(--soft); }
.person.req { background: #FDF1D8; } .person.ok { background: #E6F4EC; }
.person button { border: 0; background: none; cursor: pointer; padding: 0 4px; font-size: 13px; color: var(--ink2); }
.person button:hover { color: var(--ink); }
/* roster */
.skills { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.sk { font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--soft); color: var(--ink2); }
.card.nudge { border: 2px solid #F5C26B; background: #FFFBEF; }
.okc { color: #1D6B3D; font-weight: 600; }
.shead { display: flex; align-items: center; gap: 6px; }
.shead .btn.small { padding: 3px 9px; min-height: 28px; }
.roster .shift { padding: 7px 9px; margin-bottom: 6px; }
.roster .people:empty { display: none; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.availlist[hidden], [hidden] { display: none !important; }
.roster .sday h3 .dot { width: 11px; height: 11px; flex-basis: 11px; vertical-align: -1px; }
.roster .evs a { color: var(--ink); text-decoration: none; font-weight: 500; }
.shift .row .dot { flex: 0 0 8px; }
.shift.s-g { background: #F3FAF6; border-color: #CFE8D9; } .shift.s-y { background: #FFFBEF; } .shift.s-r { border-color: #F2C3BC; }
.shift .cnt { font-weight: 600; min-width: 30px; text-align: right; }
button.person { border: 0; font: inherit; font-size: 12px; cursor: pointer; padding: 3px 9px; }
.person.plan { background: #fff; border: 1px dashed var(--ink3); padding: 2px 8px; }
.person.ask { background: #FDF1D8; } .person.req { background: #E3EEFB; } .person.ok { background: #E6F4EC; }
.person.no { background: #FBE5E2; text-decoration: line-through; color: #A12A1D; }
.person.empty { background: none; border: 1px dashed var(--line); color: var(--ink3); padding: 2px 8px; }
.availbar { display: block; width: 100%; text-align: left; background: var(--soft); border: 0; border-radius: 8px; padding: 6px 8px; margin: 2px 0 8px; cursor: pointer; font: inherit; font-size: 12.5px; }
.availbar .ok { color: #1D6B3D; } .availbar .bad { color: #A12A1D; }
.availlist { background: var(--soft); border-radius: 8px; padding: 6px 8px; margin: -4px 0 8px; display: grid; gap: 4px; }
.ask-card { border: 2px solid #F5C26B; margin-bottom: 12px; }
.pick .pickrow { cursor: pointer; align-items: flex-start; }
.pick .pickrow input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 18px; }
.pick .pickrow[hidden] { display: none; }
.row.wrap { flex-wrap: wrap; }
.clockbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; margin-bottom: 16px; }
.clockbar .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; background: rgba(0,0,0,.28); }
.drawer[hidden] { display: none; }
.panel { width: min(720px, 100%); height: 100%; background: var(--paper); display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.12); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-body { flex: 1; overflow-y: auto; padding: 18px; }
.panel-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
.fgrid .wide { grid-column: 1 / -1; }
.fsec { grid-column: 1 / -1; font-family: var(--serif); font-size: 15px; font-weight: 600; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.fsec.parta { border-top: 2px solid var(--yellow, #f5b700); }
.fsec[hidden] { display: none; }
.parta-head { font-weight: 700; letter-spacing: .04em; padding: 8px 10px; border-radius: 8px; background: linear-gradient(90deg, rgba(245,183,0,.18), rgba(255,122,0,.12)); }
.parta-head .faint { display: block; font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.fsec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.subrows { border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.subrow { display: grid; gap: 6px; align-items: center; margin-bottom: 6px; }
.calcbox { background: var(--tint); border-radius: var(--radius); padding: 12px 14px; }
.calcbox table { width: 100%; border-collapse: collapse; }
.calcbox td { padding: 3px 0; } .calcbox td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.calcbox tr.tot td { border-top: 1px solid var(--ink); font-weight: 700; padding-top: 6px; }
.filelink { display: inline-flex; gap: 6px; align-items: center; }
.hist { font-size: 12.5px; color: var(--ink2); }
.hist div { padding: 4px 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 760px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .panel-body { padding: 14px; }
}

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--tint), #fff 55%); }
.login .box { width: min(380px, 100%); }
.login img { width: 84px; height: 84px; display: block; margin: 0 auto 14px; }
.login h1 { text-align: center; margin-bottom: 4px; }
.login p.lead { text-align: center; color: var(--ink2); margin: 0 0 22px; }
.login .card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.err { color: var(--bad); font-size: 13px; }
.note { background: var(--tint); border-radius: 8px; padding: 10px 12px; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 80; max-width: 90vw; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); }
@media (max-width: 760px) {
  .day { grid-template-columns: 42px 1fr; gap: 8px; }
  .dnum { padding-left: 2px; font-size: 18px; }
  .ev { flex-wrap: wrap; gap: 4px 8px; }
  .ev .tm { min-width: 0; }
  .ev .grow { flex-basis: 100%; }
}

/* ---------- mobile first: tables become cards, inputs never zoom ---------- */
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px !important; }       /* iOS zooms in on anything smaller */
  .btn { min-height: 42px; }
  .btn.small { min-height: 34px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat b { font-size: 20px; }
  .search { max-width: none; flex: 1 1 100%; }
  .row > select { flex: 1 1 45%; }
  .tablewrap { border: 0; overflow: visible; }
  table.t thead { display: none; }
  table.t, .t tbody, .t tfoot, .t tr, .t td { display: block; width: 100%; }
  .t tbody tr, .t tfoot tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 10px 12px; background: var(--paper); }
  .t tbody tr:active { background: var(--tint); }
  .t td { border: 0 !important; padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; max-width: none; text-align: right; background: transparent !important; }
  .t td::before { content: attr(data-label); color: var(--ink3); font-size: 12px; text-align: left; flex: 0 0 auto; }
  .t td:first-child { font-size: 15px; font-weight: 600; text-align: left; justify-content: flex-start; }
  .t td:first-child::before { display: none; }
  .t td:empty, .t td.empty-cell { display: none; }
  .t td.num { text-align: right; }
  .t td .clip { text-align: right; }
  .t td.empty { display: block; text-align: center; }
  .t td.empty::before { display: none; }
  .kanban { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  .panel-head { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .clockbar { padding: 12px 14px; }
  .month h2 { top: 47px; }
  .sub a { padding: 10px 12px; }
}
@media (max-width: 760px) {
  .t td.blk { display: block; text-align: left; }
  .t td.blk::before { display: none; }
}

/* ---------- choice tiles (new event wizard) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; min-height: 92px; }
.tile:hover, .tile:active { border-color: var(--red); background: var(--tint); }
.tile b { font-size: 15px; }
.tile span { color: var(--ink2); font-size: 12.5px; }
.tile .tic { font-size: 20px; color: var(--red); }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { min-height: 84px; padding: 14px; } }

/* unsaved-changes bar at the bottom of the side panel */
.unsaved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--tint); border-top: 2px solid var(--orange); }

/* ---------- cowork ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; cursor: pointer; margin-bottom: 12px; background: var(--soft); }
.dropzone .tic { font-size: 28px; color: var(--red); }
.dropzone.over { border-color: var(--red); background: var(--tint); }
.dropzone.has { border-style: solid; border-color: var(--orange); background: var(--tint); }
.composer { display: flex; flex-direction: column; gap: 10px; }
.composer textarea { min-height: 90px; }
.btn.mic.on { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .7; } }
.cwplan { margin-top: 14px; }
.cwplan h3 { margin: 14px 0 6px; } .cwplan p { margin: 6px 0; } .cwplan ul { margin: 4px 0 8px 18px; padding: 0; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -2px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- finance ---------- */
.pos { color: var(--ink); } .neg { color: var(--bad); }
.chart { width: 100%; height: auto; display: block; }
.fintab { width: 100%; border-collapse: collapse; margin-top: 14px; }
.fintab th { text-align: left; font-size: 12px; color: var(--ink2); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.fintab td { padding: 4px; border-bottom: 1px solid var(--line); }
.fintab td:first-child { width: 46%; font-size: 13.5px; }
.fintab input { text-align: right; }
.fintab input::placeholder { color: #9a9a9a; }
@media (max-width: 760px) { .fintab td:first-child { width: 40%; font-size: 13px; } }

/* ---------- timetable ---------- */
.tt { margin-top: 4px; display: flex; flex-direction: column; gap: 1px; }
.ttr { display: flex; gap: 10px; font-size: 13px; line-height: 1.35; }
.ttr[data-bk] { cursor: pointer; } .ttr[data-bk]:hover .tta { text-decoration: underline; }
.ttt { font-variant-numeric: tabular-nums; color: var(--ink2); min-width: 92px; white-space: nowrap; }
.tta { color: var(--ink); }
@media (max-width: 760px) { .ttt { min-width: 84px; } .t td.blk .tt { text-align: left; } }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* availability month calendar */
.cal-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.cal-m h3 { margin-bottom: 8px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-g > b { font-size: 11px; color: var(--ink3); text-align: center; font-weight: 500; }
.cal-d { position: relative; aspect-ratio: 1 / 1; min-height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; font-size: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--ink); line-height: 1.1; }
.cal-d small { font-size: 9px; font-weight: 600; }
.cal-d i { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #C2552D); }
.cal-d.past { opacity: .35; cursor: default; }
.cal-d.yes { background: #DDF1E5; border-color: #9BD3B0; color: #1D6B3D; font-weight: 600; }
.cal-d.part { background: #EAF6EF; border-color: #9BD3B0; color: #1D6B3D; font-weight: 600; }
.cal-d.no { background: #FBE5E2; border-color: #F2C3BC; color: #A12A1D; }
.cal-d.todo { border: 2px solid #F5C26B; }
.cal-d.sample { display: inline-flex; width: 26px; min-height: 26px; height: 26px; font-size: 11px; vertical-align: middle; margin-right: 4px; cursor: default; }

/* marketing planner */
.chips { flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mday { margin-bottom: 14px; }
.mday h3 { font-size: 14px; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.mday h3.late, .mdate.late { color: var(--bad); } .mday h3.today { color: var(--accent, #C2552D); }
.mrow { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; border-bottom: 1px solid var(--soft); }
.mrow input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--ok); }
.mrow.done, .mrow.skipped { opacity: .55; } .mrow.done .grow > div:first-child, .mrow.skipped .grow > div:first-child { text-decoration: line-through; }
.mrow.late { background: #FFF4F1; border-radius: 8px; }
.mch { display: inline-block; font-size: 11.5px; font-weight: 600; background: var(--soft); border-radius: 6px; padding: 1px 6px; margin-right: 4px; white-space: nowrap; }
.mday-in { display: flex; gap: 8px; align-items: flex-start; } .mday-in .mrow { flex: 1; } .mdate { min-width: 72px; padding-top: 9px; }
.multi { gap: 4px 12px; }

/* artists — season calendar */
.sc-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; }
.season-cal { border-collapse: collapse; width: 100%; min-width: 1100px; table-layout: fixed; font-size: 11px; }
.season-cal th, .season-cal td { border: 1px solid var(--line); padding: 3px 4px; vertical-align: top; }
.season-cal thead th { background: var(--tint); font-weight: 600; text-align: center; font-size: 11px; }
.season-cal th.sc-m { width: 40px; background: var(--tint); font-family: var(--serif); font-size: 13px; text-align: left; position: sticky; left: 0; z-index: 1; }
.season-cal .sc-wk { border-left: 2px solid var(--ink, #111); }
.season-cal td { height: 54px; }
.season-cal td.sc-has { background: rgba(255, 204, 102, .14); }
.season-cal td.sc-out .sc-d { opacity: .45; font-style: italic; }
.season-cal td.sc-none { background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,.03) 4px 8px); }
.sc-d { display: block; color: var(--muted, #888); font-size: 10px; }
.sc-ev { cursor: pointer; border-left: 3px solid var(--orange); padding-left: 3px; margin-top: 2px; line-height: 1.25; }
.sc-ev { border-radius: 4px; padding: 2px 3px 2px 4px; }
.sc-ev.own { border-left: 4px solid #FF9900; background: #FFF1DA; } .sc-ev.ext { border-left: 4px solid #2F6FB3; background: #E3EEFA; }
.sc-ev.corp { border-left: 4px solid #7A5AA8; background: #EFE8F8; } .sc-ev.priv { border-left: 4px solid #C2457A; background: #FAE6EF; }
.sc-ev .dot { width: 7px; height: 7px; margin-right: 3px; vertical-align: 1px; }
.season-cal td.sc-has { background: transparent; }
.kinds { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kl { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #222; }
.kl.own { background: #FFF1DA; border-left: 4px solid #FF9900; } .kl.ext { background: #E3EEFA; border-left: 4px solid #2F6FB3; }
.kl.corp { background: #EFE8F8; border-left: 4px solid #7A5AA8; } .kl.priv { background: #FAE6EF; border-left: 4px solid #C2457A; }
.sc-ev b { display: block; font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-dj { display: block; font-weight: 500; }
.sc-dj.opt { font-style: italic; color: var(--muted, #888); }
@media print { .sc-wrap { overflow: visible; border: 0; } .season-cal { min-width: 0; font-size: 9px; } }
/* never let a long option / value push a form wider than the phone */
.fgrid > * { min-width: 0; }
.fgrid select, .fgrid input, .fgrid textarea { max-width: 100%; min-width: 0; }
.filelink { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
[data-file].row { flex-wrap: wrap; }
[data-file] input[type=file] { max-width: 100%; }
.card p, .card .small, .calcbox td { overflow-wrap: anywhere; }

.tag.bday { background: #FFE9F2; color: #8a2050; }

.sc-dj.head { font-weight: 700; }
.sc-dj .fem { color: #b0306a; font-weight: 700; }
.fem-target { margin-bottom: 10px; padding: 10px 14px; border-left: 4px solid var(--good, #2a8a3a); }
.fem-target.warn { border-left-color: #e8a317; }
.fem-target span { margin-left: 6px; }

.sc-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-bottom: 10px; }
.sc-boxes .fem-target { margin-bottom: 0; }
.fem-target.bad { border-left-color: var(--bad, #c33); }
.sc-ev a.tk { text-decoration: none; } a.tk { text-decoration: none; cursor: pointer; }

.expinv table { width: 100%; } .expinv th { font-size: 12px; font-weight: 600; color: var(--muted, #888); text-align: right; } .expinv td.num, .expinv th.num { text-align: right; white-space: nowrap; }

/* ================= We Are Frequency additions ================= */
.top { background: var(--ocean); border-bottom: 0; color: var(--shell); }
.brand b { color: var(--shell); font-weight: 600; letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; }
.nav a { color: #C9CED6; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { background: var(--gold); color: var(--ocean); }
.who .name { color: #C9CED6; }
.avatar { background: var(--c, var(--gold)); color: #fff; }
.btn.primary { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.btn.primary:hover { background: var(--sea); }
.login { background: radial-gradient(circle at 70% 20%, #24476f 0%, var(--ocean) 55%, #070e18 100%); }
.login .login-logo { width: min(300px, 80%); height: auto; margin: 0 auto 8px; display: block; }
.login p.lead { color: #C9CED6; }
.login h1 { color: var(--shell); }
h1 { letter-spacing: -0.02em; }
.hero-greet { margin-bottom: 14px; } .hero-greet p { margin: 2px 0 0; }
.stat { background: var(--paper); }
.stat.red { border-color: #E8B4A6; background: #FBEDE8; } .stat.red b { color: var(--ember); }
.stat.amber { border-color: #EED3A6; background: #FCF3E3; } .stat.amber b { color: #B57A14; }
.stat.green { border-color: #BCD9CB; background: #EEF6F1; } .stat.green b { color: var(--ok); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.cols2 .card h3 { margin-bottom: 8px; }
.who-chip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font-size: 10.5px; font-weight: 700; flex: none; vertical-align: middle; }
.ragdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; vertical-align: middle; margin-right: 2px; }
.ragdot.red { background: #D2553B; } .ragdot.amber { background: #E5A631; } .ragdot.green { background: #3E9A6E; } .ragdot.done { background: #BDB6AE; }
.late { color: var(--ember); font-weight: 600; }
.li.task { cursor: pointer; gap: 10px; align-items: center; }
.datebox { width: 44px; flex: none; text-align: center; border-radius: 10px; background: var(--sand); padding: 4px 0; line-height: 1.1; }
.datebox b { display: block; font: 600 18px var(--serif); } .datebox span { font-size: 11px; color: var(--ink2); text-transform: uppercase; }
.datebox.sm { width: 34px; padding: 2px 0; } .datebox.sm b { font-size: 14px; }
.chan { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; margin-right: 4px; vertical-align: middle; }
a.li { text-decoration: none; }
.monthhead { margin: 18px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
/* month calendar */
.cal-head h2 { font-size: 20px; }
.toggles { gap: 12px; margin: 8px 0 10px; flex-wrap: wrap; }
.cal { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow div { padding: 6px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); background: var(--sand); }
.cal-day { min-height: 108px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px 5px; cursor: pointer; overflow: hidden; }
.cal-day:nth-child(7n+1) { border-left: 0; }
.cal-day:hover { background: var(--tint); }
.cal-day.out { background: #FAF6F0; color: var(--ink3); }
.cal-day.today .cal-num { background: var(--ocean); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.cal-num { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.cal-av { display: flex; gap: 2px; float: right; margin-top: -20px; }
.avdot { width: 17px; height: 17px; border-radius: 50%; font-size: 8px; font-weight: 700; display: grid; place-items: center; color: #fff; background: var(--c); border: 2px solid transparent; }
.avdot.a { opacity: .5; } .avdot.x { background: #CFC8C0; color: #fff; text-decoration: line-through; }
.cal-it { font-size: 11px; line-height: 1.25; padding: 2px 5px; border-radius: 5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-it.ev { background: var(--ocean); color: #fff; } .cal-it.ev.r { background: #6C7A8C; } .cal-it.ev.a { background: var(--sea); } .cal-it.ev.g { background: var(--gold); color: var(--ocean); }
.cal-it.ev .faint { color: rgba(255,255,255,.7); }
.cal-it.ct { background: color-mix(in srgb, var(--c) 14%, white); border-left: 3px solid var(--c); }
.cal-it.tk { color: var(--ink2); } .cal-it.tk.red { color: var(--ember); font-weight: 600; }
/* availability grid */
.avgrid { border-collapse: collapse; font-size: 11px; }
.avgrid th { padding: 3px; font-weight: 500; color: var(--ink2); text-align: center; min-width: 26px; }
.avgrid th.we { color: var(--gold-d); } .avgrid tbody th { text-align: left; white-space: nowrap; padding-right: 10px; }
.avgrid .evmark { color: var(--gold); }
.avgrid td.av { height: 30px; border: 1px solid var(--line); cursor: pointer; text-align: center; color: #fff; font-weight: 600; }
.avgrid td.av.g { background: #3E9A6E; } .avgrid td.av.a { background: #E5A631; } .avgrid td.av.x { background: #CFC8C0; }
.avgrid td.av:hover { outline: 2px solid var(--ocean); }
/* events */
.evcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.evcard { cursor: pointer; } .evcard:hover { border-color: var(--gold); }
.evcard h3 { font-size: 17px; }
.evmeta { gap: 10px; margin-top: 10px; color: var(--ink2); flex-wrap: wrap; }
h4.sec { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-d); }
/* tasks board */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.bcol { background: var(--soft); border-radius: var(--radius); padding: 10px; }
.bhead { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; border-bottom: 3px solid var(--c, var(--line)); margin-bottom: 8px; }
.bcol .li { background: var(--paper); border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--line); }
/* contribution */
.contrib { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.cperson { border-top: 4px solid var(--c); }
.cperson .share { font: 600 22px var(--serif); color: var(--c); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.kpis div { background: var(--soft); border-radius: 8px; padding: 6px; text-align: center; }
.kpis b { display: block; font: 600 18px var(--serif); } .kpis span { font-size: 11px; color: var(--ink2); }
.kpis div.bad b { color: var(--ember); }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 90px; margin-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar i { display: block; width: 100%; background: var(--c); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar span { font-size: 10px; color: var(--ink3); margin-top: 3px; }
/* marketing */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.linkcard { text-decoration: none; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--gold); }
.linkcard:hover { background: var(--tint); }
iframe.sc { width: 100%; height: 360px; border: 0; border-radius: 8px; }
.subrow select { min-width: 0; }
@media (max-width: 760px) {
  .cols2 { grid-template-columns: 1fr; }
  .cal-day { min-height: 64px; padding: 2px; } .cal-it { font-size: 9.5px; padding: 1px 3px; }
  .cal-av { float: none; margin: 0; } .avdot { width: 13px; height: 13px; font-size: 0; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .evcards { grid-template-columns: 1fr; }
}
.fgrid h4.sec:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
