/* clicki.site — marketing pages, sign-in, owner dashboard, admin */
:root {
  --c1: #5E5CE6;           /* same palette as menui.site: #C865D7 #8F5BD7 #5E5CE6 #4EA7F4 #63E4FF */
  --c2: #4EA7F4;
  --c3: #63E4FF;
  --grad: linear-gradient(135deg, #8F5BD7, #5E5CE6 55%, #4EA7F4);
  --ink: #12141F;
  --text: #2B2F3D;
  --muted: #6B7080;
  --line: #E8E9F0;
  --field-line: #D9DBE5;
  --soft: #F6F7FB;
  --bg: #fff;
  --surface: #fff;
  --surface-2: #FCFCFE;
  --glass: rgba(255, 255, 255, .88);
  --contrast: #12141F;      /* dark buttons, active tabs, the sales band */
  --side: #12141F;          /* dashboard sidebar */
  --tint: #EEEEFD;
  --tint-ink: #4B49C9;
  --ok: #0E9F6E;
  --warn: #B45309;
  --err: #DC2626;
  --ok-bg: #ECFDF5; --ok-ink: #065F46;
  --err-bg: #FEF2F2; --err-ink: #991B1B; --err-line: #F5C2C2;
  --warn-bg: #FFFBEB; --warn-ink: #92400E;
  --info-bg: #EEF2FF; --info-ink: #3730A3;
  --radius: 16px;
  --shadow: 0 18px 44px -24px rgba(18, 20, 31, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
/* dark theme: on when chosen, or when the device is dark and nothing was chosen */
:root[data-theme="dark"] {
  --ink: #F3F4F8; --text: #D3D6E0; --muted: #9298AA; --line: #262A38; --field-line: #363B4D;
  --soft: #0B0D13; --bg: #0E1017; --surface: #161924; --surface-2: #1A1E2A; --glass: rgba(14, 16, 23, .85);
  --contrast: #2B3044; --side: #08090E; --tint: #1C1D3A; --tint-ink: #A5B4FC;
  --ok-bg: #0F2A21; --ok-ink: #6EE7B7; --err-bg: #2E1416; --err-ink: #FCA5A5; --err-line: #5B2A2E;
  --warn-bg: #2B2312; --warn-ink: #FCD34D; --info-bg: #1B1F3A; --info-ink: #A5B4FC;
  --shadow: 0 18px 44px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3F4F8; --text: #D3D6E0; --muted: #9298AA; --line: #262A38; --field-line: #363B4D;
    --soft: #0B0D13; --bg: #0E1017; --surface: #161924; --surface-2: #1A1E2A; --glass: rgba(14, 16, 23, .85);
    --contrast: #2B3044; --side: #08090E; --tint: #1C1D3A; --tint-ink: #A5B4FC;
    --ok-bg: #0F2A21; --ok-ink: #6EE7B7; --err-bg: #2E1416; --err-ink: #FCA5A5; --err-line: #5B2A2E;
    --warn-bg: #2B2312; --warn-ink: #FCD34D; --info-bg: #1B1F3A; --info-ink: #A5B4FC;
    --shadow: 0 18px 44px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
.theme-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 16px; display: inline-grid; place-items: center; }
html[lang="ar"] { --font: "Cairo", "Plus Jakarta Sans", Tahoma, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 15.5px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.hide { display: none !important; }
[hidden] { display: none !important; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(94, 92, 230, .8); }
.btn-dark { background: var(--contrast); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--surface); color: var(--err); border-color: var(--err-line); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
label { display: block; font-weight: 700; color: var(--ink); font-size: 14px; margin: 0 0 6px; }
.input, input:not([type]), input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--field-line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--c1); box-shadow: 0 0 0 4px rgba(94, 92, 230, .15); }
input[type=color] { width: 56px; height: 44px; padding: 4px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--surface); }
input[type=file] { font: inherit; font-size: 14px; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.err { color: var(--err); font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: flex; align-items: center; padding: 0 12px; background: var(--soft); border: 1px solid var(--field-line); border-inline-end: 0; border-radius: 12px 0 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
html[dir="rtl"] .prefix span { border-radius: 0 12px 12px 0; }
.prefix input { border-radius: 0 12px 12px 0; }
html[dir="rtl"] .prefix input { border-radius: 12px 0 0 12px; direction: ltr; text-align: left; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); cursor: pointer; margin: 0; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--field-line); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { inset-inline-start: 21px; }
.radio { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); cursor: pointer; margin: 0; }
.radio input { width: 20px; height: 20px; accent-color: var(--c1); margin: 0; flex: none; }
.grid2 { display: grid; gap: 16px; }
.grid3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }

/* alerts */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; font-size: 14.5px; }
.alert-ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert-err { background: var(--err-bg); color: var(--err-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert-info { background: var(--info-bg); color: var(--info-ink); }
.alert ul { margin: 0; padding-inline-start: 18px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(18, 20, 31, .04); }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge-err { background: var(--err-bg); color: var(--err-ink); }
.badge-new { background: var(--tint); color: var(--tint-ink); }
.badge-brand { background: var(--grad); color: #fff; }

/* ------------------------------------------------------------------ marketing site */
.top { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo img { height: 34px; width: auto; }
.top nav { display: none; gap: 22px; margin-inline-start: 16px; }
.top nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top .right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
@media (min-width: 900px) { .top nav { display: flex; } }
@media (max-width: 520px) { .top .signin { display: none; } }

.hero { padding: 56px 0 40px; background: radial-gradient(60% 60% at 90% 10%, rgba(200, 101, 215, .14), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(99, 228, 255, .12), transparent 70%); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-weight: 800; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 16px 0 14px; letter-spacing: -.03em; }
html[lang="ar"] .hero h1 { letter-spacing: 0; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 16px; }
.hero-proof { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 600; }
.mock { position: relative; justify-self: center; width: min(360px, 100%); }
.mock-phone { border-radius: 36px; background: #0E0F16; padding: 12px; box-shadow: var(--shadow); }
.mock-screen { border-radius: 26px; overflow: hidden; background: var(--surface); }
.mock-bar { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--grad); color: #fff; font-weight: 800; }
.mock-bar i { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .25); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.mock-item { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.mock-item div { aspect-ratio: 1; background: linear-gradient(135deg, #FFE1D6, #FFD0E3); }
.mock-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.mock-item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-item:nth-child(2) div { background: linear-gradient(135deg, #DCE7FF, #E8DBFF); }
.mock-item:nth-child(3) div { background: linear-gradient(135deg, #D9F6EA, #E3F3FF); }
.mock-item:nth-child(4) div { background: linear-gradient(135deg, #FFF0C9, #FFDCC9); }
.mock-item b { display: block; padding: 8px 10px 0; font-size: 12.5px; color: var(--ink); }
.mock-item span { display: block; padding: 0 10px 10px; font-size: 12px; color: var(--c1); font-weight: 800; }
.mock-item:nth-child(even) span { color: var(--c2); }
.mock-wa { position: absolute; inset-inline-end: -14px; bottom: 60px; background: #25D366; color: #fff; padding: 10px 14px; border-radius: 16px; font-weight: 800; font-size: 13.5px; box-shadow: var(--shadow); }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } .hero { padding: 80px 0 64px; } }

section.block { padding: 64px 0; }
section.soft { background: var(--soft); }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 36px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); }
.feat { display: grid; gap: 16px; }
@media (min-width: 720px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feat { grid-template-columns: repeat(3, 1fr); } }
.feat .card { padding: 24px; }
.feat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); font-size: 22px; margin-bottom: 14px; }
.feat h3 { font-size: 17px; }
.feat p { color: var(--muted); margin: 0; font-size: 14.5px; }
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; inset-inline-start: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan .price s.was { font-size: .5em; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.plan-landing { background: linear-gradient(180deg, var(--surface), var(--tint)); }
.sales-domain { background: var(--grad); }
.sales-domain .btn-primary { background: var(--surface); color: var(--ink); box-shadow: none; }
.plan { display: flex; flex-direction: column; gap: 10px; position: relative; padding: 26px; }
.plan.hot { border: 2px solid var(--c1); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; inset-inline-end: 20px; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 42px; font-weight: 800; color: var(--ink); line-height: 1; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 8px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-inline-end: 8px; }
.plan .btn { margin-top: auto; }
.plan-cta { margin-top: auto; display: grid; gap: 8px; }
.plan-cta .btn { margin-top: 0; }
.sales { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 18px; border-radius: var(--radius); background: var(--contrast); color: #fff; text-align: center; }
.sales b { font-size: 16px; }
.sales .btn-ghost { border: 0; }
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--surface); margin-bottom: 10px; }
details.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--muted); }
.cta-band { border-radius: 28px; padding: 44px 24px; background: var(--grad); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); }
.cta-band .btn-ghost { border: 0; }
.foot { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.foot a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* auth + simple pages */
.narrow { width: min(460px, 100% - 32px); margin: 48px auto; }
.narrow h1 { font-size: 28px; }

/* ------------------------------------------------------------------ dashboard */
.dash { display: grid; min-height: 100vh; background: var(--soft); }
.side { background: var(--side); color: #C9CBD6; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: fixed; inset-block: 0; inset-inline-start: 0; width: 248px; z-index: 40; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
html[dir="rtl"] .side { transform: translateX(100%); }
.side.open { transform: none !important; }
.side .logo { color: #fff; padding: 4px 10px 14px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; color: #C9CBD6; }
.side a.nav:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.nav.on { background: rgba(255, 255, 255, .1); color: #fff; }
.side a.nav .count { margin-inline-start: auto; background: var(--c1); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; font-weight: 800; }
.side .sep { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 4px; }
.side .bottom { margin-top: auto; display: grid; gap: 6px; }
.side form button { width: 100%; text-align: start; background: none; border: 0; color: #C9CBD6; font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.side form button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.scrim { position: fixed; inset: 0; background: rgba(10, 12, 20, .45); z-index: 35; }
.main { min-width: 0; }
.mbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mbar .logo { font-size: 19px; }
.burger { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; cursor: pointer; }
.content { padding: 22px 16px 60px; max-width: 1080px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 24px; margin: 0; }
@media (min-width: 1000px) {
  .dash { grid-template-columns: 248px 1fr; }
  .side { position: sticky; top: 0; height: 100vh; transform: none !important; }
  .mbar { display: none; }
  .content { padding: 30px 34px 70px; }
  .scrim { display: none; }
}
.banner { padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-weight: 600; }
.banner .btn { margin-inline-start: auto; }
.banner-trial { background: var(--tint); color: var(--tint-ink); }
.banner-bad { background: var(--err-bg); color: var(--err-ink); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-size: 26px; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share code { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 14.5px; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: "○"; color: var(--muted); font-weight: 800; }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.checklist li.done::before { content: "✓"; color: var(--ok); }

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: start; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
html[lang="ar"] .table th { text-transform: none; letter-spacing: 0; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.ph { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--tint-ink); font-weight: 800; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.inline { display: inline; margin: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; display: inline-grid; place-items: center; text-decoration: none; color: var(--ink); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--muted); }
.tabs a.on { background: var(--contrast); color: #fff; border-color: var(--contrast); }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input, .search select { flex: 1 1 180px; width: auto; }
.pager { margin-top: 16px; }
.pager nav > div:first-child { display: none; }
.pager svg { width: 18px; }

/* product form */
.form-layout { display: grid; gap: 16px; }
/* two columns only when the content area (screen minus the 248px sidebar) has room */
@media (min-width: 1280px) { .form-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .form-layout aside { position: sticky; top: 24px; } }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tools { position: absolute; inset-inline: 6px; bottom: 6px; display: flex; gap: 4px; justify-content: space-between; }
.photo .tools button, .photo .tools label { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; display: grid; place-items: center; font-size: 13px; margin: 0; }
.photo.removed { opacity: .35; }
.photo .first { position: absolute; top: 6px; inset-inline-start: 6px; }
.photo.new { outline: 2px dashed var(--c1); outline-offset: -2px; }
.drop { border: 2px dashed var(--field-line); border-radius: 14px; padding: 18px; text-align: center; background: var(--soft); }
.drop input { margin-top: 8px; }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--surface-2); }
.opt-head { display: flex; gap: 8px; margin-bottom: 10px; }
.opt-head input { flex: 1; }
.val { display: grid; grid-template-columns: 1fr 110px auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.val .switch { font-size: 12.5px; }
@media (max-width: 560px) { .val { grid-template-columns: 1fr 90px; } .val .switch, .val .icon-btn { grid-row: 2; } }
.sticky-save { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 0; background: linear-gradient(transparent, var(--soft) 30%); }
.frow { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: var(--surface); }
.frow .move { display: grid; gap: 4px; }
.frow .move button { width: 30px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 11px; }
.frow .body { display: grid; gap: 10px; }
.frow .line { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.frow .line input[type=text] { flex: 1 1 200px; width: auto; }
.frow .line select { width: auto; flex: 0 0 auto; }
.frow.off { opacity: .6; }

/* honeypot field: hidden without offsets (an off-screen offset scrolls in right-to-left pages) */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* logo: colour version on light backgrounds, white-text version on dark ones */
.logo img.logo-img { height: 40px; width: auto; }
.logo img.on-dark { display: none; }
.side .logo img.on-light { display: none; }
.side .logo img.on-dark { display: block; }
:root[data-theme="dark"] .logo img.on-light { display: none; }
:root[data-theme="dark"] .logo img.on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo img.on-light { display: none; }
  :root:not([data-theme="light"]) .logo img.on-dark { display: block; }
}
.side .logo img.logo-img { height: 34px; }
.mbar .logo img.logo-img { height: 30px; }
