/* FTAP SKM — PT Sholeh Kreatif Marketing
   Tema: soft glassmorphism biru muda (light), hitam pekat (dark), Pink Manis (pink) dan Sendu (sendu), Plus Jakarta Sans.
   Semua warna lewat token di :root / html.dark / html.pink / html.sendu. */

:root {
  --primary: #087FE5;
  --primary-hover: #066BC2;
  --primary-10: rgba(8, 127, 229, .10);
  --primary-25: rgba(8, 127, 229, .25);
  --secondary: #FFD43B;
  --brand: #D71418;
  --neutral: #7A8C99;
  --bg: #D4EFFB;
  --bg-from: #BFE8FA;
  --bg-to: #E6F6FD;
  --surface: rgba(255, 255, 255, .42);
  --surface-solid: #F7FBFE;
  --subtle: rgba(110, 160, 190, .12);
  --field: rgba(255, 255, 255, .66);
  --glass-edge: rgba(255, 255, 255, .72);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(255, 255, 255, .15);
  --glass-tint: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .05));
  --text: #172B3A;
  --text-2: #4F6577;
  --border: rgba(110, 160, 190, .28);
  --border-strong: rgba(110, 160, 190, .48);
  --success: #15995A;
  --success-bg: rgba(34, 185, 106, .15);
  --warning: #B86200;
  --warning-bg: rgba(245, 158, 11, .17);
  --error: #D92626;
  --error-bg: rgba(239, 68, 68, .13);
  --yellow-bg: rgba(255, 212, 59, .30);
  --yellow-fg: #7A5D00;
  --highlight: rgba(255, 212, 59, .28);
  --toast-bg: #172B3A;
  --toast-fg: #FFFFFF;
  --backdrop: rgba(12, 35, 52, .32);
  --e1: 0 1px 2px rgba(23, 43, 58, .05);
  --e2: 0 12px 40px rgba(23, 43, 58, .16);
  --e3: 0 24px 60px rgba(23, 43, 58, .22);
  --shadow: 0 1px 2px rgba(23, 43, 58, .04), 0 10px 30px rgba(8, 80, 140, .10);
  --r-sm: 8px; --r: 10px; --r-lg: 16px; --r-xl: 20px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar-w: 236px;
  color-scheme: light;
}

html.dark {
  --primary: #2B93F0;
  --primary-hover: #4AA4F3;
  --primary-10: rgba(43, 147, 240, .16);
  --primary-25: rgba(43, 147, 240, .32);
  --secondary: #F7C948;
  --neutral: #8A8A8A;
  --bg: #0A0A0A;
  --bg-from: #050505;
  --bg-to: #121212;
  --surface: rgba(28, 28, 28, .55);
  --surface-solid: #181818;
  --subtle: rgba(255, 255, 255, .06);
  --field: rgba(255, 255, 255, .05);
  --glass-edge: rgba(255, 255, 255, .10);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .07);
  --glass-tint: linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
  --text: #EDEDED;
  --text-2: #A8A8A8;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .18);
  --success: #3CCF83;
  --success-bg: rgba(60, 207, 131, .14);
  --warning: #F7B23B;
  --warning-bg: rgba(247, 178, 59, .14);
  --error: #F26363;
  --error-bg: rgba(242, 99, 99, .14);
  --yellow-bg: rgba(247, 201, 72, .16);
  --yellow-fg: #F7D36B;
  --highlight: rgba(247, 201, 72, .14);
  --toast-bg: #262626;
  --toast-fg: #EDEDED;
  --backdrop: rgba(0, 0, 0, .6);
  --e1: 0 1px 2px rgba(0, 0, 0, .5);
  --e2: 0 12px 40px rgba(0, 0, 0, .7);
  --e3: 0 24px 60px rgba(0, 0, 0, .75);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--text); font: 400 14px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* Bercak warna di belakang kaca: tanpa ini blur tidak terlihat apa-apa. */
  background-image:
    radial-gradient(520px 420px at 8% 12%, rgba(56, 189, 248, .55), transparent 70%),
    radial-gradient(560px 460px at 92% 8%, rgba(129, 140, 248, .32), transparent 70%),
    radial-gradient(620px 520px at 72% 88%, rgba(14, 165, 233, .42), transparent 70%),
    radial-gradient(480px 420px at 22% 92%, rgba(167, 243, 208, .45), transparent 70%),
    radial-gradient(420px 360px at 48% 45%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(160deg, var(--bg-from), var(--bg-to));
  background-attachment: fixed;
  transition: background-color .2s, color .2s;
}
html.dark body {
  background-image:
    radial-gradient(520px 420px at 8% 12%, rgba(255, 255, 255, .05), transparent 70%),
    radial-gradient(620px 520px at 78% 85%, rgba(43, 147, 240, .08), transparent 70%),
    linear-gradient(160deg, var(--bg-from), var(--bg-to));
}
/* ---------- Tema Pink Manis: pink permen, kaca bening, hati & kilau kecil ---------- */
html.pink {
  --primary: #E0218A;
  --primary-hover: #C4127A;
  --primary-10: rgba(224, 33, 138, .10);
  --primary-25: rgba(224, 33, 138, .26);
  --secondary: #FFC2E2;
  --neutral: #A0708B;
  --bg: #FFE3F1;
  --bg-from: #FFD1E8;
  --bg-to: #FFF0F8;
  --surface: rgba(255, 255, 255, .50);
  --surface-solid: #FFF5FA;
  --subtle: rgba(224, 33, 138, .07);
  --field: rgba(255, 255, 255, .72);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 192, 226, .25);
  --glass-tint: linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(255, 214, 236, .12));
  --text: #4A1035;
  --text-2: #7D4566;
  --border: rgba(224, 33, 138, .18);
  --border-strong: rgba(224, 33, 138, .34);
  --success: #12935A;
  --warning: #B05A00;
  --error: #D1203F;
  --yellow-bg: rgba(255, 194, 226, .55);
  --yellow-fg: #8A1458;
  --highlight: rgba(255, 194, 226, .45);
  --toast-bg: #8A1458;
  --toast-fg: #FFFFFF;
  --backdrop: rgba(90, 15, 60, .28);
  --shadow: 0 1px 2px rgba(138, 20, 88, .05), 0 10px 30px rgba(224, 33, 138, .14);
  --e2: 0 12px 40px rgba(138, 20, 88, .18);
  --e3: 0 24px 60px rgba(138, 20, 88, .24);
  color-scheme: light;
}
html.pink body {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23E0218A' fill-opacity='.07'%3E%3Cpath d='M30 38c-3-6-12-5-12 2 0 5 7 9 12 13 5-4 12-8 12-13 0-7-9-8-12-2z'/%3E%3Cpath d='M88 82l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Ccircle cx='96' cy='26' r='2.2'/%3E%3Ccircle cx='22' cy='96' r='1.6'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(520px 420px at 8% 12%, rgba(255, 105, 180, .45), transparent 70%),
    radial-gradient(560px 460px at 92% 8%, rgba(255, 182, 222, .60), transparent 70%),
    radial-gradient(620px 520px at 72% 88%, rgba(244, 114, 182, .38), transparent 70%),
    radial-gradient(480px 420px at 22% 92%, rgba(216, 180, 254, .40), transparent 70%),
    radial-gradient(420px 360px at 48% 45%, rgba(255, 255, 255, .60), transparent 70%),
    linear-gradient(160deg, var(--bg-from), var(--bg-to));
}
html.pink .btn:not(.secondary):not(.ghost):not(.danger) { background: linear-gradient(135deg, #FF5CAD, #E0218A); }
html.pink .btn:not(.secondary):not(.ghost):not(.danger):hover { background: linear-gradient(135deg, #FF4DA3, #C4127A); }
html.pink .btn, html.pink .input, html.pink .chip { border-radius: 9999px; }
html.pink .sb-nav a.active, html.pink .chip.active, html.pink .btn-group button.active { background: linear-gradient(135deg, #FF5CAD, #E0218A); border-color: transparent; }
html.pink .kpi.blue { background: linear-gradient(135deg, #FF5CAD, #E0218A 55%, #B5179E); box-shadow: 0 10px 30px rgba(224, 33, 138, .32); }
html.pink .kpi.blue::after { content: ""; position: absolute; right: 14px; top: 12px; width: 26px; height: 26px; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 21s-7.5-4.6-9.6-9A5.4 5.4 0 0 1 12 6a5.4 5.4 0 0 1 9.6 6c-2.1 4.4-9.6 9-9.6 9z'/%3E%3C/svg%3E") center/contain no-repeat; }
html.pink .sb-brand b { background: linear-gradient(90deg, #E0218A, #FF5CAD); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.pink .sb-brand img { box-shadow: 0 0 0 2px #FFC2E2; }
html.pink .page-head h1 { background: linear-gradient(90deg, #C4127A, #FF5CAD); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.pink .page-head h1::after { content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 8px; vertical-align: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF5CAD' d='M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
html.pink .t th { color: #B5367F; }
html.pink .t tr.clickable:hover td { background: rgba(255, 194, 226, .22); }
html.pink .tabs a.active, html.pink .tabs button.active { color: #E0218A; border-bottom-color: #E0218A; }
html.pink .login-art h1 span { background: linear-gradient(90deg, #E0218A, #FF5CAD); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.pink ::selection { background: rgba(255, 92, 173, .30); }
/* ---------- Tema Sendu: life after break up. Hujan, awan mendung, hati retak, karakter menangis (ilustrasi orisinal) ---------- */
html.sendu {
  --primary: #5B6B86;
  --primary-hover: #4A5872;
  --primary-10: rgba(91, 107, 134, .12);
  --primary-25: rgba(91, 107, 134, .28);
  --secondary: #C9C2D6;
  --neutral: #8A8F9C;
  --bg: #D9DCE3;
  --bg-from: #C7CCD6;
  --bg-to: #E6E7EC;
  --surface: rgba(244, 245, 248, .52);
  --surface-solid: #F1F2F5;
  --subtle: rgba(91, 107, 134, .08);
  --field: rgba(255, 255, 255, .55);
  --glass-edge: rgba(255, 255, 255, .55);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(120, 130, 150, .12);
  --glass-tint: linear-gradient(160deg, rgba(255, 255, 255, .30), rgba(180, 188, 205, .10));
  --text: #2E3440;
  --text-2: #5C6372;
  --border: rgba(91, 107, 134, .20);
  --border-strong: rgba(91, 107, 134, .36);
  --success: #3F8063;
  --success-bg: rgba(63, 128, 99, .13);
  --warning: #9A6A2C;
  --warning-bg: rgba(154, 106, 44, .13);
  --error: #A2475A;
  --error-bg: rgba(162, 71, 90, .12);
  --yellow-bg: rgba(201, 194, 214, .45);
  --yellow-fg: #4F4766;
  --highlight: rgba(201, 194, 214, .40);
  --toast-bg: #3B4252;
  --toast-fg: #ECEFF4;
  --backdrop: rgba(40, 46, 58, .38);
  --shadow: 0 1px 2px rgba(46, 52, 64, .05), 0 10px 30px rgba(60, 70, 90, .12);
  --s-hati: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 44'%3E %3Cpath fill='%23B7697A' d='M22 6C18 0 4 0 3 12c-1 8 9 16 18 24l-3-9 5-5-4-6 3-10z'/%3E %3Cpath fill='%23B7697A' d='M26 6c4-6 18-6 19 6 1 8-9 16-18 24l2-8-5-5 4-7-2-10z'/%3E %3C/svg%3E");
  --s-nangis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E %3Ccircle cx='32' cy='30' r='24' fill='%23EEF0F4' stroke='%235B6B86' stroke-width='2.5'/%3E %3Cpath d='M16 20l10 4M48 20l-10 4' stroke='%235B6B86' stroke-width='2.5' stroke-linecap='round'/%3E %3Cpath d='M17 30q5 4 10 0M37 30q5 4 10 0' stroke='%235B6B86' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E %3Cpath d='M24 44q8-7 16 0' stroke='%235B6B86' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E %3Cpath fill='%237FA7DA' d='M19 33c-3 7-5 13-3 20 4-2 6-7 5-12z'/%3E %3Cpath fill='%237FA7DA' d='M45 33c3 7 5 13 3 20-4-2-6-7-5-12z'/%3E %3Cpath fill='%237FA7DA' d='M14 56a3 3 0 0 0 6 0c0-2-3-6-3-6s-3 4-3 6zM44 58a3 3 0 0 0 6 0c0-2-3-6-3-6s-3 4-3 6z'/%3E %3C/svg%3E");
  --s-awan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E %3Cg fill='%239AA4B5'%3E%3Ccircle cx='26' cy='24' r='13'/%3E%3Ccircle cx='44' cy='18' r='16'/%3E%3Ccircle cx='60' cy='26' r='11'/%3E%3Crect x='14' y='24' width='56' height='13' rx='6.5'/%3E%3C/g%3E %3Cg stroke='%237FA7DA' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M24 44l-3 8M36 42l-3 10M48 44l-3 8M60 42l-3 9'/%3E%3C/g%3E %3C/svg%3E");
  --s-orang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 150'%3E %3Cg fill='%239AA4B5'%3E%3Ccircle cx='70' cy='26' r='15'/%3E%3Ccircle cx='92' cy='19' r='19'/%3E%3Ccircle cx='114' cy='28' r='13'/%3E%3Crect x='56' y='26' width='70' height='15' rx='7.5'/%3E%3C/g%3E %3Cg stroke='%237FA7DA' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M66 50l-3 9M80 54l-3 9M94 50l-3 9M108 54l-3 9M120 48l-3 8M72 68l-2 6M100 70l-2 6'/%3E%3C/g%3E %3Cellipse cx='90' cy='142' rx='52' ry='5' fill='%237FA7DA' opacity='.35'/%3E %3Cpath d='M72 140q0-36 18-36t18 36z' fill='%236B7A93'/%3E %3Cellipse cx='90' cy='122' rx='22' ry='12' fill='%237D8BA3'/%3E %3Cpath d='M68 120q22 12 44 0' stroke='%235B6B86' stroke-width='5' fill='none' stroke-linecap='round'/%3E %3Ccircle cx='90' cy='96' r='14' fill='%23EEF0F4' stroke='%235B6B86' stroke-width='2.5'/%3E %3Cpath d='M82 95q3 2.5 6 0M92 95q3 2.5 6 0' stroke='%235B6B86' stroke-width='2' fill='none' stroke-linecap='round'/%3E %3Cpath d='M85 104q5-3 10 0' stroke='%235B6B86' stroke-width='2' fill='none' stroke-linecap='round'/%3E %3Cpath fill='%237FA7DA' d='M82 98c-2 4-3 8-1 11 2-1 3-4 2-7zM98 98c2 4 3 8 1 11-2-1-3-4-2-7z'/%3E %3Cpath fill='%237FA7DA' d='M77 116a2.5 2.5 0 0 0 5 0c0-2-2.5-5-2.5-5s-2.5 3-2.5 5zM100 118a2.5 2.5 0 0 0 5 0c0-2-2.5-5-2.5-5s-2.5 3-2.5 5z'/%3E %3Cg transform='translate(130 118) scale(.5)'%3E%3Cpath fill='%23B7697A' d='M22 6C18 0 4 0 3 12c-1 8 9 16 18 24l-3-9 5-5-4-6 3-10z'/%3E%3Cpath fill='%23B7697A' d='M26 6c4-6 18-6 19 6 1 8-9 16-18 24l2-8-5-5 4-7-2-10z'/%3E%3C/g%3E %3Cg transform='translate(28 124) scale(.55)' fill='%23E6E8EE' stroke='%235B6B86' stroke-width='2'%3E%3Cpath d='M4 20h28l-3 14H7z'/%3E%3Cpath d='M12 20c0-8 4-12 6-16 2 4 6 8 6 16' fill='%23FFFFFF'/%3E%3C/g%3E %3C/svg%3E");
  --s-pola: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E %3Cg stroke='%235B6B86' stroke-opacity='.16' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M20 8l-3 12M70 40l-3 14M120 10l-3 11M170 52l-3 13M40 96l-3 12M96 120l-3 13M150 100l-3 11M200 140l-3 12M24 170l-3 13M80 200l-3 11M136 176l-3 12M190 206l-3 10'/%3E%3C/g%3E %3Cg opacity='.22' transform='translate(150 20) scale(.5)'%3E%3Cpath fill='%23B7697A' d='M22 6C18 0 4 0 3 12c-1 8 9 16 18 24l-3-9 5-5-4-6 3-10z'/%3E%3Cpath fill='%23B7697A' d='M26 6c4-6 18-6 19 6 1 8-9 16-18 24l2-8-5-5 4-7-2-10z'/%3E%3C/g%3E %3Cg opacity='.18' transform='translate(40 130) scale(.42)'%3E%3Cpath fill='%23B7697A' d='M22 6C18 0 4 0 3 12c-1 8 9 16 18 24l-3-9 5-5-4-6 3-10z'/%3E%3Cpath fill='%23B7697A' d='M26 6c4-6 18-6 19 6 1 8-9 16-18 24l2-8-5-5 4-7-2-10z'/%3E%3C/g%3E %3Cg opacity='.20'%3E%3Cg transform='translate(90 60) scale(.32)'%3E %3Ccircle cx='32' cy='30' r='24' fill='%23EEF0F4' stroke='%235B6B86' stroke-width='2.5'/%3E %3Cpath d='M16 20l10 4M48 20l-10 4' stroke='%235B6B86' stroke-width='2.5' stroke-linecap='round'/%3E %3Cpath d='M17 30q5 4 10 0M37 30q5 4 10 0' stroke='%235B6B86' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E %3Cpath d='M24 44q8-7 16 0' stroke='%235B6B86' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E %3Cpath fill='%237FA7DA' d='M19 33c-3 7-5 13-3 20 4-2 6-7 5-12z'/%3E %3Cpath fill='%237FA7DA' d='M45 33c3 7 5 13 3 20-4-2-6-7-5-12z'/%3E %3Cpath fill='%237FA7DA' d='M14 56a3 3 0 0 0 6 0c0-2-3-6-3-6s-3 4-3 6zM44 58a3 3 0 0 0 6 0c0-2-3-6-3-6s-3 4-3 6z'/%3E %3C/g%3E%3C/g%3E %3Cg opacity='.16'%3E%3Cg transform='translate(160 150) scale(.32)'%3E %3Ccircle cx='32' cy='30' r='24' fill='%23EEF0F4' stroke='%235B6B86' stroke-width='2.5'/%3E %3Cpath d='M16 20l10 4M48 20l-10 4' stroke='%235B6B86' stroke-width='2.5' stroke-linecap='round'/%3E %3Cpath d='M17 30q5 4 10 0M37 30q5 4 10 0' stroke='%235B6B86' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E %3Cpath d='M24 44q8-7 16 0' stroke='%235B6B86' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E %3Cpath fill='%237FA7DA' d='M19 33c-3 7-5 13-3 20 4-2 6-7 5-12z'/%3E %3Cpath fill='%237FA7DA' d='M45 33c3 7 5 13 3 20-4-2-6-7-5-12z'/%3E %3Cpath fill='%237FA7DA' d='M14 56a3 3 0 0 0 6 0c0-2-3-6-3-6s-3 4-3 6zM44 58a3 3 0 0 0 6 0c0-2-3-6-3-6s-3 4-3 6z'/%3E %3C/g%3E%3C/g%3E %3C/svg%3E");
  color-scheme: light;
}
html.sendu body {
  background-image:
    var(--s-pola),
    radial-gradient(520px 420px at 10% 10%, rgba(148, 163, 184, .45), transparent 70%),
    radial-gradient(560px 460px at 90% 12%, rgba(167, 160, 190, .35), transparent 70%),
    radial-gradient(620px 520px at 70% 90%, rgba(120, 136, 160, .35), transparent 70%),
    radial-gradient(480px 420px at 20% 92%, rgba(200, 205, 215, .50), transparent 70%),
    linear-gradient(175deg, var(--bg-from), var(--bg-to));
}
/* lapisan hiasan di belakang konten: hujan turun + awan & hati retak & wajah menangis melayang */
html.sendu #app { position: relative; z-index: 1; }
html.sendu body::before, html.sendu body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
html.sendu body::after {
  background-image: repeating-linear-gradient(103deg, transparent 0 34px, rgba(91, 107, 134, .10) 34px 35px, transparent 35px 71px),
    repeating-linear-gradient(100deg, transparent 0 57px, rgba(127, 167, 218, .12) 57px 58px, transparent 58px 113px);
  background-size: 100% 240px, 100% 300px;
  animation: sendu-hujan 1.1s linear infinite;
}
html.sendu body::before {
  background-image: var(--s-awan), var(--s-awan), var(--s-awan), var(--s-hati), var(--s-hati), var(--s-hati), var(--s-hati), var(--s-nangis), var(--s-nangis), var(--s-nangis);
  background-repeat: no-repeat;
  background-size: 120px auto, 90px auto, 150px auto, 44px auto, 30px auto, 54px auto, 36px auto, 56px auto, 40px auto, 48px auto;
  background-position: 58% 99%, 99% 46%, 34% 101%, 99% 14%, 46% 99%, 99% 72%, 26% 97%, 99% 94%, 78% 100%, 70% 97%;
  opacity: .55;
  animation: sendu-melayang 7s ease-in-out infinite alternate;
}
@keyframes sendu-hujan { from { background-position: 0 0, 0 0; } to { background-position: -40px 240px, -50px 300px; } }
@keyframes sendu-melayang { from { transform: translateY(0); } to { transform: translateY(14px); } }
@keyframes sendu-tetes { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes sendu-goyang { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { html.sendu body::before, html.sendu body::after, html.sendu .page-head h1::before, html.sendu .page-head h1::after, html.sendu .kpi::after { animation: none !important; } }

html.sendu .btn:not(.secondary):not(.ghost):not(.danger) { background: linear-gradient(160deg, #6B7A93, #4E5B73); }
html.sendu .btn:not(.secondary):not(.ghost):not(.danger):hover { background: linear-gradient(160deg, #5E6C85, #434F66); }
html.sendu .sb-nav a.active, html.sendu .chip.active, html.sendu .btn-group button.active { background: linear-gradient(160deg, #6B7A93, #4E5B73); border-color: transparent; }

/* judul halaman: wajah menangis + tetesan air mata jatuh */
html.sendu .page-head h1 { color: #3B4252; letter-spacing: -.01em; position: relative; display: inline-flex; align-items: center; gap: 10px; }
html.sendu .page-head h1::before { content: ""; order: 2; width: 34px; height: 34px; background: var(--s-nangis) center/contain no-repeat; animation: sendu-goyang 2.4s ease-in-out infinite; }
html.sendu .page-head h1::after { content: ""; order: 3; width: 10px; height: 14px; margin-left: -8px; align-self: flex-end;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath fill='%237FA7DA' d='M7 0C5 4 1 8 1 11.5A6 6 0 0 0 13 11.5C13 8 9 4 7 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: sendu-tetes 1.6s ease-in infinite; }
html.sendu .page-head p { font-style: italic; }
html.sendu .page-head p::after { content: "  (tidak apa-apa, pelan-pelan saja)"; color: var(--neutral); }

/* kartu angka: hati retak di pojok, kartu utama awan hujan */
html.sendu .kpi::after { content: ""; position: absolute; right: 12px; top: 10px; width: 26px; height: 24px; opacity: .45; background: var(--s-hati) center/contain no-repeat; animation: sendu-goyang 3s ease-in-out infinite; }
html.sendu .kpi.blue { background: linear-gradient(165deg, #6B7A93, #4E5B73 60%, #5D5470); box-shadow: 0 10px 30px rgba(60, 70, 90, .28); overflow: hidden; }
html.sendu .kpi.blue::after { width: 64px; height: 48px; right: 8px; top: 6px; opacity: .55; background: var(--s-awan) center/contain no-repeat; }

/* panel: hati retak kecil sebelum judul */
html.sendu .panel-head h3 { display: inline-flex; align-items: center; gap: 8px; }
html.sendu .panel-head h3::before { content: ""; width: 16px; height: 15px; background: var(--s-hati) center/contain no-repeat; opacity: .75; }

/* sidebar: karakter menangis di bawah awan hujan + kutipan */
html.sendu .sb-brand img { filter: grayscale(.6); }
html.sendu .sb-nav { padding-bottom: 8px; }
html.sendu .sb-foot { position: relative; }
html.sendu .sb-foot::before { content: ""; display: block; height: 128px; margin: -4px auto 8px; background: var(--s-orang) center bottom/contain no-repeat; }
html.sendu .sb-foot::after { content: "Hari ini juga akan berlalu."; display: block; font-style: italic; margin-top: 2px; }

/* data kosong: wajah menangis menggantikan ikon kotak */
html.sendu .empty svg { display: none; }
html.sendu .empty::before { content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 10px; background: var(--s-nangis) center/contain no-repeat; animation: sendu-goyang 2.4s ease-in-out infinite; }
html.sendu .empty::after { content: "Kosong, seperti hatiku."; display: block; margin-top: 6px; font-size: 12px; font-style: italic; color: var(--neutral); }

/* login: ilustrasi besar di pojok */
html.sendu .login-art { position: relative; overflow: hidden; }
html.sendu .login-art::after { content: ""; position: absolute; right: 24px; bottom: 18px; width: 300px; height: 250px; opacity: .9; background: var(--s-orang) center/contain no-repeat; pointer-events: none; }
html.sendu .login-art h1 span { color: #5B6B86; }
html.sendu .login-form form::before { content: ""; display: block; width: 52px; height: 52px; background: var(--s-nangis) center/contain no-repeat; animation: sendu-goyang 2.4s ease-in-out infinite; }

/* toast & hover */
html.sendu .toast::before { content: ""; width: 18px; height: 17px; flex: none; background: var(--s-hati) center/contain no-repeat; }
html.sendu .t th { color: #6B7385; }
html.sendu .t tr.clickable:hover td { background: rgba(91, 107, 134, .07); }
html.sendu .tabs a.active, html.sendu .tabs button.active { color: #4E5B73; border-bottom-color: #4E5B73; }
html.sendu ::selection { background: rgba(91, 107, 134, .25); }
@media (max-width: 900px) { html.sendu .login-art::after { width: 180px; height: 150px; } html.sendu .sb-foot::before { height: 80px; } }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 24px; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
b, strong { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; } .caption { font-size: 12px; color: var(--neutral); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--primary-25); }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--neutral) 45%, transparent) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--neutral) 40%, transparent); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Kaca: kartu, sidebar, top bar */
.glass, .panel, .card, .kpi, .table-wrap, .econ-card, .sidebar, .topbar {
  background-color: var(--surface);
  background-image: var(--glass-tint);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shine), var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

/* ---------- Kerangka: sidebar melayang + top bar ---------- */
.sidebar { position: fixed; z-index: 60; top: 16px; bottom: 16px; left: 16px; width: var(--sidebar-w); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: var(--text); }
.sb-brand:hover { text-decoration: none; }
.sb-brand img { height: 36px; width: 36px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; flex: none; }
.sb-brand b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.sb-brand small { display: block; font-size: 11px; color: var(--neutral); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.sb-group { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--neutral); padding: 14px 10px 6px; }
.sb-nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; margin: 1px 0; border-radius: 11px; color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .12s, color .12s; }
.sb-nav a svg { flex: none; opacity: .8; }
.sb-nav a:hover { text-decoration: none; background: var(--subtle); color: var(--text); }
.sb-nav a.active { background: var(--primary); color: #fff; box-shadow: 0 6px 16px var(--primary-25); }
.sb-nav a.active svg { opacity: 1; }
/* Grup dropdown */
.sb-grp-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; margin: 1px 0; border: 0; border-radius: 11px; background: transparent; color: var(--text); font: 600 13.5px var(--font); cursor: pointer; text-align: left; transition: background .12s, color .12s; }
.sb-grp-btn > span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-grp-btn > svg:first-child { opacity: .8; flex: none; }
.sb-grp-btn > svg:last-child { color: var(--neutral); flex: none; transition: transform .18s; }
.sb-grp-btn:hover { background: var(--subtle); }
.sb-grp.has-active > .sb-grp-btn { color: var(--primary); }
.sb-grp .sb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); display: none; }
.sb-grp.has-active:not(.open) .sb-dot { display: inline-block; }
.sb-grp.open > .sb-grp-btn > svg:last-child { transform: rotate(180deg); }
.sb-sub { display: none; margin: 2px 0 4px 20px; padding: 2px 0 2px 8px; border-left: 1px solid var(--border); }
.sb-grp.open .sb-sub { display: block; }
.sb-nav a.sub { height: 34px; font-size: 13px; }
.sb-foot { padding: 12px 18px 16px; font-size: 11px; color: var(--neutral); border-top: 1px solid var(--border); }
.sb-back { display: none; }

.main-col { margin-left: calc(var(--sidebar-w) + 32px); min-width: 0; }
.topbar { position: sticky; top: 16px; z-index: 50; margin: 16px 16px 0 0; border-radius: 18px; }
.topbar-inner { max-width: 1400px; margin: 0 auto; height: 60px; padding: 0 12px 0 16px; display: flex; align-items: center; gap: 14px; }
.icon-btn.menu-btn { display: none; }
.gsearch { flex: 1; max-width: 520px; position: relative; }
.gsearch input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--border); padding: 0 14px 0 40px; font: 400 14px var(--font); color: var(--text); background: var(--field); outline: none; transition: border-color .15s, box-shadow .15s; }
.gsearch input::placeholder { color: var(--neutral); }
.gsearch input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-10); }
.gsearch .ico { position: absolute; left: 12px; top: 10px; color: var(--neutral); pointer-events: none; }
.gsearch-results { position: absolute; top: 48px; left: 0; right: 0; background: var(--surface-solid); color: var(--text); border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--e2); overflow: hidden; max-height: 420px; overflow-y: auto; padding: 4px; }
.gsearch-results a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; color: var(--text); border-radius: 10px; }
.gsearch-results a:hover, .gsearch-results a.active { background: var(--subtle); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex: none; }
.icon-btn:hover { background: var(--subtle); color: var(--text); }
.icon-btn .dot { position: absolute; top: 3px; left: 22px; min-width: 16px; height: 16px; border-radius: 9999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; padding: 0 4px; text-align: center; border: 2px solid var(--surface-solid); box-sizing: content-box; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 9999px; cursor: pointer; color: var(--text); background: var(--field); border: 1px solid var(--border); font: 600 13px var(--font); }
.user-chip:hover { background: var(--subtle); }
.avatar { width: 30px; height: 30px; border-radius: 9999px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 88px; height: 88px; font-size: 28px; }

@media (max-width: 1023px) {
  .sidebar { transform: translateX(calc(-100% - 24px)); top: 12px; bottom: 12px; left: 12px; }
  body.sb-open .sidebar { transform: none; background-color: var(--surface-solid); background-image: none; }
  body.sb-open .sb-back { display: block; position: fixed; inset: 0; z-index: 55; background: var(--backdrop); }
  .main-col { margin-left: 0; }
  .topbar { margin: 12px 12px 0; top: 12px; }
  .container { padding: 20px 12px 48px; }
  .icon-btn.menu-btn { display: inline-flex; }
}

/* ---------- Layout ---------- */
.container { max-width: 1400px; margin: 0 auto; padding: 28px 16px 72px 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb { font-size: 13px; color: var(--neutral); margin-bottom: 8px; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.section { margin-top: 32px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1, .g-1-2, .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .g2, .g4 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .topbar-inner { gap: 8px; padding: 0 8px; height: 56px; } .user-chip > span:not(.avatar) { display: none; } .user-chip { padding: 3px; } .user-chip svg { display: none; }
  h1 { font-size: 20px; }
}

/* ---------- Panels / cards ---------- */
.panel { border-radius: var(--r-xl); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.panel-head h3 { font-size: 15px; font-weight: 700; }
.panel-head a { font-size: 13px; font-weight: 500; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }
.card { border-radius: var(--r-xl); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--glass-shine), var(--e2); transform: translateY(-2px); }

.kpi { border-radius: var(--r-xl); padding: 18px 20px; position: relative; }
.kpi .label { font-size: 12px; font-weight: 500; color: var(--text-2); display: flex; gap: 6px; align-items: center; }
/* Penanda warna KPI (style="--acc: var(--error)"): titik kecil di depan label */
.kpi[style*="--acc"] .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent); }
.kpi .value { font-size: 22px; font-weight: 700; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.kpi .sub { font-size: 12px; color: var(--neutral); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kpi.accent { }
.kpi.blue { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #6366F1)); border-color: transparent; color: #fff; box-shadow: 0 10px 30px var(--primary-25); }
.kpi.blue .label, .kpi.blue .sub { color: rgba(255, 255, 255, .78); }
.delta { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 9999px; }
.delta.up { color: var(--success); background: var(--success-bg); }
.delta.down { color: var(--error); background: var(--error-bg); }
.kpi.blue .delta.up, .kpi.blue .delta.down { color: #fff; background: rgba(255, 255, 255, .16); }

/* ---------- Buttons ---------- */
.btn { height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font: 500 14px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--primary); color: #fff; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn:not(.secondary):not(.ghost):not(.danger):not(:disabled) { box-shadow: 0 6px 16px var(--primary-25); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-25); }
.btn.secondary { background: var(--field); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--subtle); }
.btn.yellow { background: var(--primary); color: #fff; }
.btn.yellow:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; color: var(--primary); padding: 0 10px; }
.btn.ghost:hover { background: var(--primary-10); }
.btn.danger { background: var(--field); color: var(--error); border-color: color-mix(in srgb, var(--error) 35%, transparent); }
.btn.danger:hover { background: var(--error-bg); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--r-sm); }
.btn:disabled, .btn.disabled { background: var(--subtle); color: var(--neutral); border-color: var(--border); cursor: not-allowed; }
.btn.round { width: 36px; height: 36px; padding: 0; border-radius: 9999px; justify-content: center; }
.btn-group { display: inline-flex; padding: 3px; background: var(--field); border: 1px solid var(--border); border-radius: 12px; gap: 2px; }
.btn-group button { border: 0; background: transparent; padding: 0 12px; height: 30px; font: 600 12px var(--font); cursor: pointer; color: var(--text-2); border-radius: 9px; }
.btn-group button:hover { color: var(--text); }
.btn-group button.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px var(--primary-25); }

/* ---------- Forms ---------- */
label.field, div.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
label.field .hint, div.field .hint { font-weight: 400; font-size: 12px; color: var(--neutral); }
.input, select.input, textarea.input { height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r); font: 400 14px var(--font); color: var(--text); background: var(--field); width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-10); }
.input::placeholder { color: var(--neutral); }
select.input option { background: var(--surface-solid); color: var(--text); }
.input.error { border-color: var(--error); }
.input:disabled, select.input:disabled, textarea.input:disabled { background: var(--subtle); color: var(--text-2); border-color: var(--border); cursor: not-allowed; }
.checkbox input:disabled { opacity: .45; cursor: not-allowed; }
.input-wrap .input:disabled + .prefix, .input-wrap:has(.input:disabled) .prefix { opacity: .6; }
.input.sm { height: 34px; font-size: 13px; }
.input-wrap { position: relative; }
.input-wrap .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--neutral); font-size: 13px; pointer-events: none; }
.input-wrap .input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .form-grid, .form-grid.three { grid-template-columns: minmax(0, 1fr); } }
.form-section { font-size: 12px; font-weight: 700; color: var(--text); padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); }
.checkbox { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 13px; }
.checkbox input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: 5px; margin: 0; display: grid; place-content: center; cursor: pointer; background: var(--field); flex: none; }
.checkbox input:checked { background: var(--primary); border-color: var(--primary); }
.checkbox input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.checkbox input:focus-visible { outline: 2px solid var(--primary-25); outline-offset: 2px; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar select { height: 38px; width: auto; min-width: 160px; font-size: 13px; }
.toolbar .search { flex: 1; min-width: 220px; max-width: 420px; }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9999px; font: 500 12px var(--font); background: var(--field); color: var(--text-2); border: 1px solid var(--border); cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.new { background: var(--secondary); border-color: var(--secondary); color: #3B2A00; }
.chip.success { background: var(--success-bg); border-color: transparent; color: var(--success); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 9999px; font-size: 11px; font-weight: 500; white-space: nowrap; background: var(--subtle); color: var(--text-2); }
.badge.ok { background: var(--success-bg); color: var(--success); }
.badge.warn { background: var(--warning-bg); color: var(--warning); }
.badge.err { background: var(--error-bg); color: var(--error); }
.badge.info { background: var(--primary-10); color: var(--primary); }
.badge.yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
.badge.solid-ok { background: var(--success); color: #fff; }
.badge.solid-err { background: var(--error); color: #fff; }
.badge.dark { background: var(--text); color: var(--bg); }
.mp-dot { width: 8px; height: 8px; border-radius: 9999px; display: inline-block; flex: none; box-shadow: 0 0 0 1px var(--border); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-xl); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-size: 11px; font-weight: 700; color: var(--neutral); padding: 12px 14px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-solid) 88%, transparent); white-space: nowrap; position: sticky; top: 0; z-index: 1; letter-spacing: .05em; text-transform: uppercase; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--primary); }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tbody tr { transition: background .1s; }
.t tbody tr:hover { background: var(--subtle); }
.t tbody tr.clickable { cursor: pointer; }
.t tr:last-child td { border-bottom: 0; }
.t td.num, .t th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t tfoot td { font-weight: 600; background: var(--subtle); border-top: 1px solid var(--border); }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--subtle); border: 1px solid var(--border); flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--neutral); font-size: 11px; font-weight: 600; overflow: hidden; }
.thumb.lg { width: 64px; height: 64px; }
.thumb.sm { width: 36px; height: 36px; }
.prod-cell { display: flex; gap: 12px; align-items: center; min-width: 240px; }
.prod-cell .name { font-weight: 500; font-size: 13px; line-height: 1.35; }
.prod-cell .code { font-family: var(--mono); font-size: 11px; color: var(--neutral); }
.empty { padding: 48px 16px; text-align: center; color: var(--text-2); }
.empty svg { color: var(--border-strong); margin-bottom: 8px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border); }

/* ---------- Progress ---------- */
.progress { height: 6px; border-radius: 9999px; background: var(--subtle); overflow: hidden; min-width: 60px; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 9999px; }
.progress.ok > span { background: var(--success); }
.progress.warn > span { background: #E87400; }
.progress.err > span { background: var(--error); }
.progress.yellow > span { background: var(--secondary); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: 500 13px var(--font); color: var(--text-2); cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs a { border-bottom: 2px solid transparent; padding: 10px 12px; font: 500 13px var(--font); color: var(--text-2); white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs .count { background: var(--subtle); padding: 1px 7px; border-radius: 9999px; font-size: 11px; margin-left: 6px; color: var(--text-2); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: var(--backdrop); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; animation: fade .12s; }
.modal { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--e3); width: 100%; max-width: 640px; animation: pop .16s; }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 4px 24px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Toast & tooltip ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--toast-bg); color: var(--toast-fg); padding: 12px 16px; border-radius: var(--r-lg); font-size: 13px; box-shadow: var(--e2); max-width: 380px; display: flex; gap: 10px; align-items: flex-start; animation: pop .16s; }
.toast.err svg { color: #FF8A8D; } .toast.ok svg { color: #7FD77A; }
.tip { position: fixed; z-index: 300; background: var(--toast-bg); color: var(--toast-fg); font-size: 12px; padding: 8px 10px; border-radius: var(--r); pointer-events: none; max-width: 280px; line-height: 1.45; box-shadow: var(--e2); }

/* ---------- Dropdown ---------- */
.dropdown { position: absolute; background: var(--surface-solid); border-radius: var(--r-lg); box-shadow: var(--e2); border: 1px solid var(--border); min-width: 220px; z-index: 120; overflow: hidden; color: var(--text); padding: 4px; }
.dropdown a, .dropdown button { display: flex; width: 100%; gap: 10px; padding: 9px 12px; color: var(--text); background: none; border: 0; text-align: left; font: 500 13px var(--font); cursor: pointer; border-radius: 10px; align-items: center; }
.dropdown a:hover, .dropdown button:hover { background: var(--subtle); text-decoration: none; }
.notif-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px !important; }
.dropdown .notif-all { border: 0; background: none; color: var(--primary); font: 600 12px var(--font); cursor: pointer; padding: 4px 6px; border-radius: 8px; width: auto !important; display: inline !important; }
.dropdown .notif-all:hover { background: var(--primary-10); }
.notif-new { color: var(--primary); font-weight: 700; }
.dropdown a.notif-item { position: relative; padding-left: 22px; align-items: flex-start; }
.notif-dot { position: absolute; left: 8px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.dropdown a.notif-item.read { opacity: .55; }
.dropdown a.notif-item.read .notif-dot { display: none; }
.dropdown .dd-head { padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13px; margin: -4px -4px 4px; }

/* ---------- Charts ---------- */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text { font-size: 11px; fill: var(--neutral); font-family: var(--font); }
.chart .grid line { stroke: var(--border); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Listing matrix ---------- */
.matrix th.store { text-align: center; min-width: 96px; white-space: normal; line-height: 1.3; text-transform: none; letter-spacing: 0; color: var(--text-2); }
.matrix td.cell { text-align: center; padding: 6px; }
.lcell { width: 28px; height: 28px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid transparent; font-size: 11px; font-weight: 600; transition: box-shadow .1s; }
.lcell.live { background: var(--success-bg); color: var(--success); }
.lcell.draft { background: var(--warning-bg); color: var(--warning); }
.lcell.ditolak { background: var(--error-bg); color: var(--error); }
.lcell.nonaktif { background: var(--subtle); color: var(--neutral); }
.lcell.belum { background: var(--field); color: var(--border-strong); border: 1px dashed var(--border-strong); }
.lcell:hover { box-shadow: 0 0 0 2px var(--primary-25); }
.lcell.skip { background: repeating-linear-gradient(135deg, var(--subtle) 0 4px, transparent 4px 8px); color: var(--neutral); border: 1px solid var(--border); }
.lcell.wrong { background: var(--error); color: #fff; }
.lcell.mismatch { box-shadow: inset 0 -3px 0 var(--secondary); }

.lstate { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; }
.lstate .badge { width: 100%; justify-content: center; }

/* ---------- Product detail ---------- */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.gallery .main { aspect-ratio: 1 / 1; background: var(--subtle); border-radius: var(--r-xl); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gallery .thumbs .t-item { aspect-ratio: 1 / 1; border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; cursor: pointer; position: relative; background: var(--subtle); }
.gallery .thumbs .t-item.active { border: 2px solid var(--primary); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs .t-item .x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 9999px; background: rgba(17, 17, 17, .7); color: #fff; border: 0; font-size: 12px; cursor: pointer; display: none; }
.gallery .thumbs .t-item:hover .x { display: block; }
.gallery .thumbs .t-item .dl { position: absolute; bottom: 3px; right: 3px; width: 22px; height: 22px; border-radius: 9999px; background: rgba(17, 17, 17, .7); color: #fff; display: none; align-items: center; justify-content: center; }
.gallery .thumbs .t-item:hover .dl { display: flex; }
@media (hover: none) { .gallery .thumbs .t-item .dl { display: flex; } }
.file-aksi { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.file-aksi a { color: var(--text-2); display: inline-flex; }
.file-aksi a:hover { color: var(--primary); }
.photo-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pe-item, .pe-add { aspect-ratio: 1 / 1; border-radius: var(--r); position: relative; overflow: hidden; }
.pe-item { border: 1px solid var(--border); cursor: pointer; background: var(--subtle); }
.pe-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-item.main { border: 2px solid var(--primary); }
.pe-tag, .pe-new { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 9999px; background: var(--primary); color: #fff; }
.pe-new { left: auto; right: 4px; top: 4px; bottom: auto; background: var(--secondary); color: #3B2A00; }
.pe-x { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 9999px; border: 0; background: rgba(17,17,17,.7); color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.pe-item:hover .pe-x, .pe-item:focus-within .pe-x { opacity: 1; }
@media (hover: none) { .pe-x { opacity: 1; } }
.pe-add { border: 1.5px dashed var(--border-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-2); font-size: 12px; cursor: pointer; }
.pe-add:hover, .pe-add.over { border-color: var(--primary); color: var(--primary); background: var(--primary-10); }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--r); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-2); font-size: 12px; cursor: pointer; aspect-ratio: 1/1; transition: all .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); color: var(--primary); background: var(--primary-10); }
.price-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.price-strike { text-decoration: line-through; color: var(--neutral); font-size: 13px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 13px; }
.kv dt { color: var(--text-2); } .kv dd { margin: 0; font-weight: 500; }
.barcode-box { background: #fff; color: #111; border: 1px solid var(--border); border-radius: var(--r); padding: 12px; display: inline-flex; flex-direction: column; align-items: center; }
.econ-card { border-radius: var(--r-xl); padding: 16px; }
.econ-card .mp { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 12px; }
.econ-card dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 13px; }
.econ-card dt { color: var(--text-2); } .econ-card dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.econ-card .roas-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.econ-card .roas-row div { background: var(--subtle); border-radius: var(--r); padding: 8px 6px; text-align: center; }
.econ-card .roas-row b { display: block; font-size: 15px; }
.econ-card .roas-row small { font-size: 11px; color: var(--text-2); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 24px; }
.login-art { padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 28px; background-color: var(--surface); background-image: var(--glass-tint); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shine), var(--shadow); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
.login-art .brand img { height: 96px; width: auto; background: #fff; border-radius: 18px; padding: 8px 14px; }
.login-art h1 { font-size: 34px; font-weight: 800; max-width: 520px; letter-spacing: -.02em; line-height: 1.25; }
.login-art h1 span { color: var(--primary); }
.login-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 14px; color: var(--text-2); }
.login-art li { display: flex; gap: 10px; align-items: center; }
.login-art li svg { color: var(--primary); flex: none; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-form form { padding: 32px; border-radius: 28px; background-color: var(--surface); background-image: var(--glass-tint); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shine), var(--shadow); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
.login-form form { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.login-form .mobile-logo { display: none; height: 56px; width: auto; background: #fff; border-radius: 14px; padding: 6px 10px; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; padding: 12px; } .login-form { padding: 12px; } .login-art { display: none; } .login-form .mobile-logo { display: block; margin: 0 auto 8px; } }

/* ---------- Misc ---------- */
.sumber-data { margin-top: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); font-size: 13px; }
.sumber-data > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; color: var(--text); }
.sumber-data > summary::-webkit-details-marker { display: none; }
.sumber-data > summary > svg { color: var(--primary); flex: none; }
.sumber-data > summary > span:first-of-type { flex: 1; font-weight: 600; }
.sumber-data[open] > summary .caption { display: none; }
.sumber-data ul { margin: 0; padding: 0 16px 12px 38px; color: var(--text-2, var(--text)); line-height: 1.6; }
.notice { padding: 12px 16px; border-radius: 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice > svg { flex: none; margin-top: 1px; }
.notice.info { background: var(--primary-10); color: var(--text); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); }
.notice.info > svg { color: var(--primary); }
.notice.warn { background: var(--warning-bg); color: var(--text); border: 1px solid color-mix(in srgb, var(--warning) 25%, transparent); }
.notice.warn > svg { color: var(--warning); }
.notice.err { background: var(--error-bg); color: var(--error); border: 1px solid color-mix(in srgb, var(--error) 25%, transparent); }
.notice.yellow { background: var(--yellow-bg); color: var(--text); border: 1px solid color-mix(in srgb, var(--secondary) 45%, transparent); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 13px; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--subtle); }
.days { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.loading-page { padding: 64px; text-align: center; color: var(--text-2); }
code, pre { font-family: var(--mono); font-size: 12px; }
pre { background: var(--subtle); padding: 12px; border-radius: var(--r); overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.formula { font-family: var(--mono); font-size: 12px; background: var(--subtle); padding: 10px 12px; border-radius: var(--r); }
@media print { .topbar, .sidebar, .page-head .actions, .toolbar { display: none !important; } .main-col { margin: 0; } body { background: #fff !important; } }

/* ---------- Alert & dashboard eksekutif ---------- */
.icon-btn .dot.crit { background: var(--error); }
.alert-row { text-decoration: none !important; display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.alert-row:last-child { border-bottom: 0; }
.alert-row:hover { background: var(--subtle); }
.alert-row .lv { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--neutral); }
.alert-row .lv.kritis { background: var(--error); } .alert-row .lv.peringatan { background: var(--warning); } .alert-row .lv.info { background: var(--primary); }
.exec-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.exec-cmp b { color: var(--text); font-weight: 600; }
.kpi.blue .exec-cmp, .kpi.blue .exec-cmp b { color: rgba(255, 255, 255, .85); }
.kpi .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; white-space: nowrap; }
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.fresh i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.fresh i.old { background: var(--warning); } .fresh i.dead { background: var(--error); }
.cell-sub { display: block; font-size: 11px; color: var(--neutral); }
/* mode TV: tanpa header/menu, huruf lebih besar */
body.tv .topbar, body.tv .sidebar { display: none; }
body.tv .main-col { margin-left: 0; }
body.tv .container { max-width: none; padding: 20px 28px; }
body.tv .kpi .big { font-size: 40px; }
body.tv table.t { font-size: 15px; }

/* Ganti supplier langsung di tabel Master SKU */
.sup-btn { background: none; border: 0; padding: 2px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px dashed transparent; }
.sup-btn:hover { color: var(--primary); border-bottom-color: currentColor; }
.sup-btn svg { opacity: .5; flex: none; }

/* Laporan bug */
.bug-dampak { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bug-dampak label { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 13px; }
.bug-dampak label:has(input:checked) { border-color: var(--primary); background: var(--primary-10); }
.bug-dampak label:has(input[value="berat"]:checked) { border-color: var(--error); background: var(--error-bg); }
.bug-dampak input { position: absolute; opacity: 0; pointer-events: none; }
.bug-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.bug-thumb { position: relative; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--subtle); }
.bug-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bug-thumb button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.bug-thumb.add { display: grid; place-items: center; border-style: dashed; color: var(--text-2); cursor: pointer; }
@media (max-width: 640px) { .bug-dampak { grid-template-columns: 1fr; } }

/* ---------- Tema Foto: template lucu (ornamen orisinal, public/assets/tema-foto.js) + foto unggahan pengguna ----------
   Warna & ornamen dipasang sebagai variabel oleh TemaFoto.terapkan(). Default di bawah mencegah kedip saat memuat. */
html.foto { --bg-from: #CDEBFF; --bg-to: #F2FAFF; --tpl-a: rgba(120, 200, 255, .5); --tpl-b: rgba(255, 226, 122, .45); --secondary: #FFE27A;
  --surface: rgba(255, 255, 255, .66); --surface-solid: #FFFFFF; --field: rgba(255, 255, 255, .82); --glass-edge: rgba(255, 255, 255, .9);
  --border: rgba(80, 100, 130, .16); --border-strong: rgba(80, 100, 130, .30); color-scheme: light; }
html.foto[data-tpl=stroberi] { --bg-from: #FFDDEA; --bg-to: #FFF6F9; }
html.foto[data-tpl=matcha] { --bg-from: #D9F0DE; --bg-to: #F7FBF3; }
html.foto[data-tpl=lavender] { --bg-from: #E4DBFF; --bg-to: #F8F5FF; }
html.foto body {
  background-image:
    radial-gradient(520px 420px at 6% 10%, var(--tpl-a), transparent 70%),
    radial-gradient(560px 460px at 94% 6%, var(--tpl-b), transparent 70%),
    radial-gradient(620px 520px at 70% 92%, var(--tpl-a), transparent 72%),
    linear-gradient(160deg, var(--bg-from), var(--bg-to));
}
/* Foto samar di latar + ornamen di pojok layar */
html.foto .tf-latar { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
html.foto.foto-ada .tf-latar::before { content: ""; position: absolute; inset: -40px; background: var(--tema-foto) center/cover no-repeat; filter: blur(30px) saturate(1.15); opacity: .28; }
html.foto .tf-latar::after { content: ""; position: absolute; right: 8px; bottom: 6px; width: 190px; height: 140px; background: var(--orn-b) center/contain no-repeat; opacity: .9; }
html.foto .btn:not(.secondary):not(.ghost):not(.danger) { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); }
html.foto .btn, html.foto .input, html.foto .chip { border-radius: 9999px; }
html.foto .sb-nav a.active, html.foto .chip.active, html.foto .btn-group button.active { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); border-color: transparent; }
html.foto .kpi.blue { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); }
html.foto .kpi.blue::after { content: ""; position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; background: var(--orn-s) center/contain no-repeat; opacity: .9; }
html.foto .page-head h1::after { content: ""; display: inline-block; width: 26px; height: 26px; margin-left: 8px; vertical-align: -5px; background: var(--orn-s) center/contain no-repeat; }
html.foto .tabs a.active, html.foto .tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
html.foto .sb-brand b { color: var(--primary); }

/* Polaroid di sidebar */
.sb-foto { display: none; }
html.foto .sb-foto { display: block; padding: 2px 18px 12px; }
.tf-polaroid { position: relative; background: #fff; padding: 8px 8px 0; border-radius: 6px; transform: rotate(-2.5deg); box-shadow: 0 8px 22px rgba(30, 40, 60, .16); }
.tf-polaroid::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; transform: translateX(-50%) rotate(3deg); background: var(--secondary); opacity: .85; border-radius: 2px;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .45) 0 6px, transparent 6px 12px); }
.tf-polaroid::after { content: ""; position: absolute; right: -14px; bottom: 14px; width: 46px; height: 46px; background: var(--orn-s) center/contain no-repeat; transform: rotate(10deg); }
.tf-foto { aspect-ratio: 4 / 3; border-radius: 3px; background: var(--tema-foto) center/cover no-repeat, linear-gradient(160deg, var(--bg-from), var(--bg-to)); display: grid; place-items: center; text-align: center; overflow: hidden; position: relative; }
.tf-foto::before { content: ""; position: absolute; left: -8px; top: -6px; width: 72px; height: 52px; background: var(--orn-a) left top/contain no-repeat; opacity: .95; }
html.foto-ada .tf-foto::before { width: 56px; height: 40px; }
.tf-foto span { font-size: 11px; color: var(--text-2); padding: 0 14px; position: relative; }
.tf-cap { font: 600 12px/1 var(--font); color: #4a4a5a; text-align: center; padding: 9px 0 10px; letter-spacing: .2px; }
/* Layar pendek (laptop 1366x768, zoom besar): polaroid versi mini, foto di kiri & sapaan di kanan, supaya menu tetap muat. */
@media (max-height: 820px) {
  html.foto .sb-foto { padding: 4px 16px 10px; }
  .tf-polaroid { display: flex; align-items: center; gap: 10px; padding: 6px; transform: rotate(-1.5deg); }
  .tf-polaroid::before { width: 44px; height: 13px; top: -7px; left: 30px; }
  .tf-polaroid::after { width: 32px; height: 32px; right: -10px; bottom: -8px; }
  .tf-foto { width: 74px; flex: 0 0 74px; aspect-ratio: 1; }
  .tf-foto::before { width: 34px; height: 26px; left: -5px; top: -4px; }
  html.foto-ada .tf-foto::before { width: 30px; height: 22px; }
  .tf-foto span { font-size: 9px; padding: 0 4px; }
  .tf-cap { text-align: left; padding: 0 18px 0 0; line-height: 1.3; }
}
@media (max-height: 540px) { html.foto .sb-foto { display: none; } }

/* Banner di Dashboard: foto dibingkai template, ornamen di dua pojok */
.tf-banner { display: none; }
html.foto body.hal-dashboard .tf-banner, .tf-pratinjau .tf-banner { display: block; position: relative; margin: 16px 16px 0 0; height: 168px; border-radius: 24px; border: 5px solid #fff;
  background: var(--tema-foto) center/cover no-repeat, linear-gradient(135deg, var(--bg-from), var(--bg-to)); box-shadow: 0 12px 34px rgba(30, 40, 60, .16); }
html.foto body.hal-dashboard .tf-banner::before, .tf-pratinjau .tf-banner::before { content: ""; position: absolute; right: -14px; top: -22px; width: 220px; height: 160px; background: var(--orn-a) right top/contain no-repeat; pointer-events: none; }
html.foto body.hal-dashboard .tf-banner::after, .tf-pratinjau .tf-banner::after { content: ""; position: absolute; left: -16px; bottom: -26px; width: 150px; height: 110px; background: var(--orn-b) left bottom/contain no-repeat; pointer-events: none; }
.tf-banner-in { position: absolute; inset: 0; border-radius: 19px; display: flex; align-items: flex-end; padding: 18px 22px 18px 120px; }
.foto-ada .tf-banner-in, html.foto-ada .tf-banner-in { background: linear-gradient(90deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 60%); }
.tf-sapa { display: flex; flex-direction: column; gap: 4px; background: rgba(255, 255, 255, .85); padding: 10px 16px; border-radius: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.tf-sapa b { font-size: 18px; color: var(--primary); }
.tf-sapa span { font-size: 12px; color: var(--text-2, #555); }
@media (max-width: 1023px) { html.foto body.hal-dashboard .tf-banner { margin: 12px 12px 0; height: 136px; } }
@media (max-width: 600px) {
  html.foto body.hal-dashboard .tf-banner::before, .tf-pratinjau .tf-banner::before { width: 150px; height: 110px; right: -8px; top: -16px; }
  html.foto body.hal-dashboard .tf-banner::after, .tf-pratinjau .tf-banner::after { width: 100px; height: 74px; }
  .tf-banner-in { padding: 12px 12px 12px 70px; }
  .tf-sapa b { font-size: 15px; }
  html.foto .tf-latar::after { width: 120px; height: 90px; }
}

/* Pengaturan tema foto */
.tf-pilih { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tf-kartu { position: relative; text-align: left; border: 2px solid var(--border); border-radius: 16px; padding: 64px 12px 10px; cursor: pointer; overflow: hidden; color: var(--text);
  background: var(--oa) right -12px top -10px/120px auto no-repeat, linear-gradient(160deg, var(--c1), var(--c2)); font: inherit; }
.tf-kartu b { display: block; font-size: 13px; color: var(--cp); }
.tf-kartu span { display: block; font-size: 11px; color: var(--text-2); margin-top: 2px; }
.tf-kartu.aktif { border-color: var(--cp); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cp) 25%, transparent); }
.tf-pratinjau { margin-top: 18px; padding: 22px 26px 30px; border-radius: 18px; background: linear-gradient(160deg, var(--bg-from), var(--bg-to)); overflow: hidden; }
.tf-pratinjau .tf-banner { margin: 0; }
@media (max-width: 680px) { .tf-pilih { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tf-pratinjau { padding: 18px 16px 26px; } .tf-pratinjau .tf-banner { height: 130px; } }

/* HP/tablet: padding kiri-kanan halaman. Aturan .container di atas (sesudah media query) menimpa padding HP menjadi 0 di kiri. */
@media (max-width: 1023px) { .container { padding: 20px 12px 48px; } }

/* Bagan akun: tabel bergulir sendiri, judul kolom solid supaya baris tidak tembus */
#ak-tabel .t th { background: var(--surface-solid); }

/* Mode bingkai (FTAP di dalam MMS/AMS): tanpa sidebar & topbar */
html.embed .sidebar, html.embed .topbar, html.embed .sb-back, html.embed .tf-banner { display: none !important; }
html.embed .container { padding: 20px 20px 48px !important; max-width: none; }
html.embed .main-col { margin-left: 0 !important; }
html.embed body { background-attachment: scroll; }
