/* CMS internal — gaya dashboard selaras Nova (palet proyek: navy/teal/ivory). Tidak mengubah perilaku. */
:root {
  color-scheme: light;
  --ink: #10284a;
  --ink-2: #173660;
  --muted: #3f536c;
  --bg: #f8f5ee;
  --card: #ffffff;
  --line: #d3dfe1;
  --line-strong: #5d7280;
  --brand: #06737f;
  --brand-dark: #055a64;
  --brand-ink: #ffffff;
  --danger: #a31515;
  --danger-bg: #fdecec;
  --ok: #0b5a2e;
  --ok-bg: #e1f1e8;
  --info-bg: #e8f1f8;
  --warn-bg: #fff4dc;
  --radius: 20px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; background: var(--bg); }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h1 { font-size: 1.25rem; }
h2 { font-size: 1.6rem; letter-spacing: -0.035em; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
.sub { font-weight: 400; color: var(--muted); font-size: 0.95rem; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; border-radius: 999px; z-index: 10; }
.skip:focus { top: 0.5rem; }
:focus-visible { outline: 3px solid #0b3fa8; outline-offset: 2px; }

/* ---- shell ---- */
.app { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); min-height: 100vh; }
.col { min-width: 0; display: flex; flex-direction: column; padding: 0 1.75rem 1.5rem; max-width: 84rem; width: 100%; }
.rail { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; background: var(--ink); color: #fff; padding: 1.25rem 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; isolation: isolate; }
.rail :focus-visible { outline-color: #fff; }
.rail-ornament { position: absolute; inset: 0; z-index: -1; opacity: 0.06; pointer-events: none; background-color: #fff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='black' stroke-width='1.2'%3E%3Cellipse cx='24' cy='12' rx='6' ry='12'/%3E%3Cellipse cx='24' cy='36' rx='6' ry='12'/%3E%3Cellipse cx='12' cy='24' rx='12' ry='6'/%3E%3Cellipse cx='36' cy='24' rx='12' ry='6'/%3E%3Cpath d='M24 20l4 4-4 4-4-4z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='black' stroke-width='1.2'%3E%3Cellipse cx='24' cy='12' rx='6' ry='12'/%3E%3Cellipse cx='24' cy='36' rx='6' ry='12'/%3E%3Cellipse cx='12' cy='24' rx='12' ry='6'/%3E%3Cellipse cx='36' cy='24' rx='12' ry='6'/%3E%3Cpath d='M24 20l4 4-4 4-4-4z' fill='black'/%3E%3C/svg%3E"); }
.brand { display: flex; align-items: center; gap: 0.75rem; padding: 0.25rem 0.5rem 1rem; }
.brand-logo { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font: 800 0.9rem 'Plus Jakarta Sans', Inter, sans-serif; flex: none; }
.brand-text strong { display: block; font: 800 1rem/1.1 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -0.03em; }
.brand-text small { display: block; margin-top: 0.15rem; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.78); }
.session { margin: auto 0 0; padding: 0.9rem 0.5rem 0; border-top: 1px solid rgb(255 255 255 / 0.18); font-size: 0.85rem; color: rgb(255 255 255 / 0.85); overflow-wrap: anywhere; }

.topbar { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding: 1.1rem 0 0.75rem; }
.topbar h1 { margin: 0; }
.pill-note { display: inline-flex; padding: 0.15rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--info-bg); font-size: 0.8rem; font-weight: 600; color: #1b4d7a; }
.notice { margin: 0 0 0.6rem; padding: 0.6rem 1rem; background: var(--warn-bg); border: 1px solid #ecd6aa; border-radius: 14px; font-size: 0.92rem; color: #4a2c00; }
.statusbar { margin: 0 0 1rem; padding: 0.5rem 1rem; font-size: 0.92rem; color: #1e3a56; background: var(--info-bg); border: 1px solid #bcd3ea; border-radius: 14px; }
.statusbar:empty { display: none; }
.strip { height: 10px; margin-top: 1.5rem; color: var(--brand); opacity: 0.4; background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='10' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 5h9M23 5h9'/%3E%3Cpath d='M16 1l7 4-7 4-7-4z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='10' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 5h9M23 5h9'/%3E%3Cpath d='M16 1l7 4-7 4-7-4z' fill='black'/%3E%3C/svg%3E"); }

/* ---- sidebar ---- */
.sidebar { background: transparent; border: 0; padding: 0; }
.side-group { margin: 0 0 0.35rem; }
.side-group h2 { font: 600 0.7rem Inter, system-ui, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.72); margin: 0.9rem 0.6rem 0.25rem; }
.side-group ul { list-style: none; padding: 0; margin: 0 0 0.35rem; }
.side-item { width: 100%; min-height: 44px; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 0.45rem 0.8rem; font: inherit; font-weight: 500; color: rgb(255 255 255 / 0.92); cursor: pointer; overflow-wrap: anywhere; transition: background-color 0.2s, color 0.2s; }
.side-item:hover { background: rgb(255 255 255 / 0.12); }
.side-item[aria-current='true'] { background: #fff; color: var(--ink); font-weight: 600; }
.side-group .btn { width: 100%; justify-content: center; margin-top: 0.15rem; background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.5); }
.side-group .btn:hover:not(:disabled) { background: rgb(255 255 255 / 0.14); }
.chip { display: inline-block; margin-left: 0.5rem; padding: 0 0.5rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe0cb; font-size: 0.78rem; font-weight: 600; }

/* ---- konten utama ---- */
main { background: var(--card); border: 1px solid rgb(211 223 225 / 0.9); border-radius: var(--radius); padding: 1.5rem 1.75rem 2rem; min-width: 0; box-shadow: 0 1px 2px rgb(16 40 74 / 0.04); }
main:focus { outline: none; }
main > h2:first-child { font-size: 1.9rem; }
.path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; margin: 0 0 0.75rem; }

/* ---- tombol pil ---- */
.btn { min-height: 44px; padding: 0.5rem 1.15rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), background-color 0.2s, color 0.2s; }
.btn:hover:not(:disabled) { background: var(--ok-bg); transform: scale(1.03); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--brand-ink); border-color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); }
.btn-quiet { border-color: var(--line); color: var(--ink); font-weight: 500; }
.btn-small { font-size: 0.92rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.75rem 0; padding: 0.6rem 0; }
.toolbar [hidden] { display: none; }
.dirty { color: var(--danger); font-weight: 600; }
.clean { color: var(--ok); font-weight: 600; }

.banner { border-radius: 14px; padding: 0.7rem 1rem; margin: 0.75rem 0; border: 1px solid var(--line); background: var(--info-bg); }
.banner p { margin: 0 0 0.35rem; }
.banner ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.banner-error { background: var(--danger-bg); border-color: var(--danger); color: #5c0b0b; }
.banner-success { background: var(--ok-bg); border-color: var(--ok); color: #073d1f; }
.banner a { color: inherit; }
.banner[hidden] { display: none; }

/* ---- formulir ---- */
form { margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1.1rem 1.1rem; margin: 1.1rem 0; min-width: 0; background: #fff; }
legend { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-weight: 700; padding: 0 0.5rem; }
.field { margin: 0.75rem 0; min-width: 0; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; min-height: 44px; font-weight: 600; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; flex: none; accent-color: var(--brand); }
input[type='text'], input[type='url'], input[type='date'], input[type='file'], select, textarea { width: 100%; min-height: 44px; padding: 0.55rem 0.8rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; }
textarea { resize: vertical; }
input[readonly], select:disabled { background: #eef2f3; color: var(--muted); }
[aria-invalid='true'] { border-color: var(--danger); border-width: 2px; }
.help { color: var(--muted); font-size: 0.9rem; margin: 0.25rem 0 0; }
.field-error { color: var(--danger); font-weight: 600; font-size: 0.92rem; margin: 0.25rem 0 0; }
.field-error[hidden] { display: none; }
.bi-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.list-item { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 0.5rem 0.75rem 0.75rem; margin: 0.75rem 0; }
.internal { background: #f6f8f8; border-style: dashed; }
.future { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border: 1px dashed #c9a36a; border-radius: 16px; background: var(--warn-bg); }
.future p { margin: 0; }
.report details { margin: 0.5rem 0; }
.report summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.asset-facts img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }

@media (max-width: 64rem) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; overflow: visible; }
  .col { padding: 0 1rem 1rem; }
}
@media (max-width: 52rem) {
  .bi-cols { grid-template-columns: minmax(0, 1fr); }
  main { padding: 1rem 1rem 1.5rem; }
  .toolbar .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } .btn:hover:not(:disabled) { transform: none; } }

/* ---- panel pemeriksaan dan rilis: pipeline ---- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; list-style: none; padding: 0; margin: 1rem 0; }
.steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem 1.1rem; min-height: 6.5rem; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: var(--card); font-weight: 600; }
.steps li.done { color: var(--ok); border-color: #bfe0cb; background: var(--ok-bg); }
.steps li.now { color: var(--brand-ink); background: var(--ink); border-color: var(--ink); box-shadow: 0 20px 40px -26px rgb(16 40 74 / 0.6); }
.step-n { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); font: 800 0.95rem 'Plus Jakarta Sans', Inter, sans-serif; }
.steps li.done .step-n { background: var(--ok); color: #fff; border-color: var(--ok); }
.steps li.now .step-n { background: #fff; color: var(--ink); }
.phase { font: 700 1.15rem 'Plus Jakarta Sans', Inter, sans-serif; margin: 0.25rem 0 0.75rem; }
.phase-blocked, .phase-stale, .phase-state_invalid, .phase-not_configured { color: var(--danger); }
.phase-published { color: var(--ok); }
.facts { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0.5rem 0 1rem; padding: 1rem 1.1rem; background: #f6f8f8; border: 1px solid var(--line); border-radius: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88rem; overflow-wrap: anywhere; }
.rollback { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px dashed #c9a36a; background: var(--warn-bg); border-radius: 20px; }
.rollback select { max-width: 100%; min-height: 44px; font: inherit; }
@media (max-width: 64rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .facts { grid-template-columns: 1fr; } .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---- tampilan bahasa dan pratinjau di halaman ---- */
.lang-view { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin: 0.75rem 0; padding: 0.25rem; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-btn { min-height: 40px; padding: 0.3rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.lang-btn:hover { color: var(--ink); background: var(--bg); }
.lang-btn[aria-pressed='true'] { background: var(--ink); color: #fff; }
.lang-missing { margin: 0 0.75rem 0 0.5rem; font-size: 0.85rem; font-weight: 600; color: #7a4a0c; }
.lang-missing.lang-ok { color: var(--ok); }
#editor-form[data-lang-view='id'] [data-lang='en'], #editor-form[data-lang-view='en'] [data-lang='id'] { display: none; }
#editor-form[data-lang-view='id'] .bi-cols, #editor-form[data-lang-view='en'] .bi-cols { grid-template-columns: minmax(0, 1fr); }

.editor-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.editor-col { min-width: 0; }
.preview-panel { border: 1px solid var(--line); border-radius: 16px; background: #f6f8f8; padding: 0.4rem 1rem 1rem; align-self: start; order: -1; }
.preview-panel summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 700 1rem 'Plus Jakarta Sans', Inter, sans-serif; }
.preview-frame { display: block; width: 100%; height: 26rem; margin-top: 0.6rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
@media (min-width: 90rem) {
  .editor-split { grid-template-columns: minmax(0, 1fr) 24rem; }
  .preview-panel { order: 0; position: sticky; top: 1rem; }
  .preview-frame { height: calc(100vh - 12rem); min-height: 22rem; }
}

/* ---- halaman Ringkasan ---- */
.ov-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.ov-hero { grid-column: span 8; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; border-radius: 24px; padding: 1.5rem 1.6rem; isolation: isolate; }
.ov-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.07; background-color: #fff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='black' stroke-width='1.2'%3E%3Cellipse cx='24' cy='12' rx='6' ry='12'/%3E%3Cellipse cx='24' cy='36' rx='6' ry='12'/%3E%3Cellipse cx='12' cy='24' rx='12' ry='6'/%3E%3Cellipse cx='36' cy='24' rx='12' ry='6'/%3E%3Cpath d='M24 20l4 4-4 4-4-4z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='black' stroke-width='1.2'%3E%3Cellipse cx='24' cy='12' rx='6' ry='12'/%3E%3Cellipse cx='24' cy='36' rx='6' ry='12'/%3E%3Cellipse cx='12' cy='24' rx='12' ry='6'/%3E%3Cellipse cx='36' cy='24' rx='12' ry='6'/%3E%3Cpath d='M24 20l4 4-4 4-4-4z' fill='black'/%3E%3C/svg%3E"); }
.ov-hero h3 { font-size: 1.7rem; letter-spacing: -0.04em; margin: 0.25rem 0 0.9rem; }
.ov-eyebrow { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #bfe3e8; }
.ov-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; list-style: none; padding: 0; margin: 0 0 0.9rem; }
.ov-steps li { display: grid; gap: 0.1rem; padding: 0.65rem 0.8rem; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 16px; font-size: 0.85rem; }
.ov-steps li b { font: 800 1.25rem 'Plus Jakarta Sans', Inter, sans-serif; }
.ov-steps li.done { background: rgb(225 241 232 / 0.16); }
.ov-steps li.now { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; }
.ov-note { margin: 0 0 0.9rem; color: rgb(255 255 255 / 0.85); font-size: 0.92rem; }
.ov-btn { background: #fff; color: var(--ink); border-color: #fff; }
.ov-btn:hover:not(:disabled) { background: var(--ok-bg); }
.ov-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.25rem 1.4rem; min-width: 0; }
.ov-card h3 { margin-bottom: 0.75rem; }
.ov-grid > .ov-card:not(.ov-wide) { grid-column: span 4; }
.ov-quick { display: grid; gap: 0.5rem; }
.ov-quick .btn { justify-content: center; }
.ov-stats { grid-column: span 12; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.stat { display: grid; gap: 0.15rem; padding: 1.1rem 1.25rem; border-radius: 22px; border: 1px solid var(--line); background: #fff; }
.stat-sky { background: var(--info-bg); border-color: #bcd3ea; }
.stat-sand { background: var(--warn-bg); border-color: #ecd6aa; }
.stat-mint { background: var(--ok-bg); border-color: #bfe0cb; }
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stat-value { font: 800 2.4rem/1 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -0.05em; color: var(--ink); }
.stat-note { color: var(--muted); font-size: 0.9rem; }
.ov-wide { grid-column: span 8; }
.ov-list { list-style: none; padding: 0; margin: 0; }
.ov-list li { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.ov-list li:first-child { border-top: 0; }
.ov-list strong { display: block; }
.ov-sub { display: block; font-size: 0.88rem; color: var(--muted); }
.ov-types { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.ov-types li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 64rem) {
  .ov-hero, .ov-wide, .ov-grid > .ov-card:not(.ov-wide) { grid-column: span 12; }
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) { .ov-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-stats { grid-template-columns: minmax(0, 1fr); } }

/* Detail teknis dilipat agar admin non-teknis tidak melihat istilah Git/kode (TH-006b). */
.tech-details { margin: 0.5rem 0 1rem; font-size: 0.9rem; color: var(--muted, #4a5a6a); }
.tech-details > summary { cursor: pointer; }
