/* ===== MODEL 1 — "Dashboard V15" (Ember & Lavender) ===== */
html[data-model=m1] {
  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #E7E6E3; --shell: #F4F4F2; --shell-solid: #F4F4F2;
  --card: #FFFFFF; --card-2: #F3F3F0; --card-line: transparent;
  --shadow: 0 1px 2px rgba(20,20,20,.03), 0 10px 30px -12px rgba(20,20,20,.06);
  --ink: #141414; --ink-2: #545458; --ink-3: #909094; --line: #ECECE9; --line-2: #DCDCD8;
  --accent: #EE6A25; --on-accent: #fff; --accent-soft: rgba(238,106,37,.14); --accent-ink: #C24F12; --accent-shadow: 0 10px 22px -8px rgba(238,106,37,.6);
  --dark: #151515; --on-dark: #fff;
  --seg-bg: #EEEEEB; --seg-on: #151515; --seg-on-ink: #fff;
  --hero-bg: linear-gradient(165deg, #F4813C 0%, #EC6524 55%, #E1531A 100%); --hero-ink: #fff; --hero-ink-2: rgba(255,255,255,.8);
  --good: #19935A; --good-soft: #DDF4E5; --bad: #DB4129; --bad-soft: #FDE4DF; --warn: #B76E06; --warn-soft: #FCEFD6; --info: #4B57C9; --info-soft: #E7E9FA;
  --track: #EEEEEB; --bar-fill: #EE6A25; --hover: #F6F6F3; --input-bg: #FFFFFF; --sheet-bg: #F6F6F4;
  --tip-bg: #18181A; --tip-ink: #fff; --r-card: 28px; --r-in: 16px; --gap: 16px;
  --grid: #E6E6E2; --bar: #E3E3DF; --bar-bg: #F2F2EF; --bar-stripe: #DCDCD7; --bar-hi-a: #F58840; --bar-hi-b: #E5561B; --bar-fut: #CFCFCB; --tag-bg: #1A1A1C; --tag-ink: #fff;
  --c1: #E8622A; --c2: #4B57C9; --c3: #B98A0C; --c4: #8A4FC7; --c5: #2F9E5B; --stack-1: #1A1A1C; --stack-2: #EE6A25;
  --gauge-a: #FBB27E; --gauge-b: #EA5B1C; --spark: #EE6A25; --mini: #E3E3DF; --mini-last: #EE6A25; --ring: #EE6A25;
  --avatar-bg: #FBE3D5; --avatar-ink: #A9440F;
  --bnav-bg: rgba(255,255,255,.94); --bnav-ink: #151515; --bnav-ink-2: #8E8E93; --bnav-on: #151515; --fab-bg: #EE6A25; --fab-shadow: rgba(238,106,37,.5);
  --login-art-bg: radial-gradient(120% 90% at 0% 0%, #F8A066 0%, #EE6A25 45%, #CF4612 100%); --login-art-ink: #fff;
  --tile-ic-bg: #151515; --nota-accent: #E5561B;
}
html[data-model=m1][data-theme=lavender] {
  --bg: linear-gradient(125deg, #C7C1F6 0%, #E5E0FB 34%, #F6DCEB 64%, #D3DDFB 100%) fixed;
  --shell: rgba(255,255,255,.52); --shell-solid: #F1EEFC;
  --card: #FFFFFF; --card-2: #F4F2FC; --line: #ECE9F7; --line-2: #DAD6EE;
  --accent: #6C5CF0; --accent-soft: rgba(108,92,240,.14); --accent-ink: #4E3ED6; --accent-shadow: 0 10px 22px -8px rgba(108,92,240,.55);
  --hero-bg: linear-gradient(165deg, #E1DAFD 0%, #D3CBFA 100%); --hero-ink: #1A1730; --hero-ink-2: rgba(26,23,48,.62);
  --seg-bg: #EFECFB;
  --track: #EEEBFA; --bar-fill: #6C5CF0; --hover: #F7F5FE; --sheet-bg: #F8F6FE;
  --bar-bg: #F1EFFA; --bar-stripe: #DCD7F2; --bar-hi-a: #8B7DF7; --bar-hi-b: #5B4AE6; --bar: #E3DFF5;
  --c1: #6C5CF0; --c2: #D9548C; --stack-2: #6C5CF0;
  --gauge-a: #BDB3FB; --gauge-b: #5B4AE6; --spark: #6C5CF0; --mini-last: #6C5CF0; --ring: #6C5CF0;
  --avatar-bg: #E4DFFC; --avatar-ink: #4E3ED6;
  --fab-bg: #151515; --fab-shadow: rgba(0,0,0,.35);
  --login-art-bg: linear-gradient(140deg, #B9B1F5, #E6DEFB 50%, #F4CFE2); --login-art-ink: #1A1730; --login-chip-bg: rgba(255,255,255,.55);
  --nota-accent: #5B4AE6;
}

html[data-model=m1] { --pop-bg: #FFFFFF; --pop-line: rgba(20,20,20,.06); --pop-shadow: 0 2px 6px rgba(20,20,20,.04), 0 28px 56px -20px rgba(20,20,20,.3); --pop-hover: #F5F5F2; --pop-field: #F3F3F0; --r-pop: 22px; --sel-bg: rgba(238,106,37,.22); --scroll: rgba(20,20,20,.16); --scroll-hi: rgba(20,20,20,.32); --pick-shadow: 0 8px 16px -8px rgba(238,106,37,.75); }
html[data-model=m1][data-theme=lavender] { --pop-hover: #F6F4FE; --pop-field: #F3F1FC; --pop-shadow: 0 2px 6px rgba(60,40,140,.05), 0 28px 56px -20px rgba(60,40,140,.34); --sel-bg: rgba(108,92,240,.22); --scroll: rgba(60,40,140,.2); --scroll-hi: rgba(60,40,140,.38); --pick-shadow: 0 8px 16px -8px rgba(108,92,240,.75); }

/* ---------- kerangka ---------- */
html[data-model=m1] body { background: var(--bg); }
.m1-shell { position: relative; margin: 14px; padding: 0 28px 40px; border-radius: 36px; background: var(--shell); min-height: calc(100vh - 28px); transition: background .4s; }
html[data-theme=lavender] .m1-shell { backdrop-filter: blur(30px) saturate(130%); -webkit-backdrop-filter: blur(30px) saturate(130%); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 40px 80px -40px rgba(80,60,160,.35); }
.m1-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 18px 0 14px; background: linear-gradient(var(--shell-solid) 72%, transparent); border-radius: 36px 36px 0 0; }
html[data-theme=lavender] .m1-top { background: linear-gradient(rgba(243,240,253,.92) 70%, rgba(243,240,253,0)); }
.m1-brand { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 14px; border-radius: 999px; background: var(--card); font-weight: 600; font-size: 18px; letter-spacing: -.01em; flex: none; }
.m1-brand .mark { color: var(--accent); display: grid; place-items: center; }
.m1-brand .mark .logo-mark { width: 30px; height: 30px; }
html[data-theme=lavender] .m1-brand { width: 54px; padding: 0; justify-content: center; background: #151515; border-radius: 16px; color: #fff; }
html[data-theme=lavender] .m1-brand .mark { color: #fff; --logo-eye: #151515; }
html[data-theme=lavender] .m1-brand .nm { display: none; }
.m1-tabs { margin: 0 auto; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--card); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.m1-tabs::-webkit-scrollbar { display: none; }
.m1-tabs a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 400; color: var(--ink-2); white-space: nowrap; transition: background .25s, color .25s; }
.m1-tabs a:hover { color: var(--ink); }
.m1-tabs a.on { background: var(--dark); color: #fff; font-weight: 500; }
.m1-tabs .nb { background: var(--accent-soft); color: var(--accent-ink); }
.m1-tabs a.on .nb { background: rgba(255,255,255,.18); color: #fff; }
.m1-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.m1-actions .icon-btn { width: 50px; height: 50px; border: 0; background: var(--card); }
.m1-actions .icon-btn.on { background: var(--dark); color: #fff; }
.m1-catat { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; box-shadow: var(--accent-shadow); transition: transform .15s, filter .2s; }
.m1-catat:hover { filter: brightness(1.06); }
.m1-catat:active { transform: scale(.96); }
.m1-catat .ic { stroke-width: 2.6; }
.m1-modes { display: flex; gap: 0; padding: 4px; border-radius: 999px; background: var(--card); }
.m1-modes button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background .25s, color .25s; }
.m1-modes button.on { background: var(--dark); color: #fff; }
.m1-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(140deg, #F6B48B, #C65A2B); color: #fff; font-weight: 700; box-shadow: 0 0 0 3px var(--card); }
html[data-theme=lavender] .m1-avatar { background: linear-gradient(140deg, #B7AAF9, #6C5CF0); }
.m1-page { padding-top: 6px; }

/* rail kiri (tampil di Lavender seperti video) */
.m1-rail { position: fixed; z-index: 55; left: 34px; top: 50%; transform: translateY(-50%) translateX(-120px); opacity: 0; display: flex; flex-direction: column; gap: 70px; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; pointer-events: none; }
html[data-theme=lavender] .m1-rail { transform: translateY(-50%); opacity: 1; pointer-events: auto; }
html[data-theme=lavender] .m1-shell { margin-left: 112px; }
.rail-grp { display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 999px; background: rgba(255,255,255,.8); box-shadow: 0 10px 30px -14px rgba(60,40,140,.35); }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background .25s, color .25s; }
.rail-btn .ic { width: 19px; height: 19px; }
.rail-btn:hover { color: var(--ink); }
.rail-btn.on, .rail-btn.solid { background: #151515; color: #fff; }

/* sakelar tema bawah (seperti pill "Fluentic / Ember" di video) */
.m1-switch { position: fixed; z-index: 70; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #1C1C1E; box-shadow: 0 16px 40px -10px rgba(0,0,0,.45); }
.m1-switch button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; color: #A9A9AE; font-weight: 500; font-size: 13.5px; transition: background .3s, color .3s; }
.m1-switch button.on { background: #fff; color: #151515; }
.m1-switch i { width: 10px; height: 10px; border-radius: 50%; }
.m1-switch .d1 { background: #7B6CF6; box-shadow: 0 0 0 3px rgba(123,108,246,.25); }
.m1-switch .d2 { background: #EE5A3B; box-shadow: 0 0 0 3px rgba(238,90,59,.25); }

/* ---------- kepala halaman & hero Beranda ---------- */
html[data-model=m1] .page-head h1 { font-weight: 500; letter-spacing: -.035em; }
html[data-model=m1] .card-head h3 { font-weight: 500; font-size: 18px; }
html[data-model=m1] .kpi-val, html[data-model=m1] .big-num, html[data-model=m1] .metric b, html[data-model=m1] .cp-num b { font-weight: 500; }
html[data-model=m1] .kpi { border-radius: 26px; }
.m1-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin: 14px 0 24px; }
.m1-greet { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 4px 18px; }
.m1-greet h1 { font-size: clamp(30px, 3.3vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.m1-greet p { grid-column: 1 / -1; color: var(--ink-3); font-size: 14px; }
.search-c { width: 46px; height: 46px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--ink-2); }
.m1-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.m1-stat { display: grid; gap: 2px; }
.m1-stat small { color: var(--ink-3); font-size: 12.5px; }
.ms-row { display: flex; align-items: center; gap: 10px; }
.m1-stat b { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.m1-stat span:last-child { color: var(--ink-3); font-size: 12.5px; }
.m1-stat .delta { height: 24px; }

/* ---------- grid beranda ---------- */
.m1-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.m1-grid .span2 { grid-column: span 2; }
.m1-grid .span3 { grid-column: span 3; }
.m1-grid .span4 { grid-column: 1 / -1; }
.plus-c { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; color: var(--ink-2); flex: none; transition: background .2s, transform .15s; }
.plus-c:hover { background: var(--line); color: var(--ink); }
.plus-c:active { transform: scale(.94); }
.plus-c .ic { width: 17px; height: 17px; }
.pill-sel { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card-2); font-size: 13px; color: var(--ink-2); }
.pill-sel .ic { width: 14px; height: 14px; }
.m1-deals h3 .ic { width: 16px; height: 16px; vertical-align: -2px; color: var(--ink-3); }

html[data-model=m1] .chart .knob { fill: #151515; stroke: #fff; stroke-width: 2.5; }

/* kartu stok pakan + gauge */
.m1-pakan { display: flex; flex-direction: column; }
.mp-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 1.15fr); gap: 16px; align-items: center; flex: 1; }
.mp-left small { color: var(--ink-3); font-size: 13px; }
.mp-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mp-big b { font-size: 64px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.mp-big span { font-size: 18px; color: var(--ink-2); }
.mp-big em { font-style: normal; align-self: center; }
.mp-left p { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.mp-left p b { color: var(--ink); font-weight: 600; }
.mp-gauge { position: relative; }
.g-scale { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11.5px; padding: 0 6px; margin-top: -8px; }
.mp-apps { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.app-c { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.app-c i { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bad); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.app-pill { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-left: auto; text-align: left; box-shadow: 0 6px 18px -10px rgba(0,0,0,.2); }
.app-pill > .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); box-sizing: border-box; }
.app-pill span { display: grid; line-height: 1.2; }
.app-pill b { font-size: 13px; font-weight: 600; }
.app-pill small { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.rd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }

/* kartu oranye uang tunai */
.m1-orange { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 22px; border-radius: var(--r-card); background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; cursor: pointer; box-shadow: 0 24px 40px -24px rgba(226,84,24,.6); transition: transform .25s; }
html[data-theme=lavender] .m1-orange { box-shadow: 0 24px 40px -26px rgba(90,70,200,.45); }
.m1-orange:hover { transform: translateY(-2px); }
.m1-orange::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.m1-orange h3 { font-size: 21px; font-weight: 500; line-height: 1.15; max-width: 9ch; color: var(--hero-ink-2); letter-spacing: -.01em; }
.m1-orange .arrow { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
html[data-theme=lavender] .m1-orange .arrow { background: rgba(255,255,255,.6); }
.m1-orange .pill-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; margin-top: 18px; border-radius: 999px; background: #fff; color: #151515; font-weight: 600; font-size: 14px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.4); }
.m1-orange .pill-btn .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #F1F1EE; box-sizing: border-box; }
.m1-orange .big { margin-top: auto; display: flex; align-items: flex-end; gap: 10px; padding-top: 16px; }
.m1-orange .big b { font-size: clamp(54px, 5vw, 72px); font-weight: 500; letter-spacing: -.05em; line-height: .85; }
.m1-orange .big span { font-size: 12.5px; color: var(--hero-ink-2); line-height: 1.25; padding-bottom: 4px; }
.m1-orange .full { margin-top: 10px; font-weight: 600; font-size: 15px; }
.m1-orange .bank { display: grid; gap: 4px; margin-top: 8px; font-size: 12.5px; color: var(--hero-ink-2); }
.m1-orange .bank span { display: inline-flex; align-items: center; gap: 6px; }
.m1-orange .bank b { color: var(--hero-ink); font-weight: 600; }

/* kartu catatan bahan baku */
.m1-notes { display: flex; flex-direction: column; }
.m1-notes .card-head h3, .m1-map .card-head h3 { line-height: 1.15; }
.note-stack { position: relative; margin: 6px 0 16px; padding-top: 12px; cursor: pointer; }
.ns-back { position: absolute; left: 14px; right: 14px; top: 0; height: 40px; border-radius: 18px 18px 0 0; background: #151515; }
html[data-theme=lavender] .ns-back { background: #2B2550; }
.ns-front { position: relative; display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 28px -18px rgba(0,0,0,.35); }
.ns-front .tag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--card-2); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.ns-front .tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ns-front .tag.bad { background: var(--bad-soft); color: var(--bad); }
.ns-front b { font-size: 15px; font-weight: 600; }
.ns-front p { font-size: 12.5px; color: var(--ink-3); }
.ns-front small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.ns-list { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 9px; }
.ns-list li { display: grid; grid-template-columns: 1fr 64px 40px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ns-list li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-list .bar { height: 6px; }
.ns-list b { text-align: right; font-weight: 600; color: var(--ink); }

/* kartu pengingat bergaya peta */
.m1-map { display: flex; flex-direction: column; overflow: hidden; }
.m1-mapbg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--card-2); pointer-events: none; }
.m1-map > * { position: relative; }
.map-pins { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-pins button, .map-pins li.ok span { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; line-height: 1.25; border-radius: 16px; background: rgba(255,255,255,.88); border: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 500; box-shadow: 0 8px 18px -14px rgba(0,0,0,.3); }
.map-pins .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; box-sizing: border-box; flex: none; background: var(--card-2); }
.map-pins .warn .ic { background: var(--warn-soft); color: var(--warn); }
.map-pins .bad .ic { background: var(--bad-soft); color: var(--bad); }
.map-pins .info .ic { background: var(--info-soft); color: var(--info); }
.map-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 10px 10px 10px 10px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--line); margin-top: 18px; }
.map-foot .orb { width: 46px; height: 46px; border-radius: 50%; background: var(--hero-bg); color: var(--hero-ink); display: grid; place-items: center; flex: none; }
.map-foot b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.map-foot small { color: var(--ink-3); font-size: 11.5px; line-height: 1.2; }
.go-c { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; background: #151515; color: #fff; display: grid; place-items: center; flex: none; }

/* jadwal kolam bergaya kalender + popover gelap */
.m1-sched { overflow: hidden; }
.m1-days { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.m1-days .day { flex: 1; text-align: center; height: 36px; display: grid; place-items: center; border-radius: 999px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; padding: 0 8px; }
.m1-days .day.on { background: #151515; color: #fff; font-weight: 600; }
.m1-days .nav-a { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.m1-days .nav-a .ic { width: 15px; height: 15px; }
.ks { display: grid; gap: 4px; padding-right: min(36%, 250px); }
.ks-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 54px; gap: 12px; align-items: center; height: 38px; border-radius: 12px; padding: 0 4px; }
.ks-row:hover { background: var(--hover); }
.ks-n { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ks-track { position: relative; height: 100%; display: flex; align-items: center; }
.ks-track::before { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
.ks-track em { font-style: normal; font-size: 12px; color: var(--ink-3); background: var(--card); position: relative; padding-right: 8px; }
.ks-fill { position: absolute; left: 0; height: 6px; border-radius: 6px; background: var(--accent-soft); }
.ks-s { position: absolute; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--accent-soft); }
.ks-end { position: absolute; right: -2px; width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--line-2); background: var(--card); }
.ks-dot { position: absolute; min-width: 34px; height: 30px; padding: 0 6px; margin-left: -17px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; box-shadow: 0 6px 14px -6px var(--accent); z-index: 1; }
.ks-row.st-panen .ks-dot { background: #151515; box-shadow: none; }
.ks-e { text-align: right; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.m1-pop { position: absolute; right: 20px; bottom: 20px; width: min(34%, 240px); padding: 18px; border-radius: 24px; background: #18181A; color: #fff; box-shadow: 0 24px 40px -20px rgba(0,0,0,.55); display: grid; gap: 12px; }
html[data-theme=lavender] .m1-pop { background: #221D44; }
.pop-h { display: flex; justify-content: space-between; align-items: flex-start; }
.pop-h b { font-size: 17px; font-weight: 500; line-height: 1.2; }
.pop-h .x { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.pop-h .x .ic { width: 15px; height: 15px; }
.pop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pop-tags span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pop-tags .ic { width: 13px; height: 13px; }
.t-or { background: var(--accent); color: #fff; }
.t-tm { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.m1-pop p { font-size: 13px; color: rgba(255,255,255,.7); }
.pop-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(255,255,255,.6); }
.pop-plus { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #151515; display: grid; place-items: center; flex: none; }

/* ---------- kolam ---------- */
.m1-kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.m1-kcard { display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.m1-kcard:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.kc-top { display: flex; justify-content: space-between; gap: 10px; }
.kc-top h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.kc-top p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.kc-go { width: 36px; height: 36px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; flex: none; }
.kc-go .ic { width: 16px; height: 16px; }
.kc-day { margin-top: auto; display: flex; align-items: baseline; gap: 6px; }
.kc-day b { font-size: 46px; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.kc-day b.sm { font-size: 26px; letter-spacing: -.02em; }
.kc-day span { color: var(--ink-3); font-size: 14px; }
.kc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kc-date { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.kc-date i { width: 30px; height: 30px; border-radius: 9px; background: #151515; color: #fff; display: grid; place-items: center; }
.kc-date .ic { width: 14px; height: 14px; }
.kc-av { display: flex; }
.kc-av i { font-style: normal; height: 28px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; background: var(--card-2); font-size: 11px; font-weight: 600; color: var(--ink-2); box-shadow: 0 0 0 2px var(--card); }
.kc-av i + i { margin-left: -6px; }
.m1-kcard.is-hot { background: var(--hero-bg); color: var(--hero-ink); }
.m1-kcard.is-hot p, .m1-kcard.is-hot .kc-day span, .m1-kcard.is-hot .kc-date { color: var(--hero-ink-2); }
.m1-kcard.is-hot .kc-go { background: rgba(255,255,255,.22); }
.m1-kcard.is-hot .bar { background: rgba(255,255,255,.3); }
.m1-kcard.is-hot .bar i { background: #fff; }
.m1-kcard.is-hot .kc-av i { background: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
html[data-theme=lavender] .m1-kcard.tone-0 { background: #DCD5FA; }
html[data-theme=lavender] .m1-kcard.tone-1 { background: #D3E3FA; }
html[data-theme=lavender] .m1-kcard.tone-2 { background: #D8F0D1; }
html[data-theme=lavender] .m1-kcard .kc-go, html[data-theme=lavender] .m1-kcard .kc-av i { background: rgba(255,255,255,.6); box-shadow: none; }
html[data-theme=lavender] .m1-kcard .bar { background: rgba(255,255,255,.65); }
html[data-theme=lavender] .m1-kcard.tone-1 .bar i { background: #3D7BE0; }
html[data-theme=lavender] .m1-kcard.tone-2 .bar i { background: #3E9B4F; }
html[data-theme=lavender] .m1-kcard.is-hot { outline: 2px solid #151515; outline-offset: -2px; }
.gantt { position: relative; display: grid; gap: 6px; padding-top: 26px; }
.gt-months { position: absolute; top: 0; left: 64px; right: 0; height: 20px; }
.gt-months span { position: absolute; font-size: 11.5px; color: var(--ink-3); transform: translateX(-50%); }
.gt-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
.gt-row b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gt-track { position: relative; height: 30px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--card-2) 0 1px, transparent 1px 40px), var(--bar-bg); }
.gt-bar { position: absolute; top: 5px; height: 20px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.gt-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.gt-bar.done { background: var(--card-2); }
.gt-bar.done i { background: #151515; opacity: .75; }
.gt-today { position: absolute; top: 18px; bottom: -4px; width: 2px; background: #151515; border-radius: 2px; }
.gt-today em { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 600; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: #151515; color: #fff; }

/* ---------- login ---------- */
html[data-model=m1] .login { background: var(--bg); padding: 14px; gap: 14px; }
html[data-model=m1] .login-art { border-radius: 36px; }
html[data-model=m1] .login-card { border-radius: 36px; background: var(--shell); }
html[data-model=m1] .login-art .logo-mark { --logo-eye: #E5561B; }

/* ---------- responsif ---------- */
@media (max-width: 1380px) {
  .m1-tabs a { padding: 0 14px; }
  .m1-modes { display: none; }
}
@media (max-width: 1180px) {
  .m1-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m1-grid .span2, .m1-grid .span3 { grid-column: 1 / -1; }
  .m1-kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m1-catat span { display: none; }
  .m1-catat { width: 50px; padding: 0; justify-content: center; }
  .m1-tabs a { padding: 0 12px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .m1-top { flex-wrap: wrap; }
  .m1-tabs { order: 3; width: 100%; margin: 0; }
}
@media (max-width: 759px) {
  .m1-shell, html[data-theme=lavender] .m1-shell { margin: 0; border-radius: 0; padding: 0 14px 20px; min-height: 100vh; }
  .m1-top { padding: 12px 0 10px; border-radius: 0; }
  .m1-tabs, .m1-catat, .m1-actions a.icon-btn { display: none; }
  .m1-brand { height: 48px; }
  .m1-actions { margin-left: auto; }
  .m1-actions .icon-btn, .m1-avatar { width: 46px; height: 46px; }
  .m1-switch, .m1-rail { display: none; }
  .m1-hero { margin: 4px 0 18px; }
  .m1-greet h1 { font-size: 30px; }
  .m1-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
  .m1-stat:first-child { grid-column: 1 / -1; padding: 16px; border-radius: 22px; background: var(--card); }
  .m1-stat b { font-size: 30px; }
  .m1-stat:not(:first-child) b { font-size: 24px; }
  .m1-stat .ms-row { flex-wrap: wrap; gap: 4px 8px; }
  .m1-grid, .m1-kgrid { grid-template-columns: minmax(0, 1fr); }
  .mp-in { grid-template-columns: 1fr; }
  .mp-big b { font-size: 56px; }
  .app-pill { margin-left: 0; width: 100%; }
  .m1-orange { min-height: 250px; }
  .ks { padding-right: 0; }
  .m1-pop { position: relative; right: auto; bottom: auto; width: auto; margin-top: 14px; }
  .m1-kcard { min-height: 180px; }
}
