/* ==========================================================================
   App shell (Staff + Admin): sidebar on desktop, app-like tab bar on phones.
   ========================================================================== */
body.app { background: var(--bg); min-height: 100dvh; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 14px; border-right: 1px solid var(--line); background: var(--bg-2); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; }
.brand img { width: 42px; height: auto; }
.brand .wordmark { font-size: 0.78rem; line-height: 1.25; }
.brand .wordmark small { display: block; font-size: 0.58rem; letter-spacing: 0.34em; color: var(--text-3); margin-top: 2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3); padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: var(--r);
  color: var(--text-2); font-size: 0.9rem; transition: background var(--t), color var(--t); position: relative;
}
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 0.7rem; display: grid; place-items: center; font-weight: 600; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r); }
.me .name { font-size: 0.88rem; font-weight: 500; }
.me .role { font-size: 0.72rem; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; min-height: 64px;
  padding: calc(8px + var(--safe-t)) 28px 8px; background: rgba(10,10,11,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar .mobile-brand { display: none; }
.content { padding: 28px; width: 100%; max-width: 1480px; margin: 0 auto; }
.content.full { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.page-head .sub { color: var(--text-2); margin-top: 6px; font-size: 0.92rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .input, .toolbar .select { min-height: 40px; font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .search .input { padding-left: 40px; }
.toolbar .search .icon-svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); }

.bell { position: relative; }
.bell .pip { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

/* Bottom tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding-left: 16px; padding-right: 12px; min-height: 58px; }
  .topbar .mobile-brand { display: block; width: 30px; }
  .content { padding: 18px 16px calc(96px + var(--safe-b)); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(12,12,14,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; border-radius: 14px; color: var(--text-3); font-size: 0.64rem; letter-spacing: 0.04em; }
  .tabbar a .icon-svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--text); }
  .tabbar a.active .icon-svg { color: var(--accent-2); }
  .tabbar a.fab .icon-svg { width: 24px; height: 24px; color: #fff; }
  .tabbar a.fab span.fab-circle { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 24px var(--accent-soft); margin-top: -14px; }
}

/* Login screen for apps */
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1000px 600px at 50% -10%, rgba(139,92,246,0.10), transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); }
.auth-card .logo { width: 120px; margin: 0 auto 18px; }

/* ---------- Calendar ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-toolbar .date-label { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; min-width: 180px; text-transform: capitalize; }
.cal-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: auto; position: relative; max-height: calc(100dvh - 220px); }
@media (max-width: 960px) { .cal-wrap { max-height: calc(100dvh - 250px); } }
.cal-grid { display: grid; position: relative; min-width: 100%; }
.cal-head { position: sticky; top: 0; z-index: 6; display: grid; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cal-head .corner { position: sticky; left: 0; z-index: 7; background: var(--bg-2); border-right: 1px solid var(--line); }
.cal-col-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 58px; border-right: 1px solid var(--line); font-size: 0.86rem; font-weight: 500; }
.cal-col-head .sub { font-size: 0.7rem; color: var(--text-3); font-weight: 400; }
.cal-col-head.today { color: var(--accent-2); }
.cal-body { display: grid; position: relative; }
.cal-times { position: sticky; left: 0; z-index: 5; background: var(--bg-2); border-right: 1px solid var(--line); }
.cal-time { position: absolute; left: 0; right: 0; font-size: 0.68rem; color: var(--text-3); text-align: right; padding-right: 8px; transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-right: 1px solid var(--line); }
.cal-col .hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.cal-col .half-line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(236,229,216,0.04); pointer-events: none; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(236,229,216,0.035) 0 6px, transparent 6px 12px); pointer-events: none; }
.cal-off.timeoff { background: repeating-linear-gradient(135deg, rgba(139,92,246,0.10) 0 6px, transparent 6px 12px); pointer-events: auto; }
.cal-off .lbl { position: absolute; top: 4px; left: 6px; font-size: 0.66rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 4; pointer-events: none; }
.cal-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cal-slot-hover { position: absolute; left: 3px; right: 3px; border-radius: 8px; border: 1px dashed var(--accent-line); background: var(--accent-soft); pointer-events: none; font-size: 0.7rem; padding: 3px 6px; color: var(--accent-2); }

.appt {
  position: absolute; left: 3px; right: 3px; z-index: 2; border-radius: 10px; padding: 6px 8px; overflow: hidden; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--line-2); border-left: 3px solid var(--appt-color, var(--accent));
  font-size: 0.76rem; line-height: 1.3; transition: box-shadow var(--t), transform var(--t), background var(--t); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.appt:hover { background: #2a2a2f; box-shadow: var(--shadow); z-index: 3; }
.appt .a-time { font-size: 0.68rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.appt .a-client { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt .a-svc { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt.s-pending { border-style: dashed; border-left-style: solid; }
.appt.s-checked_in { background: rgba(139,92,246,0.16); }
.appt.s-in_progress { background: var(--text); color: var(--text-inv); border-color: var(--text); }
.appt.s-in_progress .a-client, .appt.s-in_progress .a-time, .appt.s-in_progress .a-svc { color: var(--text-inv); }
.appt.s-completed { opacity: 0.55; }
.appt.s-cancelled, .appt.s-no_show { opacity: 0.4; text-decoration: line-through; }
.appt.dragging { opacity: 0.85; box-shadow: 0 16px 40px rgba(0,0,0,.6); z-index: 20; cursor: grabbing; }
.appt .buffer { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(236,229,216,0.06) 4px 8px); }

/* Month view */
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-grid .wd { padding: 10px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.month-cell { min-height: 108px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background var(--t); }
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell:hover { background: rgba(236,229,216,0.02); }
.month-cell.other { opacity: 0.35; }
.month-cell .d { font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.month-cell.today .d { color: #fff; background: var(--accent); border-radius: 99px; padding: 1px 8px; display: inline-block; }
.month-cell .m-item { margin-top: 4px; font-size: 0.7rem; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); border-left: 2px solid var(--appt-color, var(--accent)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month-cell .m-more { margin-top: 4px; font-size: 0.7rem; color: var(--text-3); }
.month-cell .m-sum { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 0.72rem; color: var(--text-2); }
@media (max-width: 640px) { .month-cell { min-height: 64px; padding: 5px; } .month-cell .m-item { display: none; } }

/* Agenda list (phone calendar) */
.agenda-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--appt-color, var(--accent)); cursor: pointer; transition: var(--t); }
.agenda-item + .agenda-item { margin-top: 8px; }
.agenda-item:hover { border-color: var(--line-3); }
.agenda-item .t { font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums; }
.agenda-item .t small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--text-3); font-size: 0.72rem; }

/* ---------- Appointment sheet ---------- */
.sheet-hero { display: flex; gap: 14px; align-items: center; }
.sheet-time { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 0.92rem; }
.kv dt { color: var(--text-3); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.note { padding: 12px 14px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); font-size: 0.9rem; }
.note.pinned { border-color: var(--accent-line); }
.note .meta { font-size: 0.72rem; color: var(--text-3); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.line-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.92rem; }
.line-item + .line-item { border-top: 1px dashed var(--line); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line-2); font-family: var(--font-head); font-weight: 600; }
.total-row .num { font-size: 1.3rem; }

/* Picker lists (services / barbers / slots) */
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--bg-2);
  border: 1px solid var(--line-2); cursor: pointer; transition: var(--t); text-align: left; width: 100%;
}
.pick:hover { border-color: var(--line-3); background: var(--surface); }
.pick.selected { border-color: var(--accent); background: var(--accent-soft); }
.pick .p-title { font-weight: 500; }
.pick .p-sub { font-size: 0.8rem; color: var(--text-3); }
.pick .p-price { margin-left: auto; font-family: var(--font-head); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick .tick { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-3); flex: none; display: grid; place-items: center; transition: var(--t); }
.pick.selected .tick { background: var(--accent); border-color: var(--accent); }
.pick.selected .tick::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-2); font-variant-numeric: tabular-nums; font-weight: 500; transition: var(--t); }
.slot:hover { border-color: var(--accent-line); }
.slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Mini date strip */
.date-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.date-strip::-webkit-scrollbar { display: none; }
.date-pill { flex: none; width: 64px; padding: 10px 0; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-2); text-align: center; scroll-snap-align: start; transition: var(--t); }
.date-pill .dw { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.date-pill .dd { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; margin-top: 2px; }
.date-pill .dm { font-size: 0.66rem; color: var(--text-3); }
.date-pill.disabled { opacity: 0.3; pointer-events: none; }
.date-pill:hover { border-color: var(--line-3); }
.date-pill.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.date-pill.selected .dw, .date-pill.selected .dm { color: rgba(255,255,255,.8); }
.date-pill .avail { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-2); margin: 5px auto 0; }
.date-pill.selected .avail { background: #fff; }

/* Bilingual fields & image inputs */
.i18n-wrap { position: relative; }
.i18n-tag { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--text-3); pointer-events: none; z-index: 1; }
.i18n-wrap .input { padding-right: 38px; }
.image-input { display: flex; gap: 14px; align-items: center; }
.image-preview { width: 84px; height: 84px; border-radius: var(--r); border: 1px dashed var(--line-3); background: var(--bg-2); display: grid; place-items: center; overflow: hidden; color: var(--text-3); flex: none; }
.image-input.round .image-preview { border-radius: 50%; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Drag handles / sortable */
[data-drag] { cursor: grab; color: var(--text-3); touch-action: none; }
.dragging { opacity: 0.6; background: var(--surface-2); }

/* Settings layout */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: 0.9rem; }
.settings-nav a:hover { background: var(--surface); color: var(--text); }
.settings-nav a.active { background: var(--surface-2); color: var(--text); }
@media (max-width: 960px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; } .settings-nav a { white-space: nowrap; } }
.form-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; }
.form-section h3 { font-size: 1rem; margin-bottom: 4px; }
.form-section .desc { color: var(--text-3); font-size: 0.86rem; margin-bottom: 16px; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0 calc(14px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); display: flex; justify-content: flex-end; gap: 10px; z-index: 5; }
@media (max-width: 960px) { .sticky-save { bottom: calc(64px + var(--safe-b)); } }

/* Schedule editor */
.sched-row { display: grid; grid-template-columns: 130px 70px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sched-row .times { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sched-row .times .input { width: 118px; min-height: 38px; padding: 6px 10px; font-size: 14px; }
@media (max-width: 640px) { .sched-row { grid-template-columns: 1fr auto; } .sched-row .times { grid-column: 1 / -1; } }

/* Now / next hero card (staff) */
.hero-card { position: relative; overflow: hidden; padding: 22px; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); }
.hero-card.live { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset, 0 20px 60px -30px var(--accent); }
.hero-card .big-time { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 18px; }
.hero-actions .btn { min-height: 52px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139,92,246,.6); } 70% { box-shadow: 0 0 0 10px rgba(139,92,246,0); } 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); } }

/* Notifications panel */
.notif-item { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif-item.unread .n-title::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: middle; }
.notif-item .n-title { font-weight: 500; font-size: 0.92rem; }
.notif-item .n-body { font-size: 0.84rem; color: var(--text-2); }
.notif-item .n-time { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; }

/* Charts */
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 180px; }
.chart-box.lg { height: 320px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--text-2); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bar-list .bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 0.88rem; }
.bar-list .bar-row .meter { height: 8px; }
.agenda-item > .stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.agenda-item > .stack > * + * { margin-top: 0; }
@media (max-width: 480px) { .agenda-item { grid-template-columns: 54px 1fr auto; gap: 10px; padding: 12px; } .agenda-item .badge { height: 20px; padding: 0 7px; font-size: .62rem; } }
.cal-toolbar .select { width: auto; min-width: 150px; }
@media (max-width: 640px) { .cal-toolbar .select { flex: 1; min-width: 0; } .cal-toolbar .date-label { min-width: 0; flex: 1; } }
.client-search-row { display: flex; flex-wrap: wrap; gap: 8px; }
.client-search-row .input { flex: 1 1 200px; }

/* ---------- Subscriptions (shared: client drawer, appointment drawer, dialogs) ---------- */
.badge.warn { color: var(--warn); background: rgba(246,213,139,0.08); border-color: rgba(246,213,139,0.32); }
.badge.dim { opacity: 0.6; }
.badge.sub-tag .icon-svg { width: 12px; height: 12px; }
.accent-text.sub-soon { font-weight: 600; }
.chip.sm { min-height: 28px; padding: 0 11px; font-size: 0.78rem; cursor: default; }
.sub-card { padding: 14px 16px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.sub-card.active { border-color: var(--accent-line); background: linear-gradient(160deg, rgba(139,92,246,0.10), var(--bg-2) 60%); }
.sub-card.requested { border-color: rgba(246,213,139,0.32); }
.sub-card-top { display: flex; align-items: flex-start; gap: 12px; }
.sub-card-top .label { margin-bottom: 2px; }
.sub-card-plan { font-weight: 600; font-family: var(--font-head); }
.sub-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.sub-card.active .sub-ic { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.sub-ic .icon-svg { width: 17px; height: 17px; }
.sub-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-card-actions:empty { display: none; }
.sub-card-actions [data-sub-act="details"] { margin-left: auto; }
.sub-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: var(--r); background: var(--bg-2); border: 1px dashed var(--line-2); font-size: 0.88rem; }
.sub-summary:empty { display: none; }
.sub-summary .icon-svg { width: 15px; height: 15px; color: var(--accent-2); }
.sub-summary .faint { flex-basis: 100%; }
.sub-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: rgba(246,213,139,0.06); border: 1px solid rgba(246,213,139,0.24); color: var(--warn); font-size: 0.88rem; }
.sub-note .icon-svg { width: 16px; height: 16px; flex: none; }
.sub-who { cursor: default; }
.sub-search { position: relative; display: block; }
.sub-search .icon-svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; pointer-events: none; }
.sub-search .input { padding-left: 40px; }
.sub-pay-list { display: flex; flex-direction: column; }
.sub-pay { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sub-pay:last-child { border-bottom: 0; }
.sub-pay-amt { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.line-item .covered-tag { height: 20px; padding: 0 8px; font-size: 0.62rem; vertical-align: 1px; }
.line-item .covered-price { color: var(--accent-2); }
@media (max-width: 480px) { .sub-card-actions .btn { flex: 1 1 auto; } .sub-card-actions [data-sub-act="details"] { margin-left: 0; } }
.line-item > .num { white-space: nowrap; }
