/* PhoenixCRM — собственная визуальная система: тёплая «бумага», угольный сайдбар, огненный акцент */
:root {
  --ember: #EE5318;
  --ember-deep: #C9400E;
  --ember-soft: #FFF0E7;
  --ember-line: #FAD3BF;
  --gold: #F5A524;
  --ink: #1D1B26;
  --ink-2: #292635;
  --ink-3: #363244;
  --ink-text: #B9B5C8;
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --surface-2: #FAF8F5;
  --line: #E8E4DD;
  --line-strong: #D8D2C8;
  --text: #211F2C;
  --muted: #6E6A7C;
  --faint: #A29EAE;
  --ok: #1E9E62;
  --ok-soft: #E6F6EE;
  --danger: #D4453C;
  --danger-soft: #FDECEA;
  --warn: #B86E00;
  --warn-soft: #FFF4DB;
  --info: #2F6FED;
  --info-soft: #EAF1FE;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-1: 0 1px 2px rgba(33, 31, 44, .06);
  --shadow-2: 0 1px 2px rgba(33, 31, 44, .06), 0 6px 18px rgba(33, 31, 44, .07);
  --shadow-3: 0 12px 40px rgba(33, 31, 44, .22);
  --sidebar: 228px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.45 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg.ico { flex: none; display: inline-block; vertical-align: -0.22em; }
::selection { background: #FFD9C6; }

#app { height: 100%; }
.boot { height: 100%; display: grid; place-items: center; }
.boot-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(45deg, #E23D14, #F9A826);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(.86); opacity: .6; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
@keyframes popIn { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-weight: 550; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: var(--surface-2); border-color: #C9C2B6; }
.btn:focus-visible, .input:focus-visible, .nav-item:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 2px;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ember); border-color: var(--ember); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.btn-primary:hover { background: var(--ember-deep); border-color: var(--ember-deep); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: rgba(33, 31, 44, .06); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: #F0C4C0; }
.btn-danger:hover { background: var(--danger-soft); border-color: #E5A7A1; }
.btn-danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 0; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: rgba(33, 31, 44, .07); color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }

.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.input:hover { border-color: #C4BDB0; }
.input:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(238, 83, 24, .14); }
.input::placeholder { color: var(--faint); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
select.input { padding-right: 28px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6A7C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.input-sm { height: 30px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--faint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--ember); margin: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.link { color: var(--ember-deep); font-weight: 550; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); }
.login-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px;
  background: radial-gradient(120% 90% at 0% 100%, #F9A826 0%, #EE5318 38%, #8E2A0B 72%, #1D1B26 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-art .brand { font-size: 22px; }
.login-art h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.02em; max-width: 12ch; font-weight: 750; }
.login-art p { margin-top: 16px; max-width: 40ch; font-size: 16px; color: rgba(255, 255, 255, .86); }
.login-art .rings { position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.05), 0 0 0 130px rgba(255,255,255,.035); }
.login-form { display: grid; place-items: center; padding: 32px 24px; background: var(--surface); }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.login-card h2 { font-size: 24px; letter-spacing: -.01em; }
.lang-switch { display: inline-flex; padding: 3px; background: var(--bg); border-radius: 8px; gap: 2px; }
.lang-switch button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.lang-switch button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.form-error { background: var(--danger-soft); color: #A8322A; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; font-weight: 550; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand b { color: var(--ember); font-weight: 750; }
.login-art .brand b { color: #FFE2B8; }

/* ---------- shell ---------- */
.shell { height: 100%; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  background: var(--ink); color: var(--ink-text); display: flex; flex-direction: column;
  padding: 14px 10px 10px; gap: 4px; min-height: 0;
}
.side-top { display: flex; align-items: center; gap: 6px; padding: 0 0 12px; }
.side-toggle { width: 38px; height: 38px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-text); display: grid; place-items: center; flex: none; }
.side-toggle:hover { background: var(--ink-2); color: #fff; }
.side-toggle:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.sidebar .brand { color: #fff; font-size: 17px; padding: 0 4px; min-width: 0; }
.shell { transition: grid-template-columns .16s ease; }
/* свёрнутое меню: узкая полоска со значками */
:root.sb-collapsed { --sidebar: 64px; }
.shell.collapsed .sidebar { padding: 14px 8px 8px; align-items: center; }
.shell.collapsed .side-top { flex-direction: column; gap: 10px; padding-bottom: 10px; }
.shell.collapsed .sidebar .brand span, .shell.collapsed .nav-item span.txt, .shell.collapsed .side-user .who { display: none; }
.shell.collapsed .nav { align-items: center; }
.shell.collapsed .nav-item { width: 44px; justify-content: center; padding: 0; }
.shell.collapsed .nav-item.on::before { left: -8px; }
.shell.collapsed .nav-item .count { position: absolute; top: 2px; right: 0; margin: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.shell.collapsed .nav-sep { width: 28px; margin: 8px 0; }
.shell.collapsed .side-user { justify-content: center; padding: 6px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px;
  border-radius: 8px; color: var(--ink-text); font-weight: 550; border: 0; background: transparent; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--ink-2); color: #fff; }
.nav-item.on { background: var(--ink-3); color: #fff; }
.nav-item.on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ember); }
.nav-item .count { margin-left: auto; min-width: 20px; padding: 0 6px; height: 19px; border-radius: 10px; background: var(--ember); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.nav-sep { height: 1px; background: var(--ink-3); margin: 8px 8px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; border: 0; background: transparent; color: #fff; width: 100%; text-align: left; }
.side-user:hover { background: var(--ink-2); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who div:first-child { font-weight: 600; font-size: 13.5px; }
.side-user .who div:last-child { font-size: 12px; color: var(--ink-text); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px; min-height: 60px;
  background: rgba(245, 243, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 20px; letter-spacing: -.01em; font-weight: 700; white-space: nowrap; }
.topbar .search { position: relative; flex: 1; max-width: 420px; margin-left: 12px; }
.topbar .search .input { padding-left: 34px; background: var(--surface); }
.topbar .search > svg { position: absolute; left: 10px; top: 9px; color: var(--faint); pointer-events: none; }
.search-pop {
  position: absolute; left: 0; right: 0; top: 42px; z-index: 30; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 6px; max-height: 60vh; overflow: auto;
}
.search-pop .group { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 4px; }
.search-pop .hit { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.search-pop .hit:hover, .search-pop .hit.on { background: var(--ember-soft); }
.search-pop .hit .sub { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.page { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px 28px; }
.page.flush { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.banner { display: flex; align-items: center; gap: 10px; padding: 9px 24px; background: var(--warn-soft); color: #7A4A00; font-weight: 550; font-size: 13px; border-bottom: 1px solid #F3DFAE; }
.banner .link { color: #7A4A00; text-decoration: underline; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
.toolbar .input { width: auto; }
.toolbar select.input { max-width: 190px; }
.toolbar .grow { flex: 1 1 150px; min-width: 130px; max-width: 280px; }
.seg { display: inline-flex; background: #E9E5DE; padding: 3px; border-radius: 8px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 10px; border-radius: 6px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--ember-deep); border-bottom-color: var(--ember); }

/* ---------- common bits ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-pad { padding: 16px 18px; }
.card h3 { font-size: 14.5px; font-weight: 700; }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  font-size: 10.5px; font-weight: 700; color: #fff; letter-spacing: .02em; background: var(--muted);
}
.avatar.lg { width: 34px; height: 34px; font-size: 12.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 11px;
  font-size: 11.5px; font-weight: 650; background: var(--chip-bg, #EEEAE3); color: var(--chip-fg, var(--muted)); white-space: nowrap; max-width: 100%;
}
.chip .x { border: 0; background: transparent; padding: 0; margin-right: -3px; color: inherit; opacity: .6; display: grid; }
.chip .x:hover { opacity: 1; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 650; background: #EEEAE3; color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: #14784A; }
.badge.danger { background: var(--danger-soft); color: #A8322A; }
.badge.warn { background: var(--warn-soft); color: #8A5300; }
.badge.info { background: var(--info-soft); color: #1F54C2; }
.alert-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--danger); margin-left: auto; }
.shell.collapsed .nav-item .alert-dot { position: absolute; top: 5px; right: 5px; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--faint)); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ico-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--ember-soft); color: var(--ember); display: grid; place-items: center; margin-bottom: 4px; }
.empty b { color: var(--text); font-size: 15px; }
.loading { padding: 40px; text-align: center; color: var(--faint); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--ember); animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- overlays ---------- */
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(29, 27, 38, .46); animation: fadeIn .14s; display: flex; }
.backdrop.center { align-items: flex-start; justify-content: center; padding: 7vh 16px 24px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-3); width: 100%; max-width: 520px; animation: popIn .16s ease-out; margin-bottom: 24px; }
.modal.wide { max-width: 720px; }
.modal.narrow { max-width: 400px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 8px; }
.modal-head h2 { font-size: 17px; font-weight: 700; flex: 1; }
.modal-body { padding: 8px 18px 6px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 16px; }
.drawer {
  margin-left: auto; height: 100%; width: min(1000px, 100%); background: var(--bg); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; animation: slideIn .18s ease-out; min-width: 0;
}
/* карточка на весь экран: занимает всё, кроме бокового меню */
.backdrop.card-page { left: var(--sidebar); background: transparent; animation: none; transition: left .16s ease; }
.drawer.full { width: 100%; box-shadow: none; animation: none; }
.drawer.full .ec-head { padding: 14px 24px; }
.drawer.full .ec-body { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); }
.drawer.full .ec-left { padding: 18px 24px 24px; }
.drawer.full .ec-right { padding: 18px 24px 28px; }
.drawer.full .ec-right > * { width: 100%; max-width: 860px; }
.stage-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 17px; flex: none; max-width: 260px;
  border: 1px solid color-mix(in srgb, var(--c) 40%, #fff); background: color-mix(in srgb, var(--c) 14%, #fff); font-weight: 650; white-space: nowrap; }
.stage-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 24%, #fff); }
.stage-btn:disabled { cursor: default; }
.stage-btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.only-sm { display: none !important; }
.toasts { position: fixed; z-index: 300; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 9px; font-weight: 550; box-shadow: var(--shadow-3); animation: popIn .16s; display: flex; gap: 8px; align-items: center; max-width: min(92vw, 520px); }
.toast.error { background: #B3332B; }
.toast.ok svg { color: #6EE7A8; }
.toast.lead { background: var(--ember-deep); }
.toast.click { pointer-events: auto; cursor: pointer; }
.toast.click:hover { filter: brightness(1.08); }
.menu { position: fixed; z-index: 200; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 5px; animation: popIn .1s; max-height: 70vh; overflow: auto; }
.menu button, .menu a { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; text-align: left; font-weight: 550; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--danger); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 2px; }
.menu .head { padding: 6px 10px 2px; font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- kanban ---------- */
.board { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 16px 24px 18px; overflow-x: auto; overflow-y: hidden; align-items: stretch; }
.col { flex: 0 0 284px; display: flex; flex-direction: column; min-height: 0; background: #ECE8E1; border-radius: 12px; border: 1px solid transparent; transition: border-color .12s, background .12s; }
.col.over { border-color: var(--ember); background: #FBE6DA; }
.col-head { padding: 11px 12px 9px; }
.col-head .title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.col-head .title .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-head .meta { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; color: var(--muted); font-size: 12.5px; padding-left: 16px; }
.col-head .meta b { color: var(--text); font-weight: 650; }
.col-bar { height: 3px; border-radius: 3px; background: var(--c); margin: 0 12px; opacity: .9; }
.col-body { flex: 1; min-height: 60px; overflow-y: auto; padding: 10px 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.col-add { margin: 0 8px 8px; }
.dcard {
  background: var(--surface); border-radius: 10px; padding: 10px 11px; box-shadow: var(--shadow-1); border: 1px solid var(--line);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-x pan-y; display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .12s, border-color .12s, transform .12s;
}
.dcard:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.dcard.dragging { opacity: .35; }
.dcard .name { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.dcard .sum { font-weight: 700; font-variant-numeric: tabular-nums; }
.dcard .who { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.dcard .foot { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.dcard .tags { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; flex: 1; }
.task-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.task-flag.overdue { color: var(--danger); }
.task-flag.today { color: var(--warn); }
.task-flag.none { color: var(--faint); font-weight: 500; }
.drag-ghost { position: fixed; z-index: 400; pointer-events: none; width: 268px; transform: rotate(2.2deg); box-shadow: var(--shadow-3); opacity: .96; cursor: grabbing; }
body.dragging-card, body.dragging-card * { cursor: grabbing !important; }

/* ---------- tables ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow-1); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.table td { padding: 9px 12px; border-bottom: 1px solid #F0EDE7; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #FCFAF7; }
.table tbody tr.sel { background: var(--ember-soft); }
.table td.r, .table th.r { text-align: right; }
.table .cb { width: 34px; padding-right: 0; }
.table .cb input { width: 16px; height: 16px; accent-color: var(--ember); display: block; }
.table th.sortable { cursor: pointer; }
.table th.sortable:hover { color: var(--text); }
.table .strong { font-weight: 650; }
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 2px 0; color: var(--muted); font-size: 13px; }
.bulkbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: var(--radius); margin-bottom: 10px; flex-wrap: wrap; }
.bulkbar .btn { height: 30px; background: var(--ink-3); border-color: var(--ink-3); color: #fff; font-size: 13px; }
.bulkbar .btn:hover { background: #47425A; }

/* ---------- entity card (drawer) ---------- */
.ec-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 20px 12px; display: flex; flex-direction: column; gap: 10px; }
.ec-head .top { display: flex; align-items: flex-start; gap: 10px; }
.ec-title { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; border: 1px solid transparent; border-radius: 7px; padding: 3px 7px; margin: -4px -8px; background: transparent; outline: none; width: 100%; }
.ec-title:hover:not(:disabled) { border-color: var(--line-strong); }
.ec-title:focus { border-color: var(--ember); background: var(--surface); box-shadow: 0 0 0 3px rgba(238, 83, 24, .14); }
.ec-title:disabled { color: var(--text); -webkit-text-fill-color: var(--text); opacity: 1; }
.ec-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.ec-left { overflow-y: auto; padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--line); background: var(--surface); }
.ec-right { overflow-y: auto; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kv { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.kv > .k { color: var(--muted); font-size: 13px; }
.kv .input { height: 32px; border-color: transparent; background: transparent; padding: 0 8px; margin-left: -8px; flex: 1 1 auto; min-width: 0; width: auto; }
.kv .input:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface); }
.kv .input:focus { border-color: var(--ember); background: var(--surface); }
.kv .input:disabled { color: var(--text); -webkit-text-fill-color: var(--text); opacity: 1; background-image: none; }
.kv textarea.input { height: auto; min-height: 32px; padding: 6px 8px; }
.kv .val { min-width: 0; display: flex; align-items: center; gap: 4px; min-height: 32px; }
.kv .val > .tagbox { flex: 1 1 auto; min-width: 0; }
.block { display: flex; flex-direction: column; gap: 8px; }
.block-head { display: flex; align-items: center; gap: 8px; }
.mini { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.mini .body { flex: 1; min-width: 0; }
.mini .t { font-weight: 650; cursor: pointer; }
.mini .t:hover { color: var(--ember-deep); }
.mini .s { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.mini .s a:hover { color: var(--ember-deep); text-decoration: underline; }
.stagebar { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.stagebar::-webkit-scrollbar { display: none; }
.stagebar button {
  flex: 1 1 0; min-width: 72px; border: 0; height: 28px; padding: 0 9px; font-size: 12px; font-weight: 650; color: var(--muted);
  background: #EEEAE3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; transition: filter .12s;
}
.stagebar button:first-child { border-radius: 8px 4px 4px 8px; }
.stagebar button:last-child { border-radius: 4px 8px 8px 4px; }
.stagebar button.done { background: color-mix(in srgb, var(--c) 26%, #fff); color: var(--text); }
.stagebar button.on { background: var(--c); color: #fff; }
.stagebar button:hover:not(:disabled) { filter: brightness(.95); }
.stagebar button:disabled { cursor: default; }
.tagbox { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 32px; }
.tagbox input { border: 0; outline: 0; background: transparent; min-width: 80px; flex: 1; height: 24px; font-size: 13px; }

/* composer + timeline */
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.composer .tabs { padding: 0 6px; }
.composer .tabs button { padding: 9px 10px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.composer .pane { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.composer textarea.input { min-height: 62px; border-color: var(--line); }
.task-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--info)); border-radius: 9px; }
.task-row.overdue { border-left-color: var(--danger); background: #FFF8F7; }
.task-row .body { flex: 1; min-width: 0; }
.task-row .t { font-weight: 600; overflow-wrap: anywhere; }
.task-row .s { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 2px; align-items: center; }
.task-row .s .due { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.task-row .s .due.overdue { color: var(--danger); font-weight: 650; }
.task-row .s .due.today { color: var(--warn); font-weight: 650; }
.tl { display: flex; flex-direction: column; }
.tl-day { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 12px 0 6px; }
.tl-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 6px 0; position: relative; }
.tl-item .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #EEEAE3; color: var(--muted); z-index: 1; }
.tl-item.note .ic { background: var(--ember-soft); color: var(--ember-deep); }
.tl-item.stage .ic { background: var(--info-soft); color: var(--info); }
.tl-item.task_done .ic { background: var(--ok-soft); color: var(--ok); }
.tl-item::before { content: ""; position: absolute; left: 13.5px; top: 34px; bottom: -6px; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item .txt { padding-top: 4px; min-width: 0; overflow-wrap: anywhere; }
.tl-item .meta { color: var(--faint); font-size: 12px; margin-top: 1px; }
.tl-note { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-note .acts { float: right; display: flex; gap: 2px; margin: -4px -6px 0 6px; opacity: 0; transition: opacity .12s; }
.tl-note:hover .acts, .tl-note:focus-within .acts { opacity: 1; }
.arrow-pair { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stage-pill { display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 18%, #fff); font-weight: 650; font-size: 12px; }

/* ---------- tasks page ---------- */
.tboard { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.tcol { background: #ECE8E1; border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tcol h3 { display: flex; align-items: center; gap: 8px; padding: 2px 6px 4px; font-size: 13.5px; }
.tcol h3 .n { color: var(--muted); font-weight: 600; }
.tcol.overdue h3 { color: var(--danger); }
.tcol .none { padding: 14px 8px; color: var(--faint); font-size: 13px; text-align: center; }

/* ---------- dashboard / analytics ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi .lab { color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .sub { color: var(--muted); font-size: 12.5px; }
.kpi.click { cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.kpi.click:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 0; }
.card-head .sub { color: var(--muted); font-size: 12.5px; }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 10px; padding: 9px 18px; border-top: 1px solid #F0EDE7; align-items: flex-start; cursor: pointer; }
.feed-item:first-child { border-top: 0; }
.feed-item:hover { background: #FCFAF7; }
.feed-item .body { flex: 1; min-width: 0; }
.feed-item .when { color: var(--faint); font-size: 12px; white-space: nowrap; }

.funnel { display: flex; flex-direction: column; gap: 9px; padding: 14px 18px 18px; }
.funnel-row { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.funnel-row .lab { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.funnel-row .track { height: 20px; position: relative; border-left: 1px solid #CFC9BE; }
.funnel-row .fill { position: absolute; inset: 0 auto 0 0; border-radius: 0 4px 4px 0; background: var(--c); min-width: 2px; transition: width .3s; }
.funnel-row .nums { font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; white-space: nowrap; min-width: 150px; }
.funnel-row .nums b { font-weight: 700; }
.funnel-row .pct { color: var(--muted); font-size: 12px; }
.bars { padding: 6px 18px 16px; }
.bars svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; padding: 8px 18px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.meter { height: 6px; border-radius: 3px; background: #F1EEE8; overflow: hidden; min-width: 60px; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--c, var(--ember)); }
.chart-tip { position: fixed; z-index: 250; pointer-events: none; background: var(--ink); color: #fff; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; box-shadow: var(--shadow-3); line-height: 1.5; white-space: nowrap; }
.chart-tip b { font-variant-numeric: tabular-nums; }

/* ---------- settings ---------- */
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.subnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.subnav button { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.subnav button:hover { background: #ECE8E1; color: var(--text); }
.subnav button.on { background: var(--surface); color: var(--ember-deep); box-shadow: var(--shadow-1); }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid #F0EDE7; min-height: 48px; }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 600; }
.list-row .s { color: var(--muted); font-size: 12.5px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); background: var(--c); padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.color-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; border: 0; padding: 0; }
.help { color: var(--muted); font-size: 13px; max-width: 70ch; }
.more-ways > summary { cursor: pointer; font-weight: 650; color: var(--muted); padding: 6px 2px; }
.more-ways > summary:hover { color: var(--text); }
.callout { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft); color: #6B4200; font-size: 13px; max-width: 860px; }
.callout svg { margin-top: 1px; }
.creds { margin: 0; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 30px 20px; text-align: center; background: var(--surface); transition: border-color .12s, background .12s; cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--ember); background: var(--ember-soft); }
.steps { display: flex; gap: 8px; align-items: center; color: var(--faint); font-weight: 600; font-size: 13px; flex-wrap: wrap; }
.steps .step { display: inline-flex; align-items: center; gap: 7px; }
.steps .step i { width: 22px; height: 22px; border-radius: 50%; background: #E3DED5; color: var(--muted); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.steps .step.on { color: var(--text); }
.steps .step.on i { background: var(--ember); color: #fff; }
.steps .step.done i { background: var(--ok); color: #fff; }
.map-table td { vertical-align: top; }
.map-table .samples { color: var(--muted); font-size: 12.5px; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker { position: relative; }
.picker-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-3); padding: 5px; max-height: 240px; overflow: auto; }
.picker-pop button { display: flex; flex-direction: column; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 9px; border-radius: 6px; }
.picker-pop button:hover, .picker-pop button.on { background: var(--ember-soft); }
.picker-pop button small { color: var(--muted); }
.picker-pop .new { color: var(--ember-deep); font-weight: 650; flex-direction: row; gap: 6px; align-items: center; }

/* ---------- responsive ---------- */
.bottom-nav { display: none; }
@media (max-width: 1100px) {
  .grid-2 { grid-template-columns: 1fr; }
  .tboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .sidebar { display: none; }
  .bottom-nav { display: flex; background: var(--ink); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); gap: 2px; }
  .bottom-nav button { flex: 1; border: 0; background: transparent; color: var(--ink-text); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; font-size: 10.5px; font-weight: 600; min-width: 0; position: relative; }
  .bottom-nav button.on { color: #fff; background: var(--ink-3); }
  .bottom-nav button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .topbar { padding: 10px 14px; gap: 8px; min-height: 54px; }
  .topbar h1 { font-size: 17px; }
  .topbar .search { margin-left: 0; flex: 1; max-width: none; min-width: 0; }
  .topbar .spacer { display: none; }
  .bottom-nav .count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ember); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
  .page { padding: 14px; }
  .toolbar { padding: 10px 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar > * { flex: none; }
  .toolbar .grow { flex: none; width: 170px; }
  .toolbar .spacer { display: none; }
  .board { padding: 12px 14px; gap: 10px; }
  .col { flex-basis: 82vw; max-width: 320px; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 24px; min-height: 220px; }
  .login-art h1 { font-size: 28px; }
  .ec-body { grid-template-columns: 1fr; overflow-y: auto; }
  .ec-left, .ec-right { overflow: visible; border-right: 0; }
  .ec-left { border-bottom: 1px solid var(--line); }
  .drawer { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; }
  .subnav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 4px; }
  .subnav button { white-space: nowrap; }
  .tboard { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 1fr; gap: 4px; }
  .funnel-row .nums { text-align: left; min-width: 0; }
  .backdrop.center { padding: 16px 10px; }
  .hide-sm { display: none !important; }
  .only-sm { display: inline-grid !important; }
  .backdrop.card-page { left: 0; }
  .drawer.full .ec-head, .drawer.full .ec-left, .drawer.full .ec-right { padding-left: 14px; padding-right: 14px; }
  .drawer.full .ec-head .top { flex-wrap: wrap; }
  .toolbar .btn-primary { order: -1; }
  .banner { padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- раздел «Таблицы»: лист как в электронной таблице ---------- */
.sheet-wrap { flex: 1; min-height: 0; overflow: auto; background: var(--surface); }
.sheet { border-collapse: separate; border-spacing: 0; font-size: 13px; white-space: nowrap; }
.sheet th, .sheet td { border-right: 1px solid #ECE8E1; border-bottom: 1px solid #ECE8E1; padding: 6px 10px; text-align: left; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.sheet th { position: sticky; top: 0; z-index: 2; background: #F4F1EC; font-weight: 650; color: var(--muted); font-size: 12px; user-select: none; }
.sheet th.sortable { cursor: pointer; }
.sheet th.sortable:hover { color: var(--text); }
.sheet th .arrow { color: var(--ember-deep); }
.sheet .n { position: sticky; left: 0; z-index: 1; width: 44px; min-width: 44px; text-align: right; color: var(--faint); background: #F4F1EC; font-variant-numeric: tabular-nums; }
.sheet th.n { z-index: 3; }
.sheet td.r, .sheet th.r { text-align: right; font-variant-numeric: tabular-nums; }
.sheet td.strong { font-weight: 650; }
.sheet td.wide { max-width: 420px; }
.sheet td a { color: inherit; text-decoration: none; }
.sheet td a:hover { color: var(--ember-deep); text-decoration: underline; }
.sheet tbody tr.click { cursor: pointer; }
.sheet tbody tr.click:hover td { background: #FCFAF7; }
.sheet tbody tr.click:hover td.n { background: #ECE8E1; }
.sheet tr.sum td { position: sticky; top: 31px; z-index: 1; background: #FBF7EF; font-weight: 650; }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 8px 24px; border-top: 1px solid var(--line); background: var(--bg); font-size: 13px; min-height: 44px; }
.sheet th.crm, .sheet td.crm { background: #FFF6EE; }
.sheet th.crm { color: var(--ember-deep); }
.sheet-tabs { display: flex; gap: 2px; overflow-x: auto; flex: 0 1 auto; max-width: 70%; }
.sheet-tabs button { border: 1px solid var(--line); border-top: 0; background: var(--surface); height: 30px; padding: 0 12px; border-radius: 0 0 8px 8px; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sheet-tabs button.on { color: var(--ember-deep); background: #FFF6EE; border-color: #F1D3BE; }
.sheet-tabs .cnt { font-size: 11.5px; font-weight: 600; color: var(--faint); }

/* ---------- график смен ---------- */
.shift-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.shift-grid { border-collapse: separate; border-spacing: 0; font-size: 13px; width: 100%; }
.shift-grid th, .shift-grid td { border-right: 1px solid #ECE8E1; border-bottom: 1px solid #ECE8E1; padding: 5px 6px; text-align: left; white-space: nowrap; }
.shift-grid tr:last-child td { border-bottom: 0; }
.shift-grid th:last-child, .shift-grid td:last-child { border-right: 0; }
.shift-grid th { background: #F4F1EC; font-weight: 650; color: var(--muted); font-size: 12px; }
.shift-grid .input { height: 32px; padding: 0 6px; min-width: 88px; background: var(--surface); }
.shift-grid td:nth-child(2) .input { min-width: 172px; }
.shift-grid th:first-child, .shift-grid td.time { position: sticky; left: 0; z-index: 1; }
.shift-grid td.time { background: var(--surface); }
.shift-grid td.time > div { display: flex; align-items: center; gap: 4px; }
.shift-grid td.time .input { min-width: 0; width: 62px; padding: 0 4px; text-align: center; }
.shift-grid input[type=time]::-webkit-calendar-picker-indicator { display: none; }
.shift-grid td.acts { white-space: nowrap; }
.shift-grid tr.k-snack td { background: var(--warn-soft); }
.shift-grid tr.k-off td { background: #EEF0F6; }
.shift-key { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.shift-key i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface); }
.shift-key.k-snack i { background: var(--warn-soft); border-color: #F3DFAE; }
.shift-key.k-off i { background: #EEF0F6; border-color: #D5D9E6; }
.acc-list { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.acc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 12px; }
.acc-row + .acc-row { border-top: 1px solid var(--line); }
.acc-row .input { height: 32px; }
.speed-sum { border-bottom: 8px solid var(--bg); }
.speed-sum > p { padding: 8px 24px; }
.swap-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.swap-row .input { height: 32px; width: auto; }
.swap-row input[type=time] { width: 96px; }
.swap-row.past { opacity: .6; }
.src-box { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.sheet-src { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tab-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 3px 0; }
