/* Müşteri paneli — mağaza temasını koruyan kartlı düzen */
.hlm {
  --hlm-border: var(--line, #dde4f2);
  --hlm-surface: var(--panel, #fff);
  --hlm-alt: color-mix(in srgb, var(--accent, #0d6efd) 6%, var(--panel, #f4f7fb));
  --hlm-radius: 12px;
  --hlm-heading: var(--text, #1a2332);
  --hlm-muted: var(--muted, #6b7a90);
  --hlm-body: var(--text, #243044);
  --hlm-primary: var(--accent, #0d6efd);
  --hlm-primary-text: color-mix(in srgb, var(--accent, #0d6efd) 82%, #000);
  --hlm-primary-subtle: color-mix(in srgb, var(--accent, #0d6efd) 12%, var(--panel, #fff));
  --hlm-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .05);
  white-space: normal;
}

.th-dark .hlm {
  --hlm-surface: var(--panel, #1b2230);
  --hlm-alt: color-mix(in srgb, var(--accent, #0d6efd) 10%, var(--panel, #151b26));
  --hlm-heading: var(--text, #e8eef8);
  --hlm-muted: var(--muted, #93a0b5);
  --hlm-body: var(--text, #d5deeb);
  --hlm-border: color-mix(in srgb, var(--accent, #0d6efd) 18%, #2a3344);
  --hlm-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 22px rgba(0, 0, 0, .18);
}

@keyframes hlm-spin { to { transform: rotate(360deg); } }

.hlm-shop { max-width: 1100px; margin: 0 auto; padding: 0 0 2rem; }

.hlm-back {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: 0 0 1rem; color: var(--hlm-muted); text-decoration: none;
  font-size: .9rem; font-weight: 600;
}
.hlm-back:hover { color: var(--hlm-primary-text); }

.hlm-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: .75rem; margin: 0 0 1rem;
}
.hlm-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--hlm-heading); }
.hlm-head .hlm-sub { color: var(--hlm-muted); font-size: .9rem; margin-top: .25rem; }
.hlm-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.hlm-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .65rem; border: 1px solid var(--hlm-border);
  border-radius: 999px; background: var(--hlm-surface);
  color: var(--hlm-muted); font-size: .72rem; font-weight: 700;
  white-space: nowrap;
}
.hlm-chip strong { color: var(--hlm-heading); font-weight: 800; }
.hlm-chip.is-live {
  border-color: transparent;
  color: #0f5132; background: #d1e7dd;
}
.hlm-chip.is-live .bi { font-size: .75rem; }
.th-dark .hlm-chip.is-live { color: #75b798; background: rgba(25,135,84,.2); }

/* WiseCP tarzı hizmet başlık kartı */
.hlm-hero-card {
  margin: 0 0 1rem;
  border: 1px solid var(--hlm-border);
  border-radius: 14px;
  background: var(--hlm-surface);
  box-shadow: var(--hlm-shadow);
  overflow: hidden;
}
.hlm-hero-main {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.15rem 1.25rem;
}
.hlm-hero-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 12px; flex-shrink: 0;
  background: var(--hlm-primary-subtle); color: var(--hlm-primary-text);
  font-size: 1.45rem;
}
.hlm-hero-ico.is-bot { background: color-mix(in srgb, #7c3aed 12%, var(--hlm-surface)); color: #6d28d9; }
.hlm-hero-ico.is-music { background: color-mix(in srgb, #0ea5e9 12%, var(--hlm-surface)); color: #0369a1; }
.th-dark .hlm-hero-ico.is-bot { background: rgba(124,58,237,.2); color: #c4b5fd; }
.th-dark .hlm-hero-ico.is-music { background: rgba(14,165,233,.2); color: #7dd3fc; }
.hlm-hero-txt { flex: 1; min-width: 0; }
.hlm-hero-top {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .75rem;
}
.hlm-hero-top h2 {
  margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800; color: var(--hlm-heading); line-height: 1.25;
  overflow-wrap: anywhere;
}
.hlm-hero-sub {
  margin: .35rem 0 0; color: var(--hlm-muted); font-size: .86rem; font-weight: 600;
}
.hlm-hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--hlm-border); background: var(--hlm-alt);
}
.hlm-hero-stats > div {
  padding: .85rem 1.1rem; min-width: 0;
  border-right: 1px solid var(--hlm-border);
}
.hlm-hero-stats > div:last-child { border-right: 0; }
.hlm-hero-stats span {
  display: block; margin-bottom: .2rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--hlm-muted);
}
.hlm-hero-stats b {
  display: block; font-size: .92rem; font-weight: 800; color: var(--hlm-heading);
  overflow-wrap: anywhere;
}
.hlm-hero-stats .hlm-copy {
  display: inline; padding: 0; border: 0; background: transparent;
  font: inherit; font-weight: 800; color: var(--hlm-heading); cursor: pointer;
}
.hlm-hero-stats .hlm-copy:hover { color: var(--hlm-primary-text); }
@media (max-width: 860px) {
  .hlm-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hlm-hero-stats > div:nth-child(2n) { border-right: 0; }
  .hlm-hero-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--hlm-border); }
}
.hlm-panel {
  border: 1px solid var(--hlm-border);
  border-radius: 14px;
  background: var(--hlm-surface);
  box-shadow: var(--hlm-shadow);
  padding: .85rem 1rem 1.1rem;
}
.hlm-panel .hlm-tabs { margin-bottom: .85rem; }

/* ---- Hesap: kartlı düzen ---- */
.hlm-account .hlm-page-title {
  margin: 0 0 .35rem; font-size: 1.45rem; font-weight: 800; color: var(--hlm-heading);
}
.hlm-account .hlm-lead {
  margin: 0 0 1.15rem; color: var(--hlm-muted); font-size: .95rem;
}
.hlm-section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  margin: 1.5rem 0 .85rem;
}
.hlm-section-title h3 {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--hlm-heading);
}
.hlm-section-title p { margin: 0; color: var(--hlm-muted); font-size: .85rem; }

.hlm-account .hlm-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem; margin-bottom: .35rem;
}
@media (max-width: 900px) {
  .hlm-account .hlm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hlm-account .hlm-stat {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.05rem; border: 1px solid var(--hlm-border);
  border-radius: var(--hlm-radius); background: var(--hlm-surface);
  box-shadow: var(--hlm-shadow);
}
.hlm-account .hlm-stat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 10px; flex-shrink: 0;
  background: var(--hlm-primary-subtle); color: var(--hlm-primary-text); font-size: 1.1rem;
}
.hlm-stat-label {
  display: block; margin-bottom: .15rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--hlm-muted);
}
.hlm-stat-value {
  display: block; font-size: 1.1rem; font-weight: 800; color: var(--hlm-heading);
  overflow-wrap: anywhere;
}

.hlm-svc-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 860px) {
  .hlm-svc-grid { grid-template-columns: 1fr; }
}

.hlm-svc {
  display: flex; flex-direction: column;
  border: 1px solid var(--hlm-border); border-radius: var(--hlm-radius);
  background: var(--hlm-surface); box-shadow: var(--hlm-shadow);
  overflow: hidden; min-height: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hlm-svc:hover {
  border-color: color-mix(in srgb, var(--hlm-primary) 30%, var(--hlm-border));
  box-shadow: 0 4px 20px rgba(16, 24, 40, .08);
  transform: translateY(-2px);
}
.hlm-svc-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .75rem; padding: 1.05rem 1.1rem .85rem;
}
.hlm-svc-id {
  display: flex; align-items: flex-start; gap: .75rem; min-width: 0;
}
.hlm-svc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 12px; flex-shrink: 0;
  background: var(--hlm-primary-subtle); color: var(--hlm-primary-text); font-size: 1.2rem;
}
.hlm-svc-ico.is-bot { background: color-mix(in srgb, #7c3aed 12%, var(--hlm-surface)); color: #6d28d9; }
.th-dark .hlm-svc-ico.is-bot { background: rgba(124,58,237,.2); color: #c4b5fd; }
.hlm-svc-name {
  margin: 0; font-size: 1rem; font-weight: 800; color: var(--hlm-heading);
  overflow-wrap: anywhere; line-height: 1.3;
}
.hlm-svc-kind {
  margin: .2rem 0 0; font-size: .8rem; color: var(--hlm-muted); font-weight: 600;
}
.hlm-svc-body {
  flex: 1; padding: 0 1.1rem 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem .85rem;
}
.hlm-svc-body > div { min-width: 0; }
.hlm-svc-body dt {
  margin: 0 0 .12rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: var(--hlm-muted);
}
.hlm-svc-body dd {
  margin: 0; font-size: .88rem; font-weight: 700; color: var(--hlm-heading);
  overflow-wrap: anywhere;
}
.hlm-svc-body code {
  font-size: .8rem; font-weight: 600;
  background: var(--hlm-alt); padding: .1rem .35rem; border-radius: 6px;
}
.hlm-svc-foot {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .85rem 1.1rem; border-top: 1px solid var(--hlm-border);
  background: var(--hlm-alt);
}
.hlm-svc-token {
  padding: 0 1.1rem .85rem; font-size: .78rem; color: var(--hlm-muted);
  background: var(--hlm-alt);
}

.hlm-account .st-two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 860px) {
  .hlm-account .st-two { grid-template-columns: 1fr; }
}
.hlm-account .st-box,
.hlm-account .st-prof {
  border: 1px solid var(--hlm-border); border-radius: var(--hlm-radius);
  background: var(--hlm-surface); box-shadow: var(--hlm-shadow);
  padding: 1.15rem 1.2rem; margin-bottom: 0;
}
.hlm-account .st-box h3,
.hlm-account .st-prof summary {
  margin: 0 0 .75rem; font-size: 1rem; font-weight: 800; color: var(--hlm-heading);
  cursor: pointer;
}
.hlm-account .st-dl { display: grid; grid-template-columns: 130px 1fr; gap: .4rem .85rem; margin: 0; }
.hlm-account .st-dl dt { color: var(--hlm-muted); font-size: .82rem; }
.hlm-account .st-dl dd { margin: 0; font-weight: 700; }
.hlm-account .st-empty {
  padding: 2.2rem 1rem; text-align: center; color: var(--hlm-muted);
  border: 1px dashed var(--hlm-border); border-radius: var(--hlm-radius);
  background: var(--hlm-surface);
}

.hlm-account .st-btn,
.hlm .st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .5rem .9rem; border: 1px solid transparent; border-radius: 10px;
  background: var(--hlm-primary); color: #fff; font-weight: 700; font-size: .84rem;
  cursor: pointer; text-decoration: none; font: inherit;
}
.hlm-account .st-btn:hover, .hlm .st-btn:hover { filter: brightness(.96); }
.hlm-account .st-btn-ghost, .hlm .st-btn-ghost {
  background: var(--hlm-surface); color: var(--hlm-heading); border-color: var(--hlm-border);
}

/* ---- TS / Bot ---- */
.hlm-ts3 { margin-top: .25rem; }
.hlm-tabs {
  display: flex; flex-wrap: wrap; gap: .15rem;
  margin: 0 0 1rem; padding: 0; list-style: none;
  border-bottom: 1px solid var(--hlm-border);
}
#tsTabs.hlm-tabs button,
.hlm-tabs button {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-bottom: -1px; padding: .55rem .8rem;
  border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--hlm-radius) var(--hlm-radius) 0 0;
  color: var(--hlm-muted); font: inherit; font-size: .82rem; font-weight: 600;
  white-space: nowrap; background: transparent; cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
#tsTabs.hlm-tabs button:hover,
.hlm-tabs button:hover { color: var(--hlm-heading); background: var(--hlm-alt); }
#tsTabs.hlm-tabs button.on,
.hlm-tabs button.on {
  color: var(--hlm-primary-text); background: var(--hlm-surface);
  border-color: var(--hlm-border);
}
#tsTabs.hlm-tabs button .bi { font-size: .95rem; opacity: .9; }
#tsBody.hlm-body { min-height: 260px; }

.hlm-card {
  margin-bottom: 1rem; border: 1px solid var(--hlm-border);
  border-radius: var(--hlm-radius); background: var(--hlm-surface);
  box-shadow: var(--hlm-shadow); overflow: hidden;
}
.hlm-card-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--hlm-border); background: var(--hlm-alt);
}
.hlm-title {
  display: flex; align-items: center; gap: .5rem; margin: 0;
  font-size: .95rem; font-weight: 700; color: var(--hlm-heading);
}
.hlm-title .bi { color: var(--hlm-primary-text); }
.hlm-card-body { padding: 1.1rem; }
.hlm-card-foot {
  padding: .85rem 1.1rem; border-top: 1px solid var(--hlm-border);
  background: var(--hlm-alt);
}

.hlm-rows { margin: 0; }
.hlm-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--hlm-border);
}
.hlm-row:first-child { padding-top: 0; }
.hlm-row:last-child { padding-bottom: 0; border-bottom: 0; }
.hlm-row dt { flex-shrink: 0; margin: 0; font-size: .85rem; font-weight: 400; color: var(--hlm-muted); }
.hlm-row dd {
  display: flex; align-items: center; justify-content: flex-end; gap: .35rem;
  min-width: 0; margin: 0; font-weight: 600; text-align: right;
  overflow-wrap: anywhere; color: var(--hlm-body);
}

.hlm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem;
}
.hlm-tile {
  display: flex; align-items: center; gap: .65rem; width: 100%; min-width: 0;
  padding: .75rem .9rem; border: 1px solid var(--hlm-border);
  border-radius: var(--hlm-radius); background: var(--hlm-surface);
  color: var(--hlm-body); text-align: left; text-decoration: none; cursor: pointer;
  font: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hlm-tile:hover {
  border-color: var(--hlm-primary-text); transform: translateY(-2px);
  box-shadow: var(--hlm-shadow); color: var(--hlm-primary-text);
}
.hlm-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: var(--hlm-radius);
  background: var(--hlm-primary-subtle); color: var(--hlm-primary-text); font-size: 1.05rem;
}
.hlm-ico.is-success { background: #d1e7dd; color: #0a3622; }
.hlm-ico.is-danger { background: #f8d7da; color: #58151c; }
.hlm-ico.is-warning { background: #fff3cd; color: #664d03; }
.hlm-ico.is-info { background: #cff4fc; color: #055160; }
.th-dark .hlm-ico.is-success { background: rgba(25,135,84,.22); color: #75b798; }
.th-dark .hlm-ico.is-danger { background: rgba(220,53,69,.22); color: #ea868f; }
.th-dark .hlm-ico.is-warning { background: rgba(255,193,7,.18); color: #ffda6a; }
.th-dark .hlm-ico.is-info { background: rgba(13,202,240,.18); color: #6edff6; }
.hlm-tile-label { min-width: 0; font-size: .82rem; font-weight: 700; color: var(--hlm-heading); overflow-wrap: anywhere; }

.hlm-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem; margin-bottom: 1rem;
}
.hlm-stat {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem;
  border: 1px solid var(--hlm-border); border-radius: var(--hlm-radius); background: var(--hlm-surface);
}

.hlm-item {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem .75rem; padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--hlm-border);
}
.hlm-item:last-child { border-bottom: 0; }
.hlm-item-main { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.hlm-item-title { font-weight: 700; color: var(--hlm-heading); overflow-wrap: anywhere; }
.hlm-item-sub { font-size: .78rem; color: var(--hlm-muted); }
.hlm-actions { display: flex; flex-wrap: wrap; gap: .35rem; }

.hlm-empty { padding: 2.4rem 1rem; text-align: center; color: var(--hlm-muted); }
.hlm-empty .bi { display: block; margin: 0 auto .55rem; font-size: 2rem; opacity: .4; }
.hlm-empty .spinner {
  display: inline-block; width: 1.35rem; height: 1.35rem; margin: 0 .5rem -.25rem 0;
  border: 2px solid var(--hlm-border); border-top-color: var(--hlm-primary);
  border-radius: 50%; animation: hlm-spin .7s linear infinite; vertical-align: middle;
}

.hlm-copy {
  display: inline-flex; align-items: center; gap: .35rem; max-width: 100%;
  padding: .18rem .55rem; border: 1px solid var(--hlm-border); border-radius: 8px;
  background: var(--hlm-alt); color: var(--hlm-body);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8rem; cursor: pointer; overflow-wrap: anywhere;
}
.hlm-copy:hover { border-color: var(--hlm-primary-text); color: var(--hlm-primary-text); }
.hlm-label { display: block; margin-bottom: .3rem; font-size: .78rem; font-weight: 700; color: var(--hlm-muted); }
.hlm-hint { font-size: .8rem; color: var(--hlm-muted); }
.hlm-badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .5rem;
  border: 1px solid var(--hlm-border); border-radius: 999px;
  background: var(--hlm-alt); color: var(--hlm-muted); font-size: .7rem; font-weight: 700;
}

/* Bootstrap-lite */
.hlm .row { display: flex; flex-wrap: wrap; margin: 0 -.5rem; }
.hlm .g-3 { --g: .85rem; margin: 0 calc(var(--g) / -2); }
.hlm .g-3 > [class*="col"] { padding: 0 calc(var(--g) / 2); box-sizing: border-box; }
.hlm .col-lg-5, .hlm .col-lg-6, .hlm .col-lg-7, .hlm .col-12, .hlm .col-md-6 { width: 100%; }
@media (min-width: 992px) {
  .hlm .col-lg-5 { width: 41.666%; }
  .hlm .col-lg-6 { width: 50%; }
  .hlm .col-lg-7 { width: 58.333%; }
}
@media (min-width: 768px) { .hlm .col-md-6 { width: 50%; } }
.hlm .w-100 { width: 100%; }
.hlm .me-1 { margin-right: .25rem; }
.hlm .mb-2 { margin-bottom: .5rem; }
.hlm .mb-3 { margin-bottom: 1rem; }
.hlm .mt-2 { margin-top: .5rem; }
.hlm .mt-3 { margin-top: 1rem; }
.hlm .d-flex { display: flex; }
.hlm .align-items-center { align-items: center; }
.hlm .justify-content-between { justify-content: space-between; }
.hlm .gap-2 { gap: .5rem; }
.hlm .text-muted { color: var(--hlm-muted) !important; }
.hlm .progress, .hlm-progress {
  display: block; height: .5rem; overflow: hidden;
  background: var(--hlm-alt); border-radius: 99px;
}
.hlm .progress-bar {
  display: block; height: 100%; background: var(--hlm-primary);
  border-radius: 99px; transition: width .2s ease;
}
.hlm .badge {
  display: inline-flex; align-items: center; padding: .2rem .5rem;
  border-radius: 6px; font-size: .72rem; font-weight: 700;
}
.hlm .bg-success-subtle, .hlm .badge.bg-success-subtle { background: #d1e7dd; color: #0a3622; }
.hlm .bg-danger-subtle, .hlm .badge.bg-danger-subtle { background: #f8d7da; color: #58151c; }
.hlm .bg-success { background: #198754; color: #fff; }
.hlm .bg-secondary { background: #6c757d; color: #fff; }
.hlm .text-success-emphasis { color: #0a3622; }
.hlm .text-danger-emphasis { color: #58151c; }
.hlm .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .45rem .85rem; border: 1px solid transparent; border-radius: var(--hlm-radius);
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.hlm .btn-sm { padding: .35rem .7rem; font-size: .8rem; }
.hlm .btn-primary { background: var(--hlm-primary); color: #fff; }
.hlm .btn-primary:hover { filter: brightness(.95); }
.hlm .btn-outline-primary,
.hlm .btn-outline-secondary {
  background: var(--hlm-surface); border-color: var(--hlm-border); color: var(--hlm-heading);
}
.hlm .btn-outline-primary:hover { border-color: var(--hlm-primary); color: var(--hlm-primary-text); }
.hlm .btn-outline-danger {
  background: var(--hlm-surface); border-color: #f1aeb5; color: #b02a37;
}
.hlm .btn-danger { background: #dc3545; color: #fff; }
.hlm .form-control, .hlm .form-select, .hlm input[type=text], .hlm input[type=number], .hlm select, .hlm textarea {
  width: 100%; padding: .5rem .65rem; border: 1px solid var(--hlm-border);
  border-radius: var(--hlm-radius); background: var(--hlm-surface); color: var(--hlm-body); font: inherit;
  box-sizing: border-box;
}
.hlm .table { width: 100%; border-collapse: collapse; margin: 0; font-size: .875rem; }
.hlm .table th, .hlm .table td { padding: .55rem .65rem; border-bottom: 1px solid var(--hlm-border); text-align: left; }
.hlm .table th { font-size: .78rem; font-weight: 600; color: var(--hlm-muted); white-space: nowrap; }

.hlm .ts-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--hlm-border);
}
.hlm .ts-row:last-child { border-bottom: 0; }
.hlm .ts-act { display: flex; flex-wrap: wrap; gap: .35rem; }
.hlm .ts-ctl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-top: 1rem; }
.hlm .st-btn-danger { background: #dc3545; color: #fff; }
.hlm .st-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem; margin-bottom: 1rem;
}
.hlm .st-stats > div {
  display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem;
  border: 1px solid var(--hlm-border); border-radius: var(--hlm-radius); background: var(--hlm-surface);
}
.hlm .st-stats span { font-size: .78rem; color: var(--hlm-muted); }
.hlm .st-stats b { font-size: 1.05rem; color: var(--hlm-heading); }
.hlm .st-dl { display: grid; grid-template-columns: 140px 1fr; gap: .35rem .75rem; margin: 0 0 1rem; }
.hlm .st-dl dt { color: var(--hlm-muted); font-weight: 400; font-size: .85rem; }
.hlm .st-dl dd { margin: 0; font-weight: 600; }
.hlm .st-box {
  border: 1px solid var(--hlm-border); border-radius: var(--hlm-radius);
  background: var(--hlm-surface); padding: 1.1rem; margin-bottom: 1rem;
}
.hlm .st-muted { color: var(--hlm-muted); }
.hlm .ts-form label { display: block; margin: .5rem 0 .25rem; font-size: .8rem; font-weight: 600; color: var(--hlm-muted); }
.hlm .ts-form input, .hlm .ts-form select, .hlm .ts-form textarea {
  width: 100%; padding: .5rem .65rem; border: 1px solid var(--hlm-border);
  border-radius: var(--hlm-radius); background: var(--hlm-surface); color: var(--hlm-body); font: inherit;
  box-sizing: border-box;
}
.hlm .ts-ov {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .45); padding: 1rem;
}
.hlm .ts-modal, .ts-modal {
  background: var(--hlm-surface, #fff); border: 1px solid var(--hlm-border, #dde4f2);
  border-radius: var(--hlm-radius, 12px); max-width: 520px; width: 92%;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .18); color: var(--hlm-body, #243044);
}
.ts-modal.wide { max-width: 720px; }
.ts-mh {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--hlm-border, #dde4f2); font-weight: 700;
}
.ts-x {
  border: 0; background: transparent; font-size: 1.35rem; line-height: 1;
  cursor: pointer; color: var(--hlm-muted, #6b7a90);
}
.ts-mb { padding: 1rem; }
.ts-mf {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end;
  padding: .85rem 1rem; border-top: 1px solid var(--hlm-border, #dde4f2);
  background: var(--hlm-alt, #f4f7fb);
}

@media (max-width: 640px) {
  #tsTabs.hlm-tabs button span { display: none; }
  #tsTabs.hlm-tabs button { padding: .55rem .7rem; }
  #tsTabs.hlm-tabs button .bi { font-size: 1.05rem; }
}
