/* Owner panel. Colours are CSS variables; the panel itself does not follow the menu template. */
:root {
  --p-bg: #f6f6f9; --p-card: #fff; --p-ink: #16161d; --p-muted: #5f6070; --p-line: #e4e4ec;
  --p-brand: #4338bd; --p-brand-ink: #fff; --p-brand-soft: #eeedfc;
  --p-ok: #116a3c; --p-ok-soft: #e6f6ec; --p-warn: #8a4b00; --p-warn-soft: #fff3de; --p-err: #b42318; --p-err-soft: #fdecea;
  --p-radius: 12px;
  --p-chart-1: #5b50e6; --p-chart-2: #f59e0b; --p-chart-3: #10b981;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body.p { margin: 0; background: var(--p-bg); color: var(--p-ink); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--p-brand); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--p-brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.02em; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
.muted { color: var(--p-muted); }
.small { font-size: .86rem; }

/* ---- frame ---- */
.p-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.p-side { background: #15142a; color: #d9d8f0; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.p-logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; padding: 4px 8px; }
.p-logo svg { width: 22px; height: 22px; fill: #8f88ff; }
.p-branch { padding: 10px; border-radius: 10px; background: rgb(255 255 255 / .06); }
.p-branch b { display: block; color: #fff; font-size: .95rem; line-height: 1.3; }
.p-branch small { color: #a9a7c9; }
.p-nav { display: grid; gap: 2px; }
.p-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #d9d8f0; text-decoration: none; font-weight: 550; }
.p-nav a:hover { background: rgb(255 255 255 / .07); }
.p-nav a[aria-current="page"] { background: #fff; color: #15142a; }
.p-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.p-side-foot { margin-top: auto; display: grid; gap: 8px; font-size: .85rem; }
.p-side-foot form { margin: 0; }
.p-side-foot button { background: none; border: 0; color: #a9a7c9; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.p-main { padding: 28px clamp(16px, 4vw, 40px) 64px; max-width: 1120px; width: 100%; }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- pieces ---- */
.card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 18px; }
.card + .card, .card + .grid2, .grid2 + .card { margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 9px;
  border: 1px solid var(--p-line); background: #fff; color: var(--p-ink); font: 600 .92rem/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #c9c9d6; }
.btn-primary { background: var(--p-brand); border-color: var(--p-brand); color: var(--p-brand-ink); }
.btn-primary:hover { background: #372ea3; border-color: #372ea3; }
.btn-danger { color: var(--p-err); }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: .84rem; border-radius: 7px; }
.btn-icon { min-height: 32px; width: 32px; padding: 0; border-radius: 7px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 550; }
.flash.success { background: var(--p-ok-soft); color: var(--p-ok); }
.flash.error { background: var(--p-err-soft); color: var(--p-err); }
.flash.warn { background: var(--p-warn-soft); color: var(--p-warn); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--p-brand-soft); color: var(--p-brand); }
.badge.ok { background: var(--p-ok-soft); color: var(--p-ok); }
.badge.warn { background: var(--p-warn-soft); color: var(--p-warn); }
.badge.err { background: var(--p-err-soft); color: var(--p-err); }
.badge.grey { background: #ececf2; color: #4b4b5a; }
.stat { display: grid; gap: 2px; }
.stat b { font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stats .card { padding: 14px 16px; margin-top: 0; }
.publish-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border: 2px solid var(--p-brand); background: linear-gradient(180deg, #fff, var(--p-brand-soft)); }
.publish-box.is-clean { border-color: var(--p-line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--p-line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--p-muted); font-weight: 700; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- forms ---- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span, .label { font-weight: 650; font-size: .9rem; }
.field small, .hint { color: var(--p-muted); font-size: .82rem; }
.field .error, .error { color: var(--p-err); font-weight: 600; font-size: .84rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #cfd0dc; border-radius: 9px; background: #fff; color: var(--p-ink); font: inherit; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--p-brand); outline: 2px solid var(--p-brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 550; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--p-brand); flex: none; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.lang-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.lang-tag { display: inline-block; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: #ececf2; color: #4b4b5a; margin-right: 6px; vertical-align: 1px; }
fieldset { border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 14px 16px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.form-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--p-bg) 30%); }
.allergen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 6px 16px; }
.allergen-grid label { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--p-line); font-size: .9rem; }
.allergen-grid select { width: auto; min-height: 32px; padding: 4px 8px; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--p-line); border-radius: 99px; background: #fff; cursor: pointer; font-weight: 550; font-size: .9rem; }
.chips input { accent-color: var(--p-brand); }
.chips label:has(input:checked) { border-color: var(--p-brand); background: var(--p-brand-soft); color: var(--p-brand); }
.photo-field { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.photo-field img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--p-line); }

/* ---- menu editor ---- */
.cat { padding: 0; overflow: hidden; }
.cat-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fafafd; border-bottom: 1px solid var(--p-line); flex-wrap: wrap; }
.cat-head h2 { margin: 0; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.tools { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tools form { margin: 0; }
.prod { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--p-line); }
.prod:last-child { border-bottom: 0; }
.prod-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.prod-thumb { width: 52px; height: 52px; border-radius: 8px; background: #efeff5; object-fit: cover; }
.prod-name { font-weight: 650; text-decoration: none; color: var(--p-ink); }
.prod-name:hover { color: var(--p-brand); }
.prod-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.prod-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.prod.is-hidden .prod-name { color: var(--p-muted); text-decoration: line-through; }
.empty { padding: 18px 14px; color: var(--p-muted); }
.stock-toggle button { min-width: 92px; }

/* ---- design screen ---- */
.design { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 20px; align-items: start; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-card { position: relative; display: grid; gap: 6px; padding: 8px; border: 2px solid var(--p-line); border-radius: 12px; background: #fff; cursor: pointer; }
.theme-card:has(input:checked) { border-color: var(--p-brand); box-shadow: 0 0 0 3px var(--p-brand-soft); }
.theme-card input { position: absolute; opacity: 0; }
.theme-card b { font-size: .92rem; }
.theme-card small { color: var(--p-muted); font-size: .78rem; line-height: 1.35; }
.mini { height: 84px; border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: 30px 1fr; background: var(--mb); border: 1px solid rgb(0 0 0 / .06); }
.mini i { display: block; background: var(--mh); }
.mini span { display: grid; gap: 4px; padding: 6px; align-content: start; }
.mini span::before, .mini span::after { content: ""; height: 9px; border-radius: 3px; background: var(--mc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .05); }
.mini span::after { width: 70%; background: var(--ma); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--p-ink); }
.color-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.color-row input[type=color] { width: 52px; height: 42px; padding: 2px; border: 1px solid #cfd0dc; border-radius: 9px; background: #fff; cursor: pointer; }
.color-row input[type=text] { width: 120px; font-family: ui-monospace, Menlo, monospace; }
.tones { display: grid; grid-template-columns: repeat(10, 1fr); height: 28px; border-radius: 8px; overflow: hidden; border: 1px solid var(--p-line); }
.preview-wrap { position: sticky; top: 16px; }
.phone { border: 10px solid #15142a; border-radius: 34px; overflow: hidden; background: #15142a; box-shadow: 0 20px 50px rgb(21 20 42 / .25); }
.phone iframe { display: block; width: 100%; height: min(720px, 78vh); border: 0; background: #fff; border-radius: 24px; }
.adjust-note { margin-top: 10px; }

/* ---- auth pages ---- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(80% 60% at 50% 0%, #e9e7ff, var(--p-bg)); }
.auth-card { width: min(420px, 100%); }
.auth-card .p-logo { color: var(--p-ink); justify-content: center; margin-bottom: 14px; font-size: 1.2rem; }
.auth-card .p-logo svg { fill: var(--p-brand); }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .p-shell { grid-template-columns: minmax(0, 1fr); }
  .p-side, .p-main { min-width: 0; }
  .p-side { position: static; height: auto; padding: 12px; gap: 10px; }
  .p-nav { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .p-branch { display: none; }
  .p-side-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0; }
  .p-side-top { display: flex; justify-content: space-between; align-items: center; }
  .design { grid-template-columns: minmax(0, 1fr); }
  .preview-wrap { position: static; }
  .prod { grid-template-columns: 44px minmax(0, 1fr); }
  .prod-actions { grid-column: 2; justify-content: flex-start; }
  .prod-thumb { width: 44px; height: 44px; }
}

/* ---- Module 5: tables & QR, calls, statistics ---- */
.qr-card { display: flex; gap: 16px; align-items: flex-start; }
.qr-card h2 { margin: 0 0 4px; font-size: 1.05rem; }
.qr-card p { margin: 0 0 8px; }
.qr-body { min-width: 0; }
.qr-img { width: 132px; height: 132px; flex: none; border: 1px solid var(--p-line); border-radius: 10px; background: #fff; }
.url { overflow-wrap: anywhere; }
.switch-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.add-row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.tables-card { padding: 0; overflow: hidden; }
.trow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--p-line); }
.trow.is-off { background: #fafafc; }
.trow.is-off .qr-mini { opacity: .35; }
.qr-mini { width: 56px; height: 56px; border-radius: 6px; background: #fff; border: 1px solid var(--p-line); }
.trow-main { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; }
.trow-main small { flex-basis: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(300px, 80vw); display: grid; gap: 12px; padding: 14px;
  background: #fff; border: 1px solid var(--p-line); border-radius: 12px; box-shadow: 0 12px 32px rgb(20 20 40 / .14); }
.more-box form { margin: 0; display: grid; gap: 8px; }
.more-box form.inline { grid-template-columns: minmax(0, 1fr) auto; }
.calls-card { padding: 0; overflow: hidden; }
.calls-list { list-style: none; margin: 0; padding: 0; }
.call { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--p-line); }
.call b { display: block; font-size: 1.35rem; letter-spacing: -.01em; }
.call span { color: var(--p-muted); font-weight: 600; }
.call form { margin: 0; }
.call .btn { min-width: 96px; min-height: 48px; font-size: 1rem; }
.call-bill { box-shadow: inset 4px 0 0 var(--p-warn); }
.call-waiter { box-shadow: inset 4px 0 0 var(--p-brand); }
.call.is-new { animation: call-in 1.2s ease-out 2; }
@keyframes call-in { 30% { background: var(--p-brand-soft); } }
.calls-empty { padding: 28px 18px; margin: 0; text-align: center; }
.seg .btn[aria-current="page"] { background: var(--p-brand); border-color: var(--p-brand); color: #fff; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.dot-link, .seg-link { background: var(--p-chart-1); }
.dot-general_qr, .seg-general_qr { background: var(--p-chart-2); }
.dot-table_qr, .seg-table_qr { background: var(--p-chart-3); }
.bars { height: 180px; display: flex; align-items: flex-end; gap: 3px; padding-top: 8px; border-bottom: 1px solid var(--p-line); }
.bars-90 { gap: 1px; }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.bar-stack { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; min-height: 2px; }
.bar-stack i { display: block; flex-basis: 0; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; }
@media (max-width: 720px) {
  .add-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .add-row label:first-child { grid-column: 1 / -1; }
  .trow { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 14px; }
  .qr-mini { width: 48px; height: 48px; }
  .trow-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .more-box { left: 0; right: auto; }
  .qr-card { flex-direction: column; }
}
.grid2 > .card { margin-top: 0; }
.stats + .card { margin-top: 16px; }
.sched { border: 1px solid var(--p-line); border-radius: 10px; padding: 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.sched legend { padding: 0 6px; }
.sched[disabled] { opacity: .6; }
.sched:has(input[name=schedule_enabled]:not(:checked)) .sched-body { display: none; }
.sched-body { display: grid; gap: 12px; }
.table-scroll { overflow-x: auto; margin-top: 16px; }
.csv-table td { vertical-align: top; }
.csv-error { background: var(--p-err-soft); }
code { font: 600 .85em/1.4 ui-monospace, Menlo, Consolas, monospace; background: #f0f0f5; padding: 1px 5px; border-radius: 5px; }

/* ---- plan / renewal (Module 6) ---- */
.plan-now-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.plan-name { display: block; font-size: 1.4rem; letter-spacing: -.02em; margin: 2px 0 6px; }
.plan-date { font-size: 1.1rem; }
.plan-next { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--p-line); }
.plan-pending { border-color: var(--p-warn); background: var(--p-warn-soft); }
.kv { display: grid; gap: 6px; margin: 0 0 12px; }
.kv div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 10px; }
.kv dt { color: var(--p-muted); font-size: .88rem; }
.kv dd { margin: 0; }
code.big { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }
.plan-periods { border: 0; padding: 0; margin: 0; align-items: center; }
.plan-periods legend { width: 100%; margin-bottom: 8px; padding: 0; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.plan-card { position: relative; display: block; cursor: pointer; }
.plan-card input { position: absolute; top: 16px; right: 16px; accent-color: var(--p-brand); width: 18px; height: 18px; }
.plan-card-body { display: grid; gap: 6px; height: 100%; padding: 16px; border: 1.5px solid var(--p-line); border-radius: var(--p-radius); background: #fff; }
.plan-card:has(input:checked) .plan-card-body { border-color: var(--p-brand); background: var(--p-brand-soft); box-shadow: 0 0 0 3px rgb(67 56 189 / .12); }
.plan-card:has(input:focus-visible) .plan-card-body { outline: 2px solid var(--p-brand); outline-offset: 2px; }
.plan-card.is-blocked { cursor: not-allowed; opacity: .6; }
.plan-card b { font-size: 1.05rem; padding-right: 28px; }
.plan-price { font-weight: 700; font-size: 1.15rem; }
.plan-price .py { display: none; }
.plan-form:has(input[name=period][value=yearly]:checked) .plan-price .pm { display: none; }
.plan-form:has(input[name=period][value=yearly]:checked) .plan-price .py { display: inline; }
.plan-effect { color: var(--p-muted); font-size: .84rem; line-height: 1.4; }
.plan-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plan-banner .btn { flex: none; }
.plan-form .form-foot { position: static; background: none; padding: 0; }
#branch-form .row2 { align-items: start; }
#branch-form .form-foot { position: static; background: none; padding: 0; }
.csv-apply .form-foot { position: static; background: none; padding: 0; }

/* ---- Team (/ekip) ---- */
.team-row { grid-template-columns: minmax(0, 1fr) auto; }
.team-row.is-invite { background: var(--p-bg); }
.team-access { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.team-branches { padding-left: 4px; }
.team-access:has(input[value="all"]:checked) .team-branches { display: none; }
.team-danger { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--p-line); padding-top: 10px; }
.team-danger form { margin: 0; }
.team-edit { width: min(340px, 86vw); }
.team-roles { display: grid; gap: 12px; margin: 0; }
.team-roles dt { font-weight: 700; }
.team-roles dd { margin: 2px 0 0; color: var(--p-muted); font-size: .92rem; }
form.inline { display: inline; margin: 0; }

/* ---- Activity log (/kayitlar) ---- */
.act-filter { display: grid; gap: 14px; }
.chip-link { display: inline-flex; padding: 6px 12px; border: 1px solid var(--p-line); border-radius: 99px; background: #fff; font-weight: 550; font-size: .9rem; color: inherit; text-decoration: none; }
.chip-link:hover { border-color: var(--p-brand); }
.chip-link.is-on { border-color: var(--p-brand); background: var(--p-brand-soft); color: var(--p-brand); }
.act-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; align-items: end; }
.act-list { padding: 0; }
.act-list > p { padding: 18px; }
.act-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 12px 18px; border-top: 1px solid var(--p-line); }
.act-row:first-child { border-top: 0; }
.act-row time { color: var(--p-muted); font-size: .85rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.act-title { margin: 0; overflow-wrap: anywhere; }
.act-title .badge { margin-left: 6px; }
.act-lines { margin: 6px 0 4px; padding-left: 18px; font-size: .9rem; color: var(--p-ink); }
.act-lines li { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.act-more summary { cursor: pointer; font-size: .85rem; color: var(--p-brand); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
@media (max-width: 640px) { .act-row { grid-template-columns: 1fr; gap: 4px; } }
