/* Cleaning Tâches - app mobile perso (style Sellers, bottom nav par statut) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #F5F6F4;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  overflow: hidden;
}
#app { height: 100%; display: flex; flex-direction: column; min-height: 0; }
:root {
  --brand: #F0AF02; --brand-light: #FFD24D; --brand-dark: #C99202;
  --ink: #0b1220; --muted: #6b7280; --line: #e5e7eb; --bg: #F5F6F4;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

/* ─── HEADER ─────────────────────────────────────────────── */
.appbar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-t)) 16px 12px;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(15,23,42,0.05);
  z-index: 10;
}
.appbar .brand {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #000; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(240,175,2,0.32);
}
.appbar .titles { flex: 1; min-width: 0; line-height: 1.15; }
.appbar .titles h1 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.appbar .titles .sub { font-size: 11px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  background: var(--bg); color: var(--muted); border: none;
  border-radius: 10px; width: 36px; height: 36px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-btn:hover { background: #ebedea; color: var(--ink); }
.icon-btn.on { background: #FFF7E0; color: var(--brand-dark); }
.icon-btn.danger { color: #dc2626; }
.icon-btn.danger:hover { background: #fee2e2; }
.icon-btn .svg-ico { width: 18px; height: 18px; }

/* live dot */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.55); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.live-dot.offline { background: #ef4444; animation: none; box-shadow: none; }

/* ─── CONTENT ────────────────────────────────────────────── */
.content {
  flex: 1 1 0; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--bg);
}
.list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

/* ─── TASK CARD ──────────────────────────────────────────── */
.task {
  position: relative; display: block; width: 100%; text-align: left;
  background: #FFFFFF; border-radius: 16px; padding: 14px 16px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 14px rgba(15,23,42,0.04);
  transition: transform .12s ease, box-shadow .12s ease; overflow: hidden;
  border: none; font: inherit; color: inherit;
}
.task:active { transform: scale(0.99); }
.task.todo {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); color: #fff;
  box-shadow: 0 6px 18px rgba(220,38,38,0.30);
}
.task.in_progress { background: #fff; border-left: 4px solid var(--brand); }
.task.done { background: #fff; opacity: 0.9; }
.task.cancelled { background: #fff; opacity: 0.6; }

.task-row1 { display: flex; align-items: flex-start; gap: 10px; }
.task-title {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word; overflow-wrap: anywhere;
}
.task.todo .task-title { color: #fff; }
.task-elapsed {
  flex-shrink: 0; font-size: 11px; font-weight: 800; color: var(--muted);
  background: var(--bg); padding: 3px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 1px;
}
.task-elapsed.warn { color: #92400e; background: #fef3c7; }
.task-elapsed.alert { color: #b91c1c; background: #fee2e2; }
.task-elapsed.ok { color: #065f46; background: #d1fae5; }
.task-elapsed.muted { color: #6b7280; background: #f3f4f6; }
.task.todo .task-elapsed { color: #fff; background: rgba(0,0,0,0.22); }

.task-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  margin-top: 9px; font-size: 11px; color: var(--muted);
}
.task.todo .task-meta { color: rgba(255,255,255,0.85); }
.task-meta .svg-ico { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }
.task-cat {
  background: #f3f4f6; color: #374151; font-size: 10px; padding: 3px 8px; border-radius: 6px;
  font-weight: 800; text-transform: capitalize; letter-spacing: .02em;
}
.task.todo .task-cat { background: rgba(255,255,255,0.20); color: #fff; }
.task.in_progress .task-cat.commercial, .task.done .task-cat.commercial { background: #dbeafe; color: #1e40af; }
.task.in_progress .task-cat.technique, .task.done .task-cat.technique { background: #ede9fe; color: #6d28d9; }
.task.in_progress .task-cat.secretariat, .task.done .task-cat.secretariat { background: #fce7f3; color: #9d174d; }
.task-prio {
  font-size: 10px; padding: 3px 7px; border-radius: 5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
}
.task-prio.urgent { background: #7f1d1d; color: #fee2e2; }
.task-prio.high { background: #ffedd5; color: #9a3412; }
.task.todo .task-prio.urgent, .task.todo .task-prio.high { background: rgba(255,255,255,0.22); color: #fff; }
.task-prio.normal, .task-prio.low { display: none; }
.task.todo .task-prio.normal, .task.todo .task-prio.low { display: none; }

.task.enter { animation: slideIn .5s cubic-bezier(0.16,1,0.3,1); }
@keyframes slideIn { 0% { transform: translateY(-14px) scale(.98); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }

/* ─── EMPTY / LOADING ────────────────────────────────────── */
.empty { text-align: center; color: #9ca3af; padding: 64px 24px; font-size: 14px; }
.empty .em-icon {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.empty .em-icon .svg-ico { width: 30px; height: 30px; color: #cbd0d6; }
.spinner {
  width: 34px; height: 34px; margin: 64px auto; display: block;
  border: 3px solid #e5e7eb; border-top-color: var(--brand); border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.inline-spin {
  width: 15px; height: 15px; display: inline-block; vertical-align: -2px;
  border: 2px solid rgba(0,0,0,.25); border-top-color: #000; border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ─── BOTTOM NAV ─────────────────────────────────────────── */
.bottom-nav {
  flex-shrink: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid #eceeec;
  padding-bottom: var(--safe-b);
  box-shadow: 0 -2px 12px rgba(15,23,42,0.05);
}
.nav-item {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 9px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #9aa0a8; transition: color .15s ease; position: relative;
}
.nav-item .svg-ico { width: 23px; height: 23px; }
.nav-item .nav-lbl { font-size: 11px; font-weight: 700; }
.nav-item .nav-badge {
  position: absolute; top: 4px; left: 50%; margin-left: 6px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: #dc2626; color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.nav-item .nav-badge.amber { background: var(--brand); color: #000; }
.nav-item .nav-badge.gray { background: #9ca3af; }
.nav-item.active { color: var(--brand-dark); }
.nav-item.active .nav-lbl { color: var(--brand-dark); }
.nav-item:active { transform: scale(0.94); }

/* ─── LOGIN ──────────────────────────────────────────────── */
.login {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(240,175,2,0.16), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(240,175,2,0.10), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 370px; background: #fff; border-radius: 20px; padding: 30px 26px;
  text-align: center; box-shadow: 0 14px 44px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.03);
}
.login-card .brand-big {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #000;
  font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(240,175,2,0.36);
}
.login-card h2 { margin: 0 0 6px; font-size: 21px; color: var(--ink); letter-spacing: -0.01em; }
.login-card p { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.login-card label { font-size: 11px; color: #4b5563; text-align: left; display: block; margin-bottom: 5px; font-weight: 700; }
.login-card input {
  width: 100%; background: var(--bg); border: none; border-radius: 11px;
  padding: 12px 14px; font-size: 15px; color: var(--ink); margin-bottom: 13px;
}
.login-card input:focus { outline: none; box-shadow: 0 0 0 3px rgba(240,175,2,0.30); background: #fff; }
.login-card .btn-primary {
  width: 100%; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #000;
  border: none; border-radius: 11px; padding: 14px; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 20px rgba(240,175,2,0.32);
}
.login-card .btn-primary:disabled { opacity: 0.55; cursor: wait; }
.login-card .btn-ghost { width: 100%; margin-top: 10px; background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.login-card .err { color: #b91c1c; font-size: 12px; margin-top: 10px; min-height: 16px; }

/* ─── DETAIL SHEET ───────────────────────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(15,23,42,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadein .22s ease;
}
.sheet-overlay.out { animation: fadeout .25s ease forwards; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
.sheet {
  width: 100%; max-width: 540px; background: #fff;
  border-radius: 22px 22px 0 0; max-height: 90vh; display: flex; flex-direction: column;
  padding-bottom: var(--safe-b);
  animation: sheetup .32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sheetup { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 999px; background: #d1d5db; margin: 10px auto 4px; flex-shrink: 0; }
.sheet-head {
  display: flex; flex-direction: column; gap: 10px; padding: 8px 18px 12px;
  border-bottom: 1px solid #f3f4f6; flex-shrink: 0;
}
.sheet-head-row { display: flex; align-items: center; gap: 10px; }
.status-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: #f3f4f6; color: #374151;
}
.status-badge.status-todo { background: #fee2e2; color: #991b1b; }
.status-badge.status-in_progress { background: #fef3c7; color: #92400e; }
.status-badge.status-done { background: #d1fae5; color: #065f46; }
.status-badge.status-cancelled { background: #f3f4f6; color: #6b7280; }
.sheet-ref { flex: 1; text-align: right; font-size: 12px; font-weight: 700; color: #9ca3af; font-variant-numeric: tabular-nums; }
.sheet-title { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.3; }

.detail-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; background: #fff; }
.dt-tab {
  appearance: none; background: transparent; border: none; padding: 12px 12px;
  font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px;
}
.dt-tab.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.dt-tab-num { background: #f3f4f6; color: #4b5563; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.dt-tab.active .dt-tab-num { background: #FFF7E0; color: var(--brand-dark); }

.sheet-body { flex: 1; overflow-y: auto; padding: 16px 18px; background: #FBFCFA; }

.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.detail-meta .chip {
  background: #fff; color: #374151; font-size: 11px; font-weight: 700; padding: 5px 10px;
  border-radius: 7px; box-shadow: 0 1px 2px rgba(15,23,42,0.05); text-transform: capitalize;
  display: inline-flex; align-items: center; gap: 4px;
}
.detail-meta .chip .svg-ico { width: 13px; height: 13px; }
.detail-meta .chip.prio-urgent { background: #fee2e2; color: #991b1b; }
.detail-meta .chip.prio-high { background: #ffedd5; color: #9a3412; }
.detail-meta .chip.cat-commercial { background: #dbeafe; color: #1e40af; }
.detail-meta .chip.cat-technique { background: #ede9fe; color: #6d28d9; }
.detail-meta .chip.cat-secretariat { background: #fce7f3; color: #9d174d; }

.detail-block { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.detail-block-title { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.detail-block-title .svg-ico { width: 15px; height: 15px; }
.detail-desc { font-size: 14px; color: #1f2937; line-height: 1.55; white-space: pre-wrap; }
.muted { color: #9ca3af; font-size: 13px; }

.assignees { display: flex; flex-wrap: wrap; gap: 6px; }
.assignee { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #1f2937; }
.assignee .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #000; font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; }

/* vocal */
.vocal-block { border: 1px solid #fde68a; background: linear-gradient(180deg, #fffbeb 0%, #fff 60%); }
.vocal-block .detail-block-title { color: #92400e; }
.vocal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vocal-table tr { border-bottom: 1px solid #fef3c7; }
.vocal-table tr:last-child { border-bottom: none; }
.vocal-table td { padding: 8px 4px; vertical-align: top; }
.vt-ico { width: 22px; text-align: center; padding-right: 6px !important; color: #92400e; }
.vt-ico .svg-ico { width: 16px; height: 16px; }
.vt-lbl { width: 96px; color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding-right: 10px !important; }
.vt-val { color: var(--ink); font-weight: 600; word-break: break-word; }
.vocal-recording { margin-top: 12px; padding: 10px 12px; background: #f9fafb; border-radius: 10px; }
.vocal-recording audio { width: 100%; height: 36px; }
.vt-chat { display: flex; flex-direction: column; gap: 8px; }
.vt-msg { display: flex; flex-direction: column; max-width: 82%; }
.vt-msg.vt-agent { align-self: flex-start; }
.vt-msg.vt-caller { align-self: flex-end; align-items: flex-end; }
.vt-who { font-size: 10px; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; padding: 0 4px; }
.vt-bubble { padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; background: #f3f4f6; color: #111827; white-space: pre-wrap; word-break: break-word; }
.vt-msg.vt-agent .vt-bubble { background: #eef2ff; color: #1e3a8a; border-bottom-left-radius: 4px; }
.vt-msg.vt-caller .vt-bubble { background: #FFF7E0; color: #7a5800; border-bottom-right-radius: 4px; }
.vt-text { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: #f9fafb; padding: 10px; border-radius: 8px; white-space: pre-wrap; }

/* timeline */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(to bottom, #e5e7eb, #f3f4f6, transparent); }
.tl-item { position: relative; padding: 8px 0 8px 14px; display: flex; gap: 10px; align-items: flex-start; }
.tl-ico { position: absolute; left: -14px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #9ca3af; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #FBFCFA; }
.tl-ico .svg-ico { width: 13px; height: 13px; }
.tl-ico.create { background: #3b82f6; }
.tl-ico.open { background: var(--brand); color: #000; }
.tl-ico.done { background: #10b981; }
.tl-ico.cancel { background: #9ca3af; }
.tl-ico.assign { background: #8b5cf6; }
.tl-body { flex: 1; min-width: 0; padding-left: 18px; }
.tl-head { font-size: 13px; color: #374151; line-height: 1.45; }
.tl-head strong { color: var(--ink); font-weight: 700; }
.tl-detail { color: var(--muted); }
.tl-time { color: #9ca3af; font-size: 11px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tl-comment-body { margin-top: 6px; background: var(--bg); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #1f2937; line-height: 1.5; white-space: pre-wrap; }

/* comment form */
.dt-comment-form { display: flex; flex-direction: column; gap: 8px; }
.dt-comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; resize: vertical; min-height: 64px; outline: none; }
.dt-comment-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(240,175,2,0.15); }

/* actions */
.sheet-actions {
  flex-shrink: 0; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid #f3f4f6;
}
.dt-btn {
  flex: 1; min-width: 44%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.dt-btn:disabled { opacity: .55; cursor: not-allowed; }
.dt-btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.dt-btn.success { background: #059669; color: #fff; border-color: #059669; }
.dt-btn.danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.dt-btn .svg-ico { width: 16px; height: 16px; }
.dt-btn.full { flex-basis: 100%; }

/* ─── SVG ─────────────────────────────────────────────────── */
.svg-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.svg-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ─── Admin / hub embed ─────────────────────────────────── */
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cs-canvas, #EDF2FA);
}
.hub-loading {
  min-height: 100%; display: grid; place-items: center;
  padding: 2rem; color: #64748b; font-weight: 600;
}
.admin-shell {
  height: 100%; display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 0;
}
.admin-shell.embed { grid-template-columns: 1fr; }
.admin-side {
  background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.side-brand {
  padding: 16px 14px; border-bottom: 1px solid #f1f5f9;
  display: flex; flex-direction: column; gap: 8px;
}
.side-brand img { height: 36px; width: auto; max-width: 140px; object-fit: contain; object-position: left; }
.side-app {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8;
}
.side-nav { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.side-nav .nav-item {
  flex-direction: row; justify-content: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 999px; color: #334155;
}
.side-nav .nav-item .nav-lbl { font-size: 13px; }
.side-nav .nav-item.active {
  background: #F0AF02; color: #111; box-shadow: 0 4px 12px rgba(240,175,2,.35);
}
.side-nav .nav-item .nav-badge { position: static; margin-left: auto; }
.side-foot {
  border-top: 1px solid #f1f5f9; padding: 12px;
  display: flex; align-items: center; gap: 8px;
}
.side-user { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.admin-main .appbar { background: #fff; }
.top-tabs {
  display: flex; align-items: center; gap: 4px; margin-right: 8px;
}
.top-tabs .nav-item {
  flex-direction: row; gap: 6px; padding: 8px 10px; border-radius: 999px;
  color: #64748b; background: #f8fafc; border: 1px solid var(--line);
}
.top-tabs .nav-item .nav-lbl { font-size: 12px; }
.top-tabs .nav-item.active { background: #F0AF02; color: #111; border-color: #F0AF02; }
.top-tabs .nav-item .nav-badge { position: static; margin: 0; }
html.hub-embed, html.hub-embed body { height: 100%; overflow: hidden; background: #fff; }
html.hub-embed .admin-main .content { background: #F8FAFC; }

/* Panel (desk rail) */
.panel-shell { height: 100%; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 8px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.panel-head .titles { flex: 1; min-width: 0; }
.panel-head strong { display: block; font-size: 14px; font-weight: 800; }
.panel-head em {
  display: flex; align-items: center; gap: 6px;
  font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600;
}
.panel-tabs {
  display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.panel-tabs .nav-item {
  flex: 1; flex-direction: row; justify-content: center; gap: 6px;
  padding: 8px 6px; border-radius: 10px; background: #f8fafc; border: 1px solid transparent;
  color: #64748b;
}
.panel-tabs .nav-item .nav-lbl { font-size: 11px; }
.panel-tabs .nav-item.active { background: #fff7e0; color: #92400e; border-color: #f0af02; }
.panel-tabs .nav-item .nav-badge { position: static; margin: 0; }
html.panel-mode .list { padding: 10px; gap: 8px; }
html.panel-mode .task { border-radius: 12px; padding: 12px; }
html.panel-mode .task-title { font-size: 13px; }
html.panel-mode .sheet { max-width: 100%; border-radius: 16px 16px 0 0; }
