/* Intrepitek Knowledge Base, featuring Teks */
:root {
  --ink: #0b2a4a;
  --ink-soft: #3f5b78;
  --muted: #6b819a;
  --blue: #0b4e96;
  --blue-deep: #083b73;
  --cyan: #12a4d3;
  --sky: #bfe5f4;
  --mist: #f3f8fc;
  --line: #d7e4f0;
  --white: #ffffff;
  --green: #1f8a4c;
  --green-bg: #e7f6ed;
  --amber: #a15c00;
  --amber-bg: #fff4e0;
  --red: #b42318;
  --red-bg: #fdecea;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(8, 59, 115, 0.12);
  --font-display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --page: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.005em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--font-display); font-size: 17px; color: var(--ink-soft); padding-left: 12px; border-left: 2px solid var(--line); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a.active { background: var(--mist); color: var(--blue); }
.spacer { flex: 1; }
.account { display: flex; align-items: center; gap: 12px; }
.account .who { text-align: right; line-height: 1.25; }
.account .who strong { display: block; font-size: 15px; }
.account .who small { color: var(--muted); font-size: 13px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sky); color: var(--blue-deep); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 6px 8px; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.link-btn:hover { background: var(--mist); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-ghost { background: var(--mist); color: var(--blue); }
.btn-ghost:hover { background: #e3eef8; }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-danger:hover { background: #f9d7d3; }
.btn-sm { padding: 7px 13px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- hero ---------- */
.hero { background: #ddeffa; color: var(--ink); position: relative; overflow: hidden; }
.hero::before { /* big soft sun behind Teks */
  content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: #c6e6f6; left: calc(50% - 600px); top: 30px;
}
.hero::after { /* rolling hill at the bottom of the hero */
  content: ''; position: absolute; left: -5%; right: -5%; bottom: -70px; height: 120px;
  background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .wrap { display: grid; grid-template-columns: 290px 1fr; align-items: end; gap: 28px; padding-top: 44px; padding-bottom: 0; position: relative; z-index: 1; }
.teks-stand { align-self: end; position: relative; margin-bottom: -6px; }
.teks-stand img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(8, 59, 115, .18)); }
.hero-copy { padding-bottom: 86px; min-width: 0; }
.bubble { display: inline-block; background: var(--white); color: var(--ink); border-radius: 20px; padding: 12px 18px; font-family: var(--font-display); font-size: 19px; font-weight: 500; position: relative; margin-bottom: 18px; box-shadow: 0 6px 18px rgba(8, 59, 115, .12); }
.bubble::before { content: ''; position: absolute; left: -10px; bottom: 14px; border: 10px solid transparent; border-right-color: var(--white); border-left: 0; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 22px; max-width: 16ch; color: var(--blue-deep); }

.searchbox { position: relative; max-width: 680px; }
.searchbox form { display: flex; background: var(--white); border-radius: 18px; box-shadow: 0 0 0 2px var(--blue), 0 14px 34px rgba(8, 59, 115, .18); padding: 6px; }
.searchbox input { flex: 1; border: 0; outline: 0; padding: 14px 16px; font-size: 19px; background: transparent; min-width: 0; color: var(--ink); }
.searchbox input::placeholder { color: #7f95ab; }
.searchbox button[type=submit] { border: 0; background: var(--blue); color: var(--white); border-radius: 13px; padding: 0 22px; font-weight: 700; font-size: 17px; cursor: pointer; }
.searchbox button[type=submit]:hover { background: var(--blue-deep); }
.searchbox form:focus-within { box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px rgba(18, 164, 211, .35), 0 14px 34px rgba(8, 59, 115, .18); }
.suggest { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; color: var(--ink-soft); }
.suggest button { background: var(--white); color: var(--blue); border: 1px solid #b6d9ee; border-radius: 999px; padding: 5px 13px; cursor: pointer; font-size: 15px; font-weight: 600; }
.suggest button:hover { border-color: var(--blue); }

/* live results dropdown */
.live { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--line); z-index: 30; overflow: hidden; }
.live a { display: block; padding: 12px 18px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.live a:first-child { border-top: 0; }
.live a:hover, .live a.focused { background: var(--mist); }
.live a strong { display: block; font-size: 16px; }
.live a span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.live .live-all { font-weight: 700; color: var(--blue); font-size: 15px; }

/* compact search (inner pages) */
.subhero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 18px 0; }
.subhero .searchbox form { box-shadow: 0 0 0 1px var(--line); }
.subhero .searchbox form:focus-within { box-shadow: 0 0 0 2px var(--blue), 0 0 0 5px rgba(18, 164, 211, .3); }
.subhero .searchbox input { font-size: 17px; padding: 10px 14px; }

/* ---------- sections ---------- */
main { min-height: 60vh; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 26px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.home-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; }

.fix-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.fix-list li { border-bottom: 1px solid var(--line); }
.fix-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 15px 4px; text-decoration: none; color: var(--ink); }
.fix-list a:hover .t { color: var(--blue); text-decoration: underline; }
.fix-list .t { font-weight: 700; font-size: 17px; }
.fix-list .s { grid-column: 1; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.fix-list .c { grid-row: 1; grid-column: 2; color: var(--muted); font-size: 13px; white-space: nowrap; padding-top: 3px; }

.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topic { display: flex; align-items: center; gap: 10px; padding: 11px 16px 11px 12px; border-radius: 14px; background: var(--mist); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; border: 1px solid transparent; }
.topic:hover { border-color: var(--sky); background: #eaf4fb; color: var(--blue-deep); }
.topic .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--white); display: grid; place-items: center; color: var(--blue); }
.topic .ico svg { width: 18px; height: 18px; }
.topic small { color: var(--muted); font-weight: 500; }

.stuck { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.stuck .foot { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.stuck .foot svg { width: 30px; height: 30px; color: var(--sky); }
.stuck h3 { font-size: 21px; margin-bottom: 4px; }
.stuck p { margin: 0; color: #c9d8e8; font-size: 15px; }
.stuck a { color: var(--white); font-weight: 700; }

/* ---------- results ---------- */
.results-head { padding: 28px 0 6px; }
.results-head h1 { font-size: 30px; }
.results-head p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result a.t { font-size: 20px; font-weight: 700; text-decoration: none; }
.result a.t:hover { text-decoration: underline; }
.result p { margin: 4px 0 0; color: var(--ink-soft); font-size: 16px; }
.result .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.best { display: inline-block; background: var(--green-bg); color: var(--green); font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }

.empty { text-align: center; padding: 50px 20px 30px; }
.empty img { width: 150px; opacity: .95; }
.empty h2 { font-size: 26px; margin: 14px 0 8px; }
.empty p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 6px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.b-internal { background: var(--red-bg); color: var(--red); }
.b-all { background: #e6f4fb; color: #0a6f94; }
.b-clients { background: #efeafd; color: #5b3cc4; }
.b-draft { background: var(--amber-bg); color: var(--amber); }
.b-cat { background: var(--mist); color: var(--ink-soft); }

/* ---------- article ---------- */
.crumbs { padding: 22px 0 0; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.article-head { padding: 14px 0 6px; }
.article-head h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.article-head .lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 12px; max-width: 62ch; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.tech-bar { margin: 16px 0 0; padding: 10px 14px; background: var(--mist); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-soft); }

.prose { padding: 10px 0 10px; max-width: 70ch; overflow-wrap: anywhere; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: 26px; margin: 32px 0 12px; }
.prose h3 { font-size: 21px; margin: 26px 0 10px; }
.prose h4, .prose h5 { font-size: 18px; margin: 20px 0 8px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose code { background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose pre { background: var(--ink); color: #e6f1fb; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose blockquote { margin: 0 0 18px; padding: 4px 0 4px 16px; border-left: 4px solid var(--line); color: var(--ink-soft); }
.prose .md-img { display: block; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 12px 0; cursor: zoom-in; box-shadow: 0 4px 14px rgba(8,59,115,.08); }
.prose strong { color: var(--ink); }

.steps { list-style: none; padding: 0; margin: 8px 0 22px; counter-reset: none; }
.steps > li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.steps > li:last-child { border-bottom: 0; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 19px; display: grid; place-items: center; }
.step-body { padding-top: 7px; min-width: 0; }
.step-body > p:last-child { margin-bottom: 0; }
.step-body > p:first-child { font-weight: 700; margin-bottom: 6px; } /* step headline when the step has more detail under it */

.callout { border-radius: 14px; padding: 14px 18px 14px 62px; margin: 0 0 20px; position: relative; }
.callout::before { content: ''; position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background-size: cover; }
.callout p { margin: 0 0 6px; }
.callout p:last-child { margin: 0; }
.callout-label { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.callout-tip { background: #e8f5fc; }
.callout-tip::before { background: var(--white) url('/assets/teks-head.png') center/cover no-repeat; box-shadow: 0 0 0 2px var(--sky); }
.callout-tip .callout-label { color: var(--blue); }
.callout-warning { background: var(--amber-bg); }
.callout-warning::before { background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center/22px no-repeat; }
.callout-warning .callout-label { color: var(--amber); }
.callout-note { background: var(--mist); }
.callout-note::before { background: var(--ink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E") center/22px no-repeat; }
.callout-note .callout-label { color: var(--ink-soft); }

.feedback { margin: 26px 0 10px; padding: 20px 22px; border: 2px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.feedback h3 { font-size: 21px; flex: 1 1 220px; }
.feedback .row { display: flex; gap: 10px; }
.feedback textarea { width: 100%; min-height: 80px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.feedback.done { border-color: var(--green-bg); background: var(--green-bg); }
.feedback.no { border-color: var(--sky); background: #f4fafe; display: block; }
.feedback.no h3 { margin-bottom: 6px; }

.related { margin: 26px 0 40px; }
.related h2 { font-size: 22px; margin-bottom: 8px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 22, 40, .86); display: grid; place-items: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 10px; background: var(--white); }

/* ---------- landing (signed out / no access) ---------- */
.landing { min-height: calc(100vh - 69px); background: #ddeffa; color: var(--ink); display: grid; place-items: center; padding: 30px 20px 60px; position: relative; overflow: hidden; }
.landing::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -90px; height: 150px; background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.landing-inner { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: center; max-width: 820px; position: relative; z-index: 1; }
.landing h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; color: var(--blue-deep); }
.landing p { color: var(--ink-soft); font-size: 18px; margin: 0 0 22px; max-width: 46ch; }
.landing .btn-primary { font-size: 17px; padding: 14px 24px; }
.landing .ms-logo { background: var(--white); border-radius: 3px; padding: 2px; width: 24px; height: 24px; }
.ms-logo { width: 20px; height: 20px; }
.alert { background: var(--red-bg); color: var(--red); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; font-size: 15px; }

/* ---------- admin ---------- */
.admin-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 28px 0 18px; }
.admin-head h1 { font-size: 30px; }
.admin-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.input, .select, textarea.input { border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; background: var(--white); font-size: 16px; width: 100%; }
.input:focus, .select:focus, textarea.input:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18,164,211,.22); }
.toolbar .input { max-width: 320px; }
.toolbar .select { width: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 700; color: var(--ink-soft); background: var(--mist); padding: 10px 14px; font-size: 14px; white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #fafcfe; }
td .sub { display: block; color: var(--muted); font-size: 13px; }
td.mono { white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--ink-soft); }
td a.t { font-weight: 700; text-decoration: none; }
td a.t:hover { text-decoration: underline; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c3d1df; border-radius: 999px; transition: .15s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; background: var(--white); }
.panel h2 { font-size: 20px; margin-bottom: 4px; }
.panel > p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.inline-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-bottom: 22px; padding: 16px 20px; background: var(--mist); border-radius: var(--radius); }
.stats div { font-size: 14px; color: var(--ink-soft); }
.stats strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--ink); font-weight: 600; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mini-list li:first-child { border-top: 0; }
.mini-list .n { color: var(--muted); font-size: 13px; white-space: nowrap; }
.quote { background: var(--mist); border-radius: 10px; padding: 8px 12px; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-bottom: 60px; }
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 13px; margin: -2px 0 8px; }
.vis-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vis-options label { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 14px; line-height: 1.35; }
.vis-options label strong { display: block; font-size: 15px; }
.vis-options label span { color: var(--muted); }
.vis-options input { position: absolute; opacity: 0; }
.vis-options label:has(input:checked) { border-color: var(--blue); background: #f2f8fe; }
.vis-options label:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.client-pick { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; max-height: 220px; overflow: auto; padding: 6px; }
.client-pick label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.client-pick label:hover { background: var(--mist); }
.client-pick small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; }
.chips:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(18,164,211,.22); }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--mist); border-radius: 999px; padding: 3px 6px 3px 12px; font-size: 14px; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; }
.chips input { border: 0; outline: 0; flex: 1; min-width: 160px; padding: 4px 6px; font-size: 15px; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 11px 11px 0 0; background: var(--mist); }
.md-toolbar button { border: 0; background: var(--white); border-radius: 8px; padding: 5px 10px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-soft); box-shadow: 0 0 0 1px var(--line); }
.md-toolbar button:hover { color: var(--blue); box-shadow: 0 0 0 1px var(--sky); }
textarea.body { min-height: 440px; border-radius: 0 0 11px 11px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; line-height: 1.6; resize: vertical; }
.preview-pane { position: sticky; top: 86px; align-self: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 20px; max-height: calc(100vh - 110px); overflow: auto; }
.preview-pane .pv-label { color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 0 0; }
.preview-pane h1 { font-size: 28px; margin: 10px 0 8px; }
.save-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); z-index: 5; }
.status-pick { display: flex; gap: 4px; background: var(--mist); border-radius: 12px; padding: 4px; }
.status-pick label { padding: 6px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.status-pick input { position: absolute; opacity: 0; }
.status-pick label:has(input:checked) { background: var(--white); color: var(--blue); box-shadow: 0 1px 3px rgba(8,59,115,.15); }

/* folge import */
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.narrow-wide { max-width: 980px; }
.muted { color: var(--muted); font-size: 14px; }
.drop { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 28px; border: 2px dashed #b6d9ee; border-radius: var(--radius-lg); background: #f4fafe; margin-bottom: 22px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--blue); background: #e8f4fc; }
.drop.busy { opacity: .6; pointer-events: none; }
.drop h2 { font-size: 22px; margin-bottom: 4px; }
.drop p { margin: 0 0 14px; color: var(--ink-soft); }
.drop .row { display: flex; flex-wrap: wrap; gap: 10px; }
.drop-teks { width: 84px; height: 84px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--sky); }
.vis-options.two { grid-template-columns: 1fr 1fr; }
.im-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; flex-wrap: wrap; }
.im-head h2 { font-size: 24px; }
.im-head p { margin: 0; color: var(--muted); font-size: 15px; }
.im-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--white); }
.im-step.off { background: var(--mist); opacity: .7; }
.im-step-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.im-num { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 600; display: grid; place-items: center; }
.im-num.muted-num { background: #c3d1df; }
.im-include { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 15px; cursor: pointer; }
.im-step-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
.im-fields { display: grid; gap: 10px; align-content: start; }
.im-fields textarea { resize: vertical; }
.im-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.im-shots { display: grid; gap: 14px; align-content: start; min-width: 0; }
.im-shot { display: grid; gap: 8px; }
.im-canvas { position: relative; display: inline-block; justify-self: start; max-width: 100%; line-height: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#f2f6fa 0 25%, #ffffff 0 50%) 0 0/16px 16px; }
.im-canvas img { display: block; height: auto; max-height: 420px; object-fit: contain; user-select: none; }
.im-canvas.blurring { cursor: crosshair; outline: 3px solid var(--cyan); outline-offset: 2px; touch-action: none; }
.im-box { position: absolute; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); background: rgba(11, 78, 150, .12); border: 2px dashed var(--blue); }
.im-box.drawing { pointer-events: none; }
.im-box button { position: absolute; top: -11px; right: -11px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); cursor: pointer; font-size: 14px; line-height: 1; display: grid; place-items: center; }
.im-noshot { color: var(--muted); font-size: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
@media (max-width: 760px) {
  .im-step-body, .vis-options.two, .drop { grid-template-columns: 1fr; }
  .drop-teks { display: none; }
}

/* toast + loading */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 200; box-shadow: var(--shadow); font-size: 15px; }
.toast.err { background: var(--red); }
.loading { padding: 50px 0; text-align: center; color: var(--muted); }
.dig { display: inline-flex; gap: 6px; margin-bottom: 8px; }
.dig i { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); animation: dig 1s infinite ease-in-out; }
.dig i:nth-child(2) { animation-delay: .15s; }
.dig i:nth-child(3) { animation-delay: .3s; }
@keyframes dig { 0%, 80%, 100% { transform: translateY(0); background: var(--sky); } 40% { transform: translateY(-7px); background: var(--blue); } }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 30px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
footer.site img { height: 22px; opacity: .85; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .home-grid, .insight-grid { grid-template-columns: 1fr; gap: 26px; }
  .editor { grid-template-columns: 1fr; }
  .preview-pane { position: static; max-height: none; }
  .nav { display: none; }
  .nav.show-mobile { display: flex; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero::before { display: none; }
  .brand span, .account .who { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 22px; }
  .teks-stand { display: none; }
  .hero-copy { padding-bottom: 70px; }
  .hero h1 { font-size: 30px; }
  .bubble { font-size: 16px; }
  .bubble::before { display: none; }
  .searchbox input { font-size: 17px; padding: 12px; }
  .searchbox button[type=submit] { padding: 0 16px; }
  .landing-inner { grid-template-columns: 1fr; text-align: center; }
  .landing-inner img { width: 150px; margin: 0 auto; }
  .landing p { margin-left: auto; margin-right: auto; }
  .vis-options { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .stuck { grid-template-columns: 1fr; }
  .mobile-nav { display: flex !important; }
  .searchbox button[type=submit] { font-size: 15px; padding: 0 14px; }
  .fix-list a { grid-template-columns: 1fr; }
  .fix-list .c { grid-row: auto; grid-column: 1; padding-top: 0; }
  .admin-head h1 { font-size: 26px; }
}
.mobile-nav { display: none; gap: 4px; padding: 8px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mobile-nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mobile-nav a.active { background: var(--mist); color: var(--blue); }
@media (max-width: 900px) and (min-width: 721px) { .mobile-nav { display: flex; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
