/* Rifqah Builder — styles. Logical properties throughout, so Arabic (right-to-left) mirrors correctly. */
@font-face { font-family: 'Rifqah Sans'; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rifqah Sans'; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rifqah Sans'; font-weight: 400; font-display: swap; src: url(fonts/plex-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Rifqah Sans'; font-weight: 600; font-display: swap; src: url(fonts/plex-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Rifqah Display'; font-weight: 600; font-display: swap; src: url(fonts/fraunces-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Rifqah Display'; font-weight: 600; font-display: swap; src: url(fonts/plex-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --bg: #F5F2EC; --surface: #FFFDF9; --surface-2: #EFEAE1; --line: #E0D9CC; --text: #1D2321; --text-2: #4B5552; --muted: #6A7370;
  --brand: #0E5E5A; --brand-strong: #0A4946; --brand-soft: #E1EEEA; --on-brand: #fff;
  --ok: #1F6B3A; --ok-soft: #E3F1E6; --warn: #8A5300; --warn-soft: #FBEFD6; --danger: #A1262B; --danger-soft: #F8E2E2; --launch: #6A3FA0; --launch-soft: #EFE7FA;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 4px 16px rgba(20, 30, 28, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #11171A; --surface: #182024; --surface-2: #1F292E; --line: #2C383E; --text: #E8EEEC; --text-2: #BAC6C2; --muted: #93A19C;
    --brand: #4FB8AD; --brand-strong: #6CCFC4; --brand-soft: #1B3A38; --on-brand: #0B1513; --ok: #7BD094; --ok-soft: #173223; --warn: #F0C065; --warn-soft: #3A2E12;
    --danger: #F08F92; --danger-soft: #3B1C1E; --launch: #C9A6F5; --launch-soft: #2C2140; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #11171A; --surface: #182024; --surface-2: #1F292E; --line: #2C383E; --text: #E8EEEC; --text-2: #BAC6C2; --muted: #93A19C;
    --brand: #4FB8AD; --brand-strong: #6CCFC4; --brand-soft: #1B3A38; --on-brand: #0B1513; --ok: #7BD094; --ok-soft: #173223; --warn: #F0C065; --warn-soft: #3A2E12;
    --danger: #F08F92; --danger-soft: #3B1C1E; --launch: #C9A6F5; --launch-soft: #2C2140; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 'Rifqah Sans', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }
h1, h2, h3, h4 { font-family: 'Rifqah Display', 'Rifqah Sans', system-ui, sans-serif; font-weight: 600; line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.h3 { font-size: 1.12rem; margin-top: 1.4em; }
.h4 { font-size: 1rem; }
a { color: var(--brand); }
code { background: var(--surface-2); padding: 0 .3em; border-radius: 5px; font-size: .9em; word-break: break-all; }
.small { font-size: .9rem; } .xsmall { font-size: .8rem; } .muted { color: var(--muted); } .grow { flex: 1 1 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--brand); color: var(--on-brand); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.boot, .boot-msg { display: grid; place-items: center; gap: 16px; min-height: 60vh; color: var(--muted); }
.boot-error { max-width: 36rem; margin: 4rem auto; padding: 0 16px; }

/* Layout */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.site-header .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 16px; margin-inline-start: auto; flex-wrap: wrap; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--brand); }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 48px; outline: none; }
.site-footer { padding: 18px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap, .wrap { flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.two-col .card + .card, .review-grid .card + .card { margin-top: 0; }
.narrow { max-width: 34rem; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: .95rem; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; min-height: 40px; }
.btn:hover { border-color: var(--brand); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.big { padding: 12px 20px; font-size: 1rem; min-height: 48px; }
.btn.small { padding: 6px 12px; font-size: .85rem; min-height: 34px; }
.icon-btn { border: 0; background: transparent; color: var(--text-2); font-size: 1.2rem; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:disabled { opacity: .3; }
.input { width: 100%; font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 42px; }
textarea.input { resize: vertical; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.help { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.field-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.check.disabled { cursor: default; opacity: .8; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); flex-wrap: wrap; }
.seg button { font: inherit; font-size: .9rem; border: 0; background: transparent; color: var(--text-2); padding: 8px 14px; cursor: pointer; min-height: 40px; }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button.on { background: var(--brand); color: var(--on-brand); }
.badge { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.free { background: var(--ok-soft); color: var(--ok); } .badge.pro { background: var(--warn-soft); color: var(--warn); } .badge.launch { background: var(--launch-soft); color: var(--launch); }
.callout { border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: var(--brand-soft); border: 1px solid transparent; font-size: .93rem; }
.callout.warn { background: var(--warn-soft); } .callout.danger { background: var(--danger-soft); } .callout.ok { background: var(--ok-soft); } .callout.launch { background: var(--launch-soft); }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.toast { position: fixed; inset-inline-end: 16px; bottom: 16px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 60; max-width: min(90vw, 28rem); }
.toast.error { background: var(--danger); color: #fff; }
.modal-scrim { position: fixed; inset: 0; background: rgba(10, 14, 13, .45); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal.wide { width: min(1100px, 100%); }
.modal header { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal header h2 { font-size: 1.1rem; margin: 0; flex: 1; }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.try-frame { width: 100%; height: min(70vh, 720px); border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 4px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; } .kv dd { margin: 0; }

/* Landing */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 0 8px; }
.hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 38rem; }
.eyebrow { color: var(--brand); font-weight: 600; margin: 0 0 6px; }
.resume { margin-top: 14px; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.flow-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; counter-reset: f; }
.flow-list li { counter-increment: f; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .9rem; }
.flow-list li::before { content: counter(f); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .75rem; margin-inline-end: 8px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.offer-card .price, .price-card .price { font-size: 1.3rem; font-weight: 600; margin: 4px 0; }
.privacy { margin-top: 24px; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* Wizard */
.stepbar ol { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; overflow-x: auto; }
.stepbar li { flex: none; }
.stepbar a, .stepbar li > span { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .85rem; border: 1px solid transparent; }
.stepbar .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-size: .75rem; }
.stepbar li.done a { color: var(--text-2); } .stepbar li.done .n { background: var(--brand-soft); color: var(--brand); }
.stepbar li.current > span { background: var(--surface); border-color: var(--line); color: var(--text); font-weight: 600; } .stepbar li.current .n { background: var(--brand); color: var(--on-brand); }
@media (max-width: 760px) { .stepbar .l { display: none; } .stepbar li.current .l { display: inline; } }
.step .lead { color: var(--text-2); max-width: 46rem; }
.wizard-nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sample-banner { background: var(--launch-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.choice-grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.choice-card, .role-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 44px; cursor: pointer; position: relative; }
[dir="rtl"] .choice-card, [dir="rtl"] .role-card { padding: 14px 44px 14px 14px; }
.choice-card input, .role-card input { position: absolute; inset-inline-start: 14px; top: 16px; width: 18px; height: 18px; accent-color: var(--brand); }
.choice-card.on, .role-card.on { border-color: var(--brand); background: var(--brand-soft); }
.choice-card .title, .role-card .title { font-weight: 600; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 14px 0; }
.group legend { font-weight: 600; padding: 0 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: .9rem; }
.chip-check input { accent-color: var(--brand); }
.chip-check.on { border-color: var(--brand); background: var(--brand-soft); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.summary-pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }
.module-group { margin-top: 8px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.module-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.module-card.on { border-color: var(--brand); }
.module-card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.module-card .title { font-weight: 600; }
.module-card p { margin: 0; }
.module-card .example { background: var(--surface-2); border-radius: 8px; padding: 6px 8px; }
.module-card .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); align-items: center; }
.module-card .note { color: var(--brand); }
.module-card > .btn { align-self: flex-start; margin-top: auto; }
.module-card details ul { margin: 6px 0 0; padding-inline-start: 1.2em; }
.theme-row { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: .85rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; color: var(--text); min-width: 96px; }
.theme-swatch.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.theme-swatch .sw { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.theme-swatch .sw i { width: 22px; height: 30px; }
.accent-row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.accent-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.accent-dot.on { box-shadow: 0 0 0 3px var(--brand); }
.reorder { list-style: none; padding: 0; margin: 0; max-width: 30rem; }
.reorder li { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 6px; }
.day-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.day { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: .9rem; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.day:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.avatar-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.avatar.empty { display: inline-block; background: var(--surface-2); }
.preview-label { background: var(--warn-soft); border-radius: 10px 10px 0 0; padding: 6px 12px; font-size: .85rem; }
.preview-box { border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: var(--surface-2); overflow: hidden; position: relative; }
.preview-box iframe { border: 0; transform-origin: 0 0; background: #fff; display: block; }
[dir="rtl"] .preview-box iframe { transform-origin: 100% 0; margin-inline-start: 0; }
.preview-box .center { display: flex; gap: 10px; align-items: center; justify-content: center; height: 100%; color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.offer { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; flex-wrap: wrap; }
.offer .seats { width: 90px; }
.download-card { margin-top: 16px; }
.ready-actions { margin: 10px 0 20px; }
.steps-list li { margin: 4px 0; }
.signin form { max-width: 26rem; }
.card > .h3:first-child, .card > h2:first-child { margin-top: 0; }

/* Rifqah Pro: plans, portal, company */
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.portal-layout { display: grid; grid-template-columns: 13rem 1fr; gap: 1.2rem; align-items: start; }
.portal-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 1rem; }
.portal-nav a { padding: .5rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.portal-nav a[aria-current="page"] { background: var(--brand-soft, #e3efed); color: var(--brand); font-weight: 600; }
.portal-body > div > .card + .card, .portal-body .card { margin-bottom: 1rem; }
ul.plain { list-style: none; padding: 0; } ul.plain li { margin: .4rem 0; }
@media (max-width: 760px) { .portal-layout { grid-template-columns: 1fr; } .portal-nav { position: static; flex-direction: row; flex-wrap: wrap; } }

/* Setup homepage: who is it for? */
.chooser { padding: 16px 0 8px; }
.chooser .eyebrow { color: var(--brand); font-weight: 600; margin: 0; }
.chooser .lead { font-size: 1.08rem; color: var(--text-2); max-width: 44rem; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.mode-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.mode-card h2 { font-size: 1.25rem; margin: 6px 0 0; }
.mode-card p { flex: 1; margin: 0; color: var(--text-2); }
.mode-card .btn { align-self: flex-start; }
.chooser-more { margin-top: 6px; }
.join-card { margin-top: 12px; }
/* Mini previews drawn with CSS: no images, nothing from the network. */
.mini { display: grid; grid-template-columns: 44px 1fr; height: 132px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); font-size: .72rem; }
.mini-side { background: var(--surface-2); padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; }
.mini-side i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.mini-side i:first-child { background: var(--brand); height: 16px; width: 16px; border-radius: 5px; }
.mini-side.brand i:first-child { background: #9A4623; }
.mini-main { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; position: relative; min-width: 0; }
.mini-h { font-family: 'Rifqah Display', 'Rifqah Sans', serif; font-size: .85rem; }
.mini-task, .mini-comment { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 3px 6px; white-space: nowrap; overflow: hidden; }
.mini-box { width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 3px; flex: none; } .mini-box.on { background: var(--brand); border-color: var(--brand); }
.mini-tiles { display: flex; gap: 5px; } .mini-tiles span { background: var(--brand-soft); color: var(--brand); border-radius: 6px; padding: 2px 7px; }
.mini-av { width: 16px; height: 16px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-size: .6rem; flex: none; } .mini-av.a { background: #2F5EA8; } .mini-av.b { background: #A8405E; margin-inline-start: auto; }
.mini-comment .mini-av.b { margin-inline-start: 0; }
.mini-bell { position: absolute; top: 6px; inset-inline-end: 8px; font-size: .68rem; }
.mini-tree div { line-height: 1.5; } .mini-tree .in { padding-inline-start: 12px; color: var(--muted); }

/* Team and company plans */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .plan-layout { grid-template-columns: 1fr; } .plan-preview { order: -1; } }
.plan-preview { position: sticky; top: 76px; }
.plan-saved { margin: 0 0 6px; }
.advanced { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 14px 0; background: var(--surface); }
.advanced > summary { cursor: pointer; font-weight: 600; }
.toolkit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 3px var(--brand); }
.table-scroll { overflow-x: auto; }
.matrix, .summary { width: 100%; border-collapse: collapse; font-size: .88rem; }
.matrix th, .matrix td, .summary th, .summary td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: start; vertical-align: top; }
.matrix td { text-align: center; } .matrix thead th { font-size: .78rem; color: var(--muted); }
.summary th { width: 28%; font-weight: 600; }
.launch-steps li { margin: 8px 0; }
.code { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: .85rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.member-row legend { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Hub workspace preview */
.hub-mock { --mock-accent: #0E5E5A; display: grid; grid-template-columns: 130px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); font-size: .75rem; box-shadow: var(--shadow); min-height: 300px; }
.hub-mock.large { grid-template-columns: 200px 1fr; font-size: .9rem; min-height: 420px; }
.hm-side { background: var(--surface-2); padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-brand { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 6px; min-width: 0; } .hm-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-brand img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
.hm-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
.hm-ws, .hm-nav { padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-ws.on { background: var(--mock-accent); color: #fff; } .hm-ws.personal { color: var(--muted); }
.hm-main { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hm-top { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.hm-conn { color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 1px 8px; } .hm-me { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.hm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.hm-row { display: flex; gap: 6px; align-items: center; } .hm-due { margin-inline-start: auto; color: var(--mock-accent); font-weight: 600; }
.hm-av { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: var(--mock-accent); font-size: .65rem; flex: none; }
.hm-tools { display: flex; flex-wrap: wrap; gap: 4px; } .hm-tools span { background: color-mix(in srgb, var(--mock-accent) 12%, var(--surface)); border-radius: 6px; padding: 1px 6px; }
.hm-people { display: flex; gap: 4px; align-items: center; }
/* Toolkit catalogue */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 16px 0; }
.kit-card .upper { text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 10px 0 4px; }
.kit-tools { list-style: none; margin: 0 0 8px; padding: 0; }
.kit-tools li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .9rem; flex-wrap: wrap; }
@media (max-width: 400px) { .kit-grid { grid-template-columns: 1fr; } }
