/* ==================================================================
   Service Desk — admin
   ================================================================== */

body.admin { font-size: 15px; background: var(--bg); }
/* Base size for admin inputs; component rules further down refine it. */
.admin .input { min-height: 42px; padding: 9px 13px; font-size: .93rem; border-width: 1px; border-radius: 11px; }
.admin textarea.input { min-height: 96px; }
.admin .select-wrap select.input { padding-right: 38px; }
@media (max-width: 760px) { .admin .input { font-size: 16px; } }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }

/* ----------------------------- sidebar ---------------------------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px 14px;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(170, 220, 235, .16), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(157, 209, 177, .10), transparent 60%),
    var(--navy);
  color: #CFE3EC; overflow-y: auto; z-index: 40;
}
.sb-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 14px; }
.sb-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; min-width: 0; }
.sb-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.sb-mark-svg { width: 40px; height: 40px; }
.sb-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sb-brand-text strong { font-size: 1.05rem; letter-spacing: -.01em; color: #fff; }
.sb-brand-text small { font-size: .78rem; color: rgba(207, 227, 236, .75); }
.sidebar .sb-close { display: none; background: transparent; border: 0; color: #fff; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-link {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 12px;
  color: rgba(231, 241, 245, .78); text-decoration: none; font-weight: 550; font-size: .93rem;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.sb-link .icon { width: 19px; height: 19px; opacity: .9; }
.sb-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sb-link.is-active { background: var(--sky); color: var(--navy); font-weight: 650; box-shadow: 0 8px 20px -12px rgba(170, 220, 235, .8); }
.sb-count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .74rem; font-style: normal; font-weight: 700; }
.sb-link.is-active .sb-count { background: var(--navy); }
.sb-label { margin: 18px 12px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(207, 227, 236, .45); }
.sb-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.sb-portal {
  display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 16px 0;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: #fff;
  transition: background .15s var(--ease);
}
.sb-portal:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sb-portal-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 0; background: var(--mint); color: #0F3D25; flex: none; }
.sb-portal strong { display: block; font-size: .86rem; }
.sb-portal small { display: block; font-size: .74rem; color: rgba(207, 227, 236, .7); }
.sb-portal-go { margin-left: auto; width: 16px; height: 16px; opacity: .6; }
.sb-user { display: flex; align-items: center; gap: 8px; padding: 10px 4px 0 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sb-user-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: #fff; padding: 4px; border-radius: 10px; }
.sb-user-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-user-link strong { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-link small { display: block; font-size: .74rem; color: rgba(207, 227, 236, .7); }
.sb-user-link > span:last-child { min-width: 0; }
.btn-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: inherit; }
.sb-logout { color: rgba(231, 241, 245, .7); }
.sb-logout:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sb-backdrop { display: none; }

/* ------------------------------ topbar ---------------------------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  height: 66px; padding: 0 30px;
  background: rgba(243, 247, 248, .86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(0, 38, 62, .06);
}
.topbar-menu { display: none; }
.topbar-search { position: relative; flex: 1; max-width: 540px; }
.topbar-search > .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--subtle); width: 18px; height: 18px; pointer-events: none; }
.topbar-search input[type="search"] {
  width: 100%; height: 42px; padding: 0 44px 0 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: .92rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.topbar-search input:focus { outline: none; border-color: var(--navy-400); box-shadow: 0 0 0 4px rgba(170, 220, 235, .5); }
.topbar-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 .72rem var(--mono); color: var(--subtle); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: #fff; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-soft); font-size: .84rem; font-weight: 650; color: var(--navy); text-decoration: none; box-shadow: var(--shadow-xs); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #E0778B; position: relative; }
.pill-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #E0778B; opacity: 0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

.content { width: 100%; max-width: 1360px; margin: 0 auto; padding: 28px 30px 60px; }

/* ----------------------------- toasts ----------------------------- */
.toast {
  position: fixed; right: 24px; top: 80px; z-index: 60; display: flex; align-items: center; gap: 10px;
  max-width: min(460px, calc(100vw - 32px)); padding: 12px 12px 12px 16px; border-radius: 14px;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500;
  animation: toast-in .45s var(--ease-spring) both;
}
.toast + .toast { top: 142px; }
.toast .icon { width: 19px; height: 19px; flex: none; }
.toast.tone-success .icon { color: var(--mint); }
.toast.tone-error { background: #7E1A2D; }
.toast.tone-error .icon { color: var(--rose); }
.toast.tone-info .icon { color: var(--sky); }
.toast-x { margin-left: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; }
.toast-x .icon { width: 15px; height: 15px; }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* --------------------------- page header -------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 1.7rem; font-weight: 720; letter-spacing: -.028em; }
.page-sub { color: var(--muted); margin-top: 4px; font-size: .95rem; max-width: 640px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 550; }
.crumbs a:hover { color: var(--navy); }
.crumbs .icon { width: 14px; height: 14px; color: var(--subtle); }

/* ----------------------------- panels ----------------------------- */
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: var(--shadow-xs); min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.panel-head h2 { font-size: 1.02rem; font-weight: 680; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.panel-head h2 .icon { color: var(--navy-400); width: 18px; height: 18px; }
.panel-sub { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.panel-body { padding: 16px 20px 20px; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 10px; align-items: center; background: #FBFDFD; border-radius: 0 0 18px 18px; }
.panel + .panel { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.link-more { font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--navy-600); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.link-more .icon { width: 15px; height: 15px; }

/* ------------------------------ KPIs ------------------------------ */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1440px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: var(--shadow-xs);
  text-decoration: none; color: inherit; overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.kpi-label { font-size: .82rem; font-weight: 600; color: var(--muted); padding-right: 40px; }
.kpi-value { font-size: 2rem; font-weight: 720; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
.kpi-value small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.kpi-foot { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.kpi-icon { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px 0; background: var(--t-soft, var(--bg)); color: var(--t-text, var(--navy)); }
.kpi-icon .icon { width: 18px; height: 18px; }
.kpi.is-hot { background: linear-gradient(180deg, #FFF8F9, #fff 70%); border-color: #F6D5DC; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; }
.delta.up-good { color: var(--success); }
.delta.down-bad { color: var(--danger); }
.kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.spark { flex: none; width: 84px; height: 26px; margin-bottom: 6px; }

/* ------------------------------ charts ---------------------------- */
.chart-wrap { position: relative; }
.chart { width: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: #E9EFF1; stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: #C9D3D7; stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { font-size: 11px; fill: #87939A; font-variant-numeric: tabular-nums; }
.chart .bar { fill: #2F8FB5; transition: fill .12s; }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .bar-hit:hover + .bar, .chart .is-hover .bar { fill: #1F6F93; }
.chart .hl-line { stroke: #00263E; stroke-width: 1; opacity: .15; }
.viz-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 110px; padding: 8px 11px; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: .8rem; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 10px));
  opacity: 0; transition: opacity .12s;
}
.viz-tip.is-on { opacity: 1; }
.viz-tip strong { display: block; font-size: 1.05rem; font-weight: 700; }
.viz-tip span { color: rgba(207, 227, 236, .85); }
.viz-table { margin-top: 12px; }
.viz-table summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--navy-600); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.viz-table summary::-webkit-details-marker { display: none; }
.viz-table table { margin-top: 10px; font-size: .82rem; }

.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hbar-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-radius: 12px; }
.hbar-row:hover .hbar-fill { background: #1F6F93; }
.hbar-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px 0; background: var(--t-bg); color: var(--t-fg); }
.hbar-tile .icon { width: 17px; height: 17px; }
.hbar-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hbar-name { font-size: .88rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { display: block; height: 10px; position: relative; }
.hbar-fill { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; background: #2F8FB5; transition: width .8s var(--ease), background .12s; }
.hbar-val { font-weight: 700; color: var(--ink); font-size: .95rem; min-width: 24px; text-align: right; }

.pipeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pipe { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--t-soft); text-decoration: none; color: inherit; transition: transform .15s var(--ease); min-width: 0; }
.pipe:hover { transform: translateY(-2px); color: inherit; }
.pipe strong { font-size: 1.6rem; font-weight: 720; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.pipe .badge { align-self: flex-start; background: #fff; }

/* ------------------------------ lists ----------------------------- */
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li + li { border-top: 1px solid var(--line-soft); }
.tlist-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; text-decoration: none; color: inherit; transition: background .12s; }
.tlist-item:hover { background: #F7FBFC; color: inherit; }
.tlist-title { font-weight: 600; color: var(--ink); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlist-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.tlist-empty { padding: 26px 20px; text-align: center; color: var(--muted); font-size: .9rem; }
.tlist-empty .icon { width: 30px; height: 30px; color: var(--mint); display: block; margin: 0 auto 8px; }
.ref-tag { font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--navy-600); background: var(--bg); padding: 2px 7px; border-radius: 6px; }

/* ----------------------------- checklist -------------------------- */
.setup { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px 18px; align-items: center; padding: 20px 22px 22px; margin-bottom: 18px;
  background: linear-gradient(120deg, #EAF6FA 0%, #fff 55%); border-color: #D4EAF2; }
.setup-ring { position: relative; width: 76px; height: 76px; }
.setup-ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.setup-ring circle { fill: none; stroke-width: 10; }
.setup-ring .track { stroke: #D4EAF2; }
.setup-ring .fill { stroke: var(--navy); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.setup-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 750; font-size: 1.1rem; color: var(--navy); }
.setup h2 { font-size: 1.15rem; }
.setup-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 1100px) { .setup-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.setup-list li { display: flex; }
.setup-list a { flex: 1; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line-soft); text-decoration: none; color: inherit; transition: border-color .15s; }
.setup-list a:hover { border-color: var(--sky-600); color: inherit; }
.setup-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); color: transparent; margin-top: 1px; }
.setup-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.is-done .setup-check { background: var(--mint); border-color: var(--mint); color: #0F3D25; }
.setup-list strong { display: block; font-size: .88rem; color: var(--ink); }
.is-done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.setup-list small { display: block; font-size: .78rem; color: var(--muted); }

/* ------------------------------ tabs ------------------------------ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-count { min-width: 22px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--line-soft); color: var(--muted); font-size: .72rem; font-weight: 700; }
.tab.is-active .tab-count { background: var(--navy); color: #fff; }
.tab-count.is-hot { background: var(--rose-soft); color: #9C2139; }

/* ----------------------------- filters ---------------------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .select-wrap { min-width: 150px; }
.input-sm, .filters .input { min-height: 40px; height: 40px; padding: 0 12px; font-size: .88rem; border-radius: 10px; border-width: 1px; }
.filters .select-wrap select.input { padding-right: 34px; }
.filters .select-wrap .select-caret { right: 11px; width: 15px; height: 15px; }
.filter-search { position: relative; flex: 1; min-width: 200px; max-width: 320px; }
.filter-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--subtle); z-index: 1; pointer-events: none; }
.filter-search .input { padding-left: 34px; }
.filters .spacer { flex: 1; }
.filter-clear { font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }

/* ------------------------------ table ----------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--subtle); padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: #FAFCFD; white-space: nowrap; }
.table th:first-child { border-top-left-radius: 18px; padding-left: 20px; }
.table th:last-child { border-top-right-radius: 18px; padding-right: 20px; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table td:first-child { padding-left: 20px; }
.table td:last-child { padding-right: 20px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tr.is-link { cursor: pointer; }
.table tr.is-link:hover td { background: #F7FBFC; }
.table tr.is-selected td { background: #EEF7FB; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.t-subject { font-weight: 620; color: var(--ink); text-decoration: none; display: block; max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-subject:hover { color: var(--navy-600); }
.t-sub { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 2px; white-space: nowrap; }
.t-sub .icon { width: 13px; height: 13px; }
.t-person { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .86rem; }
.t-muted { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.t-new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4FA9C7; margin-right: 2px; vertical-align: middle; }
.check { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }

.bulkbar {
  position: sticky; bottom: 18px; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px auto 0; width: fit-content; max-width: 100%; padding: 10px 12px 10px 18px; border-radius: 16px;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease-spring) both;
}
.bulkbar strong { font-size: .9rem; margin-right: 6px; }
.bulkbar .input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; }
.bulkbar .input option { color: var(--ink); }
.bulkbar .select-caret { color: #fff !important; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line-soft); font-size: .86rem; color: var(--muted); }
.pager-links { display: flex; gap: 6px; }

.empty { text-align: center; padding: 56px 20px; }
.empty-art { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 26px 0; background: linear-gradient(135deg, var(--sky-soft), #fff); border: 1px solid var(--line-soft); color: var(--navy-400); margin-bottom: 14px; }
.empty-art .icon { width: 34px; height: 34px; }
.empty h3 { font-size: 1.1rem; margin-bottom: 4px; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto; font-size: .92rem; }

/* ---------------------------- form bits --------------------------- */
.form-grid-admin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid-admin .full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; min-width: 0; }
.fld > label, .fld-label { font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 6px; display: flex; gap: 6px; align-items: baseline; }
.fld-label small, .fld > label small { font-weight: 500; color: var(--subtle); font-size: .78rem; margin-left: auto; }
.fld-help { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.fld-error { font-size: .8rem; color: var(--danger); margin-top: 6px; font-weight: 550; }
.fld.has-error .input { border-color: var(--danger); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 11px 0 0 11px; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.input-prefix .input { border-radius: 0 11px 11px 0; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: #CBD5DA; transition: background .2s var(--ease); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 38, 62, .3); transition: transform .25s var(--ease-spring); }
.switch input:checked + .switch-track { background: #3FA46E; }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--focus-ring); }
.switch-text strong { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
.switch-text small { display: block; font-size: .8rem; color: var(--muted); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.switch-row:first-child { border-top: 0; padding-top: 0; }
.switch-row .switch { flex-direction: row-reverse; justify-content: space-between; width: 100%; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s var(--ease); white-space: nowrap; }
.seg span .icon { width: 15px; height: 15px; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { box-shadow: var(--focus-ring); }

.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: all .15s var(--ease); }
.radio-card strong { font-size: .92rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.radio-card small { font-size: .8rem; color: var(--muted); }
.radio-card input:checked + span { border-color: var(--navy); background: #F4FAFC; box-shadow: 0 0 0 3px rgba(170, 220, 235, .45); }
.radio-card input:focus-visible + span { box-shadow: var(--focus-ring); }

.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .9rem; background: #fff; }
.check-item:has(input:checked) { border-color: var(--navy-400); background: #F4FAFC; }

.danger-zone { border-color: #F6D5DC; }
.danger-zone .panel-head h2 { color: #8E1B31; }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.danger-row + .danger-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.danger-row strong { display: block; color: var(--ink); font-size: .92rem; }
.danger-row small { color: var(--muted); font-size: .82rem; }

/* ----------------------------- ticket ----------------------------- */
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ticket-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 86px; }
.ticket-head { padding: 22px 22px 20px; position: relative; overflow: hidden; }
.ticket-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--t-bg, var(--sky)); }
.ticket-head-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticket-head h1 { font-size: 1.45rem; letter-spacing: -.02em; margin-top: 12px; font-weight: 700; overflow-wrap: anywhere; }
.topic-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.topic-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line-soft); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .15s var(--ease); }
.topic-chip .hbar-tile { width: 30px; height: 30px; border-radius: 10px 0; }
.topic-chip:hover { border-color: var(--t-bg); color: var(--ink); }
.topic-chip.is-active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(170, 220, 235, .45); }
.new-ticket .btn-submit { width: auto; min-width: 0; }
.new-ticket .panel-body .form-grid { gap: 18px 16px; }
.quick-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.quick-hint { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); margin-left: 4px; }
.quick-hint .icon { width: 14px; height: 14px; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--muted); font-size: .86rem; }
.ticket-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-meta .icon { width: 15px; height: 15px; }

.details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.details > div { padding: 12px 20px; border-top: 1px solid var(--line-soft); min-width: 0; }
.details > div.wide { grid-column: 1 / -1; }
.details dt { font-size: .76rem; font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.details dd { margin: 3px 0 0; color: var(--ink); font-size: .93rem; overflow-wrap: anywhere; white-space: pre-line; }
.details dd.is-empty { color: var(--subtle); }
.yes-no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.yes-no.is-yes { color: #9C2139; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 4px 20px 20px; }
.gallery-item { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg); border: 1px solid var(--line-soft); text-decoration: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-file { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 10px; text-align: center; color: var(--navy-600); }
.gallery-file .icon { width: 28px; height: 28px; }
.gallery-file span { font-size: .74rem; color: var(--muted); word-break: break-all; line-height: 1.3; }
.gallery-cap { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 7px; border-radius: 8px; background: rgba(0, 38, 62, .72); color: #fff; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .15s; }
.gallery-item:hover .gallery-cap { opacity: 1; }

.timeline { list-style: none; margin: 0; padding: 6px 20px 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 35px; top: 18px; bottom: 30px; width: 2px; background: var(--line-soft); }
.tl-event { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: .86rem; color: var(--muted); }
.tl-event strong { color: var(--text); font-weight: 600; }
.tl-dot { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--navy-400); }
.tl-dot .icon { width: 15px; height: 15px; }
.tl-time { margin-left: auto; font-size: .78rem; color: var(--subtle); white-space: nowrap; padding-left: 10px; }
.tl-msg { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.tl-msg .avatar { width: 32px; height: 32px; position: relative; z-index: 1; box-shadow: 0 0 0 4px #fff; }
.tl-card { border-radius: 4px 16px 16px 16px; padding: 12px 16px 14px; background: var(--bg); border: 1px solid var(--line-soft); min-width: 0; }
.tl-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.tl-card-head strong { color: var(--ink); font-size: .88rem; }
.tl-card-head .tl-time { margin-left: auto; padding-left: 0; }
.tl-body { font-size: .93rem; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-msg.is-reply .tl-card { background: var(--sky-soft); border-color: #D2EAF2; }
.tl-msg.is-note .tl-card { background: #FFF9EA; border-color: #F3E3B5; }
.tl-msg.is-requester .tl-card { background: #fff; border-color: var(--line); }
.tl-kind { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.tl-kind .icon { width: 12px; height: 12px; }
.tl-msg.is-reply .tl-kind { background: #fff; color: #0B4A66; }
.tl-msg.is-note .tl-kind { background: #FBEFC9; color: #6B4E0B; }
.tl-msg.is-requester .tl-kind { background: var(--mint-soft); color: var(--success); }
.tl-msg:target .tl-card { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px rgba(170, 220, 235, .8); } 100% { box-shadow: none; } }

.composer { overflow: hidden; }
.composer-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line-soft); background: #FAFCFD; }
.composer-tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; background: none; border-radius: 10px 10px 0 0; font-weight: 600; font-size: .87rem; color: var(--muted); margin-bottom: -1px; border-bottom: 2px solid transparent; }
.composer-tab .icon { width: 16px; height: 16px; }
.composer-tab.is-active { color: var(--navy); border-bottom-color: var(--navy); background: #fff; }
.composer.is-note .composer-tab.is-active { border-bottom-color: #D9A21E; }
.composer-body { padding: 14px 16px 0; }
.composer textarea.input { min-height: 120px; border: 0; padding: 4px 2px; box-shadow: none !important; font-size: .95rem; resize: vertical; }
.composer.is-note .composer-body { background: #FFFCF3; }
.composer-hint { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 0 2px 10px; }
.composer-hint .icon { width: 14px; height: 14px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line-soft); background: #FBFDFD; }
.composer-foot label { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.composer-foot .select-wrap { min-width: 170px; }
.composer.is-note .composer-foot { background: #FFFCF3; }

.props { padding: 6px 18px 18px; }
.prop { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; }
.prop + .prop { border-top: 1px dashed var(--line-soft); }
.prop > span { font-size: .8rem; font-weight: 650; color: var(--muted); }
.prop .input { min-height: 38px; height: 38px; padding-top: 0; padding-bottom: 0; font-size: .88rem; }
.prop-quick { font-size: .78rem; font-weight: 600; background: none; border: 0; color: var(--navy-600); padding: 0; margin-top: 4px; text-align: left; }
.person-card { display: flex; gap: 12px; align-items: center; }
.person-card strong { display: block; color: var(--ink); font-size: .95rem; }
.person-card small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-list a, .contact-list span.none { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--bg); text-decoration: none; color: var(--ink); font-size: .87rem; overflow-wrap: anywhere; }
.contact-list a:hover { background: var(--sky-soft); }
.contact-list .icon { width: 16px; height: 16px; color: var(--navy-400); flex: none; }
.contact-list span.none { color: var(--subtle); }
.meta-list { margin: 0; padding: 4px 18px 16px; }
.meta-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .84rem; }
.meta-list > div + div { border-top: 1px dashed var(--line-soft); }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; color: var(--ink); font-weight: 550; text-align: right; }
.delivery { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .82rem; }
.delivery + .delivery { border-top: 1px dashed var(--line-soft); }
.delivery-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.delivery-ico .icon { width: 14px; height: 14px; }
.delivery.is-sent .delivery-ico { background: var(--mint-soft); color: var(--success); }
.delivery.is-failed .delivery-ico { background: var(--danger-soft); color: var(--danger); }
.delivery.is-skipped .delivery-ico { background: var(--sun-soft); color: var(--warning); }
.delivery-main { min-width: 0; flex: 1; }
.delivery-main strong { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delivery-main small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------- categories --------------------------- */
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cat-row {
  display: grid; grid-template-columns: 26px 56px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 16px 18px 16px 10px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: var(--shadow-xs);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.cat-row:hover { box-shadow: var(--shadow-sm); }
.cat-row.is-dragging { box-shadow: var(--shadow-lg); transform: scale(1.01); z-index: 10; position: relative; }
.cat-row.is-muted { opacity: .72; }
.cat-row.is-muted .cat-tile { filter: grayscale(.6); }
.drag-handle { display: grid; place-items: center; width: 26px; height: 40px; border: 0; background: none; color: #B5C1C6; cursor: grab; border-radius: 8px; touch-action: none; }
.drag-handle:hover { color: var(--navy-400); background: var(--bg); }
.drag-handle:active { cursor: grabbing; }
.cat-tile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px 0; background: var(--t-bg); color: var(--t-fg); }
.cat-tile .icon { width: 26px; height: 26px; }
.cat-info { min-width: 0; }
.cat-info h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-info h3 a { color: inherit; text-decoration: none; }
.cat-info p { color: var(--muted); font-size: .86rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.cat-facts span { display: inline-flex; align-items: center; gap: 5px; }
.cat-facts .icon { width: 14px; height: 14px; }
.cat-facts .warn { color: #9C2139; font-weight: 600; }
.cat-actions { display: flex; gap: 8px; align-items: center; }
.state-pill { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.state-pill.is-on { background: var(--mint-soft); color: var(--success); }
.state-pill.is-off { background: var(--bg); color: var(--muted); }
.state-pill.is-archived { background: var(--sun-soft); color: var(--warning); }

.phone {
  position: sticky; top: 86px; width: 300px; margin: 0 auto; padding: 12px; border-radius: 42px;
  background: linear-gradient(145deg, #0A3551, #00263E); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 999px; background: #000; z-index: 2; opacity: .85; }
.phone-screen { position: relative; border-radius: 32px; overflow: hidden; background: #fff; aspect-ratio: 9 / 19.2; }
.phone-screen iframe { position: absolute; top: 30px; left: 0; width: 375px; height: 800px; border: 0; transform: scale(.7307); transform-origin: 0 0; }
.phone-screen::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 30px; background: #F2F9FB; }
.phone-cap { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 12px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.phone-cap .icon { width: 14px; height: 14px; }

.cat-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cat-edit-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 214px; overflow-y: auto; padding: 4px; margin: -4px; }
.icon-opt { position: relative; }
.icon-opt input { position: absolute; opacity: 0; }
.icon-opt span { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; color: var(--navy-600); cursor: pointer; transition: all .12s; }
.icon-opt span:hover { border-color: var(--sky-600); background: var(--sky-soft); }
.icon-opt .icon { width: 20px; height: 20px; }
.icon-opt input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.icon-opt input:focus-visible + span { box-shadow: var(--focus-ring); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 12px 0; background: var(--t-bg); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 38, 62, .08); transition: transform .15s var(--ease-spring); }
.swatch span:hover { transform: scale(1.08); }
.swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.swatch input:focus-visible + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sky-600); }

.preview-card { padding: 18px; }
.preview-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 10px; }
.mini-cat { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line-soft); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.mini-cat .cat-tile { width: 50px; height: 50px; border-radius: 16px 0; }
.mini-cat strong { display: block; font-size: 1.02rem; color: var(--ink); }
.mini-cat small { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.mini-cat .go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--navy); }
.mini-cat .go .icon { width: 16px; height: 16px; }

.flow { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: flex-start; position: relative; padding-bottom: 16px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 4px, transparent 4px 8px); }
.flow-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px 0; background: var(--bg); color: var(--navy-600); }
.flow-ico .icon { width: 17px; height: 17px; }
.flow-step.is-on .flow-ico { background: var(--navy); color: #fff; }
.flow-step strong { display: block; font-size: .88rem; color: var(--ink); margin-top: 1px; }
.flow-step small { display: block; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.flow-step.is-off small { color: var(--subtle); font-style: italic; }

.chips-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: text; transition: border-color .15s, box-shadow .15s; }
.chips-input:focus-within { border-color: var(--navy-400); box-shadow: 0 0 0 4px rgba(170, 220, 235, .5); }
.chips-input input { flex: 1; min-width: 180px; border: 0; outline: 0; padding: 4px; font-size: .92rem; background: transparent; }
.email-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border-radius: 8px 0; background: var(--sky-soft); color: #0B4A66; font-size: .84rem; font-weight: 600; }
.email-chip.is-bad { background: var(--danger-soft); color: var(--danger); }
.email-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 6px; background: transparent; color: inherit; }
.email-chip button:hover { background: rgba(0, 38, 62, .08); }
.email-chip .icon { width: 12px; height: 12px; stroke-width: 2.6; }

/* ----------------------------- builder ---------------------------- */
body.is-builder .content { max-width: none; padding-bottom: 30px; }
.builder-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.builder-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.builder-title .cat-tile { width: 48px; height: 48px; border-radius: 15px 0; }
.builder-title h1 { font-size: 1.4rem; letter-spacing: -.02em; }
.builder-title p { font-size: .86rem; color: var(--muted); }
.save-state { font-size: .84rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state.is-dirty { color: var(--warning); }
.save-state.is-saved { color: var(--success); }
.save-state .icon { width: 15px; height: 15px; }
.builder { display: grid; grid-template-columns: 224px minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
@media (max-width: 1500px) { .palette .pal-btn small { display: none; } .builder { grid-template-columns: 196px minmax(0, 1fr) 310px; } }
.palette { position: sticky; top: 86px; padding: 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
.palette h3 { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); margin: 12px 4px 8px; }
.palette h3:first-child { margin-top: 2px; }
.pal-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 12px; background: none; text-align: left; transition: all .12s; }
.pal-btn:hover { background: var(--bg); border-color: var(--line-soft); }
.pal-btn:active { transform: scale(.98); }
.pal-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px 0; background: var(--sky-soft); color: var(--navy-600); flex: none; }
.pal-ico .icon { width: 17px; height: 17px; }
.pal-btn strong { display: block; font-size: .86rem; color: var(--ink); font-weight: 600; }
.pal-btn small { display: block; font-size: .74rem; color: var(--muted); }
.pal-btn .plus { margin-left: auto; width: 16px; height: 16px; color: var(--subtle); opacity: 0; transition: opacity .12s; }
.pal-btn:hover .plus { opacity: 1; }

.canvas { padding: 22px; min-height: 60vh; background: #fff; }
.canvas-head { padding: 4px 4px 18px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); display: flex; gap: 14px; align-items: center; }
.canvas-head .cat-tile { width: 46px; height: 46px; border-radius: 14px 0; }
.canvas-head strong { display: block; font-size: 1.15rem; color: var(--ink); }
.canvas-head small { display: block; color: var(--muted); font-size: .84rem; }
.canvas-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.blk {
  position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px;
  padding: 12px 12px 14px 6px; border-radius: 14px; border: 1.5px solid transparent; background: #fff; cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .15s;
}
.blk.is-half { grid-column: span 1; }
.blk:hover { border-color: var(--line); background: #FCFEFE; }
.blk.is-selected { border-color: var(--navy-400); background: #F6FBFD; box-shadow: 0 0 0 4px rgba(170, 220, 235, .35); }
.blk.is-dragging { opacity: .95; box-shadow: var(--shadow-lg); z-index: 5; background: #fff; }
.blk-grip { display: grid; place-items: center; align-self: stretch; border: 0; background: none; color: #C3CDD1; cursor: grab; border-radius: 8px; padding: 0; touch-action: none; }
.blk-grip:hover { color: var(--navy-400); background: var(--bg); }
.blk-grip .icon { width: 16px; height: 16px; }
.blk-main { min-width: 0; }
.blk-label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; line-height: 1.35; }
.blk-label .req { color: var(--danger); }
.blk-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: -2px 0 7px; }
.blk-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.blk-tag .icon { width: 11px; height: 11px; stroke-width: 2.4; }
.blk-tag.role { background: var(--mint-soft); color: var(--success); }
.blk-help { font-size: .8rem; color: var(--muted); margin: -2px 0 6px; }
.blk-mock { min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: #9AA5AB; font-size: .88rem; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.blk-mock.tall { min-height: 76px; align-items: flex-start; }
.blk-mock .icon { width: 16px; height: 16px; }
.blk-choices { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.blk-choice { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; color: var(--text); background: #fff; }
.blk-choice i { width: 13px; height: 13px; border: 1.6px solid #B7C3C8; border-radius: 4px; }
.blk-choice.radio i { border-radius: 50%; }
.blk-drop { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: 1.5px dashed #B9DDE9; border-radius: 12px; background: #F6FBFD; color: var(--navy-600); font-size: .86rem; font-weight: 600; pointer-events: none; }
.blk-heading { font-size: 1.05rem; font-weight: 700; color: var(--ink); padding: 4px 0 0; }
.blk-info { display: flex; gap: 10px; padding: 11px 13px; border-radius: 12px 0; background: var(--sky-soft); color: #0B4A66; font-size: .86rem; pointer-events: none; }
.blk-info.tone-warning { background: var(--rose-soft); color: #7A2F3E; }
.blk-info.tone-success { background: var(--mint-soft); color: var(--success); }
.blk-info .icon { width: 18px; height: 18px; flex: none; }
.blk-actions { position: absolute; top: -14px; right: 10px; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: #fff; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; pointer-events: none; }
.blk:hover .blk-actions, .blk.is-selected .blk-actions { pointer-events: auto; transform: none; }
.blk:hover .blk-actions, .blk.is-selected .blk-actions { opacity: 1; }
.blk-actions button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-soft); background: #fff; color: var(--muted); }
.blk-actions button:hover { color: var(--navy); border-color: var(--line); }
.blk-actions button.del:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.blk-actions .icon { width: 14px; height: 14px; }
.blk-placeholder { grid-column: 1 / -1; border: 2px dashed var(--sky-600); border-radius: 14px; background: var(--sky-soft); }
.canvas-empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); }
.canvas-empty .icon { width: 32px; height: 32px; color: var(--navy-400); display: block; margin: 0 auto 8px; }
.canvas-add { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: none; color: var(--navy-600); font-weight: 600; font-size: .88rem; }
.canvas-add:hover { border-color: var(--navy-400); background: var(--bg-tint); }
.canvas-foot { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; }
.canvas-foot .fake-submit { padding: 10px 18px; border-radius: 12px 0; background: var(--navy); color: #fff; font-weight: 600; opacity: .8; }

.inspector { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto; }
.inspector-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.inspector-head .pal-ico { width: 38px; height: 38px; }
.inspector-head strong { display: block; color: var(--ink); }
.inspector-head small { display: block; color: var(--muted); font-size: .8rem; }
.inspector-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 16px; }
.inspector-empty { padding: 40px 22px; text-align: center; color: var(--muted); font-size: .9rem; }
.inspector-empty .icon { width: 30px; height: 30px; color: var(--navy-400); display: block; margin: 0 auto 10px; }
.opt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.opt-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 32px; gap: 6px; align-items: center; background: #fff; border-radius: 10px; }
.opt-row.is-dragging { box-shadow: var(--shadow); }
.opt-row .input { min-height: 36px; height: 36px; padding: 0 10px; font-size: .88rem; }
.opt-row .drag-handle { width: 20px; height: 32px; }
.opt-row .drag-handle .icon { width: 14px; height: 14px; }
.opt-del { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--subtle); }
.opt-del:hover { background: var(--danger-soft); color: var(--danger); }
.opt-del .icon { width: 15px; height: 15px; }
.opt-actions { display: flex; gap: 8px; margin-top: 8px; }
.builder-mobile-add { display: none; }

.modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.modal::backdrop { background: rgba(0, 38, 62, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .3s var(--ease-spring); }
.modal-card { width: 420px; max-width: 100%; padding: 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); }
.modal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px 0; background: var(--danger-soft); color: var(--danger); margin-bottom: 14px; }
.modal-title { font-size: 1.2rem; }
.modal-text { color: var(--muted); margin-top: 6px; font-size: .93rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal-phone { background: transparent; }
.modal-phone .phone { position: relative; top: 0; }
.modal-close { position: absolute; top: -8px; right: -8px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow); display: grid; place-items: center; }
.lightbox { background: transparent; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 16px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox .modal-close { top: 8px; right: 8px; }

/* ------------------------------- QR ------------------------------- */
.qr-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; padding: 26px; align-items: center;
  background: radial-gradient(90% 120% at 100% 0%, var(--sky-soft) 0%, #fff 60%); }
.qr-frame { position: relative; padding: 20px; border-radius: 30px 0; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.qr-frame svg { width: 100%; height: auto; }
.qr-frame::after { content: ""; position: absolute; inset: -8px; border-radius: 36px 0; border: 2px dashed rgba(149, 211, 230, .6); pointer-events: none; }
.qr-url { display: flex; align-items: center; gap: 8px; margin: 12px 0 18px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: .86rem; color: var(--navy); overflow-wrap: anywhere; }
.qr-url .icon { width: 16px; height: 16px; flex: none; color: var(--navy-400); }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-hero h2 { font-size: 1.35rem; letter-spacing: -.02em; }
.qr-hero p { color: var(--muted); margin-top: 6px; max-width: 520px; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; align-items: stretch; }
.qr-grid > .panel { margin-top: 0; }
.qr-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.qr-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qr-card-top > span:last-child { min-width: 0; }
.qr-card-top small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-card .qr-actions { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.qr-card .qr-actions .btn { padding: 0 6px; }
.qr-card-top .cat-tile { width: 40px; height: 40px; border-radius: 12px 0; }
.qr-card-top .cat-tile .icon { width: 19px; height: 19px; }
.qr-card-top strong { display: block; color: var(--ink); }
.qr-card-top small { display: block; color: var(--muted); font-size: .78rem; font-family: var(--mono); overflow-wrap: anywhere; }
.qr-mini { padding: 12px; border-radius: 18px 0; background: #fff; border: 1px solid var(--line-soft); }
.qr-mini svg { width: 100%; height: auto; }
.poster-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 12px; align-items: end; }

/* ------------------------------ team ------------------------------ */
.link-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 18px; border-radius: 16px; background: linear-gradient(120deg, #EAF6FA, #fff); border: 1px solid #D4EAF2; flex-wrap: wrap; }
.link-box .icon-tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px 0; background: var(--navy); color: #fff; flex: none; }
.link-box-main { flex: 1; min-width: 240px; }
.link-box-main strong { display: block; color: var(--ink); }
.link-box-main small { display: block; color: var(--muted); font-size: .82rem; }
.link-box code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .78rem; color: var(--navy); overflow-wrap: anywhere; }
.access-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.access-chips .chip { height: 24px; font-size: .74rem; }
.access-chips .chip .icon { width: 13px; height: 13px; }

/* ---------------------------- settings ---------------------------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.settings-nav a .icon { width: 17px; height: 17px; }
.settings-nav a:hover { background: #fff; color: var(--navy); }
.settings-nav a.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow-xs); }
.settings section { scroll-margin-top: 90px; }
.logo-now { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--bg); }
.logo-now img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.logo-now .brand-text { font-size: 1.3rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.status-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; margin-bottom: 16px; }
.status-line .icon { width: 18px; height: 18px; flex: none; }
.status-line.is-ok { background: var(--mint-soft); color: var(--success); }
.status-line.is-warn { background: var(--sun-soft); color: var(--warning); }
.provider-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.provider-hints button { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy-600); }
.provider-hints button:hover { border-color: var(--navy-400); }
.test-result { font-size: .86rem; display: none; align-items: center; gap: 8px; }
.test-result.is-ok { display: inline-flex; color: var(--success); }
.test-result.is-bad { display: inline-flex; color: var(--danger); }
.test-result .icon { width: 16px; height: 16px; }

/* ------------------------------ auth ------------------------------ */
body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.auth-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px;
  background: radial-gradient(90% 70% at 10% 0%, rgba(170, 220, 235, .28), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(247, 188, 199, .18), transparent 60%), var(--navy);
  color: #fff;
}
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; }
.auth-brand .sb-mark { width: 40px; height: 40px; }
.auth-brand small { display: block; font-weight: 500; font-size: .82rem; color: rgba(207, 227, 236, .75); }
.auth-quote h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; line-height: 1.08; font-weight: 750; max-width: 460px; }
.auth-quote p { color: rgba(207, 227, 236, .85); margin-top: 14px; max-width: 420px; font-size: 1.02rem; }
.auth-cards { position: relative; height: 230px; margin: 30px 0; }
.auth-card { position: absolute; display: flex; align-items: center; gap: 12px; width: 330px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); animation: float 7s ease-in-out infinite; }
.auth-card .cat-tile { width: 42px; height: 42px; border-radius: 13px 0; }
.auth-card .cat-tile .icon { width: 20px; height: 20px; }
.auth-card strong { display: block; font-size: .9rem; }
.auth-card small { display: block; font-size: .78rem; color: var(--muted); }
.auth-card .badge { margin-left: auto; }
.auth-card:nth-child(1) { left: 0; top: 0; }
.auth-card:nth-child(2) { left: 70px; top: 80px; animation-delay: -2.3s; }
.auth-card:nth-child(3) { left: 20px; top: 160px; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.auth-foot { font-size: .8rem; color: rgba(207, 227, 236, .6); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; animation: rise .5s var(--ease) both; }
.auth-box h1 { font-size: 1.9rem; letter-spacing: -.03em; font-weight: 750; }
.auth-box > p { color: var(--muted); margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.auth-form .input { min-height: 50px; font-size: 1rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.auth-row a { font-weight: 600; text-decoration: none; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 10px; }
.pw-toggle:hover { color: var(--navy); background: var(--bg); }
.pw-meter { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 8px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: #E0778B; transition: width .25s var(--ease), background .25s; }

/* ---------------------------- responsive -------------------------- */
@media (max-width: 1180px) {
  .ticket-layout, .cat-edit { grid-template-columns: minmax(0, 1fr); }
  .ticket-side, .cat-edit-side { position: static; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-layout .phone-col { display: none; }
  .builder { grid-template-columns: minmax(0, 1fr) 320px; }
  .palette { display: none; }
  .builder-mobile-add { display: inline-flex; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 38, 62, .4); backdrop-filter: blur(2px); }
  .sidebar .sb-close { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .topbar-menu { display: inline-grid; }
  .topbar-search kbd, .topbar-portal span { display: none; }
  .content { padding: 20px 16px 50px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .qr-hero { grid-template-columns: minmax(0, 1fr); }
  .qr-hero .qr-frame { max-width: 280px; }
  body.auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
}
@media (max-width: 860px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .inspector { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 72vh; z-index: 45; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .inspector.is-open { transform: none; }
  .canvas-list { grid-template-columns: minmax(0, 1fr); }
  .blk.is-half { grid-column: 1 / -1; }
  .poster-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .page-head h1 { font-size: 1.4rem; }
  .form-grid-admin { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-value { font-size: 1.6rem; }
  .spark { display: none; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .details { grid-template-columns: minmax(0, 1fr); }
  .setup { grid-template-columns: minmax(0, 1fr); }
  .cat-row { grid-template-columns: 24px 48px minmax(0, 1fr); }
  .cat-row .cat-tile { width: 48px; height: 48px; }
  .cat-actions { grid-column: 2 / -1; flex-wrap: wrap; }
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .table.responsive td { padding: 0 !important; border: 0; }
  .table.responsive td.col-check { grid-row: span 3; }
  .table.responsive td.col-main { grid-column: 2 / -1; }
  .table.responsive td.col-hide-sm { display: none; }
  .table.responsive td.col-status { grid-column: 2; }
  .table.responsive td.col-time { grid-column: 3; text-align: right; }
  .t-subject { white-space: normal; }
  .toast { left: 16px; right: 16px; top: 74px; max-width: none; }
}
@media print {
  .sidebar, .topbar, .composer, .bulkbar { display: none !important; }
  .shell { display: block; }
}
