/* Shoreline Office app: phone-first, one-handed. Shoreline colors. */
:root {
  --navy: #0d2438; --navy-2: #16324a; --sand: #f6f1e7; --sand-2: #e9dfc9; --brass: #b3894f; --brass-2: #cca86e;
  --ink: #23303f; --soft: #5c6b7a; --line: rgba(13,36,56,.12); --white: #fff;
  --yellow: #f2c94c; --yellow-bg: #fdf6dd; --red: #c0392b; --red-bg: #fbe9e6; --green: #2f6b45;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Jost', -apple-system, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 16px/1.5 var(--sans); color: var(--ink); background: var(--sand); min-height: 100vh; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; }
a { color: var(--navy); }
#app[data-state="loading"] { min-height: 100vh; background: var(--sand); }

.of-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px;
  min-height: 52px; padding: 12px 18px; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.of-btn:active { transform: scale(.98); }
.of-btn[disabled] { opacity: .5; }
.of-btn-brass { background: var(--brass); color: var(--white); }
.of-btn-navy { background: var(--navy); color: var(--white); }
.of-btn-ghost { background: var(--white); color: var(--navy); border-color: rgba(13,36,56,.25); }
.of-small { font-size: 14px; color: var(--soft); }
.of-opt { font-weight: 400; color: var(--soft); font-size: 13px; }
.of-msg { min-height: 1.3em; font-size: 15px; color: var(--red); }
.of-msg.is-ok { color: var(--green); }
.of-empty { color: var(--soft); padding: 24px 4px; list-style: none; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
input[type=email], input[type=text], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 50px; border: 1px solid rgba(13,36,56,.22); border-radius: 12px; padding: 12px 14px; background: var(--white); font-size: 16px; font-weight: 400; }
textarea { resize: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

/* sign in */
.of-signin { max-width: 420px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 20px 40px; text-align: center; }
.of-logo { border-radius: 18px; margin-bottom: 14px; }
.of-signin h1 { font-size: 30px; }
.of-signin > p { color: var(--soft); margin: 6px 0 22px; }
.of-signin form { display: grid; gap: 14px; text-align: left; background: var(--white); padding: 20px; border-radius: 16px; box-shadow: 0 10px 30px rgba(13,36,56,.08); }
.of-signin .of-small { margin-top: 18px; }

/* top bar + menu */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.of-pin { position: sticky; top: 0; z-index: 30; background: var(--navy); box-shadow: 0 6px 18px rgba(8,23,38,.25); }
.of-top { position: relative; display: flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white);
  padding: max(10px, env(safe-area-inset-top)) 12px 10px 14px; }
.of-top img { border-radius: 8px; }
.of-top-title { flex: 1; display: grid; line-height: 1.2; }
.of-top-title b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.of-top-title span { font-size: 13px; color: rgba(255,255,255,.7); }
.of-icon-btn { width: 48px; height: 48px; border: 0; background: none; color: var(--white); border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.of-menu { position: absolute; right: 10px; top: calc(100% + 6px); background: var(--white); border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.2);
  display: grid; min-width: 230px; overflow: hidden; }
.of-menu button, .of-menu a { min-height: 52px; padding: 0 18px; border: 0; background: none; text-align: left; color: var(--navy); font-weight: 500; text-decoration: none;
  display: flex; align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.of-install { display: flex; gap: 10px; align-items: center; background: var(--brass); color: var(--white); padding: 10px 8px 10px 14px; font-size: 14px; }
.of-install span { flex: 1; }
.of-x { width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 26px; cursor: pointer; }

/* views */
.of-view { max-width: 980px; margin: 0 auto; padding: 14px 12px calc(110px + env(safe-area-inset-bottom)); }
.of-view h2 { font-size: 24px; }

/* AI command bar (pinned) */
.of-ai { display: flex; gap: 8px; align-items: flex-end; padding: 2px 10px 10px; max-width: 980px; margin: 0 auto; }
.of-ai textarea { min-height: 52px; max-height: 120px; border: 0; border-radius: 14px; font-size: 17px; padding: 14px 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.of-ai .of-btn { min-width: 64px; min-height: 52px; font-size: 17px; }
.of-tip { font-size: 13px; color: var(--soft); margin: 0 2px 4px; }
.of-sync { flex: none; font-size: 12.5px; font-weight: 600; background: var(--brass); color: var(--white); padding: 6px 10px; border-radius: 999px; }
.of-sync.is-off { background: var(--red); }
.of-banner { position: sticky; top: 140px; z-index: 25; max-width: 980px; margin: 10px auto 0; display: flex; gap: 10px; align-items: center;
  background: var(--green); color: var(--white); border-radius: 16px; padding: 14px 10px 14px 16px; box-shadow: 0 10px 28px rgba(0,0,0,.18); width: calc(100% - 24px); }
.of-banner > div { flex: 1; display: grid; gap: 2px; }
.of-banner b { font-size: 18px; line-height: 1.25; }
.of-banner span { font-size: 14px; opacity: .9; }
.of-banner .of-btn { min-height: 48px; padding: 8px 16px; color: var(--green); border: 0; }
.of-ai-out { max-width: 980px; margin: 10px auto 0; width: calc(100% - 24px); background: var(--white); border-radius: 16px; padding: 14px; border: 2px solid var(--brass-2); }
.of-ai-out h3 { font-size: 19px; margin-bottom: 6px; }
.of-ai-out dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; margin: 8px 0 12px; }
.of-ai-out dt { color: var(--soft); }
.of-ai-out dd { font-weight: 600; color: var(--navy); }
.of-ai-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.of-cand { display: grid; gap: 8px; margin-top: 10px; }
.of-cand button { min-height: 52px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); cursor: pointer; }
.of-cand button b { display: block; color: var(--navy); }
.of-warn { background: var(--yellow-bg); border: 1px solid var(--yellow); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #5a4300; margin-bottom: 10px; }
.of-cost { font-size: 12px; color: var(--soft); margin-top: 8px; }

/* tools */
.of-tools { margin: 14px 0 10px; display: grid; gap: 10px; }
.of-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.of-chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(13,36,56,.2); background: var(--white); font-weight: 500; cursor: pointer; white-space: nowrap; }
.of-chip.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.of-chips select { flex: none; width: auto; min-height: 44px; border-radius: 999px; padding: 0 14px; }
.of-count { font-size: 14px; color: var(--soft); }

/* job cards */
.of-cards { display: grid; gap: 12px; }
.of-card { background: var(--white); border-radius: 16px; padding: 16px; border: 2px solid transparent; box-shadow: 0 4px 16px rgba(13,36,56,.06); }
.of-card.is-yellow { border-color: var(--yellow); background: var(--yellow-bg); }
.of-card.is-red { border-color: var(--red); background: var(--red-bg); }
.of-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.of-card h3 { font-size: 21px; }
.of-cust { font-size: 15px; color: var(--soft); }
.of-flag { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.of-flag.yellow { background: var(--yellow); color: #5a4300; }
.of-flag.red { background: var(--red); color: var(--white); }
.of-flag.saving { background: var(--brass); color: var(--white); }
.of-done { font-size: 18px; font-weight: 600; color: var(--green); padding: 8px 0; }
.of-by { font-size: 13px; color: var(--soft); }
.of-said { font-size: 14px; font-style: italic; color: var(--navy); margin-top: 2px; }
.of-ai-tag { background: var(--navy); color: var(--white); border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; }
.of-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.of-inline { font-size: 13px; }
.of-photo-btn { position: relative; }
.of-cand + .of-link, .of-ai-out > .of-link { margin-top: 6px; }
.of-sample { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--brass); }
.of-days { font-size: 14px; color: var(--soft); margin: -4px 0 10px; }
.of-next { width: 100%; font-size: 17px; min-height: 58px; }
.of-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.of-row3 { grid-template-columns: repeat(3, 1fr); }
.of-next + .of-next { margin-top: 8px; }
.of-row .of-btn { min-height: 48px; padding: 8px 4px; font-size: 14px; flex-direction: column; gap: 2px; border-radius: 12px; }
.of-row svg { width: 20px; height: 20px; }
.of-detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.of-tl { list-style: none; display: grid; gap: 10px; }
.of-tl li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14.5px; }
.of-tl li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; border: 2px solid var(--sand-2); background: var(--white); }
.of-tl li.d::before { background: var(--brass); border-color: var(--brass); }
.of-tl li.n::before { background: var(--navy); border-color: var(--navy); }
.of-tl b { color: var(--navy); }
.of-tl .later { color: var(--soft); }
.of-tl .note { white-space: pre-wrap; }
.of-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.of-photos a { width: 84px; height: 64px; border-radius: 8px; overflow: hidden; display: block; background: var(--sand); }
.of-photos img { width: 100%; height: 100%; object-fit: cover; }

.of-link { background: none; border: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; font-size: 14px; }

/* activity */
.of-activity { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.of-activity li { background: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.of-activity .when { font-size: 13px; color: var(--soft); }
.of-activity .job { font-weight: 600; color: var(--navy); }

/* confirm sheet + toast */
.of-sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(8,23,38,.55); display: flex; align-items: flex-end; justify-content: center; }
.of-sheet { width: min(560px, 100%); background: var(--white); border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px;
  max-height: 92vh; overflow: auto; }
.of-sheet h3 { font-size: 22px; }
.of-sheet-btns { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.of-sheet-btns .of-btn { min-height: 58px; font-size: 17px; }
.of-toast { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto;
  background: var(--navy); color: var(--white); border-radius: 14px; padding: 12px 12px 12px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.of-toast span { flex: 1; font-size: 15px; }
.of-toast button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--brass); color: var(--white); font-weight: 600; cursor: pointer; }
.of-credit { text-align: center; font-size: 12px; color: var(--soft); padding: 14px 0 24px; }
.of-credit a { color: var(--soft); }

@media (min-width: 760px) {
  .of-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-sheet-wrap { align-items: center; }
  .of-sheet { border-radius: 20px; }
}
@media (min-width: 1200px) {
  .of-view { max-width: 1240px; }
  .of-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Installers: bigger, higher contrast for reading in sunlight */
body.is-installer { --soft: #33404d; --line: rgba(0,0,0,.25); background: #fff; }
body.is-installer .of-card { border: 2px solid #23303f; box-shadow: none; }
body.is-installer .of-card h3 { font-size: 24px; }
body.is-installer .of-cust, body.is-installer .of-days { font-size: 16px; color: #23303f; }
body.is-installer .of-next { min-height: 64px; font-size: 19px; }
body.is-installer .of-row .of-btn { min-height: 54px; font-size: 15px; }
body.is-installer .of-btn-ghost { border-color: #23303f; }
@media (max-width: 420px) { .of-filters { grid-template-columns: 1fr; } }

/* Options (admins) and Finished / Archived */
.of-opts { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.of-opts h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.of-opts .of-btn { min-height: 48px; width: 100%; }
.of-opts .of-btn[disabled] { opacity: .5; }
.of-check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 15px; min-height: 44px; }
.of-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.of-arch-tag { margin: 8px 0 10px; font-size: 14px; font-weight: 600; color: var(--green); }
.of-arch .of-btn { width: 100%; min-height: 48px; }
#arch-q { width: 100%; }

/* quote status on the card (from the client's project) */
.of-quote { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.of-quote.approved { background: #1f8a4c; color: #fff; }
.of-quote.awaiting { background: #f3d58b; color: #5a4200; }

/* project message board inside a job's More, and the card's "new messages" badge */
.of-msgs { display: inline-block; margin-top: 6px; padding: 4px 10px; border: 0; border-radius: 999px; background: #b3894f; color: #fff; font: 700 12px/1.3 inherit; cursor: pointer; }
.of-board { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4dccb; }

/* Office jobs as spreadsheet rows (staff and admins; installers keep the big cards) */
.of-cards.is-rows { grid-template-columns: minmax(0, 1fr) !important; gap: 6px; }
.of-rowhead { display: none; }
.of-rowcard { padding: 0; border: 0; border-left: 6px solid transparent; border-radius: 10px; box-shadow: 0 2px 8px rgba(13,36,56,.06); }
.of-rowcard.is-yellow { border-left-color: var(--yellow); border-width: 0 0 0 6px; }
.of-rowcard.is-red { border-left-color: var(--red); border-width: 0 0 0 6px; }
.of-rowbar { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; grid-template-areas: "who step chev" "tags tags chev"; align-items: center; gap: 4px 12px; padding: 10px 12px; min-height: 56px; cursor: pointer; border-radius: 10px; }
.of-rowbar:hover { background: rgba(13,36,56,.035); }
.of-rowbar:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.of-rb-who { grid-area: who; min-width: 0; display: flex; flex-direction: column; }
.of-rb-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-rb-who > span { font-size: 13.5px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-rb-sample { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin-left: 4px; }
.of-rb-step { grid-area: step; display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 13px; color: var(--soft); max-width: 46vw; }
.of-rb-step b { color: var(--navy); font-size: 13px; }
.of-rb-step > span:not(.of-rb-meter) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.of-rb-meter { display: block; width: 90px; height: 5px; margin-top: 4px; border-radius: 9px; background: rgba(13,36,56,.12); overflow: hidden; }
.of-rb-meter i { display: block; height: 100%; background: var(--brass); }
.of-rb-days { display: none; }
.of-rb-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; }
.of-rb-tags:empty { display: none; }
.of-rb-tags .of-quote, .of-rb-tags .of-msgs { margin-top: 0; font-size: 11px; padding: 4px 8px; }
.of-rb-tags .of-flag { padding: 4px 8px; font-size: 11px; }
.of-rb-chev { grid-area: chev; width: 10px; height: 10px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); justify-self: center; margin-top: -4px; transition: transform .15s; }
.of-rowbar[aria-expanded="true"] .of-rb-chev { transform: rotate(225deg); margin-top: 4px; }
.of-rowbody { padding: 4px 14px 16px; border-top: 1px solid var(--line); }
.of-rowbody h3 { font-size: 19px; margin: 10px 0 2px; }
@media (min-width: 760px) {
  .of-rowhead, .of-rowbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2.1fr) 80px minmax(0, 1.4fr) 20px; grid-template-areas: "who step days tags chev"; gap: 14px; align-items: center; }
  .of-rowhead { padding: 4px 18px 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
  .of-rowbar { padding: 10px 12px; }
  .of-rb-step { align-items: flex-start; text-align: left; max-width: none; }
  .of-rb-days { display: block; grid-area: days; font-size: 13.5px; color: var(--soft); }
  .of-rb-tags:empty { display: block; }
  .of-rowbody { padding: 6px 20px 18px; }
  .of-rowbody .of-row { max-width: 560px; }
  .of-rowbody > .of-next, .of-rowbody > .of-small { max-width: 560px; }
}
/* 9 step pieces on each row (done = check, current highlighted, later empty) */
.of-rb-step { container-type: inline-size; width: 150px; }   /* phones: a fixed column, so the 13 boxes have room (container cells don't size to content) */
@media (min-width: 760px) { .of-rb-step { width: auto; } }
.of-rb-steps { display: flex; gap: 3px; margin-top: 5px; width: 100%; max-width: 272px; }
.of-rb-steps i { flex: 1 1 0; max-width: 18px; min-width: 0; aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center; font: 600 9.5px/1 var(--sans, sans-serif); font-style: normal; color: var(--soft); background: #fff; border: 1px solid rgba(13,36,56,.22); letter-spacing: -.02em; overflow: hidden; }
.of-rb-steps i.d { background: var(--brass); border-color: var(--brass); color: #fff; }
.of-rb-steps i.n { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 2px rgba(13,36,56,.18); }
.of-rb-steps i.n.red { box-shadow: 0 0 0 2px var(--red); }
.of-rb-steps i.n.yellow { box-shadow: 0 0 0 2px var(--yellow); }
/* 13 boxes in a narrow cell: drop the numbers and checks, the colours still show done / now / to come */
@container (max-width: 236px) { .of-rb-steps { gap: 2px; } .of-rb-steps i { font-size: 0; border-radius: 3px; } }
/* sorting: header cells are buttons; a sort menu for phones; Custom order */
.of-rowhead .of-sort { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.of-rowhead .of-sort:hover, .of-rowhead .of-sort.is-on { color: var(--navy); }
.of-rowhead .of-sort:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.of-sort-arrow { font-size: 9px; }
.of-sortbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 4px; font-size: 13.5px; color: var(--soft); }
.of-sortbar label { display: inline-flex; align-items: center; gap: 6px; }
.of-sortbar select { min-height: 36px; border-radius: 10px; border: 1px solid var(--line); padding: 4px 8px; font: inherit; color: var(--navy); background: #fff; }
.of-sort-custom { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 600 12.5px/1 var(--sans, sans-serif); cursor: pointer; }
.of-sort-custom.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (min-width: 760px) { .of-sortbar label { display: none; } }
/* drag to move */
.of-rowbar { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; position: relative; }
.of-grip { position: absolute; left: 2px; top: 50%; width: 6px; height: 18px; margin-top: -9px; opacity: .35; background: radial-gradient(circle, var(--soft) 1.2px, transparent 1.6px) 0 0 / 6px 6px; }
.of-rowcard.is-dragging { position: relative; z-index: 5; box-shadow: 0 14px 34px rgba(13,36,56,.28); transform: scale(1.01); opacity: .96; }
body.of-dragging, body.of-dragging * { cursor: grabbing !important; }
/* ===== View switch: Table / Board / Cards / Timeline ===== */
.of-cards.is-board, .of-cards.is-tiles, .of-cards.is-timeline { display: block; min-width: 0; max-width: 100%; }
#cards { min-width: 0; }
.of-kanban { max-width: 100%; }
.of-views { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 10px; border-radius: 12px; background: rgba(13,36,56,.07); max-width: 100%; overflow-x: auto; }
.of-vbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--navy); font: 600 13.5px/1 var(--sans, sans-serif); cursor: pointer; white-space: nowrap; }
.of-vbtn svg { width: 16px; height: 16px; flex: none; }
.of-vbtn.is-on { background: #fff; box-shadow: 0 1px 4px rgba(13,36,56,.15); }
.of-vbtn:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
/* Cards */
.of-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.of-tile { background: #fff; border-radius: 12px; padding: 14px; border-left: 6px solid transparent; box-shadow: 0 2px 8px rgba(13,36,56,.06); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.of-tile:hover { box-shadow: 0 6px 18px rgba(13,36,56,.12); }
.of-tile:focus-visible, .of-mini:focus-visible, .of-tl-row:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; }
.of-tile.is-red { border-left-color: var(--red); background: var(--red-bg); }
.of-tile.is-yellow { border-left-color: var(--yellow); background: var(--yellow-bg); }
.of-tile-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.of-tile-who, .of-mini-who, .of-tl-who { display: flex; flex-direction: column; min-width: 0; }
.of-tile-who b, .of-mini-who b, .of-tl-who b { font-size: 15.5px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-tile-who span, .of-mini-who span, .of-tl-who span { font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-tile-step { margin: 2px 0 0; font-size: 13.5px; color: var(--soft); }
.of-tile-step b { color: var(--navy); }
.of-tile .of-rb-steps { max-width: none; }
.of-tile-foot { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 0; font-size: 12.5px; color: var(--soft); }
.of-tile .of-flag, .of-mini .of-flag, .of-tl-on .of-flag { font-size: 10.5px; padding: 3px 7px; }
.of-tile .of-msgs { margin: 0; font-size: 11px; padding: 3px 8px; }
/* Board */
.of-board-tip { margin: 0 0 8px; }
.of-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 10px; align-items: start; scroll-snap-type: x proximity; }
.of-col { background: rgba(13,36,56,.05); border-radius: 12px; padding: 8px; min-height: 120px; scroll-snap-align: start; transition: background .15s, box-shadow .15s; }
.of-col.is-over { background: rgba(179,137,79,.18); box-shadow: inset 0 0 0 2px var(--brass); }
.of-col h4 { margin: 2px 4px 8px; font-size: 13px; line-height: 1.25; color: var(--navy); display: flex; gap: 6px; align-items: baseline; }
.of-col h4 i { font-style: normal; margin-left: auto; color: var(--soft); font-weight: 600; }
.of-col-n { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; }
.of-col-list { display: grid; gap: 6px; }
.of-mini { background: #fff; border-radius: 9px; padding: 9px 10px; border-left: 4px solid transparent; box-shadow: 0 1px 4px rgba(13,36,56,.08); cursor: grab; display: grid; gap: 4px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-x pan-y; }
.of-mini.is-red { border-left-color: var(--red); }
.of-mini.is-yellow { border-left-color: var(--yellow); }
.of-mini-who b { font-size: 14px; }
.of-mini-who span { font-size: 12px; }
.of-mini-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--soft); }
.of-mini.is-lifted { opacity: .35; }
.of-ghost { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; box-shadow: 0 14px 34px rgba(13,36,56,.3); transform-origin: 0 0; opacity: .96; }
/* Timeline */
.of-tline { background: #fff; border-radius: 12px; padding: 6px 0; box-shadow: 0 2px 8px rgba(13,36,56,.06); overflow: hidden; }
.of-tl-head, .of-tl-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 3fr) minmax(120px, .9fr); gap: 14px; align-items: center; padding: 6px 14px; }
.of-tl-head { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.of-tl-axis { position: relative; height: 16px; }
.of-tl-axis span { position: absolute; top: 0; transform: translateX(-50%); letter-spacing: .02em; text-transform: none; font-size: 11.5px; white-space: nowrap; }
.of-tl-axis .of-tl-today { color: var(--navy); }
.of-tl-row { border-left: 5px solid transparent; cursor: pointer; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(13,36,56,.06); }
.of-tl-row:hover { background: rgba(13,36,56,.03); }
.of-tl-row.is-red { border-left-color: var(--red); }
.of-tl-row.is-yellow { border-left-color: var(--yellow); }
.of-tl-track { position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(13,36,56,.04) 0 1px, transparent 1px 10%); }
.of-tl-track i { position: absolute; top: 3px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-style: normal; }
.of-tl-track i.d.s1 { background: #c7a571; }
.of-tl-track i.d.s0 { background: #b3894f; }
.of-tl-track i.n { background: var(--navy); color: #fff; font: 700 10px/1 var(--sans, sans-serif); }
.of-tl-track i.n.red { box-shadow: 0 0 0 2px var(--red); }
.of-tl-track i.n.yellow { box-shadow: 0 0 0 2px var(--yellow); }
.of-tl-todayline { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--brass); opacity: .5; }
.of-tl-on { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--soft); align-items: flex-start; }
.of-tl-on b { color: var(--navy); font-size: 13px; }
@media (max-width: 759px) {
  .of-tl-head { grid-template-columns: minmax(0, 1fr) 96px; }
  .of-tl-head .of-tl-axis { display: none; }
  .of-tl-row { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "who on" "track track"; gap: 6px 10px; }
  .of-tl-row .of-tl-who { grid-area: who; } .of-tl-row .of-tl-on { grid-area: on; } .of-tl-row .of-tl-track { grid-area: track; }
}
/* the job pop-up (Board, Cards, Timeline) */
.of-modal-back { position: fixed; inset: 0; z-index: 40; background: rgba(8,20,32,.45); }
.of-modal { position: fixed; z-index: 41; left: 50%; top: 4vh; transform: translateX(-50%); width: min(980px, calc(100vw - 24px)); max-height: 92vh; overflow-y: auto; border-radius: 14px; background: var(--bg, #f6f1e7); box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 34px 0 0; outline: none; }
.of-modal .of-rowcard { box-shadow: none; }
.of-modal-x { position: absolute; top: 4px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--navy); cursor: pointer; }
body:has(.of-modal) { overflow: hidden; }
/* Phase 2 (Liz 10-27): six board columns, the step on each card, task counts, the Tasks bar under an opened job */
.of-kanban { grid-auto-columns: minmax(240px, 1fr); }
.of-mini-step { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin: 2px 0 4px; }
.of-tasks { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: rgba(13,36,56,.08); color: var(--navy); }
.of-tasks.is-mine { background: var(--navy); color: #fff; }
.of-mini-foot .of-tasks { margin-left: auto; margin-right: 6px; }
.of-work-slot { margin-top: 12px; }
.of-work-slot:empty { display: none; }
/* admins' calendar + "Today" warning (office/calendar.js) */
.of-cal-alert { padding: 12px 12px 0; max-width: 1200px; margin: 0 auto; }
.of-cal-alert .cal-alert { margin: 0; }
.of-cal { padding: 14px 12px 40px; max-width: 1200px; margin: 0 auto; }
