/* Almara Portal: follows the almara-solutions.com design (Roboto, Almara blue, dark hero and footer). */
@font-face { font-family: "Roboto"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-300-normal.7fda4c62c1bd.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-400-normal.8eff0b8045fd.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-500-normal.115c2d84727b.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/roboto-latin-700-normal.c83e4437a53d.woff2") format("woff2"); }

:root {
  --brand: #15559E;        /* Almara blue: header, buttons, accents */
  --brand-deep: #0E3F78;   /* hover */
  --night: #0A0E14;        /* hero bands and footer */
  --sky: #9CC3F5;          /* small capitals and links on dark */
  --ink: #111827;
  --quiet: #4B5563;
  --line: #E5E7EB;
  --bg: #F3F4F6;
  --card: #FFFFFF;
  --tint: #EAF1FA;         /* pale blue fills */
  --accent: #15559E;       /* links and highlights on the page */
  --danger: #A32D2D; --ok: #2F6D1A; --warn: #8A5A00;
  --radius: 8px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #E5E7EB; --quiet: #A3ABB8; --line: #253041; --bg: #0F141C; --card: #161D28; --tint: #1A2A40;
          --accent: #8DB8EC; --danger: #F09595; --ok: #97C459; --warn: #EFB04A; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 16px/1.6 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--sky); } }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--card); padding: 8px 12px; border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.topbar { background: var(--brand); color: #fff; }
.topbar-inner { display: flex; align-items: center; gap: 12px 32px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-logo { height: 40px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.wordmark { display: flex; flex-direction: column; font-size: 30px; font-weight: 300; letter-spacing: .5px; line-height: 1; color: inherit; }
.tagline { font-size: 9px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; }
.sites { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; }
.sites a { color: rgba(255,255,255,.82); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.sites a:hover { color: #fff; }
.sites a[aria-current="page"] { color: #fff; font-weight: 500; border-bottom-color: #fff; }
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; color: #fff; }
.who form { margin: 0; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 12px 4px 4px; border-radius: 999px; }
.user-menu summary:hover, .user-menu[open] summary { background: rgba(255,255,255,.12); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:focus-visible { outline: 2px solid #fff; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.2); }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(10,14,20,.18); padding: 8px 0; z-index: 10; display: flex; flex-direction: column; }
.user-menu .menu > * { padding: 10px 16px; text-align: left; }
.user-menu .menu a { color: var(--ink); text-decoration: none; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--bg); }
.user-menu .menu button.link { width: 100%; text-align: left; color: var(--ink); padding: 10px 16px; border-radius: 0; }
.user-menu .menu form { padding: 0; }
.menu-head { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 12px !important; }
.menu-head .quiet { font-size: 13px; }
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; }
  .sites { order: 3; width: 100%; gap: 4px 18px; }
  .who-name { display: none; }
}

/* Hero band at the top of each page */
.hero { background: var(--night); color: #fff; }
.hero .wrap { padding-top: 44px; padding-bottom: 44px; }
.hero h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 500; }
.hero .lead { margin: 10px 0 0; color: #D1D5DB; font-size: 17px; max-width: 760px; }
@media (prefers-color-scheme: dark) { .hero { border-bottom: 1px solid var(--line); } }
.hero a { color: var(--sky); }
.hero a:hover { color: #fff; }
.eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--sky); font-weight: 500; }
.hero-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.hero .status-submitted { color: #EFB04A; }
.hero .status-approved { color: #97C459; }
.hero .status-rejected { color: #F09595; }

/* Page */
main { flex: 1; padding-top: 32px; padding-bottom: 56px; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 19px; font-weight: 500; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 500; margin: 16px 0 4px; }
.lead { color: var(--quiet); margin-top: 0; }
.quiet { color: var(--quiet); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 16px; }
main > .card:first-child, main > .messages + .card { margin-top: 0; }
.chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--tint); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.messages { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.messages li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 10px 14px; }

/* Controls: pill buttons, as on the website */
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--quiet); }
label.check { flex-direction: row; align-items: center; gap: 6px; }
input, select, button, textarea { font: inherit; color: var(--ink); }
input[type=text], input[type=date], input[type=search], input[type=number], input[type=tel], input[type=email], select, textarea { padding: 8px 12px; border: 1px solid #C9CED6; border-radius: var(--radius); background: var(--card); min-width: 0; }
@media (prefers-color-scheme: dark) { input[type=text], input[type=date], input[type=search], input[type=number], input[type=tel], input[type=email], select, textarea { border-color: var(--line); } }
button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border: 1px solid var(--brand); border-radius: 999px; background: transparent; color: var(--accent); font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; line-height: 1.3; }
button:hover, a.button:hover { background: var(--tint); color: var(--accent); }
button.primary, a.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, a.button.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
button.link { background: none; border: 0; padding: 0; border-radius: 0; color: var(--accent); font-weight: 400; font-size: inherit; }
button.link:hover { background: none; text-decoration: underline; }
.danger, button.link.danger { color: var(--danger); }
.danger-button, button.danger-button { background: #A32D2D; border-color: #A32D2D; color: #fff; }
.danger-button:hover { background: #8A2424; color: #fff; }

/* Footer */
.site-footer { background: var(--night); color: #D1D5DB; font-size: 15px; line-height: 1.8; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-grid > * { display: flex; flex-direction: column; min-width: 0; }
.site-footer h2 { color: #fff; font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.site-footer a { color: #D1D5DB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { gap: 14px; color: #fff; }
.footer-brand .wordmark { font-size: 28px; }
.footer-brand p { margin: 0; color: #9CA3AF; font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-bottom { position: relative; padding-top: 18px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9CA3AF; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid #1F2937; }
.footer-bottom a { color: #9CA3AF; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Time tracking --- */
.entry-form, .inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.entry-form.stacked { flex-direction: column; align-items: stretch; max-width: 520px; }
.grow { flex: 1 1 220px; }
.narrow { flex: 0 0 90px; }
.errors, .errorlist { color: var(--danger); font-size: 14px; list-style: none; padding: 0; margin: 4px 0; }
.week-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.week-nav { display: flex; gap: 16px; }
.status { font-weight: 600; }
.status-submitted { color: var(--warn); }
.status-approved { color: var(--ok); }
.note { border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 10px 14px; background: var(--card); }
.timer-running { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.clock { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600; margin-left: auto; }
.days { margin-top: 16px; }
.day { border-top: 1px solid var(--line); padding: 8px 0; }
.day.today h3 { color: var(--accent); }
.day h3 { font-size: 15px; margin: 4px 0 6px; display: flex; justify-content: space-between; }
.day table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.c-dur { width: 72px; } .c-price { width: 250px; } .c-act { width: 120px; }
.day td { padding: 6px 4px; vertical-align: top; border-bottom: 1px solid var(--line); }
.day tr:last-child td { border-bottom: 0; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.actions { text-align: right; white-space: nowrap; }
td.actions form { display: inline; margin-left: 10px; }
.submit-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit-bar form, .button-row form { margin: 0; }
.button-row { display: flex; gap: 16px; align-items: center; }
.msg-error { border-left-color: var(--danger) !important; }
.msg-warning { border-left-color: var(--warn) !important; }
.msg-success { border-left-color: var(--ok) !important; }
@media (max-width: 640px) {
  .narrow { flex-basis: 100%; }
  /* Stack each entry: what it was on top, then time, value and actions on one line. */
  .day table, .day tbody, .day colgroup { display: block; }
  .day colgroup { display: none; }
  .day tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .day tr:last-child { border-bottom: 0; }
  .day td { display: block; padding: 0; border: 0; }
  .day td.what { grid-column: 1 / -1; }
  .day td.price { text-align: left; white-space: normal; }
  td.actions form { margin-left: 12px; }
}

/* --- Approvals --- */
.stage { font-size: 13px; color: var(--quiet); }
.stage-submitted { color: var(--warn); }
.stage-approved { color: var(--ok); }
.stage-invoiced { color: var(--ok); }
.stage-rejected { color: var(--danger); }
.note-danger { border-left-color: var(--danger); }
.reasons { margin: 6px 0 0; padding-left: 18px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 13px; color: var(--quiet); font-weight: 600; padding: 4px; border-bottom: 1px solid var(--line); }
table.list td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th.num { text-align: right; }
table.list tr.dim td { color: var(--quiet); }
.approve-bar { margin-top: 12px; }
.return-box { margin-top: 12px; }
.return-box summary { cursor: pointer; color: var(--accent); }
.return-box label { margin: 8px 0; }
.return-box textarea { width: 100%; }
@media (max-width: 640px) {
  table.list thead { display: none; }
  table.list tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.list td { border: 0; padding: 0; }
}
.status-rejected { color: var(--danger); }
section.note, p.note { margin: 16px 0; }
.ok { color: var(--ok); }
.problems { padding-left: 18px; }
form.inline { display: inline; margin-left: 8px; }
.label-row { display: flex; align-items: center; gap: 8px; }
.billable-tag { font-size: 12px; line-height: 18px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--quiet); white-space: nowrap; }
.billable-tag.is-billable { color: var(--ok); border-color: var(--ok); }
.billable-tag[hidden] { display: none; }
.ref { font-variant-numeric: tabular-nums; color: var(--quiet); }

/* --- Portal --- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.tile { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(21,85,158,.12); color: var(--ink); }
.tile strong { font-weight: 500; }
.tile-mark { flex: 0 0 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 500; font-size: 15px; }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-text .quiet { font-size: 13px; line-height: 1.4; }
.news, .links { list-style: none; padding: 0; margin: 0; }
.news li, .links li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.news li:last-child, .links li:last-child { border-bottom: 0; }
.links .quiet { margin-left: 8px; font-size: 13px; }
.section-title { margin: 36px 0 12px; font-size: 22px; }
main > .section-title:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ws-card, .file-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; }
.file-card { color: var(--ink); text-decoration: none; align-items: center; }
.file-card:hover { border-color: var(--brand); color: var(--ink); }
.ws-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ws-body h3 { font-size: 16px; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.ws-body p { margin: 0; font-size: 13px; line-height: 1.4; }
.ws-body strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
.ws-body .quiet { font-size: 13px; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
a.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 3px 14px; border: 1px solid var(--brand); border-radius: 999px; text-decoration: none; color: var(--accent); }
a.pill:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.file-kind { flex: 0 0 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--line); color: var(--ink); }
.kind-docx, .kind-doc { background: #dbe7f6; color: #1f4e79; }
.kind-xlsx, .kind-xls, .kind-csv { background: #dcefe0; color: #2f6d1a; }
.kind-pptx, .kind-ppt { background: #f7e1d7; color: #9c3d12; }
.kind-pdf { background: #f6dada; color: #a32d2d; }
p.card { margin-top: 0; }
.disconnect { margin-top: 12px; }


.tile-logo { flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--radius); object-fit: cover; background: var(--line); }
.profile-head { display: flex; align-items: center; gap: 24px; }
.profile-head h1 { margin: 0; }
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #1E293B; border: 3px solid rgba(255,255,255,.9); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.profile-grid .card { margin-top: 0; }
.profile-grid .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0; }
.facts dt { color: var(--quiet); font-size: 14px; }
.facts dd { margin: 0; }
.account-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.account-row:first-of-type { border-top: 0; }
.account-row > div { display: flex; flex-direction: column; }
.account-row .quiet { font-size: 14px; }
.confirm summary { list-style: none; cursor: pointer; white-space: nowrap; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm[open] { max-width: 320px; }
@media (max-width: 720px) { .profile-grid { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } .account-row { flex-direction: column; } }

/* People directory */
.people-search { display: flex; gap: 8px; margin: 0 0 20px; }
.people-search input { flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px; }
/* The divider is drawn inside the row (no overhang), so the row never shows a scroll bar;
   on a very narrow screen it still scrolls sideways, without a visible bar. */
.tabs { display: flex; gap: 4px; margin-bottom: 8px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 14px; color: var(--quiet); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); font-weight: 500; }
.people-group { margin-top: 24px; }
.people-group h2 .quiet { font-weight: normal; margin-left: 4px; }
.people-list { display: flex; flex-direction: column; gap: 8px; }
.person-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, auto); gap: 4px 14px; align-items: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar-md { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--line); }
.person-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.person-name { color: var(--ink); font-weight: 500; text-decoration: none; }
.person-name:hover { color: var(--accent); text-decoration: underline; }
.person-contact { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; line-height: 1.45; min-width: 0; }
.person-contact a { color: var(--quiet); text-decoration: none; overflow-wrap: anywhere; }
.person-contact a:hover { color: var(--accent); text-decoration: underline; }
.org { list-style: none; margin: 0; padding: 0 0 0 28px; }
.org li { position: relative; margin-top: 8px; }
.org .org li::before { content: ""; position: absolute; left: -16px; top: -8px; bottom: 0; border-left: 2px solid var(--line); }
.org .org li:last-child::before { bottom: auto; height: 38px; }
.org .org li::after { content: ""; position: absolute; left: -16px; top: 30px; width: 16px; border-top: 2px solid var(--line); }
.org-root { padding-left: 0; }
.crumbs { margin: 0 0 16px; font-size: 14px; color: #9CA3AF; }
.profile-grid .card .person-row { border: 0; padding: 4px 0; }
@media (max-width: 640px) {
  .person-row { grid-template-columns: 44px minmax(0, 1fr); }
  .person-contact { grid-column: 2; align-items: flex-start; }
  .org { padding-left: 16px; }
  .org .org li::before, .org .org li::after { left: -10px; }
  .org .org li::after { width: 10px; }
}

/* My profile: security */
.security-steps { margin: 8px 0 0; padding: 14px 18px 14px 36px; background: var(--tint); border-radius: var(--radius); }
.security-steps li { margin: 4px 0; }
.security-steps a { overflow-wrap: anywhere; }
.account-row .button { white-space: nowrap; }
.person-contact a.slack-link { color: var(--accent); font-weight: 500; }

/* Microsoft 365 set-up: covers the whole window until it's done */
.setup { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--night); }
.setup-card { width: 100%; max-width: 560px; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.setup-band { background: var(--brand); color: #fff; padding: 22px 32px; }
.setup-body { padding: 32px 32px 24px; }
.setup-body .eyebrow { color: var(--accent); }
.setup-body h1 { font-size: clamp(26px, 4vw, 32px); margin-bottom: 12px; }
.setup-lead { font-size: 17px; margin: 0 0 12px; }
.setup-points { margin: 0 0 24px; padding-left: 20px; }
.setup-points li { margin: 4px 0; }
.setup-button { width: 100%; padding: 14px 24px; font-size: 17px; margin-bottom: 14px; }
.setup-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 16px 32px; border-top: 1px solid var(--line); background: var(--bg); }
.setup-foot form { margin: 0; }
.setup-foot .quiet { overflow-wrap: anywhere; }
@media (max-width: 480px) { .setup-body, .setup-band, .setup-foot { padding-left: 20px; padding-right: 20px; } }
.pill-icon { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* Teams and sites: square icon buttons beside the name */
.ws-buttons { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.icon-button img { width: 22px; height: 22px; object-fit: contain; }
.icon-button:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(21,85,158,.15); transform: translateY(-1px); }
.icon-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.setup-lead + .setup-button { margin-top: 12px; }

/* Teams and sites: simple cards that open a lightbox */
.ws-item { display: flex; min-width: 0; }
a.ws-card { flex: 1; align-items: center; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.ws-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(21,85,158,.12); color: var(--ink); }
.ws-name { font-size: 16px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.ws-card .ws-body .quiet { font-size: 13px; line-height: 1.4; }
.ws-dialog { border: 0; padding: 0; border-radius: 12px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgba(10,14,20,.35); }
.ws-dialog::backdrop { background: rgba(10,14,20,.6); }
.ws-dialog-inner { position: relative; padding: 28px; }
.ws-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--quiet); font-size: 24px; line-height: 1; }
.ws-close:hover { background: var(--tint); color: var(--ink); }
.ws-detail-head { display: flex; gap: 18px; align-items: flex-start; padding-right: 32px; }
.ws-detail-head h2 { font-size: 22px; margin: 4px 0 6px; overflow-wrap: anywhere; }
.ws-detail-head p { margin: 0 0 4px; }
.ws-logo-lg { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--line); }
.tile-mark.ws-logo-lg { font-size: 28px; }
.ws-email a { font-weight: 500; overflow-wrap: anywhere; }
.ws-people h3 { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--quiet); margin: 22px 0 8px; }
.ws-count { letter-spacing: 0; margin-left: 4px; }
.ws-person-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ws-person-list li { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; background: var(--tint); border-radius: 999px; font-size: 14px; }
.ws-person-list img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--line); }
.ws-person-list a { color: var(--ink); text-decoration: none; }
.ws-person-list a:hover { color: var(--accent); text-decoration: underline; }
.ws-members { max-height: 200px; overflow-y: auto; }
.ws-detail-actions { display: flex; gap: 10px; align-items: stretch; margin-top: 26px; }
.ws-open { flex: 1; padding: 12px 20px; font-size: 16px; }
.ws-open img { width: 22px; height: 22px; object-fit: contain; }
.ws-detail-actions .icon-button { width: 48px; height: auto; min-height: 48px; flex-shrink: 0; border-radius: 999px; }
.ws-detail-actions .icon-button img { width: 26px; height: 26px; }
@media (max-width: 480px) { .ws-dialog-inner { padding: 22px 18px; } .ws-detail-head { gap: 14px; } .ws-logo-lg { flex-basis: 56px; width: 56px; height: 56px; } }
.ws-small { padding: 9px 16px; flex-shrink: 0; }

/* Requests */
.req-list { display: flex; flex-direction: column; gap: 8px; }
.req-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.req-row:hover { border-color: var(--brand); color: var(--ink); }
.req-ref { font-variant-numeric: tabular-nums; color: var(--quiet); font-size: 14px; }
.req-what { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.req-what strong { font-weight: 500; }
.req-status { display: inline-block; font-size: 13px; font-weight: 500; padding: 3px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); white-space: nowrap; }
.req-awaiting_approval, .req-needs_info { background: #FDF0D5; color: #7A4B00; }
.req-in_progress { background: #DCE8F7; color: #0E3F78; }
.req-done { background: #DDF0DF; color: #2F6D1A; }
.req-declined, .req-cancelled { background: #EFEFEF; color: #555; }
.hero .req-status { font-size: 14px; padding: 6px 16px; }
.req-form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.req-field { display: flex; flex-direction: column; gap: 6px; }
.req-field label { color: var(--ink); font-weight: 500; font-size: 15px; }
.req-field input:not([type=file]), .req-field select, .req-field textarea { width: 100%; }
.req-field.has-error input, .req-field.has-error select, .req-field.has-error textarea { border-color: var(--danger); }
.req-form textarea { width: 100%; }
.req-files { list-style: none; padding: 0; margin: 0; }
.req-files li { padding: 4px 0; }
.req-timeline { list-style: none; padding: 0; margin: 12px 0 0; border-left: 2px solid var(--line); }
.req-event { position: relative; padding: 0 0 14px 16px; display: flex; flex-direction: column; }
.req-event::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.req-event-done::before, .req-event-approved::before { background: #2F6D1A; }
.req-event-needs_info::before { background: #B57600; }
.req-event-taken::before, .req-event-posted::before { background: var(--brand); }
.req-event-text { margin-top: 2px; white-space: normal; }
.req-cancel { margin-top: 16px; }
@media (prefers-color-scheme: dark) {
  .req-awaiting_approval, .req-needs_info { background: #3A2E12; color: #EFB04A; }
  .req-in_progress { background: #1A2A40; color: #8DB8EC; }
  .req-done { background: #1E3320; color: #97C459; }
  .req-declined, .req-cancelled { background: #2A2A2A; color: #A3ABB8; }
}
@media (max-width: 640px) { .req-row { grid-template-columns: minmax(0, 1fr) auto; } .req-ref { grid-column: 1 / -1; } }

/* Requests page: forms grouped under sections */
.req-section + .req-section { margin-top: 24px; }
.req-section-title { margin: 16px 0 0; font-size: 1rem; font-weight: 700; color: var(--ink, inherit); }
.req-section-lead { margin: 4px 0 0; }
.req-section-title + .tiles, .req-section-lead + .tiles { margin-top: 10px; }
