/* Serif for the login page, bundled with the app (works without internet) */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/playfair-display-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
:root {
  --bg: #f6f4f1;
  --panel: #ffffff;
  --ink: #1f1b1d;
  --muted: #6d6669;
  --line: #e7e2de;
  --accent: #7a1f3d;
  --accent-soft: #f6e9ee;
  --ok: #1f7a4d; --ok-soft: #e4f4ea;
  --warn: #9a6200; --warn-soft: #fdf1d9;
  --info: #1e5aa8; --info-soft: #e5eefb;
  --bad: #b42318; --bad-soft: #fde8e6;
  --grey-soft: #eeecea;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 1px 8px rgba(0,0,0,.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 14px; line-height: 1.45; }
a { color: var(--accent); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: var(--bad); min-height: 1em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { background: var(--panel); padding: 32px; border-radius: 14px; box-shadow: var(--shadow); width: min(380px, 100%); display: grid; gap: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .5px; }
.brand-mark.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 7px; }

/* layout */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { background: #231a1e; color: #e9e2e5; display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; gap: 10px; align-items: center; font-weight: 600; padding: 4px 8px 18px; color: #fff; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a { color: #d8ced2; text-decoration: none; padding: 8px 10px; border-radius: 7px; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: var(--accent); color: #fff; }
.nav-group { padding: 12px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a99da2; }
.nav-group:first-child { padding-top: 0; }
.alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.alert { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; text-decoration: none; border: 1px solid; }
.alert b { font-size: 26px; min-width: 32px; font-variant-numeric: tabular-nums; }
.alert span { display: flex; flex-direction: column; font-size: 12.5px; }
.alert strong { font-size: 14px; }
.alert.red { background: var(--bad-soft); border-color: #f5c6c0; color: #7a160f; }
.alert.amber { background: var(--warn-soft); border-color: #f1ddb0; color: #5e3d00; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.dropzone { border: 1.5px dashed #cfc6c1; border-radius: 10px; padding: 18px; text-align: center; background: #fbfaf8; display: grid; gap: 8px; justify-items: center; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.recording { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: 10px; margin-top: 14px; }
.recording .who { font-size: 15px; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn.link { border: 0; background: none; color: var(--bad); text-decoration: underline; padding: 8px 4px; }
button.card-filter { text-align: left; font: inherit; cursor: pointer; color: inherit; border: 2px solid var(--line); }
button.card-filter[aria-pressed="true"] { border-color: var(--accent); }
.legend-days { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; }
.legend-days i { display: inline-block; width: 12px; height: 12px; border-radius: 99px; margin-right: 6px; vertical-align: -2px; }
.week-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12.5px; }
.week-bars { display: grid; gap: 3px; }
.week-bar { display: flex; align-items: center; gap: 8px; }
.week-bar div { height: 9px; border-radius: 2px; min-width: 2px; }
.me { margin-top: auto; padding: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.me a { color: #d8ced2; }
.me-actions { margin-top: 4px; }
.topbar { display: none; }
main { padding: 24px 28px 60px; max-width: 1280px; width: 100%; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* components */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); display: block; }
.tile:hover { border-color: var(--accent); }
.tile .label { color: var(--muted); font-size: 12.5px; }
.tile .value { font-size: 28px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .hint { font-size: 12px; color: var(--muted); }
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 550; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: #cfc6c1; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: none; font-size: 20px; cursor: pointer; color: inherit; padding: 4px 8px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label { display: grid; gap: 4px; font-weight: 550; font-size: 13px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > label { flex: 1 1 160px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--accent); color: #fff; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #faf8f6; font-weight: 600; font-size: 12.5px; color: var(--muted); position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #fbf7f8; }
tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--grey-soft); color: var(--muted); }
.badge.shot { background: var(--warn-soft); color: var(--warn); }
.badge.edited { background: var(--info-soft); color: var(--info); }
.badge.uploaded { background: var(--ok-soft); color: var(--ok); }
.badge.raw { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }

.progress { height: 8px; background: var(--grey-soft); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .15s; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { background: var(--grey-soft); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.chip b { font-variant-numeric: tabular-nums; }
.notice { padding: 10px 12px; border-radius: 8px; background: var(--info-soft); color: #173f73; margin: 10px 0; }
.notice.ok { background: var(--ok-soft); color: #134a30; }
.notice.warn { background: var(--warn-soft); color: #6b4400; }
.notice.bad { background: var(--bad-soft); color: #7a160f; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 70px; gap: 8px; align-items: center; font-size: 12.5px; }
.bar-track { height: 14px; background: var(--grey-soft); border-radius: 4px; display: flex; overflow: hidden; }
.bar-track .r { background: #e0a43a; } .bar-track .e { background: #4f86cf; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
pre.code { background: #1f1b1d; color: #f3ecef; padding: 12px; border-radius: 8px; overflow: auto; font-size: 12px; max-height: 360px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; }
.kv div:nth-child(odd) { color: var(--muted); }
details summary { cursor: pointer; color: var(--accent); margin: 6px 0; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #231a1e; color: #fff; padding: 10px 16px; border-radius: 9px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--bad); }
.drawer { position: fixed; inset: 0; background: rgba(20,12,16,.35); z-index: 40; display: flex; justify-content: flex-end; }
.drawer-panel { background: var(--bg); width: min(760px, 100%); height: 100%; overflow-y: auto; padding: 22px; position: relative; }
.drawer-close { position: absolute; right: 12px; top: 12px; }

@media (max-width: 900px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; width: 240px; left: -260px; transition: left .2s; }
  .shell.nav-open .sidebar { left: 0; }
  .topbar { display: flex; align-items: center; gap: 8px; background: #231a1e; color: #fff; padding: 8px 12px; position: sticky; top: 0; z-index: 20; font-weight: 600; }
  main { padding: 16px; }
  .kv { grid-template-columns: 1fr; }
  .tile .value { font-size: 24px; }
}

/* ---------- v2: tasks, roles, mobile capture ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: #f2b33d; color: #2b1d00; font-size: 12px; font-weight: 700; }
.seg button { min-height: 40px; }
.task-list { display: grid; gap: 12px; }
.task { margin: 0; }
.task.completed { opacity: .78; }
.task-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.task-title { font-size: 16px; margin: 0 0 4px; }
.task-notes { margin: 0 0 6px; white-space: pre-line; }
.task .btn { min-height: 44px; }
label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; min-height: 32px; }
label.check input { width: 18px; height: 18px; flex-shrink: 0; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 10px; margin: 0; }
legend { font-weight: 600; font-size: 13px; padding: 0 6px; color: var(--muted); }
.brand-pick { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 10px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #d9d2cd; background: #fff; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.req { color: var(--bad); }

/* Mobile capture: one-hand phone layout */
.cap { max-width: 640px; margin: 0 auto; padding-bottom: 96px; }
.cap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.cap-task { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin-bottom: 12px; border-radius: 10px; background: var(--warn-soft); color: #5e3d00; text-decoration: none; }
.cap-task span { font-size: 13px; }
.cap-sku { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-bottom: 14px; }
.cap-sku input { font-size: 20px; font-weight: 600; letter-spacing: .02em; min-height: 52px; text-transform: uppercase; }
.cap-sku .btn { min-height: 52px; justify-content: center; }
.cap-scan { gap: 6px; }
.cap-card { padding: 16px; }
.cap-sku-title { font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.cap-field { margin-top: 16px; }
.cap-label { font-weight: 600; margin-bottom: 8px; display: block; }
.cap-field textarea, .cap-field select { width: 100%; font-size: 16px; min-height: 48px; }
.cap-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.cap-bar .btn { min-height: 52px; justify-content: center; font-size: 16px; }
@media (min-width: 761px) { .cap-bar { left: 220px; } .cap-bar { max-width: none; } }
.cap-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cap-recent button { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; min-height: 52px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.cap-recent span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scanner { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.scanner #reader { width: min(100%, 480px); }
.scanner .btn { min-height: 48px; min-width: 140px; justify-content: center; }
@media (max-width: 760px) {
  body.page-capture main { padding: 12px 12px 0; }
  .cap-sku { grid-template-columns: 1fr auto; }
  .cap-sku .btn.primary { grid-column: 1 / -1; }
}

/* HRMS single sign-on on the login card */
.sso-btn { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; }
.sso-switch { display: block; text-align: center; margin-top: 8px; color: var(--muted); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 14px 0 2px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* ===================== Login: split screen (photo | saree border | sign-in) ===================== */
#login { --cream: #f8f5ef; --maroon: #7a1f3d; --maroon-deep: #2a0f17; --gold: #d9b45a; --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  display: grid; grid-template-columns: minmax(0, 1.1fr) 48px minmax(420px, 0.9fr); min-height: 100vh; padding: 0; place-items: stretch; background: var(--cream); }
#login.hidden { display: none; }
.login-art { position: relative; overflow: hidden; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(ellipse at 20% 20%, #4a1626 0%, #2a0f17 60%, #1a080e 100%); background-size: cover; background-position: center; }
.login-art::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,8,12,.55) 0%, rgba(20,8,12,.15) 35%, rgba(20,8,12,.55) 62%, rgba(20,8,12,.88) 100%); }
.login-art > * { position: relative; z-index: 1; }
.art-brand { display: grid; gap: 6px; }
.art-dot { width: 16px; height: 16px; border-radius: 50%; background: #9b2b45; margin-left: 52px; }
.art-word { font-family: var(--serif); font-size: 46px; line-height: 1; letter-spacing: -.01em; }
.art-sub { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .28em; opacity: .9; }
.art-sub i { display: inline-block; width: 34px; border-top: 2px solid #c33a5a; }
.art-copy { display: grid; gap: 18px; max-width: 760px; }
.art-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #f08aa3; }
.art-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.art-lead { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 560px; }
.art-features { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.28); }
.art-features div { display: grid; gap: 4px; }
.art-features b { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.art-features span { font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.78); }

/* the saree-border strip */
.login-border { background-color: #6e1630;
  background-image:
    linear-gradient(90deg, transparent 22px, var(--gold) 22px, var(--gold) 24px, transparent 24px),
    radial-gradient(circle at 24px 14px, var(--gold) 0 3px, transparent 3.5px),
    repeating-linear-gradient(180deg, transparent 0 26px, var(--gold) 26px 28px),
    linear-gradient(90deg, #5a1027 0 6px, transparent 6px calc(100% - 6px), #5a1027 calc(100% - 6px));
  background-size: 48px 100%, 48px 28px, 48px 28px, 100% 100%;
  background-repeat: no-repeat, repeat-y, repeat-y, no-repeat;
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 100%);
}
.login-panel { display: grid; place-items: center; padding: 48px 24px;
  background-color: var(--cream);
  background-image: linear-gradient(rgba(122,31,61,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(122,31,61,.035) 1px, transparent 1px);
  background-size: 40px 40px; }
#login .login-card { background: transparent; box-shadow: none; padding: 0; width: min(440px, 100%); display: block; border-radius: 0; }
.lp-brand { text-align: center; margin-bottom: 26px; }
.lp-dot { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--maroon); margin: 0 auto 10px; }
.lp-word { font-family: var(--serif); font-weight: 500; font-size: 60px; line-height: 1; margin: 0; color: #1c1416; letter-spacing: -.02em; }
.lp-sub { margin: 8px 0 0; font-size: 12.5px; letter-spacing: .28em; color: #5f5357; }
.lp-eyebrow { text-align: center; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--maroon); }
.lp-title { text-align: center; font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 8px 0 6px; color: #1c1416; }
.lp-help { text-align: center; color: #5f5357; margin: 0 0 24px; }
.lp-label { display: block; font-size: 13.5px; font-weight: 600; color: #1c1416; margin: 16px 0 7px; }
.lp-field { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid #e4ddd5; border-radius: 10px; min-height: 52px; transition: border-color .15s, box-shadow .15s; }
.lp-field:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(122,31,61,.12); }
.lp-field > svg { width: 20px; height: 20px; margin: 0 4px 0 16px; fill: none; stroke: #8a7f83; stroke-width: 1.6; stroke-linecap: round; flex-shrink: 0; }
.lp-field input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 14px 12px; min-width: 0; outline: none; color: #1c1416; }
.lp-eye { border: 0; background: none; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; color: #6b6064; }
.lp-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lp-eye[aria-pressed="true"] { color: var(--maroon); }
.lp-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 16px 0 6px; }
.lp-check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: #4a4044; font-size: 14.5px; min-height: 44px; }
.lp-check input { width: 20px; height: 20px; accent-color: var(--maroon); }
.lp-link { border: 0; background: none; padding: 10px 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--maroon); cursor: pointer; }
.lp-link:hover { text-decoration: underline; }
.lp-note { margin: 0 0 6px; padding: 10px 12px; border-radius: 8px; background: #f3e6ea; color: #5c1530; font-size: 13.5px; }
.lp-error { color: #a3261b; min-height: 1.2em; margin: 6px 0; font-size: 14px; }
.lp-submit { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(90deg, var(--maroon-deep) 0%, #5c1530 55%, #9b2b3d 100%); color: #fff; font: inherit; font-size: 17px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(92,21,48,.28); text-decoration: none; transition: filter .15s, transform .05s; }
.lp-submit:hover { filter: brightness(1.12); color: #fff; }
.lp-submit:active { transform: translateY(1px); }
.lp-submit:disabled { opacity: .6; cursor: wait; }
.lp-foot { text-align: center; color: #5f5357; font-size: 14px; line-height: 1.5; margin: 24px 0 0; }
#login .sso-btn { margin-bottom: 4px; }
#login .notice { margin: 0 0 14px; }

@media (max-width: 1080px) { #login { grid-template-columns: minmax(0, 1fr) 40px minmax(380px, 1fr); } .login-art { padding: 40px; } }
/* phones and small tablets: sign-in only, border becomes a top band */
@media (max-width: 860px) {
  #login { grid-template-columns: minmax(0, 1fr); grid-template-rows: 18px 1fr; }
  .login-panel { min-width: 0; }
  .lp-sub { letter-spacing: .2em; }
  .login-art { display: none; }
  .login-border { background-size: 100% 18px, 28px 18px, 28px 18px, 100% 100%;
    background-image: linear-gradient(180deg, transparent 8px, var(--gold) 8px, var(--gold) 10px, transparent 10px),
      radial-gradient(circle at 14px 9px, var(--gold) 0 2.5px, transparent 3px),
      repeating-linear-gradient(90deg, transparent 0 26px, var(--gold) 26px 28px),
      linear-gradient(180deg, #5a1027 0 3px, transparent 3px calc(100% - 3px), #5a1027 calc(100% - 3px));
    background-repeat: no-repeat, repeat-x, repeat-x, no-repeat; }
  .login-panel { padding: 32px 16px 40px; align-items: start; }
  .lp-word { font-size: 46px; }
  .lp-title { font-size: 28px; }
}

.brand-preview { height: 220px; border-radius: 10px; background: radial-gradient(ellipse at 20% 20%, #4a1626, #2a0f17 70%); background-size: cover; background-position: center; display: grid; place-items: center; color: #f3dde3; font-size: 14px; }

.row-brand { min-height: 36px; padding: 4px 8px; font-size: 13.5px; }

/* Zync Studio logo */
.side-logo { display: block; width: 150px; height: auto; margin: 2px auto 0; }
.art-logo { display: block; width: 230px; height: auto; }
.lp-logo { margin: 0; line-height: 0; }
.lp-logo img { display: block; width: 270px; max-width: 80%; height: auto; margin: 0 auto; }
@media (max-width: 760px) { .lp-logo img { width: 210px; } }

/* dashboard: small stat grid, tasks summary, week "live" count */
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-stats a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line, #e7e1dc); border-radius: 10px; color: inherit; text-decoration: none; }
.mini-stats a:hover { border-color: var(--accent); }
.mini-stats b { font-size: 22px; font-weight: 650; }
.mini-stats b.warn { color: #b4232f; }
.mini-stats span { font-size: 12.5px; color: var(--muted, #6b6064); }
.task-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.week-row small.up { display: block; font-size: 11px; color: #2e7d4f; }

/* dashboard period filter */
.dash-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -4px 0 18px; }
.dash-filter .seg button { padding: 8px 14px; }
.dash-custom { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-custom label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
@media (max-width: 760px) {
  .dash-filter .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .dash-filter .seg button { padding: 8px 6px; }
}
