/* Gateway Helpdesk — one stylesheet, no build step. --brand is set per-install from Settings. */
:root {
  --brand: #0E7CB8;        /* logo blue, dark enough for white text */
  --brand-light: #29ABE2;  /* the bright blue in the logo */
  --accent: #7AC943;       /* logo green */
  --accent-dark: #5C9E2C;
  --ink: #1b2430;
  --ink-2: #4a5566;
  --muted: #6b7788;
  --line: #e3e7ed;
  --bg: #f4f6f9;
  --card: #fff;
  --side: #0A2A44;
  --side-ink: #bcd4e6;
  --ok: #1a7f4b;
  --warn: #b25e00;
  --bad: #c62828;
  --note: #fff8e1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  font-size: 15px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: 0 0 .15rem; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: .4rem 0 .2rem; }
h3 { font-size: .95rem; margin: 0 0 .6rem; }
h4 { font-size: .8rem; margin: 1rem 0 .4rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
p { margin: .3rem 0; }
small { font-size: .82em; }
hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 0; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* ---------- forms */
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
label small { font-weight: 400; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #cfd6df; border-radius: 7px;
  padding: .55rem .7rem; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input[type=color] { padding: .15rem; height: 2.5rem; width: 5rem; }
input:disabled { background: var(--bg); color: var(--muted); }
textarea { resize: vertical; }
.check-inline { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: .9rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
fieldset.days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
fieldset.days legend { font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: .3rem; }
.file-input { flex-direction: row; align-items: center; gap: .6rem; font-weight: 400; cursor: pointer; }
.file-input input { width: auto; border: 0; padding: 0; font-size: .85rem; }
.file-input span { display: none; }
.hint { background: #eef5ff; border-radius: 7px; padding: .6rem .8rem; color: var(--ink-2); font-size: .9rem; }
input.xs { width: 5rem; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .9rem;
  padding: .55rem 1rem; border-radius: 7px; border: 1px solid #cfd6df; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #f1f4f8; text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, #000); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-sm { padding: .35rem .7rem; font-size: .82rem; }
.btn-block { width: 100%; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; opacity: .8; }
button.link:hover { opacity: 1; text-decoration: underline; }

/* ---------- badges */
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.status-open { background: #e3efff; color: #0b4f99; }
.status-pending { background: #fff1d6; color: #8a4b00; }
.status-on_hold { background: #efe7ff; color: #5b34a8; }
.status-resolved { background: #dff5e8; color: #17663d; }
.status-closed { background: #eceff3; color: #5b6573; }
.prio-low { background: #eceff3; color: #5b6573; }
.prio-normal { background: #e3efff; color: #0b4f99; }
.prio-high { background: #ffe7d1; color: #9a4400; }
.prio-urgent { background: #c62828; color: #fff; }
.sla { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.sla-ok { color: var(--muted); }
.sla-warn { color: var(--warn); }
.sla-breached { color: var(--bad); }
.sla-met { color: var(--ok); }
.sla-paused { color: #5b34a8; }
.tag { display: inline-block; font-size: .72rem; padding: .05rem .45rem; border-radius: 4px; background: #eceff3; color: var(--ink-2); font-weight: 600; }
.tag-note { background: #ffe9a8; color: #6b4d00; }

/* ---------- alerts & cards */
.alert { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .92rem; border: 1px solid; }
.alert-success { background: #e9f7ef; border-color: #b7e2c8; color: #145c36; }
.alert-error { background: #fdecea; border-color: #f5c2bd; color: #8e1c16; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card.narrow { max-width: 720px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.card-head h3 { margin: 0; }
.muted-card { background: #f8fafc; color: var(--ink-2); box-shadow: none; }
.empty-state { text-align: center; padding: 2.5rem 1rem; }
.empty-state .big { font-size: 3rem; font-weight: 800; color: var(--line); margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.crumbs { margin: 0 0 .5rem; font-size: .88rem; }
.head-badges { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* ---------- staff shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; background: var(--side); color: var(--side-ink); padding: 1rem .8rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .6rem; color: inherit; font-weight: 700; line-height: 1.15; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-weight: 400; opacity: .7; font-size: .78rem; }
.logo { width: 36px; height: 36px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.sidebar .brand { color: #fff; padding: .2rem .3rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.sidebar nav a { display: flex; justify-content: space-between; align-items: center; padding: .45rem .6rem; border-radius: 7px; color: var(--side-ink); font-size: .9rem; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.sidebar nav em { font-style: normal; font-size: .75rem; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 0 .5rem; min-width: 1.6rem; text-align: center; }
.sidebar nav em.hot { background: var(--bad); color: #fff; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .5; margin: .9rem .6rem .3rem; }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: .8rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .85rem; }
.me { display: flex; gap: .5rem; align-items: center; color: #fff; line-height: 1.2; }
.me small { display: block; opacity: .6; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 70%, #fff); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.avatar.sm { width: 26px; height: 26px; font-size: .68rem; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .search { flex: 1; max-width: 640px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }
.content { padding: 1.5rem; max-width: 1400px; width: 100%; }

/* ---------- queue */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; color: var(--ink); box-shadow: var(--shadow); }
a.stat:hover { text-decoration: none; border-color: var(--brand); }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); }
.stat-hot b { color: var(--bad); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters input[type=search] { flex: 1 1 220px; }
.filters select { flex: 0 1 190px; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .65rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { display: block; color: var(--muted); font-size: .78rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
tr.inactive { opacity: .55; }
th.num, td.num { text-align: right; }
td.check, th.check { width: 2rem; padding-right: 0; }
.t-subject { min-width: 230px; }
.t-subject a { font-weight: 600; color: var(--ink); }
.tickets td:nth-child(3) { min-width: 140px; }
.tickets tr.prio-row-urgent td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tickets tr.prio-row-high td:first-child { box-shadow: inset 3px 0 0 #e07b00; }
table.simple th, table.simple td { padding: .45rem .5rem; }
.bulk-bar { display: flex; gap: .6rem; align-items: center; background: var(--side); color: #fff; padding: .5rem .8rem; border-radius: 8px; margin-bottom: .6rem; flex-wrap: wrap; }
.bulk-bar select { width: auto; max-width: 260px; padding: .35rem .5rem; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1rem; }
.tabs { display: flex; gap: .3rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem .8rem; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: .9rem; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs.compact { border: 0; margin: 0; }
.tabs-sep { width: 1px; height: 1.2rem; background: var(--line); margin: 0 .4rem; }

/* ---------- ticket page */
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
.side-col { display: flex; flex-direction: column; }
.side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem .8rem; font-size: .88rem; }
.side dt { color: var(--muted); }
.side dd { margin: 0; }
.inline-title input { font-size: 1.45rem; font-weight: 700; border-color: transparent; padding: .1rem .3rem; margin-left: -.3rem; background: transparent; }
.inline-title input:hover { border-color: var(--line); }
.inline-title input:focus { background: #fff; }
.thread { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.msg.from-staff { border-left: 3px solid var(--brand); }
.msg.from-client { border-left: 3px solid #9aa5b4; }
.msg.note { background: var(--note); border-color: #f1dc9a; border-left: 3px solid #e0a800; }
.msg-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; font-size: .9rem; }
.msg-head time { margin-left: auto; color: var(--muted); font-size: .8rem; }
.msg-body { overflow-wrap: anywhere; }
.files { list-style: none; margin: .7rem 0 0; padding: .6rem 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; }
.event { font-size: .82rem; color: var(--muted); padding: 0 .4rem; display: flex; gap: .5rem; justify-content: center; text-align: center; }
.reply-box textarea { min-height: 8rem; }
.reply-box.is-note { background: var(--note); border-color: #f1dc9a; }
.reply-tabs { display: flex; gap: 1.2rem; }
.reply-tabs label { flex-direction: row; align-items: center; gap: .4rem; cursor: pointer; }
.reply-actions { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; }
.reply-actions label:first-child { flex-direction: row; align-items: center; font-weight: 400; gap: .5rem; margin-right: auto; }
.reply-actions select { width: auto; }
.mini-list { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.mini-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .4rem; flex-wrap: wrap; align-items: baseline; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .badge { margin-left: auto; }
details.new-contact summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: .9rem; margin-bottom: .6rem; }
.wide-form { max-width: 980px; }

/* ---------- reports */
.report-grid { align-items: start; }
.bar-row { display: grid; grid-template-columns: minmax(0, 9rem) 1fr 2.2rem; gap: .6rem; align-items: center; font-size: .86rem; margin-bottom: .4rem; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { background: #eef1f5; border-radius: 4px; height: .7rem; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-light), var(--accent)); border-radius: 4px; }
.bar-row b { text-align: right; }

/* ---------- settings */
.settings-save { position: sticky; bottom: 0; background: var(--bg); padding: .8rem 0; }
.sla-table input { max-width: 8rem; }
.test-email { margin: -.2rem 0 1rem; }

/* ---------- client portal */
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 1.2rem; }
.client-bar { background: #fff; border-bottom: 1px solid var(--line); }
.client-bar .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: .8rem; gap: 1rem; flex-wrap: wrap; }
.client-bar nav { display: flex; gap: 1.1rem; align-items: center; font-size: .92rem; }
.client-bar nav a { color: var(--ink-2); font-weight: 600; }
.client-bar nav a.active { color: var(--brand); }
.client-bar nav a.btn-primary { color: #fff; }
.client-main { padding-block: 1.8rem; min-height: 70vh; }
.client-foot { padding-block: 1.5rem 2rem; color: var(--muted); font-size: .85rem; }
.ticket-layout.client { grid-template-columns: minmax(0, 1fr) 260px; }
.list { padding: 0; }
.list-row { display: flex; gap: 1rem; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fafbfd; text-decoration: none; }
.row-title { font-weight: 600; }
.row-meta { font-size: .82rem; color: var(--muted); }

/* ---------- auth pages */
body.bare { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem 1rem; background: linear-gradient(160deg, var(--side) 0 38%, var(--bg) 38%); }
.auth { width: 100%; max-width: 440px; }
.auth-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 1.2rem; line-height: 1.2; }
.auth-brand small { display: block; font-weight: 400; opacity: .7; font-size: .82rem; }
.auth-card { padding: 1.8rem; }
.auth-card h1 { margin-bottom: .3rem; }
.auth-card form { margin-top: 1.2rem; }
.auth-links { text-align: center; margin-top: 1.2rem; font-size: .9rem; }

/* ---------- small screens */
@media (max-width: 1000px) {
  .ticket-layout, .ticket-layout.client { grid-template-columns: 1fr; }
  .side-col { order: -1; }
}
@media (max-width: 800px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
  .sidebar.open { transform: none; }
  .menu-toggle { display: block; }
  .topbar, .content { padding-inline: 1rem; }
  .msg-head time { margin-left: 0; width: 100%; }
}

/* ---------- projects, assets, KB, time (added with the second feature set) */
.proj-planning { background: #eceff3; color: #5b6573; }
.proj-active { background: #e3efff; color: #0b4f99; }
.proj-on_hold { background: #efe7ff; color: #5b34a8; }
.proj-done { background: #dff5e8; color: #17663d; }
.proj-cancelled { background: #f3e2e2; color: #8e3b3b; }
.asset-in_use { background: #e3efff; color: #0b4f99; }
.asset-spare { background: #eceff3; color: #5b6573; }
.asset-repair { background: #fff1d6; color: #8a4b00; }
.asset-retired { background: #eceff3; color: #8b93a0; }
.asset-lost { background: #f3e2e2; color: #8e3b3b; }
.alert-warn { background: #fff7e6; border-color: #f0d9a8; color: #7a4d00; }
.progress-cell { min-width: 110px; }
.progress-cell small { color: var(--muted); }
.bar.big { height: 1rem; margin: .3rem 0 .6rem; }

.task-list { list-style: none; margin: .4rem 0; padding: 0; }
.task { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task.is-done strong { text-decoration: line-through; color: var(--muted); }
.task.is-milestone { background: #fffdf5; }
.task .row-meta { font-size: .8rem; color: var(--muted); }
.task .small { font-size: .85rem; }
.tick { background: none; border: 0; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--brand); padding: 0; }
.tick.static { cursor: default; color: var(--muted); }
.task-edit summary { cursor: pointer; color: var(--muted); list-style: none; padding: .1rem .35rem; }
.task-edit[open] { width: 100%; }
.task-edit[open] summary { color: var(--brand); }
.add-task { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; }
.add-task input[name=title] { flex: 1 1 240px; }
.add-task select, .add-task input[type=date] { width: auto; }
.row-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.row-delete { margin: -.6rem 0 1rem; text-align: right; }
.project-card { display: block; color: inherit; }
.project-card:hover { text-decoration: none; border-color: var(--brand); }

.time-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.time-form input[name=notes] { flex: 1 1 200px; }
.time-form input[name=duration] { width: 9rem; }
.time-form.stacked { flex-direction: column; align-items: stretch; }
.time-form.stacked input { width: 100%; }
.time-row { display: flex; gap: .5rem; align-items: center; }
.canned-picker { width: auto; max-width: 220px; margin-left: auto; padding: .3rem .4rem; font-size: .85rem; }
.asset-picker { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: .3rem; margin: .4rem 0; }
.small-summary { cursor: pointer; color: var(--brand); font-size: .85rem; font-weight: 600; }
.article { line-height: 1.65; }
.article p { margin-bottom: .8rem; }
.tag-row { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .3rem; }
a.tag:hover { background: var(--brand); color: #fff; text-decoration: none; }
.inline-field { flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; }
.inline-field input { width: auto; }
.rule fieldset.rule-line { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.rule fieldset.rule-line legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 .3rem; }
.rule fieldset.rule-line select, .rule fieldset.rule-line input { width: auto; flex: 0 1 auto; min-width: 140px; }
code { background: #eef1f5; padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }

/* ---------- job sheets and on-site sign-off */
.jobsheet-box .btn-block { margin-bottom: .5rem; }
.jobsheet-box .row-actions.spread { justify-content: space-between; }
.signed-line { background: #e9f7ef; border-radius: 7px; padding: .5rem .7rem; font-size: .88rem; }
.jobsheet-link { margin-top: .8rem; }

body.mobile-page { background: var(--bg); }
.mobile-bar { background: var(--side); color: #fff; padding: .7rem 1rem; padding-top: calc(.7rem + env(safe-area-inset-top, 0px)); }
.mobile-bar .brand { color: #fff; }
.mobile-main { max-width: 700px; margin: 0 auto; padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.signoff h1 { margin-bottom: .1rem; }
.signoff-summary dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem .8rem; margin: 0; font-size: .9rem; }
.signoff-summary dt { color: var(--muted); }
.signoff-summary dd { margin: 0; }
.signoff .card { padding: 1rem; }
.time-quick { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; margin: 0; }
.time-quick legend { font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: 0 .3rem; }
.sig-block h3 { margin-bottom: .3rem; }
.sigpad {
  width: 100%; height: 190px; border: 2px dashed #b9c3d0; border-radius: 10px; background: #fff;
  touch-action: none; display: block; margin: .5rem 0 .4rem;
}
.sig-actions { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.big-check { font-size: .95rem; background: #eef5ff; padding: .7rem .8rem; border-radius: 8px; align-items: flex-start; }
.big-check input { margin-top: .2rem; }
.btn-lg { padding: .9rem 1rem; font-size: 1rem; }
.signoff-foot { text-align: center; font-size: .88rem; margin-top: 1rem; }

/* ---------- brand logo and accent colour */
.brand-logo { height: 34px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.sidebar .brand-logo, .mobile-bar .brand-logo { max-width: 200px; }
.brand-logo.on-dark { filter: none; }
.auth-brand .brand-logo { height: 44px; max-width: 250px; margin: 0 auto; }
.client-bar .brand-logo { height: 38px; max-width: 220px; }
.sr-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tick { color: var(--accent-dark); }
.task.is-done .tick { color: var(--accent-dark); }
.status-resolved { background: #e8f6dc; color: #3f7a17; }
.proj-done { background: #e8f6dc; color: #3f7a17; }
.stat b { color: var(--ink); }
.sidebar nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.btn-accent { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-accent:hover { background: #4d8a22; }
.brand-preview { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: .8rem; }
.brand-preview img { max-height: 56px; max-width: 260px; }
.brand-preview.dark { background: var(--side); }
.swatches { display: flex; gap: .6rem; flex-wrap: wrap; }
.swatch { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); }
.swatch i { width: 22px; height: 22px; border-radius: 6px; display: block; border: 1px solid rgba(0,0,0,.1); }
