@font-face {
  font-family: "Conthrax Sb";
  src: url("/conthrax.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #29252a;
  --ink-deep: #1f1b20;
  --muted: #777378;
  --soft: #f5f5f4;
  --line: #e8e6e7;
  --header: #e1e0e1;
  --yellow: #fbb541;
  --yellow-dark: #e19a23;
  --white: #ffffff;
  --danger: #c84949;
  --success: #2f7a55;
  --shadow: 0 14px 38px rgba(41, 37, 42, .08);
  --radius-lg: 26px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
html, body {
  width: 100%; max-width: 100%; min-height: 100%; margin: 0; overflow-x: hidden;
  overscroll-behavior-x: none; touch-action: pan-y;
}
html { background: var(--soft); color: var(--ink); }
body {
  min-width: 320px;
  background: radial-gradient(circle at 92% 2%, rgba(251,181,65,.16), transparent 280px), var(--soft);
  color: var(--ink);
  font: 15px/1.45 "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.startup {
  position: fixed; z-index: 200; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 34px 24px; background: radial-gradient(circle at 78% 18%, rgba(251,181,65,.2), transparent 260px), rgba(245,245,244,.98);
  font-weight: 700;
}
.startup::before {
  position: absolute; width: min(360px, calc(100% - 36px)); height: 190px; z-index: -1;
  border: 1px solid rgba(41,37,42,.06); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); content: "";
}
.spinner { width: 44px; height: 44px; border: 5px solid #ddd9db; border-top-color: var(--yellow-dark); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth {
  display: grid; width: min(1180px, calc(100% - 36px)); min-height: 100dvh; margin: 0 auto;
  place-items: center; padding: max(44px, env(safe-area-inset-top)) 0 calc(32px + env(safe-area-inset-bottom));
}
.auth-card {
  width: min(520px, 100%); min-width: 0; max-width: 100%; padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(41,37,42,.05); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow);
}
.auth-brand { display: none; }
.auth-card h1 {
  max-width: 100%; margin: 0; font-family: "Conthrax Sb", "Rubik", sans-serif; font-size: clamp(21px,5.5vw,34px);
  font-weight: 600; line-height: 1.08; letter-spacing: -.025em; white-space: nowrap;
}
.auth-card > p { margin: 14px 0 26px; color: var(--muted); line-height: 1.5; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 24px; padding: 5px; border-radius: 14px; background: var(--soft); }
.auth-tab { min-height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-weight: 600; }
.auth-tab.is-active { background: var(--white); box-shadow: 0 5px 16px rgba(41,37,42,.08); }
.stack { display: grid; gap: 17px; }
.register-box { margin: 0; }
.auth-card .button { width: 100%; }
.auth-card #cancel-register { min-height: 46px; }
.error { min-height: 20px; margin-top: 12px; color: var(--danger); font-size: 13px; }

label { display: grid; gap: 9px; min-width: 0; font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 13px; outline: 0;
  background: #fbfbfb; color: var(--ink); transition: 150ms ease; appearance: none;
}
input, select { height: 56px; padding: 0 16px; }
select { padding-right: 42px; cursor: pointer; }
textarea { min-height: 104px; padding: 15px 16px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--yellow-dark); background: var(--white); box-shadow: 0 0 0 4px rgba(251,181,65,.18); }
label small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.receipt-field { display: grid; gap: 8px; }
.current-receipt-link { width: fit-content; color: #7c5615; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer;
  font-weight: 600; text-decoration: none; transition: 160ms ease; white-space: nowrap;
}
.button:hover { border-color: var(--ink); transform: translateY(-1px); }
.button.primary { min-height: 58px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--yellow); color: var(--ink-deep); font-weight: 700; }
.button.primary:hover { background: #ffc65f; }
.button.ghost { background: var(--white); }
.button.subtle { min-height: 42px; align-self: center; border-color: transparent; background: transparent; color: var(--muted); font-size: 13px; }
.button.subtle:hover { border-color: var(--line); background: rgba(255,255,255,.6); color: var(--ink); }
.button:disabled { cursor: default; opacity: .4; transform: none; }
.button.danger-subtle { color: var(--danger); }

.app {
  width: min(1720px, calc(100% - 48px)); max-width: 100%; min-height: 100dvh; margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 calc(54px + env(safe-area-inset-bottom)); overflow-x: clip;
}
.topbar {
  position: relative; z-index: 20; display: flex; min-height: 68px; align-items: center; justify-content: space-between;
  padding: 0 20px; border-radius: 20px; background: var(--header);
}
.brand-button { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.brand-button img { display: block; width: 40px; height: 40px; object-fit: contain; }
.brand-button span { font-family: "Conthrax Sb", "Rubik", sans-serif; font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.bell-button {
  position: relative; display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.68); color: var(--ink); cursor: pointer;
}
.bell-button:hover { background: var(--white); box-shadow: 0 5px 18px rgba(41,37,42,.08); }
.bell-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-badge {
  position: absolute; top: -4px; right: -4px; display: grid; min-width: 19px; height: 19px; place-items: center;
  padding: 0 5px; border: 2px solid var(--header); border-radius: 999px; background: var(--danger); color: var(--white);
  font-size: 10px; font-weight: 700; line-height: 1;
}
.profile-button { max-width: 210px; padding: 9px 12px; overflow: hidden; border: 0; border-radius: 999px; background: rgba(255,255,255,.68); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; transition: 150ms ease; }
.profile-button:hover { background: var(--white); box-shadow: 0 5px 18px rgba(41,37,42,.08); }
.icon-button, .back-button, .close { border: 1px solid rgba(41,37,42,.1); background: transparent; cursor: pointer; font-weight: 600; }
.icon-button { width: auto; min-width: 42px; height: 38px; border-radius: 10px; }
.content { width: 100%; max-width: 100%; margin: 0; padding: 0 6px; }
.view { animation: appear 220ms ease; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.page-heading { margin: 0 0 30px; padding-top: 62px; }
.page-heading h1 {
  margin: 0; font-family: "Conthrax Sb", "Rubik", sans-serif; font-size: clamp(32px,5vw,58px); font-weight: 600;
  letter-spacing: -.025em; line-height: .98; text-transform: uppercase;
}
.page-heading p { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.with-back { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 16px; padding-top: 26px; }
.with-back h1 { font-size: clamp(28px,4vw,44px); }
.with-back .back-button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }

.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.accent-analytics .service-icon { background: #ffbe3c; color: var(--ink); }
.analytics-filters { display:flex; align-items:end; flex-wrap:wrap; gap:14px; padding:20px; background:white; border-radius:20px; }
.analytics-filters label { display:grid; gap:7px; min-width:160px; flex:1; font-weight:500; }
.analytics-filters label:first-child { flex:2; }
.analytics-filters input,.analytics-filters select { width:100%; min-width:0; box-sizing:border-box; }
.analytics-context { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:20px 2px 12px; }
.analytics-context small { color:var(--muted); }
.analytics-notice { padding:14px 18px; border:1px solid #dedbd2; background:#fff; border-radius:12px; line-height:1.5; }
.analytics-notice.is-warning { background:#fff3d5; border-color:#f3c875; }
.analytics-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0; }
.analytics-tabs button { min-height:44px; padding:10px 18px; border:1px solid #ddd; background:white; border-radius:12px; font-weight:500; cursor:pointer; }
.analytics-tabs button.is-active { background:var(--yellow); border-color:var(--yellow); }
.analytics-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.analytics-metric-group { min-width:0; }
.analytics-group-title { font:600 18px/1.3 Rubik,sans-serif; margin:0 0 10px; color:var(--ink); }
.analytics-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:stretch; }
.analytics-metric { min-width:0; background:white; border:1px solid #e9e5dd; border-radius:12px; padding:8px 12px; }
.analytics-metric h3 { font:500 12px/1.3 Rubik,sans-serif; color:#5e5a52; margin:3px 0 5px; }
.analytics-metric strong { font-size:20px; line-height:1.2; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.analytics-metric.analytics-balance { background:#ffe3a1; border-color:#f3c35f; }
.analytics-group-total { grid-column:1/-1; min-height:0; }
.analytics-balance strong { font-size:22px; }
.analytics-secondary strong { font-size:20px; }
.analytics-metric .analytics-help { margin:0; }
.analytics-metric .analytics-help summary { width:24px; height:24px; font-size:12px; }
.analytics-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.analytics-insights { margin-top:24px; }
.analytics-detail-panel { min-width:0; margin:0 0 18px; padding:18px; border:1px solid #e9e5dd; border-radius:16px; background:#fff; }
.analytics-detail-panel h2 { font:600 18px/1.35 Rubik,sans-serif; margin:0 0 12px; }
.analytics-detail-panel > p { font-size:13px; line-height:1.5; color:var(--muted); margin:10px 0; }
.analytics-kpis .analytics-detail-panel { margin-bottom:0; }
.analytics-kpis { margin-bottom:18px; }
.analytics-kpis strong { font-size:26px; }
.analytics-detail-table th:first-child { max-width:360px; white-space:normal; }
.analytics-detail-table .analytics-status-cell { white-space:normal; min-width:230px; }
.analytics-point-link { border:0; background:transparent; color:inherit; font:inherit; text-align:left; text-decoration:underline; text-underline-offset:3px; cursor:pointer; padding:0; }
.analytics-service-totals { display:flex; flex-wrap:wrap; gap:12px 24px; font-size:13px; margin-top:14px; }
#analytics-view > .page-heading { padding-top:20px; margin-bottom:14px; }
#analytics-view > .page-heading h1 { font-size:30px; }
#analytics-view > .page-heading p { margin-top:5px; font-size:14px; }
#analytics-view .analytics-filters { padding:12px 16px; gap:10px; border-radius:14px; }
#analytics-view .analytics-filters label { gap:4px; font-size:12px; }
#analytics-view .analytics-filters input,#analytics-view .analytics-filters select,#analytics-view .analytics-filters .button { height:40px; min-height:40px; padding:9px 12px; }
#analytics-view .analytics-context { margin:10px 2px 8px; font-size:13px; }
#analytics-view > .analytics-notice { margin:8px 0; padding:8px 12px; font-size:12px; line-height:1.4; }
#analytics-view .analytics-tabs { margin:12px 0; }
#analytics-view .analytics-tabs button { min-height:38px; padding:8px 14px; font-size:13px; }
.analytics-metric .is-negative { color:#a42a25; }
.analytics-help { margin:0 0 7px; font-weight:400; }
.analytics-help summary { display:flex; justify-content:center; align-items:center; list-style:none; width:28px; height:28px; border:1px solid #c3b69b; border-radius:50%; font-weight:700; cursor:pointer; color:#66532e; background:#fffcf5; }
.analytics-help summary::-webkit-details-marker { display:none; }
.analytics-help summary:focus-visible { outline:3px solid #367ed5; outline-offset:2px; }
.analytics-help p { font:400 13px/1.55 Rubik,sans-serif; color:#514b41; margin:10px 0; white-space:normal; text-align:left; }
.analytics-table-scroll { overflow:auto; max-width:100%; border:1px solid #e3ded5; border-radius:16px; background:white; }
.analytics-table { border-collapse:collapse; width:100%; font-size:14px; font-variant-numeric:tabular-nums; }
.analytics-table th,.analytics-table td { padding:14px; border-bottom:1px solid #ece8e0; text-align:right; white-space:nowrap; }
.analytics-table thead th { background:#f7f3eb; min-width:150px; white-space:normal; vertical-align:bottom; font-weight:500; }
.analytics-table .analytics-help summary { margin-left:auto; }
.analytics-table .analytics-help p { min-width:180px; max-width:260px; }
.analytics-table th:first-child { text-align:left; min-width:165px; }
.analytics-table tfoot { background:#fff0cf; font-weight:700; }
.analytics-table small { display:block; color:var(--muted); font-weight:400; font-size:12px; margin-top:5px; }
.analytics-staff td:nth-child(2) { text-align:left; white-space:normal; }
@media(min-width:1200px) { .analytics-metrics {grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:760px) { .analytics-overview {grid-template-columns:1fr;gap:22px;} .analytics-kpis {grid-template-columns:1fr;} }
@media(max-width:580px) { .analytics-metrics {grid-template-columns:repeat(2,minmax(0,1fr));} .analytics-filters label {flex:1 1 100%;} .analytics-filters .button {width:100%;} .analytics-tabs button {flex:1 1 auto;font-size:13px;} .analytics-metric {padding:8px;} .analytics-metric strong,.analytics-balance strong {font-size:18px;} .analytics-detail-panel {padding:12px;} }
.service-card {
  position: relative; display: flex; min-width: 0; min-height: 240px; padding: 28px; overflow: hidden;
  border: 1px solid rgba(41,37,42,.06); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow);
  cursor: pointer; flex-direction: column; align-items: flex-start; text-align: left; transition: 180ms ease;
}
.service-card:hover { border-color: rgba(41,37,42,.18); transform: translateY(-3px); }
.service-card::after { position: absolute; right: 26px; bottom: 24px; content: "→"; font-size: 28px; }
.service-icon { display: grid; width: 46px; height: 46px; margin-bottom: 42px; place-items: center; border-radius: 50%; background: var(--yellow); font-weight: 700; }
.accent-vault .service-icon, .accent-notification .service-icon,
.accent-connect .service-icon, .accent-task .service-icon { background: var(--yellow); color: var(--ink); }
.service-card strong { display: block; max-width: 100%; margin-top: auto; margin-bottom: 10px; font-family: "Conthrax Sb","Rubik",sans-serif; font-size: clamp(22px,3vw,34px); font-weight: 600; line-height: 1; text-transform: uppercase; }
.accent-notification strong { hyphens: auto; overflow-wrap: break-word; }
.service-card small { max-width: calc(100% - 30px); color: var(--muted); font-size: 14px; line-height: 1.5; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.toolbar .button.primary { min-height: 52px; }
.expense-filter-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-left: auto; }
.expense-sort-control { display: grid; min-width: 210px; gap: 4px; }
.expense-date-control { min-width: 165px; }
.expense-sort-control span { color: var(--muted); font-size: 11px; font-weight: 600; }
.expense-sort-control select, .expense-sort-control input { height: 36px; min-height: 36px; padding: 5px 38px 5px 11px; border-radius: 10px; background-color: var(--white); font-size: 13px; }
.expense-sort-control input { padding-right: 11px; }
.notification-toolbar { align-items: center; }
.export-row { display: flex; justify-content: flex-end; margin-top: 10px; padding: 0 8px; }
.export-link { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 3px 6px; color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; opacity: .68; transition: 150ms ease; }
.export-link span { font-size: 16px; line-height: 1; }
.export-link:hover { color: var(--ink); opacity: 1; }
.summary-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 18px; }
.summary-row > div { padding: 22px; border-radius: var(--radius-md); background: var(--white); box-shadow: 0 8px 28px rgba(41,37,42,.06); }
.summary-row span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.summary-row strong { font-size: clamp(22px,3vw,32px); font-weight: 600; letter-spacing: -.035em; }
.list { display: grid; gap: 8px; padding: clamp(18px,3vw,30px); border: 1px solid rgba(41,37,42,.05); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.expense-row, .notification-row { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfb; }
.row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.row-title { min-width: 0; }
.row-title strong { display: block; overflow-wrap: anywhere; font-size: 17px; }
.row-title small { display: block; margin-top: 5px; color: var(--muted); }
.expense-created-by { font-size: 11px; }
.expense-payment-method { font-size: 11px; font-weight: 600; }
.amount { flex: 0 0 auto; font-size: 19px; font-weight: 700; white-space: nowrap; }
.row-comment { margin: 11px 0 0; color: #5e5a5f; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.mini-button { display: inline-flex; min-height: 35px; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; text-decoration: none; }
.mini-button.unpaid { border-color: rgba(200,73,73,.18); background: #fff0ef; color: #a43d3d; }
.mini-button.paid { border-color: rgba(47,122,85,.18); background: #eef8f1; color: var(--success); }
.empty { min-height: 220px; display: grid; place-items: center; padding: 34px; color: var(--muted); text-align: center; }

.notification-groups { display: grid; gap: 20px; }
.notification-group { padding: clamp(18px,3vw,26px); border: 1px solid rgba(41,37,42,.05); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.notification-group-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.notification-group-head h2 { margin: 0; font-family: "Conthrax Sb","Rubik",sans-serif; font-size: clamp(18px,3vw,24px); font-weight: 600; text-transform: uppercase; }
.notification-group-head > span { display: grid; min-width: 31px; height: 31px; place-items: center; padding: 0 8px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 700; }
.notification-group-list { display: grid; gap: 8px; }
.notification-meta { display: grid; gap: 3px; margin-top: 11px; color: var(--muted); }

.inbox-toolbar { justify-content: flex-end; margin-top: -12px; }
.inbox-list { display: grid; gap: 10px; }
.inbox-swipe {
  position: relative; min-width: 0; overflow: hidden; border-radius: 17px;
  background: linear-gradient(90deg, var(--success) 0 50%, var(--danger) 50% 100%);
  transition: height 180ms ease, margin 180ms ease, opacity 180ms ease;
}
.swipe-action {
  position: absolute; z-index: 0; top: 0; bottom: 0; display: flex; width: 135px; align-items: center;
  color: var(--white); font-size: 13px; font-weight: 700; opacity: 0; transition: opacity 100ms ease;
  pointer-events: none;
}
.swipe-read { left: 0; justify-content: flex-start; padding-left: 20px; }
.swipe-delete { right: 0; justify-content: flex-end; padding-right: 20px; }
.inbox-swipe.is-swiping-right .swipe-read,
.inbox-swipe.is-completing-read .swipe-read,
.inbox-swipe.is-swiping-left .swipe-delete,
.inbox-swipe.is-completing-delete .swipe-delete { opacity: 1; }
.inbox-item {
  position: relative; z-index: 1; width: 100%; min-width: 0; padding: 19px 20px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 8px 24px rgba(41,37,42,.05);
  color: var(--ink); cursor: pointer; text-align: left; touch-action: pan-y; user-select: none;
  transition: transform 180ms ease, border-color 150ms ease, background 150ms ease;
}
.inbox-item:hover { border-color: rgba(41,37,42,.25); }
.inbox-swipe.is-dragging .inbox-item { transition: none; }
.inbox-swipe.is-removing { height: 0 !important; margin: 0; opacity: 0; }
.inbox-item.is-unread { padding-left: 28px; border-color: rgba(225,154,35,.4); background: #fffaf1; }
.inbox-item.is-unread::before { position: absolute; top: 25px; left: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-dark); content: ""; }
.inbox-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.inbox-item strong { min-width: 0; overflow-wrap: anywhere; font-size: 17px; line-height: 1.3; }
.inbox-item time { flex: 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.inbox-item-body { display: block; margin-top: 9px; color: #5e5a5f; overflow-wrap: anywhere; line-height: 1.5; }
.inbox-item small { display: block; margin-top: 10px; color: var(--muted); }
.registration-request-status { display: inline-flex; min-height: 27px; align-items: center; margin-top: 12px; padding: 0 9px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; }
.registration-request-status.pending { background: #fff3d9; color: #95620e; }
.registration-request-status.approved { background: #eef8f1; color: var(--success); }
.registration-request-status.rejected { background: #fff0ef; color: var(--danger); }
.registration-request-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.registration-request-actions .mini-button { min-width: 110px; justify-content: center; }

.search { position: relative; margin: 0 0 22px; }
.search span { position: absolute; left: 17px; top: 14px; z-index: 1; color: var(--muted); font-size: 20px; }
.search input { padding-left: 46px; background: var(--white); }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 14px; padding: clamp(18px,3vw,28px); border: 1px solid rgba(41,37,42,.05); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.vault-card { position: relative; display: flex; min-width: 0; min-height: 178px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); cursor: pointer; flex-direction: column; justify-content: space-between; text-align: left; transition: 160ms ease; }
.vault-card::before { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--yellow); content: "↗"; font-family: "Conthrax Sb","Rubik",sans-serif; font-size: 15px; }
.vault-card::after { position: absolute; right: 18px; bottom: 17px; color: var(--muted); content: "→"; font-size: 20px; }
.vault-card:hover { border-color: rgba(41,37,42,.3); transform: translateY(-2px); }
.vault-card strong { display: block; padding-right: 24px; overflow-wrap: anywhere; font-size: 17px; line-height: 1.25; }
.vault-card small { display: none; }
.full { grid-column: 1/-1; }

.dialog { position: fixed; inset: 0; box-sizing: border-box; width: 100dvw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); overflow: hidden; border: 0; background: rgba(31,27,32,.58); }
.dialog[open] { display: grid; grid-template-columns: minmax(0,1fr); place-items: center; }
.dialog::backdrop { background: rgba(31,27,32,.58); backdrop-filter: blur(7px); }
.dialog-card { box-sizing: border-box; width: min(720px,100%); min-width: 0; max-height: 100%; margin: auto; padding: clamp(22px,4vw,34px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0,1fr); gap: 17px; border-radius: 24px; background: var(--white); box-shadow: 0 30px 90px rgba(31,27,32,.3); scrollbar-width: none; -ms-overflow-style: none; }
.dialog-card > * { min-width: 0; }
.dialog-card::-webkit-scrollbar { width: 0; height: 0; }
.compact-dialog-card { width: min(620px,100%); }
.dialog-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 2px; padding: 2px 0 8px; background: var(--white); }
.dialog-head > :first-child { min-width: 0; }
.dialog-head h2 { margin: 0; overflow-wrap: anywhere; font-family: "Conthrax Sb","Rubik",sans-serif; font-size: clamp(21px,4vw,30px); font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.close { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; font-size: 23px; }
.dialog-actions { position: sticky; z-index: 2; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; padding-top: 10px; background: var(--white); }
.dialog-actions .button { min-width: 140px; }
.dialog-actions .button.primary { min-height: 52px; }
.copy-field { display: grid; grid-template-columns: minmax(0,1fr) 56px; gap: 8px; }
.copy-field button { border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; font-size: 20px; }
fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.check-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.check-list label { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--soft); }
.check-list input { width: 18px; height: 18px; padding: 0; appearance: auto; }
.danger-row { min-height: 20px; }
.text-danger { padding: 0; border: 0; background: transparent; color: var(--danger); cursor: pointer; font-weight: 700; }
.form-error { min-height: 20px; color: var(--danger); font-size: 13px; line-height: 1.45; }
.form-error:empty { display: none; }
.push-onboarding-card { width: min(440px,100%); justify-items: center; padding: 34px 28px; text-align: center; }
.push-onboarding-card h2 { margin: 0; }
.push-onboarding-card p { margin: 0 0 5px; color: var(--muted); line-height: 1.55; }
.push-onboarding-icon { display: grid; width: 68px; height: 68px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-family: "Conthrax Sb","Rubik",sans-serif; font-size: 26px; transform: rotate(-7deg); }
.push-onboarding-card .button { width: 100%; }
.push-later { padding: 5px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.profile-check { display: flex; min-height: 54px; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.profile-check input { width: 19px; height: 19px; padding: 0; appearance: auto; }
.profile-check span { font-weight: 600; }
.form-hint { margin-top: -10px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.technical-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.technical-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 26px; }
.technical-panel { display: flex; min-width: 0; padding: 24px; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
.technical-panel h2, .technical-users-head h2 { margin: 0; font-family: "Conthrax Sb","Rubik",sans-serif; font-size: 21px; font-weight: 600; text-transform: uppercase; }
.technical-panel p { margin: 10px 0 18px; color: var(--muted); line-height: 1.5; }
.technical-panel > .button { margin-top: auto; }
.technical-form { display: grid; width: 100%; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.technical-form .button.primary { min-height: 56px; }
.technical-users-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.technical-users { display: grid; gap: 9px; padding: clamp(14px,3vw,24px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.technical-user { display: grid; grid-template-columns: minmax(220px,1fr) minmax(520px,780px); align-items: start; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfb; }
.technical-user.is-disabled { opacity: .62; }
.technical-user-main > div { display: flex; align-items: center; gap: 8px; }
.technical-user-main strong { font-size: 16px; }
.technical-user-main small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.self-badge { padding: 3px 7px; border-radius: 999px; background: var(--yellow); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.admin-badge { padding: 3px 7px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.admin-transfer-button { border-color: rgba(225,154,35,.55); background: #fff8e9; }
.technical-user-controls { display: grid; width: 100%; max-width: 780px; gap: 8px; justify-self: end; }
.technical-toggle { display: flex; min-height: 35px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 12px; font-weight: 600; }
.technical-toggle input { width: 17px; height: 17px; padding: 0; appearance: auto; }
.technical-toggle.permission-manage { border-color: rgba(225,154,35,.35); background: #fff8e9; }
.technical-permission-panel { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.technical-permission-panel[open] { border-color: rgba(41,37,42,.18); box-shadow: 0 8px 22px rgba(41,37,42,.05); }
.technical-permission-panel summary { display: flex; min-height: 46px; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.technical-permission-panel summary::-webkit-details-marker { display: none; }
.technical-permission-panel summary::after { content: "⌄"; font-size: 17px; transition: transform 150ms ease; }
.technical-permission-panel[open] summary::after { transform: rotate(180deg); }
.technical-permission-panel summary span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.technical-permission-body { display: grid; gap: 10px; padding: 2px 12px 12px; border-top: 1px solid rgba(41,37,42,.06); }
.technical-permission-body > p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.technical-permission-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.technical-permission-list .technical-toggle { min-width: 0; }
.access-permissions-panel { background: #fafafa; }
.expense-visibility-panel { border-color: rgba(225,154,35,.28); background: #fffaf0; }
.notification-permissions-panel { border-color: rgba(225,154,35,.2); background: #fffdf7; }
.connect-permissions-panel { border-color: rgba(42,92,108,.24); background: #f4f9fa; }
.task-permissions-panel { border-color: rgba(47,122,85,.22); background: #f4faf6; }
.expense-visibility-body { display: grid; gap: 9px; }
.expense-visibility-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.expense-visibility-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.expense-visibility-list .technical-toggle { min-width: 0; background: var(--white); }
.expense-visibility-list .technical-toggle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-permissions-body { display: grid; gap: 9px; }
.connect-permissions-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.connect-permissions-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.connect-permissions-list .technical-toggle { min-width: 0; background: var(--white); }
.technical-user-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; padding-top: 5px; }

.task-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.task-summary > button {
  min-width: 0; padding: 20px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: var(--white); box-shadow: 0 8px 28px rgba(41,37,42,.06); cursor: pointer; text-align: left;
}
.task-summary > button:hover, .task-summary > button.is-active { border-color: rgba(225,154,35,.5); background: #fffaf0; }
.task-summary > button:nth-child(2) strong { color: var(--danger); }
.task-scope-tabs { display: inline-flex; max-width: 100%; gap: 5px; margin-bottom: 14px; padding: 5px; overflow-x: auto; border-radius: 14px; background: #e9e5de; }
.task-scope-tabs button { min-height: 42px; padding: 0 15px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; white-space: nowrap; }
.task-scope-tabs button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 5px 16px rgba(41,37,42,.08); }
.task-filters { display: grid; grid-template-columns: 1.7fr repeat(4,minmax(125px,1fr)) auto; gap: 9px; margin-bottom: 14px; padding: 14px; border-radius: 17px; background: var(--white); box-shadow: 0 7px 24px rgba(41,37,42,.05); }
.task-filters label { gap: 5px; color: var(--muted); font-size: 11px; }
.task-filters input, .task-filters select { height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-size: 13px; }
.task-filters .button { min-height: 44px; align-self: end; }
.task-active-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 9px 12px; border-radius: 11px; background: #fff4df; color: #7b5519; font-size: 12px; font-weight: 700; }
.task-active-filter button { padding: 4px 7px; border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 700; }
.task-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: clamp(14px,2.5vw,24px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.task-list > .empty { grid-column: 1/-1; }
.task-card { position: relative; display: flex; min-width: 0; min-height: 220px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfbfb; cursor: pointer; flex-direction: column; align-items: stretch; text-align: left; transition: 160ms ease; }
.task-card::before { position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: #b8b4b7; content: ""; }
.task-card.priority-important::before { background: var(--yellow-dark); }
.task-card.priority-urgent::before { background: var(--danger); }
.task-card:hover { border-color: rgba(41,37,42,.25); transform: translateY(-2px); box-shadow: 0 9px 24px rgba(41,37,42,.08); }
.task-card.status-done { opacity: .7; }
.task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.task-status-pill, .task-priority { display: inline-flex; min-height: 26px; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.task-status-pill { background: #eceaec; color: #625e63; }
.task-status-pill.status-in_progress { background: #fff1d8; color: #8a5c10; }
.task-status-pill.status-review { background: #e8f0fb; color: #315f99; }
.task-status-pill.status-done { background: #e4f3e9; color: var(--success); }
.task-priority { padding-right: 0; background: transparent; color: var(--muted); }
.task-priority.priority-important { color: #9a6410; }
.task-priority.priority-urgent { color: var(--danger); }
.task-card > strong { margin-bottom: 8px; font-size: 18px; overflow-wrap: anywhere; }
.task-card-description { display: -webkit-box; margin-bottom: 16px; overflow: hidden; color: #615d62; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-card-meta { display: grid; gap: 3px; margin-top: auto; }
.task-card-meta b { font-size: 13px; }
.task-card-meta i { color: var(--muted); font-size: 11px; font-style: normal; }
.task-card-due { margin-top: 10px; color: #645f64; font-size: 12px; font-weight: 700; }
.task-card-due.is-overdue { color: var(--danger); }
.task-card-footer { margin-top: 7px; color: var(--muted); font-size: 10px; }
.task-form-card { width: min(760px,100%); }
.task-form-card .dialog-actions { position: static; }
.task-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.task-observers-field { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.task-observers-field legend { padding: 0 7px; font-size: 13px; font-weight: 700; }
.task-form-checks { display: grid; gap: 8px; }
.task-detail-card { width: min(820px,100%); }
.task-detail-card .dialog-head > div { min-width: 0; }
.task-detail-card .dialog-head h2 { margin-top: 8px; overflow-wrap: anywhere; }
.task-detail-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 15px; }
.task-detail-meta > div { min-width: 0; padding: 12px; border-radius: 12px; background: var(--soft); }
.task-detail-meta span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.task-detail-meta strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.task-detail-description { padding: 15px; border-left: 3px solid var(--yellow); border-radius: 0 12px 12px 0; background: #fffaf1; line-height: 1.55; overflow-wrap: anywhere; }
.task-review-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.task-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.task-comments-section { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.task-comments-section h3 { margin: 0 0 12px; }
.task-comments { display: grid; gap: 8px; }
.task-comments article { padding: 12px 13px; border-radius: 12px; background: var(--soft); }
.task-comments article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-comments article time { color: var(--muted); font-size: 10px; }
.task-comments article p { margin: 7px 0 0; overflow-wrap: anywhere; }
.task-comment-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; margin-top: 10px; }
.task-comment-form textarea { min-height: 72px; }
.task-comment-form .button { min-height: 72px; }
.task-history-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: 13px; }
.task-history-panel summary { padding: 12px; cursor: pointer; font-weight: 700; }
.task-history { display: grid; gap: 1px; padding: 0 12px 12px; }
.task-history article { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.task-history time, .task-history small { color: var(--muted); font-size: 10px; }
.task-history span { display: grid; gap: 2px; }
.task-empty-note { margin: 0; padding: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.text-danger { color: var(--danger) !important; }

.connect-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.connect-issue-summary.has-issues { background: #fff3ef; }
.connect-issue-summary.has-issues strong { color: var(--danger); }
.connect-tabs { display: flex; gap: 8px; margin: 0 0 18px; padding: 6px; overflow-x: auto; border-radius: 15px; background: #e9e5de; }
.connect-tab { min-height: 44px; padding: 0 17px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; white-space: nowrap; }
.connect-tab.is-active { background: var(--white); color: var(--ink); box-shadow: 0 5px 18px rgba(41,37,42,.08); }
.connect-tab span:not(:empty) { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; place-items: center; padding: 0 6px; border-radius: 999px; background: #fff0ef; color: var(--danger); font-size: 11px; }
.connect-panel { min-width: 0; }
.connect-overview-updated { align-self: center; color: var(--muted); }
.connect-overview-toolbar { display: flex; min-height: 54px; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.connect-overview-hidden-control { min-height: 46px; }
.connect-point-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.connect-point-card { display: grid; min-width: 0; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); cursor: pointer; color: var(--ink); text-align: left; }
.connect-point-card:hover { transform: translateY(-1px); border-color: rgba(41,37,42,.28); }
.connect-point-card.has-warning { border-color: rgba(218,143,24,.48); }
.connect-point-card.is-offline { opacity: .76; }
.connect-point-card.is-overview-hidden { border-style: dashed; }
.connect-point-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.connect-point-card-head strong { display: grid; min-width: 0; gap: 2px; font-size: 16px; }
.connect-point-card-head strong b { line-height: 1.25; overflow-wrap: anywhere; }
.connect-point-card-head strong small { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.connect-point-card-head i { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #f1eee8; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.connect-point-card.is-online .connect-point-card-head i { background: #e7f6ea; color: #267238; }
.connect-point-state { font-size: 18px; font-weight: 800; }
.connect-point-version { width: fit-content; padding: 4px 7px; border-radius: 7px; background: #f3f0ea; color: var(--muted); font-size: 10px; font-weight: 700; }
.connect-point-meta { color: var(--muted); font-size: 12px; line-height: 1.45; }
.connect-point-warning, .connect-point-ok { padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.connect-point-warning { color: #a76500; }
.connect-point-ok { color: #267238; }
.connect-point-detail { width: min(1120px,100%); }
.connect-point-detail .dialog-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.connect-point-current { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.connect-point-current > div { padding: 14px; border-radius: 13px; background: #f7f4ee; }
.connect-point-current > div span, .connect-point-current > div strong { display: block; }
.connect-point-current > div span { color: var(--muted); font-size: 11px; }
.connect-point-current > div strong { margin-top: 5px; }
.connect-point-employees { grid-column: 1/-1; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.connect-point-employees h3 { margin: 0 0 8px; }
.connect-point-employees p { margin: 0; color: var(--muted); }
.connect-point-employees article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.connect-point-employees article:first-of-type { border-top: 0; }
.connect-point-employees article strong, .connect-point-employees article small { display: block; }
.connect-point-employees article small { margin-top: 3px; color: var(--muted); }
.connect-point-employees article b { padding: 4px 7px; border-radius: 999px; background: #fff0ca; font-size: 10px; }
.connect-history-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: 24px; }
.connect-history-head h3, .connect-history-head p { margin: 0; }
.connect-history-head p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.connect-history-head > div:last-child { display: flex; align-items: center; gap: 7px; }
.connect-point-history { display: grid; gap: 7px; margin-top: 12px; }
.connect-point-history article { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.connect-point-history time, .connect-point-history small { color: var(--muted); font-size: 11px; }
.connect-point-history strong, .connect-point-history small { display: block; }
.connect-point-history small { margin-top: 3px; }
.connect-search-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; padding: 14px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.connect-search-grid label, .connect-filter-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.connect-search-grid input, .connect-filter-grid input, .connect-filter-grid select { min-width: 0; width: 100%; color: var(--ink); font-size: 14px; font-weight: 500; }
.connect-filters { margin-bottom: 12px; padding: clamp(16px,3vw,22px); border: 1px solid var(--line); border-radius: 18px; background: #f8f6f1; }
.connect-filter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.connect-filter-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
#connect-filter-count:not(:empty) { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 11px; }
.connect-client-list, .connect-issue-list { display: grid; gap: 8px; padding: clamp(14px,3vw,24px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.connect-client-row { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto 30px; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfb; cursor: pointer; text-align: left; }
.connect-client-row:hover { border-color: rgba(41,37,42,.28); background: var(--white); }
.connect-client-main { min-width: 0; }
.connect-client-main strong, .connect-client-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-client-main strong { font-size: 16px; }
.connect-client-main small, .connect-client-counters small { margin-top: 5px; color: var(--muted); }
.connect-client-counters { display: flex; gap: 12px; }
.connect-row-arrow { color: var(--muted); font-size: 20px; }
.connect-client-dialog-card { width: min(920px,100%); }
.connect-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.connect-form-grid label:last-child:nth-child(odd) { grid-column: 1/-1; }
.connect-client-history, .connect-detail-section { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfbfb; }
.connect-client-history h3, .connect-detail-section h3 { margin: 0 0 12px; font-size: 16px; }
.connect-client-history > p { margin: 0; color: var(--muted); }
.connect-history-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.connect-history-grid > div { padding: 13px; border-radius: 12px; background: var(--white); }
.connect-history-grid strong, .connect-history-grid span { display: block; }
.connect-history-grid span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.connect-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.connect-card-head h2, .connect-card-head h3 { margin: 0; }
.connect-card-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.connect-vehicle-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; margin-top: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; text-align: left; }
.connect-vehicle-row span:first-child { min-width: 0; }
.connect-vehicle-row strong, .connect-vehicle-row small { display: block; }
.connect-vehicle-row small { margin-top: 4px; color: var(--muted); }
.connect-vehicle-row.is-archived { opacity: .55; cursor: default; }
.connect-order-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 15px; margin-top: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.connect-order-row.is-test { border-color: #e2bd56; background: #fff9e8; }
.test-order-badge { display: inline-flex; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #f2c94c; color: #49380a; font-size: 10px; font-weight: 800; text-transform: uppercase; vertical-align: middle; }
.connect-order-row small { display: block; margin-top: 4px; color: var(--muted); }
.connect-order-row p { grid-column: 1/-1; margin: 0; color: #5e5a5f; }
.connect-empty-note { margin: 12px 0 0; color: var(--muted); }
.connect-issue-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid rgba(200,73,73,.2); border-radius: 14px; background: #fff9f7; }
.connect-issue-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #ffe3dc; color: var(--danger); font-weight: 800; }
.connect-issue-row strong, .connect-issue-row small { display: block; }
.connect-issue-row small { margin-top: 5px; color: var(--muted); }
.connect-issue-row .row-actions { margin-top: 0; }
.connect-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; }
.connect-employees-card { margin-bottom: 16px; padding: clamp(18px,3vw,26px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.connect-employee-toolbar { display: flex; align-items: end; gap: 12px; margin: 18px 0 12px; }
.connect-employee-toolbar > label:not(.profile-check) { display: grid; min-width: min(220px,100%); gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.connect-employee-toolbar > .connect-employee-search { flex: 1 1 320px; }
.connect-employee-toolbar .profile-check { min-height: 48px; }
.connect-employee-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.connect-employee-table-head, .connect-employee-row { display: grid; grid-template-columns: minmax(90px,.7fr) minmax(180px,1.25fr) minmax(150px,1fr) minmax(260px,1.75fr) minmax(125px,.8fr) minmax(70px,.45fr); align-items: center; gap: 12px; }
.connect-employee-table-head { padding: 10px 13px; background: #e9e5de; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.connect-employee-row { width: 100%; padding: 13px; border: 0; border-top: 1px solid var(--line); background: #fbfbfb; color: var(--ink); cursor: pointer; text-align: left; }
.connect-employee-row:hover { border-color: rgba(41,37,42,.28); background: var(--white); }
.connect-employee-row.is-disabled { opacity: .62; }
.connect-employee-row strong, .connect-employee-row small { display: block; }
.connect-employee-row small { margin-top: 4px; color: var(--muted); }
.connect-employee-points { display: grid; gap: 5px; }
.connect-employee-points > span { padding: 6px 8px; border-radius: 9px; background: #eeece7; font-size: 11px; }
.connect-employee-points b { display: block; }
.connect-employee-points small { font-size: 10px; font-weight: 500; }
.connect-employee-pin-value { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-weight: 700; }
.connect-employee-warnings { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 6px; }
.connect-employee-warnings span { padding: 5px 8px; border-radius: 999px; background: #fff0e5; color: #96570b; font-size: 11px; font-weight: 700; }
.connect-config-history { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.connect-config-history summary { cursor: pointer; font-weight: 700; }
#connect-employee-history { display: grid; gap: 7px; margin-top: 12px; }
#connect-employee-history article { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 10px; padding: 10px; border-radius: 10px; background: #f7f4ee; font-size: 12px; }
.connect-employee-dialog-card { width: min(960px,100%); }
.connect-employee-assignments, .connect-employee-pin { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.connect-employee-assignments legend, .connect-employee-pin legend { padding: 0 6px; font-weight: 700; }
.connect-employee-assignment { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfb; }
.connect-employee-assignment-head { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.connect-employee-assignment-head input, .connect-employee-role-list input { width: 16px; min-width: 16px; height: 16px; margin: 0; padding: 0; flex: 0 0 16px; }
.connect-employee-role-list { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; }
.connect-employee-role-list label { display: inline-flex; width: fit-content; align-items: center; gap: 6px; font-size: 12px; }
.connect-employee-custom-roles { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.connect-employee-pin { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.connect-employee-pin > label:first-of-type { display: grid; gap: 6px; }
.connect-employee-pin small { grid-column: 1/-1; color: var(--muted); }
.connect-settings-card { min-width: 0; padding: clamp(18px,3vw,26px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.connect-settings-card-wide { grid-column: 1/-1; }
.connect-security-grid { align-items: stretch; gap: 20px; margin-bottom: 28px; }
.connect-security-card { display: grid; align-content: start; gap: 18px; }
.connect-security-card h2 { margin: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.connect-security-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.connect-security-card form { display: grid; min-width: 0; gap: 14px; }
.connect-security-actions { display: flex; min-width: 0; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.connect-security-card .button { max-width: 100%; min-width: 0; min-height: 48px; padding: 10px 16px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.connect-security-card pre, .connect-security-card output { min-width: 0; max-width: 100%; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.connect-security-card pre { max-height: 280px; overflow: auto; padding: 12px; border-radius: 12px; background: var(--soft); font-size: 12px; }
.connect-security-card pre:empty, .connect-security-card output:empty { display: none; }
@media (max-width: 1100px) {
  .connect-security-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 430px) {
  .connect-security-actions .button { width: 100%; }
}
.connect-checklist-editor { display: grid; gap: 16px; }
.connect-checklist-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.connect-checklist-toolbar strong, .connect-checklist-toolbar small { display: block; }
.connect-checklist-toolbar small { margin-top: 5px; color: var(--muted); }
.connect-checklist-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; color: var(--muted); font-size: 12px; }
.connect-checklist-legend span { display: inline-flex; align-items: center; gap: 6px; }
.connect-checklist-legend i { width: 10px; height: 10px; border-radius: 50%; background: #c7c2ba; }
.connect-checklist-legend i.is-critical { background: #d95d45; }
.connect-checklist-legend i.is-system { background: #ce941c; }
.connect-checklist-list { display: grid; gap: 9px; }
.connect-checklist-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfb; }
.connect-checklist-row.is-disabled { opacity: .62; }
.connect-checklist-order { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #ece8e1; font-size: 12px; font-weight: 800; }
.connect-checklist-copy strong, .connect-checklist-copy small { display: block; }
.connect-checklist-copy small { margin-top: 5px; color: var(--muted); }
.connect-checklist-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.connect-checklist-tags span { padding: 4px 7px; border-radius: 999px; background: #ebe8e2; color: #5f5960; font-size: 10px; font-weight: 800; }
.connect-checklist-tags .is-critical { background: #fff0ec; color: #a43e2c; }
.connect-checklist-tags .is-system { background: #fff4da; color: #8b6107; }
.connect-checklist-row-actions { display: flex; align-items: center; gap: 6px; }
.connect-checklist-row-actions .mini-button { min-width: 38px; }
.connect-checklist-dialog-card { width: min(860px,100%); }
.connect-checklist-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.connect-checklist-choice legend, .connect-checklist-targets legend { padding: 0 7px; font-weight: 800; }
.connect-checklist-choice .profile-check { min-height: 48px; }
.connect-checklist-targets { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.connect-checklist-targets h3 { margin: 13px 0 7px; font-size: 13px; }
.connect-checklist-location-list, .connect-checklist-location-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.connect-checklist-location-list .profile-check, .connect-checklist-location-options .profile-check { min-height: 48px; }
#connect-checklist-target-options.is-disabled { opacity: .45; pointer-events: none; }
.connect-update-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.connect-update-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.connect-update-targets { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.connect-update-targets legend { padding: 0 6px; font-weight: 700; }
.connect-update-targets > label { display: inline-flex; width: fit-content; align-items: center; gap: 8px; cursor: pointer; }
#connect-update-location-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
#connect-update-location-list label { display: inline-flex; width: fit-content; align-items: center; gap: 7px; cursor: pointer; }
.connect-update-targets input[type="checkbox"] {
  width: 18px; min-width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0;
  border-radius: 4px; appearance: auto; accent-color: var(--yellow-dark); box-shadow: none;
}
.connect-update-targets input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(251,181,65,.2); }
.connect-update-targets input[type="checkbox"]:disabled { cursor: default; opacity: .5; }
.connect-location-row { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfb; }
.connect-location-row > div:first-child strong, .connect-location-row > div:first-child small { display: block; }
.connect-location-row > div:first-child small { margin-top: 5px; color: var(--muted); }
.connect-token-list { margin-top: 12px; border-top: 1px solid var(--line); }
.connect-token-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 0; color: var(--muted); font-size: 12px; }
.connect-token-row.is-disabled { opacity: .55; }
.connect-upload-form { display: grid; gap: 10px; margin-top: 18px; }
.connect-price-list { display: grid; gap: 7px; margin-top: 16px; }
.connect-price-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.connect-price-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-price-row small { grid-column: 1/-1; color: var(--muted); }

.connect-workspace { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: 640px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #f4f1eb; box-shadow: var(--shadow); }
.connect-section-nav { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 18px 12px; border-right: 1px solid var(--line); background: #262328; }
.connect-section-brand { display: grid; gap: 2px; margin: 2px 8px 17px; color: var(--white); font-size: 17px; }
.connect-section-brand small { color: #aaa4ad; font-size: 11px; font-weight: 500; }
.connect-section-nav .connect-tab { display: flex; width: 100%; min-height: 43px; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: #d7d2da; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; text-align: left; white-space: normal; }
.connect-section-nav .connect-tab:hover { background: rgba(255,255,255,.07); color: var(--white); }
.connect-section-nav .connect-tab.is-active { background: var(--yellow); color: #211e22; box-shadow: none; }
.connect-section-nav .connect-tab > span:not(:empty) { display: grid; width: 25px; min-width: 25px; height: 25px; margin: 0; place-items: center; padding: 0; border-radius: 7px; background: rgba(255,255,255,.09); color: inherit; font-size: 13px; }
.connect-section-nav .connect-tab.is-active > span { background: rgba(255,255,255,.35); }
.connect-section-nav .connect-tab b:not(:empty) { display: inline-grid; min-width: 20px; height: 20px; margin-left: auto; place-items: center; padding: 0 6px; border-radius: 999px; background: #fff0ef; color: var(--danger); font-size: 10px; }
.connect-section-nav-break { height: 1px; margin: 9px 8px; background: rgba(255,255,255,.12); }
.connect-workspace-main { min-width: 0; padding: clamp(18px,3vw,30px); }
.connect-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.connect-panel-heading h2, .connect-panel-heading p { margin: 0; }
.connect-panel-heading h2 { font-size: clamp(22px,2.4vw,30px); }
.connect-panel-heading p { margin-top: 6px; color: var(--muted); }
.connect-card { padding: clamp(18px,3vw,26px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.connect-segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e7e2d9; }
.connect-segmented button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.connect-segmented button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 3px 12px rgba(41,37,42,.08); }
.connect-order-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); align-items: end; gap: 12px; margin-bottom: 14px; }
.connect-order-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.connect-order-filters .profile-check { display: flex; min-height: 46px; }
.connect-order-more-filters { display: flex; min-width: 0; grid-column: 1/-1; flex-direction: column; align-items: stretch; }
.connect-order-more-filters summary { order: 2; list-style: none; }
.connect-order-more-filters summary::marker { content: ""; }
.connect-order-more-filters summary::-webkit-details-marker { display: none; }
.connect-order-filter-button { align-self: flex-start; min-height: 42px; padding: 0 15px; background: #fbfbfb; }
.connect-order-filter-button::after { content: "⌄"; font-size: 17px; line-height: 1; transition: transform 150ms ease; }
.connect-order-more-filters[open] .connect-order-filter-button { margin-top: 12px; }
.connect-order-more-filters[open] .connect-order-filter-button::after { transform: rotate(180deg); }
.connect-order-extra-filters { display: grid; width: auto; align-self: stretch; order: 1; grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafafa; }
.connect-order-list { overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.connect-order-table-head, .connect-order-list-row { display: grid; grid-template-columns: 1.2fr .55fr 1.65fr .65fr .9fr; align-items: center; gap: 14px; }
.connect-order-table-head { padding: 12px 16px; background: #e9e4da; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.connect-order-list-row { width: 100%; min-height: 68px; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; text-align: left; }
.connect-order-list-row:hover { background: #fffaf0; }
.connect-order-list-row.is-test { background: #fff9e8; }
.connect-order-list-row strong, .connect-order-list-row small { display: block; }
.connect-order-list-row small { margin-top: 4px; color: var(--muted); }
.connect-order-detail { margin-top: 14px; padding: clamp(18px,3vw,26px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.connect-order-detail-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-top: 16px; }
.connect-order-detail-grid > div { padding: 12px; border-radius: 12px; background: #f6f2eb; }
.connect-order-detail-grid span, .connect-order-detail-grid strong { display: block; }
.connect-order-detail-grid span { color: var(--muted); font-size: 11px; }
.connect-order-detail-grid strong { margin-top: 5px; }
.connect-order-dialog-card { width: min(1040px,100%); }
.connect-order-phone strong { white-space: nowrap; }
.connect-order-services { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.connect-order-services p { margin: 6px 0 0; color: var(--muted); }
.connect-payroll-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.connect-status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: #eeeae3; color: var(--muted); font-size: 11px; font-weight: 800; }
.connect-status-pill.is-ok { background: #e7f6ea; color: #267238; }
.connect-payroll-layout { display: grid; grid-template-columns: minmax(200px,.7fr) minmax(0,2fr); gap: 16px; margin-top: 18px; }
.connect-payroll-layout > aside, .connect-payroll-placeholder { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.connect-payroll-layout h3 { margin: 0 0 12px; }
.connect-role-list { display: grid; gap: 7px; }
.connect-role-list article { padding: 11px; border-radius: 10px; background: #f6f2eb; }
.connect-role-list strong, .connect-role-list small { display: block; }
.connect-role-list small { margin-top: 3px; color: var(--muted); }
.connect-payroll-placeholder p { color: var(--muted); line-height: 1.55; }
.connect-role-list { display: grid; gap: 7px; }
.connect-role-item { display: grid; width: 100%; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f4; color: var(--ink); cursor: pointer; text-align: left; }
.connect-role-item.is-active { border-color: #d39522; background: #fff5dd; }
.connect-role-item small { color: var(--muted); }
.connect-payroll-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connect-payroll-editor-head > div { display: flex; gap: 8px; }
.connect-payroll-sections { display: grid; gap: 10px; margin-top: 14px; }
.connect-payroll-sections details { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.connect-payroll-sections summary { padding: 12px 14px; background: #f2eee6; cursor: pointer; font-weight: 800; }
.connect-payroll-sections summary small { margin-left: 8px; color: var(--muted); font-weight: 600; }
.connect-payroll-bulk { display: grid; grid-template-columns: auto repeat(3,minmax(100px,1fr)) auto; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fffaf0; }
.connect-payroll-bulk input { min-width: 0; }
.connect-payroll-table-head, .connect-payroll-service { display: grid; grid-template-columns: minmax(220px,2fr) 85px repeat(3,minmax(90px,.7fr)); align-items: center; gap: 8px; padding: 8px 12px; }
.connect-payroll-table-head { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.connect-payroll-service { border-top: 1px solid #eee9df; }
.connect-payroll-service > label { display: flex; justify-content: center; }
.connect-payroll-service input[type="checkbox"] { width: 16px; min-width: 16px; height: 16px; }
.connect-payroll-service input[type="number"] { min-width: 0; }
.connect-remote-settings-card { margin-bottom: 16px; }
.connect-remote-settings-card .connect-card-head select { width: min(360px,100%); }
.connect-remote-settings-form { display: grid; gap: 14px; margin-top: 16px; }
.connect-setting-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.connect-price-row { grid-template-columns: auto minmax(0,1fr) auto; align-items: center; }
.connect-price-row small { grid-column: 1/3; }
.connect-price-row > .mini-button { grid-column: 3; grid-row: 1/3; }
.connect-release-notes { grid-column: 1/-1; min-width: 0; font-size: 13px; }
.connect-release-notes summary { cursor: pointer; padding: 8px 0; }
.connect-release-notes > div { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; padding: 10px; border-radius: 10px; background: var(--soft); }
@media (max-width: 600px) {
  .connect-release-row { grid-template-columns: minmax(0,1fr); }
  .connect-release-row > strong, .connect-release-row > span, .connect-release-row > small,
  .connect-release-row > .mini-button { grid-column: 1; grid-row: auto; min-width: 0; }
  .connect-release-row > .mini-button { justify-self: start; }
}

.loading { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: rgba(31,27,32,.62); backdrop-filter: blur(7px); }
.loading[open] { display: grid; place-items: center; }
.loading::backdrop { background: transparent; }
.loading-card { width: min(390px,100%); padding: 34px 28px; border-radius: 24px; background: var(--white); box-shadow: 0 30px 90px rgba(31,27,32,.3); display: grid; justify-items: center; gap: 15px; text-align: center; }
.loading-card .spinner { width: 76px; height: 76px; border: 9px dashed var(--ink); border-top-color: var(--yellow); background: var(--yellow); }
.loading-card strong { font-size: 20px; }
.toast { position: fixed; z-index: 220; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); max-width: min(390px,calc(100% - 32px)); padding: 14px 18px; border-radius: 14px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .app { width: min(1180px, calc(100% - 36px)); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 200px; }
  .task-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .task-search { grid-column: 1/-1; }
  .task-filters .button { width: 100%; }
  .connect-point-cards { grid-template-columns: 1fr; }
  .connect-workspace { grid-template-columns: 190px minmax(0,1fr); }
  .connect-order-filters { grid-template-columns: 1fr 1fr; }
  .connect-order-table-head, .connect-order-list-row { grid-template-columns: 1.1fr .45fr 1.4fr .65fr; }
  .connect-order-table-head span:last-child, .connect-order-list-row > span:last-child { display: none; }
  .connect-order-detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .app { width: min(calc(100% - 24px),620px); padding-top: max(12px,env(safe-area-inset-top)); }
  .auth { width: min(calc(100% - 24px),620px); }
  .topbar { min-height: 58px; padding: 0 14px; border-radius: 15px; }
  .brand-button { gap: 9px; }
  .brand-button img { width: 34px; height: 34px; }
  .brand-button span { font-size: 16px; }
  .profile-button { max-width: 125px; }
  .content { padding: 0 2px; }
  .page-heading { padding-top: 38px; }
  .page-heading p { font-size: 15px; }
  .with-back { padding-top: 26px; }
  .with-back .page-heading { padding-top: 0; }
  .vault-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 14px; }
  .vault-card { min-height: 150px; padding: 15px; }
  .vault-card strong { font-size: 15px; }
  .summary-row { grid-template-columns: 1fr 1fr; }
  .task-list { grid-template-columns: 1fr; }
  .dialog-card { max-height: 100%; }
  .technical-grid { grid-template-columns: 1fr; }
  .connect-settings-grid { grid-template-columns: 1fr; }
  .connect-employee-toolbar { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .connect-employee-list { overflow: visible; border: 0; gap: 8px; }
  .connect-employee-table-head { display: none; }
  .connect-employee-row { grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 13px; gap: 13px 16px; }
  .connect-employee-row > span[data-label]::before { display: block; margin-bottom: 4px; color: var(--muted); content: attr(data-label); font-size: 9px; font-weight: 800; text-transform: uppercase; }
  .connect-employee-points { grid-column: 1/-1; }
  .connect-employee-pin { grid-template-columns: 1fr; }
  .connect-employee-pin small { grid-column: auto; }
  .connect-point-current { grid-template-columns: 1fr 1fr; }
  .connect-workspace { grid-template-columns: 1fr; }
  .connect-section-nav { position: sticky; z-index: 3; top: 0; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .connect-section-brand, .connect-section-nav-break { display: none; }
  .connect-section-nav .connect-tab { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .connect-workspace-main { padding: 16px; }
  .connect-panel-heading { display: grid; }
  .connect-checklist-toolbar { align-items: stretch; flex-direction: column; }
  .connect-checklist-toolbar .button { width: 100%; }
  .connect-checklist-location-list { grid-template-columns: 1fr; }
  .connect-payroll-layout { grid-template-columns: 1fr; }
  .connect-payroll-bulk { grid-template-columns: 1fr 1fr; }
  .connect-payroll-bulk span { grid-column: 1/-1; }
  .connect-payroll-table-head { display: none; }
  .connect-payroll-service { grid-template-columns: minmax(0,1fr) 70px; }
  .connect-payroll-service > input { grid-column: 1/-1; }
  .technical-user { grid-template-columns: 1fr; }
  .technical-user-controls { max-width: none; justify-self: stretch; }
}

@media (max-width: 430px) {
  .app, .auth { width: calc(100% - 16px); }
  .auth { padding-top: max(24px,env(safe-area-inset-top)); }
  .auth-card { padding: 24px 18px; border-radius: 20px; }
  .auth-card h1 { font-size: clamp(19px,6.1vw,26px); }
  .brand-button { gap: 7px; }
  .brand-button span { font-size: 13px; }
  .profile-button { max-width: 62px; padding: 8px; }
  .user-menu { gap: 4px; }
  .bell-button { width: 34px; height: 34px; }
  .bell-button svg { width: 19px; height: 19px; }
  .icon-button { width: 34px; min-width: 34px; font-size: 0; }
  .icon-button::after { font-size: 17px; content: "↪"; }
  .page-heading h1 { font-size: clamp(27px,9vw,38px); }
  .with-back { grid-template-columns: 1fr; }
  .with-back .back-button { justify-self: start; }
  .service-card { min-height: 190px; padding: 22px; }
  .service-icon { margin-bottom: 30px; }
  .service-card strong { font-size: 25px; }
  .toolbar { display: grid; grid-template-columns: 1fr; }
  .toolbar .button { width: 100%; }
  .expense-sort-control { width: 100%; min-width: 0; margin-left: 0; }
  .expense-filter-controls { display: grid; width: 100%; grid-template-columns: 1fr; margin-left: 0; }
  .summary-row { gap: 8px; }
  .summary-row > div { padding: 17px; }
  .summary-row strong { font-size: 20px; }
  .task-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .task-summary > button { padding: 15px 13px; }
  .task-filters, .task-form-grid, .task-detail-meta, .task-comment-form { grid-template-columns: 1fr; }
  .task-search { grid-column: auto; }
  .task-scope-tabs { display: grid; width: 100%; grid-template-columns: .7fr 1.35fr 1fr; overflow: visible; }
  .task-scope-tabs button { min-width: 0; padding: 0 7px; white-space: normal; font-size: 11px; line-height: 1.15; }
  .task-card { min-height: 205px; padding: 16px; }
  .task-detail-actions { display: grid; grid-template-columns: 1fr; }
  .task-detail-actions .button, .task-comment-form .button { width: 100%; }
  .task-comment-form .button { min-height: 50px; }
  .task-history article { grid-template-columns: 1fr; gap: 4px; }
  .list { padding: 15px; border-radius: 20px; }
  .row-top { display: grid; grid-template-columns: 1fr; }
  .amount { grid-row: 1; }
  .vault-grid { padding: 12px; }
  .dialog { padding: max(10px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); }
  .dialog-card { max-height: 100%; padding: 22px 17px; border-radius: 20px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr; }
  .dialog-actions .button { width: 100%; }
  .check-list { grid-template-columns: 1fr; }
  .technical-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .connect-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .connect-overview-toolbar { display: grid; grid-template-columns: 1fr; }
  .connect-overview-toolbar .button, .connect-overview-hidden-control { width: 100%; }
  .connect-search-grid, .connect-filter-grid { grid-template-columns: 1fr; }
  .connect-filter-actions { display: grid; grid-template-columns: 1fr; }
  .connect-client-row { grid-template-columns: minmax(0,1fr) 24px; }
  .connect-client-counters { display: none; }
  .connect-form-grid, .connect-history-grid { grid-template-columns: 1fr; }
  .connect-form-grid label:last-child:nth-child(odd) { grid-column: auto; }
  .connect-issue-row { grid-template-columns: 34px minmax(0,1fr); }
  .connect-issue-row .row-actions { grid-column: 1/-1; }
  .connect-order-filters { grid-template-columns: 1fr; }
  .connect-order-table-head { display: none; }
  .connect-order-list-row { grid-template-columns: 1fr auto; }
  .connect-order-list-row > span:nth-child(3) { grid-column: 1/-1; }
  .connect-order-list-row > span:nth-child(2) { grid-column: 2; grid-row: 1; }
  .connect-order-list-row > span:nth-child(4) { grid-column: 2; grid-row: 2; }
  .connect-order-detail-grid { grid-template-columns: 1fr; }
  .connect-payroll-head { display: grid; }
  .connect-employee-row { grid-template-columns: 1fr; }
  .connect-employee-points { grid-column: auto; }
  .technical-summary > div { padding: 14px 10px; }
  .technical-summary span { min-height: 31px; font-size: 11px; }
  .technical-form { grid-template-columns: 1fr; }
  .technical-user-controls { display: grid; grid-template-columns: 1fr; }
  .technical-permission-list { grid-template-columns: 1fr; }
  .technical-user-admin-actions { display: grid; grid-template-columns: 1fr; }
  .expense-visibility-list, .connect-permissions-list { grid-template-columns: 1fr; }
  .toast { right: 50%; transform: translateX(50%); }
  .inbox-item-head { display: grid; gap: 5px; }
}

@media (max-width: 560px) {
  .connect-point-detail-dialog-card { width: 100%; max-width: 100%; justify-self: stretch; padding: 0; }
  .connect-point-detail-dialog-card .dialog-head {
    top: 0; display: grid; grid-template-columns: minmax(0,1fr) 42px; margin: 0; padding: 18px 14px 12px; align-items: flex-start;
    border-bottom: 1px solid var(--line);
  }
  .connect-point-detail-dialog-card .dialog-head h2 { max-width: 100%; word-break: break-word; font-size: clamp(17px,5.2vw,21px); line-height: 1.2; }
  .connect-point-detail-dialog-card .close { width: 42px; min-width: 42px; height: 42px; }
  .connect-point-current { grid-template-columns: minmax(0,1fr); margin: 0 14px; }
  .connect-point-employees { grid-column: auto; padding: 14px; }
  .connect-history-head { display: grid; align-items: stretch; gap: 12px; margin: 12px 14px 0; }
  .connect-history-head > div:last-child { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .connect-history-head input, .connect-history-head .mini-button { width: 100%; min-width: 0; }
  .connect-point-history { margin-right: 14px; margin-left: 14px; }
  .connect-point-history article { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .connect-point-dialog-actions { position: static; margin: 2px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Desktop uses the same wide canvas as Connect; phones keep the compact layout above. */
@media (min-width: 1200px) {
  .service-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .service-card { grid-column: span 2; }
  .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
  .service-card strong { font-size: clamp(21px,2.25vw,31px); }
  #expense-list, .notification-group-list, .inbox-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #expense-list > .empty, .notification-group-list > .empty, .inbox-list > .empty { grid-column: 1/-1; }
}
@media (min-width: 1500px) {
  .service-card { min-height: 260px; padding: 24px; }
  .service-card strong { font-size: clamp(21px,1.65vw,29px); }
  .service-card small { max-width: calc(100% - 22px); font-size: 13px; }
  .task-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.connect-workspace { display: block; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.connect-section-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 24px; border: 0; background: transparent; }
.connect-section-nav .connect-tab { width: auto; min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-align: center; white-space: nowrap; }
.connect-section-nav .connect-tab:hover { color: var(--ink); border-color: var(--yellow-dark); background: #fff9ef; }
.connect-section-nav .connect-tab.is-active { background: var(--yellow); border-color: var(--yellow-dark); }
.connect-workspace-main { padding: 0; }
.connect-employee-assignments input[type="checkbox"], .connect-payroll-service input[type="checkbox"] {
  appearance: auto; accent-color: var(--yellow-dark); width: 19px; min-width: 19px; height: 19px;
  flex: 0 0 19px; padding: 0; margin: 0; border-radius: 3px; box-shadow: none; cursor: pointer;
}
.connect-employee-assignment-head { cursor: pointer; }
.connect-employee-role-list { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-top: 12px; }
.connect-employee-role-list label { min-height: 32px; cursor: pointer; }
.connect-payroll-excel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.connect-payroll-excel small { color: var(--muted); }
#connect-payroll-import-result { white-space: pre-wrap; max-height: 250px; overflow: auto; }
@media (max-width: 700px) {
  .connect-section-nav { gap: 6px; padding-bottom: 16px; }
  .connect-section-nav .connect-tab { min-height: 40px; padding: 8px 11px; font-size: 12px; }
}
/* Shift sales plans: compact desktop rows and labelled mobile cards. */
.connect-payroll-tabs { margin-bottom: 18px; flex-wrap: wrap; }
#connect-sales-plans-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.sales-plan-location-label { display: grid; gap: 6px; min-width: 0; max-width: 100%; }
.sales-plan-location-label select { min-width: 0; max-width: 100%; }
#connect-payroll-sales-panel .form-hint { margin: 14px 0; }
#connect-payroll-sales-panel .dialog-actions { position: static; margin-top: 18px; }
#connect-payroll-sales-panel .dialog-actions .button { white-space: normal; }
@media (max-width: 600px) {
  .connect-payroll-tabs button { flex: 1 1 100%; white-space: normal; }
  #connect-payroll-sales-panel .connect-card-head { flex-direction: column; }
  .sales-plan-location-label { width: 100%; }
}
.sales-plan-row { display: grid; grid-template-columns: minmax(180px, 3fr) repeat(3, minmax(90px, 1fr)) auto auto; gap: 12px; align-items: end; padding: 14px 0; border-bottom: 1px solid #ece8e0; }
.sales-plan-row label { display: grid; gap: 6px; min-width: 0; }
.sales-plan-row .sales-plan-toggle { display: flex; align-items: center; align-self: end; min-height: 56px; gap: 7px; }
.sales-plan-row > .button { min-height: 56px; }
.employee-special-permissions { border-top:1px solid #e8e3db; padding-top:12px; margin-top:12px; }
.employee-avatar { width:72px; height:72px; border-radius:18px; background:#f2eee5; display:grid; place-items:center; font-size:36px; color:#918777; overflow:hidden; flex-shrink:0; }
.employee-avatar img { width:100%; height:100%; object-fit:cover; }
.employee-profile-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.employee-profile-heading .button { min-width:0; }
.connect-employee-dialog-card > .dialog-actions, .employee-adjustments-card .dialog-actions { position:static; }
.employee-request-toolbar { display:flex; align-items:end; gap:12px; margin:16px 0; flex-wrap:wrap; }
.employee-request-toolbar label { flex:1 1 180px; }
.employee-profile-request { border:1px solid #e8e3db; border-radius:16px; padding:18px; margin:12px 0; overflow-wrap:anywhere; }
.employee-request-heading, .employee-request-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.employee-request-heading { justify-content:space-between; margin-bottom:8px; }
.employee-request-actions { margin-top:12px; }
.employee-profile-changes { display:grid; grid-template-columns:80px minmax(0,1fr); gap:10px; margin:16px 0; }
.employee-profile-changes dd { margin:0; display:flex; flex-direction:column; gap:4px; }
.employee-profile-changes dd span { color:#777; }
.employee-adjustments-card { width:min(760px,100%); }
.employee-adjustments-card form { display:grid; gap:14px; }
.employee-adjustments-card form .dialog-actions { position:static; }
.employee-adjustments-card, .connect-employee-dialog-card { scroll-padding-top:120px; }
.employee-adjustments-card > .dialog-head, .connect-employee-dialog-card > .dialog-head { top:calc(-1 * clamp(22px,4vw,34px)); margin:calc(-1 * clamp(22px,4vw,34px)) calc(-1 * clamp(22px,4vw,34px)) 0; padding:20px clamp(22px,4vw,34px) 12px; }
.employee-adjustments-card .dialog-head h2 { font-family:inherit; text-transform:none; font-size:22px; line-height:1.25; }
.employee-adjustment-warning { background:#fff7e5; border-radius:12px; padding:12px; font-size:13px; line-height:1.5; }
.employee-adjustment-row { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid #e8e3db; padding:14px 0; overflow-wrap:anywhere; }
.employee-adjustment-row > div { min-width:0; }
.employee-adjustment-row p { margin:6px 0; white-space:pre-wrap; }
.employee-adjustment-row .mini-button { flex-shrink:0; }
@media (max-width:560px) {
  .employee-adjustments-card > .dialog-head, .connect-employee-dialog-card > .dialog-head { top:-22px; margin:-22px -17px 0; padding:18px 17px 12px; }
  .employee-adjustment-row { flex-direction:column; align-items:stretch; gap:8px; }
  .employee-request-actions .button { flex:1 1 100px; }
  .employee-profile-changes { grid-template-columns:minmax(0,1fr); gap:5px; }
  .employee-profile-changes dt { margin-top:8px; font-weight:700; }
}
.sales-plan-row .sales-plan-toggle input { width: 19px; height: 19px; padding: 0; appearance: auto; }
.sales-plan-row input:not([type=checkbox]), .sales-plan-row select { width: 100%; min-width: 0; }
#connect-sales-plan-add { margin-top: 12px; }
@media (max-width: 900px) { .sales-plan-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sales-plan-row label:first-child { grid-column: 1 / -1; } }
.employee-ledger-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.employee-ledger-tabs .button { flex: 1; min-width: 110px; }

/* Real shop orders, distinct from the Connect service work orders. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-heading.with-back.shop-orders-heading { grid-template-columns: auto minmax(0,1fr) auto; }
.shop-orders-heading > .shop-problems { grid-column: 3; grid-row: 1; align-self: start; margin-left: auto; }
.shop-workspace, .shop-workspace-main { width: 100%; min-width: 0; }
.shop-orders-nav { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; }
.shop-orders-tab { min-height: 56px; padding: 14px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.shop-orders-tab.is-active { background: var(--yellow); border-color: var(--yellow-dark); }
.shop-orders-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) minmax(180px,260px) auto; gap: 12px; align-items: center; }
.shop-orders-toolbar label { min-width: 0; }
.shop-orders-toolbar input, .shop-orders-toolbar select, .shop-orders-toolbar .button { min-height: 56px; height: 56px; }
.shop-orders-status { margin: 8px 0; color: var(--muted); overflow-wrap: anywhere; font-size: 13px; }
.shop-orders-status:empty { display: none; }
.shop-orders-toolbar + .shop-orders-status:empty + #shop-orders-list { margin-top: 16px; }
.shop-orders-status.is-error { color: var(--danger); }
.shop-orders-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.shop-orders-table { width: 100%; min-width: 670px; border-collapse: collapse; text-align: left; }
.shop-orders-table th, .shop-orders-table td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.shop-orders-table th { font-size: 12px; color: var(--muted); background: #fafafa; }
.shop-orders-table tr:last-child td { border-bottom: 0; }
.shop-orders-table td { max-width: 330px; overflow-wrap: anywhere; }
.shop-orders-table small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.shop-order-link { padding: 0; border: 0; background: transparent; font-weight: 700; text-align: left; text-decoration: underline; cursor: pointer; }
.shop-order-money { white-space: nowrap; font-weight: 600; }
.shop-order-badge { display: inline-block; padding: 5px 9px; border-radius: 9px; background: var(--soft); font-size: 12px; }
.shop-orders-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 26px; }
.shop-order-detail-card { --shop-card-background: var(--white); width: min(900px,100%); padding: clamp(22px,4vw,34px); gap: 17px; background: var(--shop-card-background); }
.shop-order-detail-card .dialog-head h2 { flex: 1; }
.shop-order-detail-card .dialog-head { gap: 14px; top: calc(-1 * clamp(22px,4vw,34px)); margin: calc(-1 * clamp(22px,4vw,34px)) calc(-1 * clamp(22px,4vw,34px)) 0; padding: clamp(22px,4vw,34px) clamp(22px,4vw,34px) 12px; background: var(--shop-card-background); }
.shop-order-detail-card .shop-orders-status { min-height: 0; padding: 0; margin: 0; }
.shop-order-detail-card .shop-orders-status:empty { display: none; }
.shop-order-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 0; }
.shop-order-facts dt { color: var(--muted); font-size: 12px; }
.shop-order-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.shop-order-inline-form { display: grid; grid-template-columns: minmax(150px,1fr) auto; gap: 12px 18px; align-items: end; margin: 0; }
.shop-order-inline-form label { gap: 8px; min-width: 0; }
.shop-order-inline-form input, .shop-order-inline-form select, .shop-order-inline-form .button { min-height: 56px; height: 56px; }
.shop-order-inline-form > .button { align-self: end; margin: 0; border: 1px solid #c9c0b1; border-radius: 14px; background: #eee8dc; color: var(--ink); }
.shop-order-inline-form > .button:hover:not(:disabled) { background: #e5dccb; border-color: #ad9e86; }
.shop-order-inline-form > .shop-orders-status { grid-column: 1/-1; margin: 0; }
.shop-order-invoice { border: 1px solid #d9d1c3; border-radius: 18px; background: #f6f3ed; margin-top: 24px; padding: 24px; position: relative; }
.shop-order-invoice::before { content: ""; position: absolute; top: -22px; left: -1px; right: -1px; border-top: 1px solid var(--line); }
.shop-order-invoice h3 { margin: 0 0 12px; font-size: 22px; }
.shop-order-invoice .form-hint { margin: 0 0 18px; }
.shop-order-detail-card .shop-order-total { margin: 18px 0 0; }
.shop-order-detail-card .shop-paid-label { margin: 16px 0 0; }
.shop-orders-table tr.shop-invoice-paid { background: #edf8ef; }
.shop-orders-table tr.shop-new-unpaid { background: #fff5cf; }
.shop-order-status-note { display: block; margin-top: 8px; font-size: 12px; color: #6a5540; white-space: normal; }
.shop-order-status-section { display: grid; grid-template-columns: minmax(190px,.8fr) minmax(0,1.4fr); align-items: start; gap: 20px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.shop-order-status-section > h3 { grid-column: 1/-1; margin: 0; font-size: 22px; }
.shop-order-status-summary { min-width: 0; }
.shop-order-status-summary .shop-order-badge { padding: 10px 14px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.shop-order-status-summary .shop-order-status-note { font-size: 14px; line-height: 1.45; margin-top: 12px; }
.shop-order-status-section .shop-order-inline-form { min-width: 0; gap: 12px; }
.shop-order-status-section .shop-order-inline-form > .button { padding-left: 16px; padding-right: 16px; }
.shop-status-sync-note, .shop-status-observed { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.shop-status-observed:empty { display: none; }
.shop-order-status-summary:empty { display: none; }
.shop-delivery-editor > summary, .shop-supplier-editor > summary { cursor: pointer; color: var(--muted); }
.shop-delivery-editor > form, .shop-supplier-editor > form { margin-top: 18px; }
#shop-order-detail > h3 { margin: 6px 0 18px; font-size: 22px; }
#shop-order-detail:empty, #shop-order-customer:empty { display: none; }
.shop-invoice-file, .shop-invoice-payment { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 13px; }
.shop-invoice-file span { flex: 1; color: var(--muted); }
.shop-invoice-payment .is-active { background: var(--yellow); border-color: var(--yellow-dark); }
.shop-paid-label, .shop-orders-table small.shop-paid-label { color: var(--muted); font-weight: 500; font-size: 12px; }
.shop-order-total { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; }
.shop-problems { position: relative; flex: 0 0 auto; font-weight: 400; }
.shop-problems > summary { display: grid; place-items: center; list-style: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #c9b486; color: #7b5b20; background: #fff8e8; font-weight: 700; cursor: pointer; }
.shop-problems > summary::-webkit-details-marker { display: none; }
.shop-problems > summary:focus-visible { outline: 3px solid #367ed5; outline-offset: 2px; }
.shop-problems-popover { position: absolute; z-index: 10; right: 0; top: 42px; width: min(360px,calc(100vw - 56px)); padding: 16px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); background: white; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.shop-problems-popover ul { padding-left: 18px; margin-bottom: 0; }
.shop-problems-popover li + li { margin-top: 8px; }
.shop-import-card { width: min(560px,100%); }
#shop-import-conflict { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
@media (min-width: 1200px) { .service-card[data-open="shop-orders"] { grid-column: span 3; } }
@media (max-width: 760px) { .shop-orders-toolbar { grid-template-columns: minmax(0,1fr) auto; } .shop-orders-search-label { grid-column: 1/-1; } .shop-order-status-section { grid-template-columns: minmax(0,1fr); gap: 18px; } }
@media (max-width: 480px) { .shop-order-detail-card { padding: 22px 17px; } .shop-order-facts { grid-template-columns: minmax(0,1fr); } .shop-orders-pagination { gap: 7px; font-size: 12px; } .shop-orders-pagination .button { padding-left: 12px; padding-right: 12px; } .shop-order-inline-form { grid-template-columns: minmax(0,1fr); } .shop-order-inline-form .button { justify-self: start; } .shop-order-invoice { padding: 18px; } }
@media (max-width: 480px) { .shop-order-detail-card .dialog-head { top: -22px; margin: -22px -17px 0; padding: 22px 17px 12px; } }

/* SMS configuration is deliberately separate from delivery status. */
.sms-delivery-notice { display: grid; gap: 6px; padding: 19px 22px; border: 1px solid #efd294; border-radius: 18px; background: #fff6df; line-height: 1.55; }
.sms-delivery-notice strong { font-weight: 500; }
.sms-delivery-notice small { color: #80652d; overflow-wrap: anywhere; }
.sms-delivery-notice small:empty { display: none; }
.sms-rules-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 14px; }
.sms-rule-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.sms-rule-suggestions > span { color: var(--muted); font-size: 13px; }
.sms-rule-suggestions .mini-button { white-space: normal; text-align: left; padding: 8px 12px; }
.sms-rules-status { margin: 10px 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sms-rules-status:empty, .sms-rule-editor .form-error:empty { display: none; }
.sms-rules-status.is-error { color: var(--danger); }
.sms-rules-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.sms-rules-list > .empty { grid-column: 1/-1; border-radius: 20px; background: var(--white); }
.sms-rule-card { display: flex; flex-direction: column; min-width: 0; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.sms-rule-card-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px; }
.sms-rule-card h2 { margin: 0; flex: 1 1 180px; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.sms-rule-badge { padding: 5px 10px; border-radius: 100px; background: var(--soft); color: var(--muted); font-size: 12px; white-space: nowrap; }
.sms-rule-badge.is-enabled { background: #eef6ee; color: #356b43; }
.sms-rule-card p { margin: 0; overflow-wrap: anywhere; }
.sms-rule-timing { font-size: 14px; }
.sms-rule-services { color: var(--muted); font-size: 13px; }
.sms-rule-message { padding: 14px; margin-top: 4px !important; border-radius: 12px; background: #f8f8f7; white-space: pre-wrap; max-height: 160px; overflow-y: auto; }
.sms-rule-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 7px; }
.sms-rule-card-footer small { color: var(--muted); }
.sms-rule-editor { width: min(780px,100%); gap: 14px; }
.sms-rule-fields { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sms-editor-notice { margin: 0; padding: 11px 14px; border-radius: 11px; background: #fff6df; font-size: 13px; }
.sms-rule-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sms-rule-grid > small { grid-column: 1/-1; color: var(--muted); }
.sms-rule-enabled { margin: 0; }
.sms-rule-enabled input { flex: 0 0 auto; }
.sms-rule-enabled + .form-hint { margin: -9px 0 0; }
.sms-rule-preview-section { border-top: 1px solid var(--line); padding-top: 17px; }
.sms-rule-preview-section summary { cursor: pointer; font-weight: 600; }
.sms-rule-preview-section .form-hint { margin: 12px 0; }
.sms-rule-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; padding: 16px; margin: 0; border: 1px solid var(--line); border-radius: 13px; background: #f8f8f7; min-height: 75px; }
.sms-rule-actions { flex-wrap: wrap; position: static; }
.sms-rule-actions #sms-rule-archive { margin-right: auto; min-width: 0; }
.sms-test-editor { width: min(760px,100%); gap: 16px; }
.sms-test-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sms-test-review { display: grid; gap: 12px; min-width: 0; }
.sms-test-review > small { color: var(--muted); }
.sms-test-confirm { margin: 0; align-items: start; padding: 14px; border-radius: 12px; background: #fff6df; }
.sms-test-confirm input { flex: 0 0 auto; }
.sms-test-result { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border-radius: 12px; background: #f3f5f6; margin: 0; font-size: 14px; }
.sms-test-result:empty, .sms-test-editor .form-error:empty { display: none; }
.sms-test-editor .dialog-actions { position: static; flex-wrap: wrap; }
.sms-test-editor .dialog-actions .button { min-width: 0; }
@media (min-width: 1200px) { .service-card[data-open="sms-rules"] { grid-column: span 3; } }
@media (max-width: 760px) { .sms-rules-list { grid-template-columns: minmax(0,1fr); } .sms-rule-card { padding: 20px; } }
@media (max-width: 480px) { .sms-rule-grid { grid-template-columns: minmax(0,1fr); } .sms-rules-toolbar .button.primary { flex: 1; } .sms-rule-actions #sms-rule-archive { margin-right: 0; } .sms-rule-card-heading { flex-direction: column; } .sms-rule-card h2 { flex: auto; } .sms-rule-editor .dialog-actions { position: static; } }
