/* Gebeya Pro — seller website */
:root {
  --side: #0f3d2e;
  --side-2: #164a39;
  --side-ink: #d6e7de;
  --primary: #12644a;
  --primary-ink: #fff;
  --primary-50: #e7f3ed;
  --primary-100: #cfe7da;
  --amber: #f0a820;
  --amber-50: #fff5df;
  --amber-ink: #8a5a00;
  --red: #d63b3b;
  --red-50: #fde9e9;
  --blue: #3390ec;
  --ink: #1c2633;
  --muted: #6b7785;
  --line: #e3e8ee;
  --bg: #f4f6f8;
  --card: #fff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --font: "Noto Sans", "Noto Sans Ethiopic", "Nyala", "Ebrima", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; font-weight: 800; }
h2 { font-size: 16px; font-weight: 700; }
code { background: #eef1f4; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 232px; flex: 0 0 232px; background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; padding: 4px 8px 18px; }
.brand:hover { text-decoration: none; }
.logo {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--amber); color: #3b2600; font-weight: 800; font-size: 17px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: var(--side-ink); font-weight: 500;
}
.sidebar nav a:hover { background: var(--side-2); text-decoration: none; }
.sidebar nav a.active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; }
.sidebar .ico { width: 20px; text-align: center; }
.sidebar .lbl { flex: 1; }
.badge {
  background: var(--amber); color: #3b2600; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px;
}
.conn { margin-top: auto; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px 12px; font-size: 12px; }
.conn .sub { color: #9fbcae; margin: 0 0 6px 14px; word-break: break-all; }
.conn .sub a { color: #ffd580; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dot.on { background: #3ddc84; }
.dot.off { background: #f07b6b; }
.user { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: #9fbcae; padding: 12px 6px 0; }
.user a { color: #fff; }
.main { flex: 1; min-width: 0; padding: 22px 28px 60px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar-mobile { display: none; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: -250px; z-index: 50; transition: left .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .sidebar.open { left: 0; }
  .main { padding: 12px 16px 60px; }
  .topbar-mobile { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; }
  .brand-sm { display: flex; align-items: center; gap: 8px; }
  .page-head { flex-direction: column; }
}

/* ---------- basic components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.card + .card { margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { border-color: #c8d0d9; background: #fafbfc; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #0e5640; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #3b2600; }
.btn.amber:hover { background: #e39c12; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn.lg { padding: 12px 20px; font-size: 15px; border-radius: 11px; }
.btn.block { width: 100%; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }

.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; border: 1px solid; }
.alert.ok { background: var(--primary-50); border-color: var(--primary-100); color: #0c4b37; }
.alert.err { background: var(--red-50); border-color: #f6c9c9; color: #8f1f1f; }
.alert.warn { background: var(--amber-50); border-color: #f5dfae; color: var(--amber-ink); }

.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pill.ok { background: #e3f4ea; color: #137a45; }
.pill.warn { background: #fdf0d3; color: #9a6400; }
.pill.bad { background: #fde4e4; color: #b42323; }
.pill.grey { background: #eef1f4; color: #5b6673; }
.pill.blue { background: #e4f0fd; color: #1d67b8; }
.idtag { display: inline-block; font-weight: 800; font-size: 12px; background: var(--primary-50); color: var(--primary); padding: 3px 8px; border-radius: 6px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.cdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); vertical-align: -1px; margin-right: 6px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .k { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.stat .v { font-size: 26px; font-weight: 800; margin: 4px 0 2px; color: var(--primary); }
.stat .v.amber { color: #b37700; }
.stat .s { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* chips / filters */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 12px; font: inherit;
  font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink); text-decoration: none !important; display: inline-flex; gap: 6px; align-items: center;
}
.chip b { font-weight: 800; }
.chip.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.search { margin-left: auto; position: relative; }
.search input { padding-left: 32px !important; width: 220px; }
.search::before { content: ""; position: absolute; left: 11px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); opacity: .55; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2633' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }

/* tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.group td { background: #fbfcfd; cursor: pointer; font-weight: 700; }
.tbl tr.group:hover td { background: #f3f6f8; }
.tbl tr.group .caret { display: inline-block; width: 14px; color: var(--muted); transition: transform .15s; }
.tbl tr.group.open .caret { transform: rotate(90deg); }
.tbl tr.unit.sold td { background: #fffaf0; color: var(--muted); }
.tbl tr.unit.sold td b { text-decoration: line-through; }
.thumb { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; vertical-align: middle; margin-right: 10px; background: #eef1f4; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 34px; }

/* forms */
input[type=text], input[type=number], input[type=password], input[type=tel], input:not([type]), select, textarea {
  font: inherit; color: var(--ink); border: 1px solid #d5dce3; background: #fff; border-radius: 9px; padding: 8px 11px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 100, 74, .15); }
textarea { resize: vertical; min-height: 80px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.form .hint, .hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.section-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.num {
  display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  background: var(--amber); color: #3b2600; font-size: 11px; font-weight: 800; letter-spacing: 0;
}

/* toggle */
.switch { position: relative; width: 42px; height: 24px; flex: 0 0 42px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfd6dd; border-radius: 20px; cursor: pointer; transition: .15s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(15, 25, 35, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); max-height: 92vh; overflow: auto; }
.modal-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.auto-box { background: var(--primary-50); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 12px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #1c2633; color: #fff;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: 90vw;
}
.toast.err { background: #a42020; }

/* ---------- posting wizard ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.step {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: default;
}
.step .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef1f4; font-size: 12px; font-weight: 800; }
.step.done { color: var(--primary); cursor: pointer; }
.step.done .n { background: var(--primary-50); }
.step.cur { border-color: var(--primary); color: var(--ink); box-shadow: 0 0 0 1px var(--primary) inset; }
.step.cur .n { background: var(--primary); color: #fff; }
@media (max-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } .step .t { display: none; } .step { justify-content: center; } }

.wizard { display: grid; grid-template-columns: 1fr; gap: 16px; }
.wizard.with-preview { grid-template-columns: 1fr 320px; }
@media (max-width: 1100px) { .wizard.with-preview { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 0; }
.block { margin-bottom: 20px; }
.nav-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }

.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tile {
  border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 14px 8px; text-align: center; cursor: pointer;
  font: inherit; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: .12s;
}
.tile:hover { border-color: #b9c6d2; transform: translateY(-1px); }
.tile .i { font-size: 26px; }
.tile .t { font-weight: 800; }
.tile .s { font-size: 11px; color: var(--muted); }
.tile.on { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 1px var(--primary) inset; }
@media (max-width: 800px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }

.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.model {
  border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 8px 6px 10px; text-align: center; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: .12s;
}
.model img { width: 64px; height: 64px; object-fit: contain; }
.model:hover { border-color: #b9c6d2; }
.model.on { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 1px var(--primary) inset; }
.model .hot { font-size: 10px; color: #b37700; font-weight: 700; }

.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.opt.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }

.colour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.colour {
  border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 6px; text-align: center; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.colour img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eef1f4; }
.colour .nm { font-weight: 700; font-size: 12px; }
.colour .am { font-size: 11px; color: var(--muted); }
.colour .sel { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-50); border-radius: 10px; padding: 1px 8px; visibility: hidden; }
.colour.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.colour.on .sel { visibility: visible; }

.photo-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .photo-choice { grid-template-columns: 1fr; } }
.pchoice { border: 1px solid var(--line); border-radius: 11px; padding: 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: #fff; }
.pchoice.on { border-color: var(--primary); background: var(--primary-50); }
.pchoice.dash { border-style: dashed; }
.pchoice.drag { border-color: var(--primary); background: #f0f8f4; }
.pchoice img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.pchoice .t { font-weight: 700; }
.pchoice .s { font-size: 12px; color: var(--muted); }
.pchoice input[type=checkbox] { margin-left: auto; width: 18px; height: 18px; accent-color: var(--primary); }
.uploads { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.uploads .u { position: relative; width: 72px; height: 72px; }
.uploads .u img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.uploads .u button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 12px; cursor: pointer; line-height: 1; }
.uploads .u .main { position: absolute; left: 4px; bottom: 4px; font-size: 9px; background: rgba(0, 0, 0, .6); color: #fff; padding: 1px 5px; border-radius: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.battery-head { display: flex; align-items: center; gap: 16px; }
.battery-head .pct { font-size: 38px; font-weight: 800; color: var(--primary); min-width: 100px; }
input[type=range] { width: 100%; accent-color: var(--primary); height: 6px; }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.shots figure { margin: 0; text-align: center; font-size: 11px; color: var(--muted); }
.shots img { width: 100%; border-radius: 8px; border: 1px solid var(--line); opacity: .55; background: #f2f2f7; }
.shots figure.on img { opacity: 1; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.shots figure.on { color: var(--ink); font-weight: 800; }
.cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks { display: flex; flex-direction: column; gap: 8px; }
.checks label { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.checks input { width: 17px; height: 17px; accent-color: var(--primary); }

.price-input { font-size: 22px !important; font-weight: 800; padding: 12px 70px 12px 14px !important; }
.idbox { border: 1.5px dashed #e7b64a; background: var(--amber-50); border-radius: 12px; text-align: center; padding: 14px; }
.idbox .code { font-size: 30px; font-weight: 800; color: #6b4a00; letter-spacing: .02em; }
.idbox .s { font-size: 12px; color: var(--amber-ink); }
.inline-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty { width: 90px !important; text-align: center; }

/* ---------- Telegram phone preview ---------- */
.phone {
  width: 300px; margin: 0 auto; background: #111; border-radius: 42px; padding: 11px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  position: sticky; top: 16px;
}
.phone .screen { background: #fff; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; height: 660px; }
.phone .sbar { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: 12px; font-weight: 700; }
.phone .tg-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 8px; border-bottom: 1px solid #eee; }
.phone .ava { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.phone .tg-head b { display: block; font-size: 13px; }
.phone .tg-head small { color: #8a96a3; font-size: 11px; }
.phone .chat { flex: 1; min-height: 0; background: #dfe7d4; overflow: auto; padding: 10px 8px; display: flex; flex-direction: column; }
.phone .chat > :first-child { margin-top: auto; }
.tg-post { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); position: relative; }
.tg-post img { width: 100%; display: block; aspect-ratio: 5 / 4; object-fit: cover; }
.tg-post .cap { padding: 7px 10px 4px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.tg-post .meta { text-align: right; font-size: 10px; color: #8a96a3; padding: 0 8px 6px; }
.tg-btn { margin-top: 5px; background: rgba(100, 120, 90, .45); color: #fff; text-align: center; font-size: 12.5px; font-weight: 600; padding: 8px; border-radius: 10px; }
.phone .foot { text-align: center; color: var(--blue); font-weight: 700; font-size: 12px; padding: 10px; border-top: 1px solid #eee; letter-spacing: .05em; }

/* ---------- requests / chat ---------- */
.req-ico { font-size: 18px; width: 26px; }
.req-main b { display: block; }
.req-main span { color: var(--muted); font-size: 12.5px; }
.chat-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
@media (max-width: 1000px) { .chat-layout { grid-template-columns: 1fr; } }
.chat-box { display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 420px; }
.chat-msgs { flex: 1; overflow: auto; padding: 16px; background: #e6ecde; display: flex; flex-direction: column; gap: 6px; border-radius: var(--radius) var(--radius) 0 0; }
.msg { max-width: 75%; padding: 7px 11px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.msg.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: #dcf8c6; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.out.bot { background: #eef6ff; }
.msg .who { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.msg.bot .who { color: #1d67b8; }
.msg .tm { font-size: 10px; color: #8a96a3; text-align: right; margin-top: 2px; }
.chat-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.chat-send textarea { min-height: 42px; height: 42px; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.quick button { font: inherit; font-size: 12px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 4px 10px; cursor: pointer; }

/* ---------- photo library ---------- */
.lib-models { display: flex; flex-direction: column; gap: 12px; }
.lib-model { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.lib-model h3 { font-size: 15px; display: flex; gap: 10px; align-items: center; }
.lib-colours { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.lib-colour { text-align: center; font-size: 12px; }
.lib-colour img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.lib-colour .acts { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #0f3d2e, #12644a); padding: 16px; }
.auth-card { background: #fff; border-radius: 18px; padding: 28px; width: 100%; max-width: 380px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { margin: 14px 0 6px; }
.brand-row { display: flex; align-items: center; gap: 10px; font-size: 18px; }

/* settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .settings-grid { grid-template-columns: 1fr; } }
.steps-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.steps-list li { margin-bottom: 4px; }

/* ---------- v2: language switch, posted ads, per-section accents ---------- */
html.lang-am:not(.i18n-ready) body { visibility: hidden; }
.langsw { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; color: #9fbcae; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 6px 8px; }
.langsw a { color: var(--side-ink); padding: 3px 8px; border-radius: 6px; }
.langsw a:hover { text-decoration: none; background: rgba(255, 255, 255, .08); }
.langsw a.on { background: var(--amber); color: #3b2600; font-weight: 800; }

/* each section has its own accent colour (header bar + active menu item) */
body { --accent: var(--primary); }
body[data-section="new-post"] { --accent: #f0a820; }
body[data-section="posts"] { --accent: #3390ec; }
body[data-section="inventory"] { --accent: #12644a; }
body[data-section="requests"] { --accent: #8b5cf6; }
body[data-section="bookings"] { --accent: #0ea5a4; }
body[data-section="installments"] { --accent: #e0662d; }
body[data-section="sales"] { --accent: #16a34a; }
body[data-section="photos"] { --accent: #db2777; }
body[data-section="settings"] { --accent: #64748b; }
.page-head h1 { position: relative; padding-left: 14px; }
.page-head h1::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 3px; background: var(--accent); }
.sidebar nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.stat .v { color: var(--accent); }

.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.ad { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ad.ended { opacity: .8; }
.ad-img { position: relative; background: #eef1f4; }
.ad-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.ad-state { position: absolute; top: 10px; left: 10px; }
.ad-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ad-cap { font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.ad-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ad-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.reply-quote { background: #f6f7f9; border-left: 3px solid var(--accent); padding: 8px 10px; border-radius: 6px; font-size: 13px; white-space: pre-wrap; }

/* ---------- v3: calm, premium workspace refresh ---------- */
:root {
  --side: #13231f;
  --side-2: #1d342d;
  --side-ink: #b8cbc3;
  --primary: #11715a;
  --primary-50: #e8f4ef;
  --primary-100: #cde8dc;
  --amber: #e5a52d;
  --amber-50: #fff6e2;
  --amber-ink: #805400;
  --ink: #192522;
  --muted: #71807b;
  --line: #e4ebe7;
  --bg: #f5f8f7;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 2px 4px rgba(20, 42, 34, .03), 0 12px 32px rgba(20, 42, 34, .06);
}

body {
  background: radial-gradient(circle at 90% -10%, rgba(17,113,90,.07), transparent 30rem), var(--bg);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -.005em;
}

a { color: var(--primary); }
a:hover { color: #0a5946; }

.sidebar {
  width: 250px;
  flex-basis: 250px;
  padding: 24px 14px 18px;
  background: linear-gradient(180deg, #142922 0%, #10201b 100%);
  border-right: 1px solid rgba(255,255,255,.05);
}
.brand { padding: 0 10px 28px; font-size: 18px; letter-spacing: -.03em; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy small { color: #78958a; font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, #f7c75e, #d88e1d);
  color: #382500; box-shadow: 0 6px 18px rgba(218,151,39,.22);
}
.sidebar nav { gap: 5px; }
.sidebar nav a {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #b7cbc2;
  font-size: 13px;
  transition: background .15s, color .15s, transform .15s;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; transform: translateX(2px); }
.sidebar nav a.active {
  color: #15382e;
  background: #f4faf7;
  box-shadow: 0 7px 20px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.2);
}
.sidebar nav a.active .ico { color: var(--primary); }
.sidebar .ico { width: 22px; font-size: 16px; opacity: .95; }
.sidebar .nav-icon { display: block; width: 18px; height: 18px; }
.badge { background: #f3bd48; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.conn { margin: auto 4px 0; padding: 13px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); border-radius: 13px; }
.langsw { margin: 12px 4px 0; }
.user { padding: 16px 8px 0; }

.main { max-width: 1600px; padding: 32px 42px 72px; }
.page-head { margin-bottom: 24px; align-items: center; }
.page-head h1 { font-size: 28px; letter-spacing: -.04em; padding-left: 0; }
.page-head h1::before { display: none; }
.page-head p { font-size: 13px; color: var(--muted); margin-top: 7px; }
.head-actions { gap: 10px; }

.card, .stat, .panel, .lib-model, .ad { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad, .panel { padding: 22px; }
.btn { min-height: 38px; border-color: #dce5e0; border-radius: 10px; padding: 8px 15px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { border-color: #c4d4cc; box-shadow: 0 4px 12px rgba(20,42,34,.08); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, #147a61, #0b604b); border-color: #0b604b; box-shadow: 0 5px 14px rgba(17,113,90,.2); }
.btn.primary:hover { background: linear-gradient(135deg, #168267, #0c6952); }
.btn.amber { background: linear-gradient(135deg, #f3c052, #df9b21); border-color: #df9b21; }
.icon-btn { border-color: var(--line); border-radius: 10px; }

.stats { gap: 16px; margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; padding: 19px 20px; }
.stat::after { content: ""; position: absolute; right: -22px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: var(--primary-50); opacity: .7; }
.stat:nth-child(2)::after { background: var(--amber-50); }
.stat:nth-child(3)::after { background: #e8f0fb; }
.stat:nth-child(4)::after { background: #f8e9e4; }
.stat .k { position: relative; z-index: 1; font-size: 10px; color: #809089; letter-spacing: .11em; }
.stat .v { position: relative; z-index: 1; font-size: 31px; letter-spacing: -.05em; margin: 7px 0 3px; }
.stat .s { position: relative; z-index: 1; }

.toolbar { gap: 9px; margin-bottom: 16px; }
.chip { border-color: var(--line); border-radius: 20px; padding: 8px 13px; }
.chip:hover { background: #fff; border-color: #c5d7ce; }
.chip.active { background: var(--primary-50); box-shadow: 0 0 0 1px var(--primary) inset; }
.search input { border-radius: 20px; height: 38px; background: #fff; }

.table-wrap { overflow: hidden; }
table.tbl { border-spacing: 0; }
.tbl th { padding: 13px 16px; background: #f9fbfa; color: #84918c; border-bottom-color: var(--line); }
.tbl td { padding: 14px 16px; border-bottom-color: #edf1ef; }
.tbl tbody tr.unit:hover td { background: #fbfdfc; }
.tbl tr.group td { padding: 12px 16px; background: #f7faf8; }
.tbl tr.group:hover td { background: #f0f6f3; }
.thumb { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 8px rgba(26,48,40,.12); }
.idtag { border-radius: 7px; }

input[type=text], input[type=number], input[type=password], input[type=tel], input:not([type]), select, textarea { border-color: #d8e3de; border-radius: 10px; min-height: 40px; }
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(17,113,90,.11); }
.section-title { margin-bottom: 12px; color: #7a8982; }
.tile, .model, .colour, .pchoice, .opt, .step { border-color: var(--line); border-radius: 13px; }
.tile:hover, .model:hover { border-color: #bcd3c8; box-shadow: 0 6px 18px rgba(20,42,34,.07); }
.tile.on, .model.on, .colour.on, .step.cur { box-shadow: 0 0 0 1px var(--primary) inset, 0 6px 18px rgba(17,113,90,.08); }

.lib-model { padding: 18px; }
.lib-model h3 { font-size: 17px; }
.lib-colour img, .colour img { border-radius: 12px; border-color: #dbe6e1; box-shadow: 0 5px 16px rgba(20,42,34,.06); }
.ad { overflow: hidden; }
.ad-img { background: linear-gradient(145deg, #f1f6f3, #e4ede9); }
.ad-img img { mix-blend-mode: multiply; }
.ad-body { padding: 14px 16px 16px; }

.auth-page { background: radial-gradient(circle at 15% 10%, rgba(243,192,82,.22), transparent 25rem), linear-gradient(145deg, #10231d, #17664f); }
.auth-card { border: 1px solid rgba(255,255,255,.5); box-shadow: 0 28px 70px rgba(5,24,17,.3); }

@media (max-width: 1100px) { .main { padding: 28px 24px 60px; } }
@media (max-width: 900px) {
  .main { padding: 15px 16px 52px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 24px; }
  .sidebar { width: 250px; flex-basis: 250px; }
}
@media (max-width: 560px) {
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat .v { font-size: 25px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .toolbar .search { width: 100%; margin-left: 0; }
  .search input { width: 100%; }
}

/* ---------- v4: restrained retail operations UI ---------- */
body {
  background: #f6f7f5;
  letter-spacing: 0;
}
.sidebar {
  background: #17261f;
  border-right: 1px solid #263b31;
}
.logo {
  background: #e4a52b;
  color: #352507;
  box-shadow: none;
}
.brand { letter-spacing: -.015em; }
.brand-copy small { display: none; }
.sidebar nav a { transition: background .12s, color .12s; }
.sidebar nav a:hover { transform: none; }
.sidebar nav a.active {
  color: #17382d;
  background: #f4f7f4;
  box-shadow: inset 3px 0 0 #e4a52b;
}
.main { max-width: none; padding: 30px 36px 64px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 25px; letter-spacing: -.025em; }
.page-head p { margin-top: 5px; }

.card, .stat, .panel, .lib-model, .ad {
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(22, 38, 31, .045);
}
.card.pad, .panel { padding: 20px; }
.btn {
  min-height: 36px;
  border-radius: 7px;
  box-shadow: none;
  transition: background .12s, border-color .12s;
}
.btn:hover { box-shadow: none; transform: none; }
.btn.primary { background: #14745b; border-color: #14745b; box-shadow: none; }
.btn.primary:hover { background: #0f634d; }
.btn.amber { background: #e4a52b; border-color: #d59722; }

.stats { gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat::after { display: none; }
.stat .v { font-size: 28px; margin: 5px 0 2px; }

.toolbar { gap: 7px; margin-bottom: 14px; }
.chip {
  border-radius: 7px;
  padding: 7px 10px;
  background: #fff;
}
.chip.active { box-shadow: inset 0 0 0 1px var(--primary); }
.search input { border-radius: 7px; }

.tbl th { padding: 11px 14px; }
.tbl td { padding: 12px 14px; }
.tbl tr.group td { padding: 10px 14px; }
.thumb { border-radius: 7px; box-shadow: none; }

input[type=text], input[type=number], input[type=password], input[type=tel], input:not([type]), select, textarea {
  border-radius: 7px;
}
.tile, .model, .colour, .pchoice, .opt, .step { border-radius: 8px; }
.tile:hover, .model:hover { box-shadow: none; }
.lib-colour img, .colour img { border-radius: 8px; box-shadow: none; }
.ad-img { background: #edf2ef; }
.ad-img img { mix-blend-mode: normal; }
.auth-page { background: #17261f; }
.auth-card { box-shadow: 0 14px 35px rgba(5,24,17,.22); }

@media (max-width: 900px) { .main { padding: 16px 16px 52px; } }

/* ---------- v3: SVG icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.i-xs { width: .85em; height: .85em; }
.i-sm { width: 1em; height: 1em; }
.i-xl { width: 40px; height: 40px; stroke-width: 1.5; }
.btn .i, .chip .i { margin-right: 1px; }
.btn .i:last-child:not(:first-child) { margin: 0 0 0 2px; }
.sidebar .ico .i { width: 19px; height: 19px; }
.empty .big { color: var(--muted); margin-bottom: 6px; }
.done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-50); color: var(--primary); }
.done-ico .i-xl { width: 34px; height: 34px; }
.h-ico { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.h-ico .i { color: var(--accent); }
.sum-ico { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sum-ico .i { color: var(--accent); }
.req-ico .i { width: 20px; height: 20px; color: var(--accent); }
.pill .i { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.ad-meta span { display: inline-flex; align-items: center; gap: 4px; }
.langsw .i { width: 15px; height: 15px; margin-right: 2px; }
.user .logout { display: inline-flex; align-items: center; gap: 4px; }
.toast { display: flex; align-items: center; gap: 8px; }
.toast .i { width: 18px; height: 18px; }
.num .i { width: 11px; height: 11px; stroke-width: 2.4; }
.step .n .i { width: 12px; height: 12px; stroke-width: 2.6; }
.tile .ti { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f1f4f7; color: var(--ink); margin-bottom: 4px; }
.tile .ti .i { width: 24px; height: 24px; }
.tile.on .ti { background: #fff; color: var(--primary); }
.model .hot { display: inline-flex; align-items: center; gap: 3px; }
.colour .sel { display: inline-flex; align-items: center; gap: 3px; }
.shots figcaption { display: inline-flex; align-items: center; gap: 2px; justify-content: center; width: 100%; }
.pchoice-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #f1f4f7; color: var(--muted); }
.pchoice-ico .i { width: 22px; height: 22px; }
.upl-line { margin: 10px 0 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.uploads .u button { display: grid; place-items: center; padding: 0; }
.opt .i { vertical-align: -2px; margin-right: 3px; }
.icon-btn { display: grid; place-items: center; }
.alert .i { vertical-align: -3px; }
.preview-note { text-align: center; margin: 12px 0 0; }

/* ---------- v3: photo source badges ---------- */
.src { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-top: 3px; }
.src.own { background: #e4f0fd; color: #1d67b8; }
.src.exact { background: #e3f4ea; color: #137a45; }
.src.model { background: #fdf0d3; color: #9a6400; }
.src.similar { background: #fde9df; color: #a4481c; }
.src.generated { background: #eef1f4; color: #5b6673; }
.credits td { font-size: 12.5px; }

/* ---------- v3: realistic iPhone screenshot of the Telegram channel ---------- */
.iphone {
  --w: 300px; width: var(--w); margin: 0 auto; aspect-ratio: 9 / 19.3;
  border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #8a8d93 0%, #3d3f44 18%, #1f2024 50%, #3d3f44 82%, #8a8d93 100%);
  box-shadow: 0 0 0 1.5px #b9bcc2 inset, 0 0 0 3px #2a2b2f inset, 0 30px 60px rgba(10, 20, 30, .28), 0 8px 18px rgba(10, 20, 30, .18);
  position: sticky; top: 16px;
}
.iphone-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #55575c, #9a9da3); }
.iphone-btn.action { left: -2px; top: 104px; height: 26px; }
.iphone-btn.vol-up { left: -2px; top: 146px; height: 46px; }
.iphone-btn.vol-down { left: -2px; top: 202px; height: 46px; }
.iphone-btn.power { right: -2px; top: 166px; height: 72px; background: linear-gradient(270deg, #55575c, #9a9da3); }
.iphone-screen {
  position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; display: flex; flex-direction: column;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Noto Sans Ethiopic", "Nyala", sans-serif; color: #000;
  box-shadow: 0 0 0 2px #000;
}
.ios-status { position: relative; height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 22px 0 34px; background: #f7f7f8; }
.ios-time { font-weight: 600; font-size: 15px; letter-spacing: -.2px; }
.ios-island { position: absolute; left: 50%; top: 10px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; }
.ios-icons { display: flex; align-items: center; gap: 5px; }
.ios-icons svg { fill: #000; color: #000; }
.tg-nav {
  flex: none; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; height: 44px; padding: 0 8px;
  background: rgba(247, 247, 248, .96); border-bottom: .5px solid rgba(0, 0, 0, .18);
}
.tg-back { color: #007aff; display: flex; align-items: center; gap: 4px; }
.tg-unread { background: #007aff; color: #fff; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 6px; line-height: 16px; }
.tg-title { text-align: center; line-height: 1.15; overflow: hidden; }
.tg-title b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-title small { font-size: 12px; color: #8e8e93; }
.tg-ava {
  justify-self: end; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px;
  background: linear-gradient(180deg, #72d56f, #3ca742);
}
.tg-wall {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; position: relative;
  background-color: #cfdcb3;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23000' stroke-opacity='.07' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18h14v10H14zM18 28v4M24 28v4'/%3E%3Ccircle cx='72' cy='20' r='7'/%3E%3Cpath d='M68 20h8M72 16v8'/%3E%3Cpath d='M100 12l6 10h-12z'/%3E%3Cpath d='M20 64c4-6 12-6 16 0-4 6-12 6-16 0z'/%3E%3Ccircle cx='28' cy='64' r='2'/%3E%3Cpath d='M60 58l4 8 8 1-6 5 2 8-8-4-8 4 2-8-6-5 8-1z'/%3E%3Cpath d='M96 56c0 6 10 6 10 0v-6H96z'/%3E%3Cpath d='M12 100q8-10 16 0t16 0'/%3E%3Crect x='62' y='94' width='16' height='12' rx='3'/%3E%3Cpath d='M66 94v-3h8v3'/%3E%3Ccircle cx='102' cy='100' r='6'/%3E%3Cpath d='M102 94v-4'/%3E%3C/svg%3E"),
    radial-gradient(circle at 15% 20%, #e6e9b5 0, transparent 45%), radial-gradient(circle at 85% 85%, #9ecb9a 0, transparent 50%),
    linear-gradient(160deg, #dce6b7, #bcd6a6 55%, #a6cda1);
  background-size: 120px 120px, auto, auto, auto;
}
.tg-thread { padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.tg-date { align-self: center; font-size: 12px; font-weight: 600; color: #fff; background: rgba(90, 120, 70, .45); border-radius: 12px; padding: 2px 9px; margin-bottom: 2px; }
.tg-msg { display: flex; align-items: flex-end; gap: 6px; }
.tg-bubble {
  flex: 1; min-width: 0; background: #fff; border-radius: 16px 16px 16px 5px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12); position: relative;
}
.tg-bubble img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e9eef2; }
.tg-cap { padding: 6px 9px 0; font-size: 12.5px; line-height: 1.38; white-space: pre-wrap; word-wrap: break-word; letter-spacing: -.1px; }
.tg-cap a { color: #168acd; text-decoration: none; }
.tg-meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; color: #a3a8ad; font-size: 11px; padding: 1px 9px 6px; }
.tg-share {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(90, 120, 70, .45); margin-bottom: 2px;
}
.tg-kbd { margin-right: 34px; }
.tg-kbd span {
  display: block; text-align: center; font-size: 13px; font-weight: 600; color: #fff; padding: 8px; border-radius: 10px;
  background: rgba(90, 120, 70, .45); backdrop-filter: blur(6px);
}
.tg-mute { flex: none; text-align: center; color: #007aff; font-size: 15px; padding: 10px 0 24px; background: rgba(247, 247, 248, .97); border-top: .5px solid rgba(0, 0, 0, .18); }
.ios-home { position: absolute; left: 50%; bottom: 8px; width: 118px; height: 4.5px; margin-left: -59px; border-radius: 3px; background: #000; }
@media (max-width: 1100px) { .iphone { position: relative; top: 0; } }
.toast[hidden] { display: none !important; }
.ios-island { width: 84px; margin-left: -42px; }
.ios-status { padding: 6px 20px 0 30px; }
.ios-icons { gap: 4px; }
.ios-icons svg:nth-child(1) { width: 16px; }
.ios-icons svg:nth-child(2) { width: 14px; }
.ios-icons svg:nth-child(3) { width: 24px; }
.idtag { white-space: nowrap; }
.row-actions .btn.sm[aria-label] { padding: 5px 7px; }

/* ---------- v4: multi-shop ---------- */
.brand-copy small { display: block; font-size: 11px; font-weight: 600; color: #9fbcae; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.as-shop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.as-shop span { flex: 1; }
body[data-section="admin"] { --accent: #b42323; }
