/* Benoft Attendance — design system (orange theme, taken from the app icon), top menu bar like the Employee Portal */
:root {
  --ink: #17110d;
  --ink-2: #221a14;
  --ink-line: #33281f;
  --brand: #ea580c;
  --brand-500: #f97316;
  --brand-600: #d9480f;
  --brand-700: #c2410c;
  --brand-50: #fff5ed;
  --brand-100: #ffe6d1;
  --brand-200: #fdcaa3;
  --amber: #f59e0b;
  --gold: #a8650a;
  --gold-bg: #fff6dc;
  --grad: linear-gradient(135deg, #f04a05 0%, #fb8a05 55%, #fcc203 100%);
  --grad-btn: linear-gradient(180deg, #f2661a 0%, #e04f0b 100%);
  --ring: 0 0 0 4px rgba(234, 88, 12, .16);
  --bg: #f8f6f3;
  --card: #ffffff;
  --text: #1c1917;
  --text-2: #44403c;
  --muted: #736b64;
  --line: #ebe6e0;
  --line-2: #f3efea;
  --input-line: #ddd6ce;
  --hover: #fff8f2;
  --good: #0c8a4f;
  --good-bg: #e8f7ef;
  --warn: #9a5b00;
  --warn-bg: #fff4d6;
  --bad: #c22b2b;
  --bad-bg: #fdeded;
  --info: #c2410c;
  --info-bg: #fff1e6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(41, 24, 10, .05);
  --shadow: 0 1px 3px rgba(41, 24, 10, .06), 0 1px 2px rgba(41, 24, 10, .04);
  --shadow-lg: 0 12px 32px rgba(41, 24, 10, .12);
  --shadow-hover: 0 10px 24px rgba(41, 24, 10, .09), 0 2px 6px rgba(234, 88, 12, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
       -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--brand-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: #9a3412; text-decoration: none; }
h1 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; margin: 0; }
h2 { font-size: 15px; letter-spacing: -.01em; font-weight: 650; margin: 0 0 14px; }
h3 { font-size: 13px; font-weight: 650; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.icon { flex: none; display: inline-block; vertical-align: middle; }
::selection { background: var(--brand-100); color: var(--text); }

/* ---------- layout: top app bar with a mega menu ---------- */
.layout { display: block; min-height: calc(100vh - 128px); }
.appbar { position: sticky; top: 0; z-index: 50; view-transition-name: appbar; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(41, 24, 10, .05); }
.appbar-top { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; color: #d4ccc4;
  background: var(--ink); background-image: radial-gradient(60% 160% at 0% 0%, rgba(240, 104, 10, .28) 0, transparent 60%); }
.appbar .wordmark { display: flex; align-items: center; gap: 10px; color: #fff; }
.appbar .wordmark:hover { color: #fff; }
.appbar .wordmark img { width: 32px; height: 32px; filter: drop-shadow(0 3px 8px rgba(240, 104, 10, .4)); transition: transform .35s var(--ease); }
.appbar .wordmark:hover img { transform: rotate(-6deg) scale(1.06); }
.appbar .wordmark b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.appbar .wordmark small { display: block; font-size: 11px; font-weight: 500; color: #fdba74; }
.appbar-company { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
  font-weight: 600; color: #fbe6db; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09);
  max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-gap { flex: 1; }
.usermenu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer;
  padding: 5px 8px 5px 5px; border-radius: 10px; font: inherit; transition: background .15s; }
.user-btn:hover, .usermenu.open .user-btn { background: rgba(255, 255, 255, .08); }
.user-btn .avatar, .user-head .avatar { width: 32px; height: 32px; font-size: 12px; background: var(--grad); color: #fff; }
.user-meta { text-align: left; line-height: 1.2; }
.user-meta b { display: block; font-size: 13px; }
.user-meta small { display: block; font-size: 11px; color: #a39a92; }
.user-btn .caret { color: #a39a92; transform: rotate(90deg); transition: transform .2s var(--ease); }
.usermenu.open .user-btn .caret { transform: rotate(-90deg); }
.user-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.usermenu.open .user-panel { display: block; animation: drop .18s var(--ease) both; }
.user-head { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.user-head b { display: block; font-size: 13.5px; }
.user-head small { display: block; color: var(--muted); font-size: 12px; }
.user-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.user-panel a:hover { background: var(--hover); color: var(--brand-700); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 6px; border-radius: 8px; cursor: pointer; }
.menu-toggle:hover { background: rgba(255, 255, 255, .08); }

/* the menu bar: icon on top, name underneath; a panel of grouped links drops down on hover */
.menubar { background: var(--card); padding: 0 16px; position: relative; }
.menu-items { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; height: 72px; }
.menu-item { position: relative; display: flex; }
.menu-item[hidden], .more-block[hidden] { display: none !important; }
.menu-item.sep { margin-left: 10px; padding-left: 12px; }
.menu-item.sep::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.menu-top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 84px;
  padding: 8px 14px; background: none; border: 0; font: inherit; color: var(--text-2); cursor: pointer; position: relative;
  white-space: nowrap; transition: color .15s ease, background .15s ease; }
.menu-top:hover, .menu-item.open > .menu-top { color: var(--brand-700); background: var(--hover); }
.menu-top::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--grad); transform: scaleX(0); transition: transform .25s var(--ease); }
.menu-item.on > .menu-top { color: var(--brand-700); }
.menu-item.on > .menu-top::after, .menu-item.open > .menu-top::after { transform: scaleX(1); }
.menu-item.open:not(.on) > .menu-top::after { opacity: .35; }
.menu-ico { display: flex; width: 38px; height: 30px; align-items: center; justify-content: center; border-radius: 9px;
  color: #7a716a; transition: color .15s ease, background .15s ease, transform .2s var(--ease); }
.menu-top:hover .menu-ico, .menu-item.open .menu-ico { color: var(--brand); transform: translateY(-1px); }
.menu-item.on .menu-ico { color: var(--brand); background: var(--brand-50); }
.menu-label { font-size: 12.5px; font-weight: 600; letter-spacing: .005em; }
.menu-top:focus-visible { outline: none; box-shadow: inset var(--ring); border-radius: 8px; }
/* names only when the icons do not fit */
.menubar.compact .menu-items { height: 50px; }
.menubar.compact .menu-ico { display: none; }
.menubar.compact .menu-top { min-width: 0; padding: 8px 14px; }
.menubar.compact .menu-label { font-size: 13.5px; }

.mega { position: absolute; left: 0; top: 100%; z-index: 55; display: none; padding-top: 6px; }
.menu-item.open > .mega { display: block; animation: drop .18s var(--ease) both; }
.menu-item.flip > .mega { left: auto; right: 0; }
.mega-inner { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 14px; display: grid; gap: 6px 18px; grid-template-columns: repeat(var(--cols, 1), 290px); }
.mega-inner.cols-2 { --cols: 2; }
.mega-inner.cols-3 { --cols: 3; }
.mega-title { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  padding: 4px 10px 8px; }
.mega-group + .mega-group { border-left: 1px solid var(--line-2); padding-left: 18px; margin-left: -9px; }
.mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: var(--text);
  transition: background .15s ease; }
.mega-link:hover { background: var(--hover); color: var(--text); }
.mega-link b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.mega-link small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.mega-ico { flex: none; display: flex; width: 34px; height: 34px; border-radius: 9px; align-items: center; justify-content: center;
  background: var(--bg); color: #6b625a; transition: background .15s ease, color .15s ease; }
.mega-link:hover .mega-ico { background: var(--brand-50); color: var(--brand); }
.mega-link:hover b { color: var(--brand-700); }
.mega-link.active { background: var(--brand-50); }
.mega-link.active .mega-ico { background: var(--brand); color: #fff; }
.mega-link.active b { color: var(--brand-700); }
.mega-more { left: auto; right: 0; }
.menu-item.open > .mega-more { display: block; }
.mega-more { max-height: calc(100vh - 150px); overflow-y: auto; width: 330px; margin-top: 6px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.mega-more .mega-inner { grid-template-columns: 1fr !important; box-shadow: none; border: 0; padding: 0 0 6px; border-radius: 0; }
.mega-more .mega-group + .mega-group { border-left: 0; padding-left: 0; margin-left: 0; }
.mega-more .more-block + .more-block { border-top: 1px solid var(--line-2); padding-top: 6px; }
.more-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text); padding: 8px 10px 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .appbar-top { padding: 0 12px; gap: 10px; }
  .appbar-company, .user-meta { display: none; }
  .menu-toggle { display: flex; }
  .menubar { display: none; padding: 0; border-top: 1px solid var(--line); max-height: calc(100vh - 56px); overflow-y: auto; }
  .menubar.mobile-open { display: block; }
  .menu-items { flex-direction: column; height: auto !important; gap: 0; padding: 6px 0; }
  .menu-item { flex-direction: column; }
  .menu-item.sep { margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); }
  .menu-item.sep::before, .menu-item.more { display: none; }
  .menu-top { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 16px; min-width: 0; width: 100%; }
  .menu-top::after { display: none; }
  .menubar .menu-ico { display: flex !important; width: 32px; height: 28px; }
  .menu-label { font-size: 14px; }
  .mega { position: static; padding: 0 12px 8px; }
  .mega-inner { grid-template-columns: 1fr !important; box-shadow: none; border-radius: 10px; background: var(--bg); padding: 8px; }
  .mega-group + .mega-group { border-left: 0; padding-left: 0; margin-left: 0; }
}

.main { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 128px); max-width: 1600px; margin: 0 auto; }
.acting { background: linear-gradient(90deg, #fff4e8, #ffecd6); color: #8a3a06; padding: 9px 32px; font-size: 13px;
          display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #fbd5b0; flex-wrap: wrap; }
.acting a { color: #8a3a06; font-weight: 600; text-decoration: underline; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 32px 18px; flex-wrap: wrap; }
.topbar .muted { font-size: 13.5px; }
.topbar h1 + .muted, .topbar h1 + .row { margin-top: 6px; }
.content { padding: 4px 32px 32px; flex: 1; }
.footer { padding: 0 32px 22px; color: #a39a92; font-size: 12px; }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
        margin-bottom: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; align-items: start; }
.card .grid { align-items: stretch; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Employee page: details take half the row, the two photos a quarter each. */
.grid.cols-detail { grid-template-columns: 2fr 1fr 1fr; }
.card .grid { gap: 14px; }
.card.table-wrap > .row:not(:has(*)) { display: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread h2 { margin-bottom: 0; }
.card > .spread:first-child { margin-bottom: 12px; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
        box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 9px; }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .sub, .stat .small { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat .chip { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
              background: var(--brand-50); color: var(--brand); flex: none; }
.stat.good .chip { background: var(--good-bg); color: var(--good); }
.stat.warn .chip { background: var(--warn-bg); color: var(--warn); }
.stat.bad .chip { background: var(--bad-bg); color: var(--bad); }
.stat.violet .chip { background: var(--gold-bg); color: var(--gold); }
.stat.gray .chip { background: #f3f0ec; color: #6b625a; }
.meter { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transform-origin: left;
               animation: meter-grow .9s var(--ease) .15s both; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0; }
.card.table-wrap > .row, .card.table-wrap > .spread, .card.table-wrap > h2, .card.table-wrap > p { margin: 0; padding: 14px 18px; }
.card.table-wrap > .row:first-child, .card.table-wrap > .spread:first-child { border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
     background: #fbfaf8; white-space: nowrap; border-bottom: 1px solid var(--line); }
th a { color: var(--muted); }
th a:hover { color: var(--text); text-decoration: none; }
.card.table-wrap th:first-child, .card.table-wrap td:first-child { padding-left: 18px; }
.card.table-wrap th:last-child, .card.table-wrap td:last-child { padding-right: 18px; }
.card.table-wrap tr:last-child td { border-bottom: 0; }
.card.table-wrap > table:first-child tr:first-child th:first-child { border-top-left-radius: var(--radius); }
.card.table-wrap > table:first-child tr:first-child th:last-child { border-top-right-radius: var(--radius); }
td { transition: background-color .15s ease; }
tr:hover td { background: var(--hover); }
.card:not(.table-wrap) table th { background: transparent; }
.card:not(.table-wrap) table td:first-child, .card:not(.table-wrap) table th:first-child { padding-left: 0; }
.card:not(.table-wrap) table td:last-child, .card:not(.table-wrap) table th:last-child { padding-right: 0; }
.card:not(.table-wrap) tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a:not(.btn) { font-weight: 550; color: var(--text); }
td a:not(.btn):hover, tr:hover td a:not(.btn) { color: var(--brand-700); }
.thumb { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--brand-50); display: inline-block;
         vertical-align: middle; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
span.thumb, .avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none;
                      font-size: 12px; font-weight: 650; color: var(--brand-600); background: var(--brand-50); letter-spacing: .02em; }
.avatar { width: 36px; height: 36px; }
.person { display: flex; align-items: center; gap: 12px; }
.person .who-name { font-weight: 600; color: var(--text); }
.person .who-sub { font-size: 12px; color: var(--muted); }
.photo { max-width: 220px; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- forms ---------- */
label { display: block; font-size: 12.5px; color: var(--text-2); margin: 0 0 6px; font-weight: 550; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date],
input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--input-line); border-radius: var(--radius-sm); font: inherit;
  background: #fff; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 80px; padding: 9px 12px; resize: vertical; }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23736b64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
input[type=file] { font: inherit; font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; border: 1px solid var(--input-line); background: #fff; border-radius: 7px;
  padding: 6px 12px; margin-right: 10px; cursor: pointer; color: var(--text); transition: background .15s, border-color .15s; }
input[type=file]::file-selector-button:hover { background: var(--brand-50); border-color: var(--brand-200); }
input::placeholder, textarea::placeholder { color: #aaa198; }
input:hover, select:hover, textarea:hover { border-color: #c9bfb4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 13.5px; color: var(--text); font-weight: 450; margin: 8px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; }
input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }
.inline-form { display: inline; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 16px 18px; }
.filters .field { margin: 0; min-width: 150px; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.help code, p code { font-family: var(--mono); font-size: 12px; background: #f5f1ec; padding: 1px 5px; border-radius: 5px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; border: 1px solid var(--input-line);
       background: #fff; color: var(--text); padding: 0 15px; border-radius: var(--radius-sm); font: inherit; font-weight: 550;
       cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm);
       transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s var(--ease); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover { text-decoration: none; background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: var(--grad-btn); border-color: #dc4d0b; color: #fff; font-weight: 600;
               text-shadow: 0 1px 1px rgba(130, 40, 0, .25);
               box-shadow: 0 1px 2px rgba(194, 65, 12, .35), 0 4px 12px -4px rgba(234, 88, 12, .45), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { background: linear-gradient(180deg, #ea5d12 0%, #cf460a 100%); border-color: #c2410c; color: #fff; transform: translateY(-1px);
                     box-shadow: 0 2px 4px rgba(194, 65, 12, .3), 0 10px 20px -6px rgba(234, 88, 12, .55), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover .icon { transform: translateX(2px); }
.btn.primary:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(194, 65, 12, .35), inset 0 2px 4px rgba(120, 35, 0, .25); }
.btn.primary:focus-visible { box-shadow: var(--ring), 0 4px 12px -4px rgba(234, 88, 12, .45); }
.btn.danger { color: var(--bad); border-color: #f0caca; }
.btn.danger:hover { background: var(--bad-bg); border-color: #e9aaaa; color: var(--bad); }
.btn.small { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- badges, flashes, misc ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 9px; border-radius: 999px; font-size: 12px;
         font-weight: 600; background: #f3f0ec; color: #57504a; white-space: nowrap; line-height: 1.4; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px;
         background: var(--good-bg); color: #08663a; border: 1px solid #c3ead4; font-weight: 500; }
.flash::before { content: "✓"; font-weight: 700; }
.flash.error { background: var(--bad-bg); color: #a32020; border-color: #f4cccc; }
.flash.error::before { content: "!"; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); color: #fff;
                       display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; margin-top: 1px; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--info-bg); color: #9a3412; margin-bottom: 18px;
          border: 1px solid var(--brand-100); }
.notice a { font-weight: 600; }
.notice.warn { background: var(--warn-bg); color: #7a4a00; border-color: #f6dfa6; }
.code { font-family: var(--mono); background: #f7f3ee; border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px;
        font-size: 12.5px; letter-spacing: .03em; white-space: nowrap; color: var(--text); }
pre.payload { background: var(--ink); color: #f3e3d3; padding: 14px; border-radius: 10px; overflow: auto; max-height: 320px;
              font-family: var(--mono); font-size: 12px; }
details summary { cursor: pointer; color: var(--brand-700); font-weight: 550; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; display: inline-flex; width: 18px; height: 18px; border-radius: 5px; align-items: center;
                          justify-content: center; background: var(--brand-50); font-weight: 700;
                          transition: background .15s, transform .2s var(--ease); }
details summary:hover::before { background: var(--brand-100); }
details[open] summary::before { content: "−"; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; font-weight: 500; }
.empty { text-align: center; padding: 34px 16px !important; color: var(--muted); }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr); background: #fff; }
.login-hero { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
              justify-content: space-between; gap: 40px; background: var(--ink);
              background-image: radial-gradient(75% 60% at 8% 6%, rgba(240, 74, 5, .55) 0, transparent 62%),
                                radial-gradient(70% 55% at 100% 100%, rgba(252, 160, 3, .38) 0, transparent 62%); }
.login-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 138, 5, .22), transparent 65%); filter: blur(10px);
  animation: glow-drift 14s ease-in-out infinite alternate; pointer-events: none; }
.login-hero::after { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 0, transparent 100%); }
.login-hero > * { position: relative; z-index: 1; }
.login-hero .wordmark { display: flex; align-items: center; gap: 14px; }
.login-hero .wordmark img { width: 54px; height: 54px; filter: drop-shadow(0 8px 20px rgba(240, 74, 5, .45)); }
.login-hero .wordmark b { display: block; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.login-hero .wordmark small { display: block; font-size: 13px; font-weight: 500; color: #fdba74; }
.login-hero h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.03em; max-width: 480px; margin: 0 0 14px; }
.login-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff7a1a, #fcc203); -webkit-background-clip: text;
                    background-clip: text; color: transparent; }
.login-hero .lead { color: #e2d3c6; font-size: 15.5px; max-width: 440px; }
.login-hero ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.login-hero li { display: flex; gap: 12px; align-items: center; color: #f3e9e0; font-size: 14px; animation: rise .6s var(--ease) both; }
.login-hero li:nth-child(1) { animation-delay: .15s; }
.login-hero li:nth-child(2) { animation-delay: .25s; }
.login-hero li:nth-child(3) { animation-delay: .35s; }
.login-hero li .icon-wrap { width: 34px; height: 34px; border-radius: 10px; background: rgba(249, 115, 22, .16); color: #fdba74;
                            border: 1px solid rgba(253, 186, 116, .22); display: flex; align-items: center; justify-content: center; flex: none; }
.login-hero .foot { color: #a99a8d; font-size: 12.5px; display: flex; align-items: center; gap: 10px; }
.login-hero .foot img { height: 22px; width: auto; opacity: .85; transition: opacity .2s ease, transform .2s var(--ease); display: block; }
.login-hero .foot a { color: #e2d3c6; font-weight: 600; }
.login-hero .foot a:hover { color: #fdba74; }
.login-hero .foot a.credit-logo:hover img { opacity: 1; transform: translateY(-1px); }
.footer a { color: var(--muted); font-weight: 600; }
.footer a:hover { color: var(--brand-700); }
.login-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px;
              background: radial-gradient(60% 50% at 100% 0%, var(--brand-50), transparent 70%), #fff; }
.login-card { width: 100%; max-width: 380px; animation: rise .5s var(--ease) both; }
.login-card h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 700; }
.login-card .sub { color: var(--muted); margin-bottom: 26px; }
.login-card .btn { width: 100%; height: 42px; margin-top: 6px; }
.login-card .mobile-logo { display: none; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-card .mobile-logo img { width: 44px; height: 44px; }
.login-card .mobile-logo b { display: block; font-size: 18px; letter-spacing: -.02em; line-height: 1.15; }
.login-card .mobile-logo small { display: block; font-size: 12.5px; color: var(--brand-700); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-detail > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-detail { grid-template-columns: 1fr; }
  .topbar, .content, .footer, .acting { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-top: 20px; }
  .login-page { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-card .mobile-logo { display: flex; }
  dl.kv { grid-template-columns: 1fr; gap: 2px 0; }
  dl.kv dd { margin-bottom: 8px; }
}

a.stat { color: inherit; display: block; transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease; }
a.stat:hover { color: inherit; border-color: var(--brand-200); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
a.stat .label, a.stat .chip { transition: color .15s ease, background-color .15s ease; }
a.stat:hover .label { color: var(--text); }
a.stat .chip { transition: transform .22s var(--ease), color .15s ease, background-color .15s ease; }
a.stat:hover .chip { filter: saturate(1.2); transform: scale(1.08); }
a.stat:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

/* Dashboard: employees present per day (one series, brand hue, thin bars anchored to the baseline) */
.trend { display: flex; align-items: flex-end; gap: 2px; height: 180px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.trend-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 20px; }
.trend-bar { width: 60%; max-width: 22px; min-height: 0; background: linear-gradient(180deg, #fb8a1e, var(--brand)); border-radius: 4px 4px 0 0;
  transform-origin: bottom; animation: bar-grow .7s var(--ease) both; transition: filter .15s ease; }
.trend-col:hover .trend-bar { filter: brightness(.9) saturate(1.15); }
.trend-col:hover .trend-value { color: var(--brand-700); font-weight: 600; }
.trend-value { font-size: 11px; color: var(--muted); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.trend-day { position: absolute; bottom: 2px; font-size: 11px; color: var(--muted); }
/* Attendance calendar: employees down, days across */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cal-month { display: flex; align-items: center; gap: 10px; }
.cal-month .icon-btn { width: 36px; padding: 0; justify-content: center; }
.cal-month-label { font-size: 20px; font-weight: 700; letter-spacing: -.02em; min-width: 170px; text-align: center; }
.cal-month-label span { color: var(--muted); font-weight: 500; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-filters select { width: auto; min-width: 120px; }
.cal-filters input[type=search] { width: 240px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 12.5px; color: var(--text); margin: 4px 2px 12px; }
.cal-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend .muted { margin-left: auto; }
.cal-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid transparent; }
.cal-key.present { background: var(--good-bg); border-color: #bfe8cf; }
.cal-key.open { background: var(--warn-bg); border-color: #f3d9a8; }
.cal-key.absent { background: var(--line-2); border-color: var(--line); }
.cal-key.today { background: var(--brand-50); border-color: var(--brand-100); }
.cal-wrap { padding: 0; overflow: auto; max-height: calc(100vh - 290px); min-height: 220px; }
table.cal { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
table.cal th, table.cal td { padding: 6px 3px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
table.cal thead th { position: sticky; top: 0; z-index: 2; background: #faf8f5; font-size: 11px; color: var(--muted);
  border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; }
table.cal th.cal-day { width: 46px; min-width: 46px; }
table.cal th.cal-day span { display: block; font-weight: 500; }
table.cal th.cal-day b { display: block; font-size: 13px; color: var(--text); }
table.cal th.is-today b { background: var(--grad); color: #fff; border-radius: 999px; width: 24px; height: 24px; line-height: 24px; margin: 2px auto 0; }
table.cal td.is-today { background: var(--brand-50); }
table.cal .cal-name { position: sticky; left: 0; z-index: 1; background: var(--card); text-align: left; padding: 8px 16px;
  min-width: 220px; border-right: 1px solid var(--line); }
table.cal td.cal-name { display: flex; align-items: center; gap: 10px; }
.card table.cal tr > th.cal-name, .card table.cal tr > td.cal-name { padding-left: 18px; }
table.cal thead .cal-name { z-index: 3; background: #faf8f5; text-transform: uppercase; letter-spacing: .04em; }
table.cal .cal-total { min-width: 64px; padding: 6px 12px; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line-2); }
table.cal tbody tr:hover td { background: var(--hover); }
table.cal tbody tr:hover td.is-today { background: var(--brand-50); }
.cal-box { width: 40px; height: 38px; margin: 0 auto; border-radius: 7px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; font-size: 10.5px; line-height: 1.25; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.cal-box b { font-size: 11px; }
.cal-box.present { background: var(--good-bg); color: var(--good); border-color: #bfe8cf; }
.cal-box.open { background: var(--warn-bg); color: var(--warn); border-color: #f3d9a8; }
.cal-box.absent { background: var(--line-2); }
/* Device checkboxes on the project and employee pages */
label.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
/* external system logos (e.g. Odoo) next to a title or label */
.with-icon { display: flex; align-items: center; gap: 10px; }
dt.with-icon { gap: 7px; }
.brand-icon { border-radius: 999px; }
details.advanced { margin: 2px 0 14px; }
details.advanced[open] summary { margin-bottom: 10px; }

/* ---------- motion: page changes, page entry, scrolling, hover ---------- */
html { scroll-behavior: smooth; scrollbar-color: #d6cbc0 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d9cfc5; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #f2a26b; }

/* Cross-page transition (Chrome / Edge): the top bar stays put, the page content fades and slides in. */
@view-transition { navigation: auto; }
.main { view-transition-name: page; }
::view-transition-old(page) { animation: page-out .16s ease both; }
::view-transition-new(page) { animation: page-in .32s var(--ease) both; }

/* Page entry: heading, tiles and cards rise in, one after another. */
.topbar { animation: rise .4s var(--ease) both; }
.stats > .stat { animation: rise .45s var(--ease) both; }
.stats > .stat:nth-child(2) { animation-delay: .05s; }
.stats > .stat:nth-child(3) { animation-delay: .10s; }
.stats > .stat:nth-child(4) { animation-delay: .15s; }
.stats > .stat:nth-child(5) { animation-delay: .20s; }
.stats > .stat:nth-child(n+6) { animation-delay: .25s; }
.content > .card, .content > .grid, .content > form.card, .content > .notice, .content > .cal-toolbar { animation: rise .5s var(--ease) both; animation-delay: .12s; }
.content > :nth-child(3) { animation-delay: .18s; }
.content > :nth-child(4) { animation-delay: .24s; }
.content > :nth-child(n+5) { animation-delay: .28s; }
.flash { animation: flash-in .4s var(--ease) both; }

/* Scrolling: lower cards fade up as they come into view (browsers with scroll-driven animations). */
@supports (animation-timeline: view()) {
  .content > .card:nth-child(n+4), .content > .grid:nth-child(n+4) {
    animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; animation-delay: 0s; }
}

/* Cards and tiles: soft lift on hover, and an orange line that sweeps in on linked tiles. */
.stat { transition: box-shadow .22s ease, border-color .22s ease; }
.stat:hover { box-shadow: var(--shadow-hover); border-color: #e4dbd2; }
a.stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad);
                transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
a.stat:hover::after, a.stat:focus-visible::after { transform: scaleX(1); }
.stat .value { color: var(--text); }
a.stat:hover .value { color: var(--brand-700); transition: color .2s ease; }
.thumb { transition: transform .2s var(--ease), box-shadow .2s ease; }
tr:hover .thumb { transform: scale(1.06); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-200); }
.photo { transition: transform .25s var(--ease), box-shadow .25s ease; }
.photo:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.cal-box { transition: transform .15s var(--ease), box-shadow .15s ease; }
.cal-box.present:hover, .cal-box.open:hover { transform: scale(1.08); box-shadow: 0 4px 10px rgba(41, 24, 10, .12); }
.badge { transition: filter .15s ease; }
tr:hover .badge { filter: saturate(1.15); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes page-out { to { opacity: 0; } }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes meter-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes glow-drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  ::view-transition-old(page), ::view-transition-new(page) { animation: none; }
  a.stat:hover, .btn.primary:hover, .photo:hover { transform: none; }
}

/* ---------- choice grids (checkbox lists that wrap into tidy tiles) ---------- */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.choices label.check { display: flex; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); line-height: 1.3; font-size: 13.5px; font-weight: 500; color: var(--text); gap: 10px;
  transition: border-color .15s ease, background .15s ease; }
.choices label.check input, .stack-checks label.check input { flex: none; }
.choices label.check:hover { border-color: var(--brand-200); }
.choices label.check:has(input:checked) { border-color: var(--brand-200); background: var(--brand-50); }
.choices label.check small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.stack-checks { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.stack-checks label.check { display: flex; margin: 0; font-size: 13.5px; font-weight: 450; color: var(--text); gap: 10px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.section-title h3 { margin: 0; }
.type-head { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.type-head .field { flex: 1; min-width: 220px; margin: 0; }
.day-hours { display: grid; grid-template-columns: repeat(7, minmax(56px, 1fr)); gap: 8px; }
.day-hours label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.day-hours input { width: 100%; min-width: 0; text-align: center; padding-left: 4px; padding-right: 4px; }

/* ---------- small screens: nothing may push the page wider than the phone ---------- */
.grid > *, .card { min-width: 0; }
.mono, .card a { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .card > table, .card > form > table, .card > div > table { display: block; overflow-x: auto; }
  .card { padding: 16px; }
  .topbar .row { width: 100%; }
  .topbar .row .btn { flex: 1 1 auto; justify-content: center; }
  .content input, .content select, .content textarea { max-width: 100%; }
  .day-hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- classic sign-in page ---------- */
.signin { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px; background: #f8f6f3; }
.signin-box { width: 100%; max-width: 400px; background: #fff; border: 1px solid #e9e4de; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(40, 24, 16, .06); padding: 32px 32px 28px; }
.signin-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.signin-brand img { width: 36px; height: 36px; }
.signin-brand b { display: block; font-size: 16px; font-weight: 700; color: #1c1917; line-height: 1.2; }
.signin-brand small { display: block; font-size: 12px; color: #78716c; }
.signin h1 { font-size: 20px; font-weight: 600; letter-spacing: 0; margin: 0 0 4px; color: #1c1917; }
.signin .sub { color: #78716c; font-size: 13.5px; margin: 0 0 22px; }
.signin .field { margin-bottom: 16px; }
.signin .field label { display: block; font-size: 13px; font-weight: 600; color: #44403c; margin-bottom: 6px; }
.signin input[type=text], .signin input[type=password], .signin input[type=email] { width: 100%; height: 40px; padding: 0 12px;
  font: inherit; font-size: 14px; border: 1px solid #d6d0c9; border-radius: 4px; background: #fff; color: #1c1917;
  box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.signin input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(234, 104, 12, .15); }
.signin .signin-btn { width: 100%; height: 40px; border: 0; border-radius: 4px; background: var(--brand); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 6px; transition: background .15s ease; }
.signin .signin-btn:hover { background: var(--brand-700); }
.signin .signin-note { font-size: 12.5px; color: #78716c; margin: 14px 0 0; }
.signin .signin-alt { border-top: 1px solid #ece7e1; margin-top: 22px; padding-top: 16px; font-size: 13px; color: #57534e; text-align: center; }
.signin .flash { margin-bottom: 16px; animation: none; }
.signin-foot { margin-top: 22px; font-size: 12px; color: #a8a29e; text-align: center; }
.signin-foot a { color: #78716c; }
@media (max-width: 480px) { .signin-box { padding: 24px 20px; border-radius: 6px; } }

/* sign-in background: soft brand colours and the Benoft wordmark as a large faint watermark */
.signin { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(60vmax 45vmax at 0% 0%, rgba(249, 110, 22, .10), transparent 60%),
              radial-gradient(55vmax 45vmax at 100% 100%, rgba(252, 194, 3, .10), transparent 60%),
              linear-gradient(180deg, #fcfaf7 0%, #f6f0e8 100%); }
.signin::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 4vh; width: min(1400px, 130vw);
  aspect-ratio: 1481 / 469; transform: translateX(-50%); background: url(/static/benoft-wordmark.png) center / contain no-repeat;
  opacity: .07; pointer-events: none; }
.signin-logo { display: block; width: min(230px, 60vw); height: auto; margin: 0 auto 22px; }
.signin-box { position: relative; box-shadow: 0 1px 2px rgba(40, 24, 16, .04), 0 12px 32px rgba(40, 24, 16, .08); }
.signin-brand { margin-bottom: 20px; }
@media (max-width: 720px) {
  .signin { justify-content: flex-start; padding-top: 9vh; }
  .signin::before { bottom: 2vh; width: 150vw; opacity: .06; }
}
@media (max-height: 640px) { .signin::before { display: none; } }

/* sign-in box: app icon centred on top, title centred below */
.signin-head { text-align: center; margin-bottom: 18px; }
.signin-head img { width: 64px; height: 64px; display: block; margin: 0 auto 10px; }
.signin-product { font-size: 13px; font-weight: 600; color: #78716c; letter-spacing: .02em; }
.signin h1, .signin .sub { text-align: center; }

/* ---------- sign-in background: layers that follow the mouse or finger ---------- */
.signin::before { content: none; }
.signin-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  --mx: 0; --my: 0; --gx: 50%; --gy: 40%; }
.signin-bg .mark { position: absolute; left: 50%; top: 58%; width: min(1500px, 115vw); aspect-ratio: 1481 / 469;
  background: url(/static/benoft-wordmark.png) center / contain no-repeat; opacity: .085;
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(-12deg);
  transform: translate(calc(-50% + var(--mx) * -18px), calc(-50% + var(--my) * -12px));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.signin-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.signin-bg .b1 { width: 42vmax; height: 42vmax; left: -12vmax; top: -14vmax; background: #ffa86a;
  transform: translate(calc(var(--mx) * 40px), calc(var(--my) * 30px)); animation: float1 18s ease-in-out infinite alternate; }
.signin-bg .b2 { width: 38vmax; height: 38vmax; right: -12vmax; bottom: -14vmax; background: #ffd36a;
  transform: translate(calc(var(--mx) * -40px), calc(var(--my) * -30px)); animation: float2 22s ease-in-out infinite alternate; }
.signin-bg .glow { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(249, 110, 22, .14), rgba(252, 194, 3, .07) 40%, transparent 70%); }
.signin-bg.live .glow { opacity: 1; }
.signin-bg .grid { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(90, 40, 15, .10) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(360px circle at var(--gx) var(--gy), #000, transparent 75%);
          mask-image: radial-gradient(360px circle at var(--gx) var(--gy), #000, transparent 75%); }
.signin-bg .ripple { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid rgba(249, 110, 22, .45); animation: ripple .9s ease-out forwards; }
@keyframes ripple { to { transform: scale(14); opacity: 0; } }
@keyframes float1 { from { margin: 0; } to { margin: 6vmax 0 0 5vmax; } }
@keyframes float2 { from { margin: 0; } to { margin: 0 6vmax 5vmax 0; } }
@media (orientation: portrait) {
  .signin-bg .mark { width: 170vw; top: 82%; opacity: .07; }
}
@media (prefers-reduced-motion: reduce) {
  .signin-bg .blob { animation: none; }
  .signin-bg .mark, .signin-bg .blob { transition: none; transform: none; }
  .signin-bg .mark { transform: translate(-50%, -50%); }
}
.acting.licence-warn { background: var(--warn-bg); color: var(--warn); border-bottom-color: #f2d59b; }
