:root {
  --navy: #102a53;
  --midnight: #091b38;
  --blue: #1e4579;
  --ink: #152941;
  --muted: #526279;
  --paper: #fcfbf8;
  --line: #d8dfe8;
  --pale: #f1f5fa;
  --gold: #edcd90;
  --bronze: #785923;
  --sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Baskerville", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 5vw, 5rem);
  --width: 1440px;
  --public-header-height: 79px;
  --header-clearance: env(safe-area-inset-top, 0px);
  --shadow: 0 2px 5px #102a5305, 0 14px 32px -22px #102a5338;
  font: 100%/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body, h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
h3 { font-size: 1.12rem; letter-spacing: -.012em; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
body {
  min-width: 0;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html:has(.publicmain) { scroll-padding-top: var(--public-header-height); }
img { max-width: 100%; }
button, summary { touch-action: manipulation; }
:where(h1,h2,h3,p,small,dd,dt) { overflow-wrap: anywhere; }
button, a, input, textarea, select, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #4386c5; }
small, .muted, dt { color: var(--muted); }
small { font-size: .875rem; }
.prose, dd, .pagetitle h1, .herocopy h1, .pubsection h2 { overflow-wrap: anywhere; }
.prose, dd { white-space: pre-line; }
[hidden] { display: none !important; }
.icon { display: inline-block; flex: 0 0 auto; }
.skip { position: fixed; z-index: 20; top: -10rem; left: 1rem; padding: .75rem 1rem; background: white; color: var(--navy); }
.skip:focus { top: calc(.5rem + var(--header-clearance)); left: max(1rem, env(safe-area-inset-left, 0px)); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; line-height: 1.15; min-width: 0; }
.brand > span { min-width: 0; overflow-wrap: anywhere; }
.brand:hover { text-decoration: none; }
.brandmark { width: 45px; height: 45px; flex-shrink: 0; }
.brand b { display: block; font-family: var(--sans); font-size: 1.13rem; letter-spacing: -.038em; }
.brand small { display: block; margin-top: .23rem; font-size: .72rem; font-weight: 500; letter-spacing: .011em; }
.headinner, .footer > div {
  width: min(100%, var(--width)); margin-inline: auto; padding-inline: var(--gutter);
}
.sitehead { padding-top: var(--header-clearance); position: sticky; top: 0; z-index: 8; background: var(--paper); border-bottom: 1px solid var(--line); }
.headinner { position: relative; min-height: 78px; display: flex; align-items: center; gap: clamp(1rem,3vw,3.5rem); }
.publicnav { display: flex; align-items: center; justify-content: center; min-width: 0; flex-wrap: wrap; gap: .3rem; margin-left: auto; }
.publicnav a { position: relative; display: flex; align-items: center; max-width: 21ch; min-height: 44px; padding: .55rem .8rem; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.publicnav a:hover, .publicnav [aria-current] { color: var(--navy); }
.publicnav a:hover { background: var(--pale); border-radius: 5px; }
.publicnav [aria-current]::after { content: ""; position: absolute; inset: auto .8rem .12rem; height: 2px; background: #b28a48; }
.menu-toggle { display: inline-flex; gap: .35rem; align-items: center; justify-content: center; min-height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: .5rem .7rem; font-weight: 650; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; width: fit-content; max-width: 100%; min-height: 44px; padding: .65rem 1.15rem; font-size: .94rem; line-height: 1.35; font-weight: 650; text-align: center; text-decoration: none; border-radius: 10px; border: 1px solid transparent; color: white; background: var(--navy); cursor: pointer; transition: background-color .16s, box-shadow .16s; }
.btn, .textlink { overflow-wrap: anywhere; }
.btn:hover { text-decoration: none; background: var(--blue); }
.btn .icon { width: 17px; height: 17px; }
.btn.secondary { color: var(--navy); background: white; border-color: #b9c6d4; }
.btn.secondary:hover { background: var(--pale); }
.btn.sand { background: var(--gold); color: #14243b; }
.btn.sand:hover { background: #ffe0a4; }
.btn.ghost, .btn.quiet { color: #f5f7fa; background: transparent; border-color: #718299; }
.btn.ghost:hover, .btn.quiet:hover { background: #2a405d; }
.btn.danger { color: #962e2e; background: #fff7f5; border-color: #e4c2bc; }
.btn.danger:hover { background: #ffeae6; }
.loginbtn { flex-shrink: 0; border-radius: 8px; padding-inline: 1.15rem; box-shadow: 0 3px 8px #102a5314; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.eyebrow { text-transform: uppercase; font: 700 .7rem/1.35 var(--sans); letter-spacing: .16em; }
.eyebrow.accent, .eyebrow.bright { display: flex; align-items: center; gap: .72rem; color: var(--bronze); }
.eyebrow.bright::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; }
.eyebrow.bright { color: #f3d396; }
.eyebrow.accent .icon { width: 18px; height: 18px; }
/* Beranda: ilustrasi dibingkai seperti cetakan pada bidang navy. */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fffdf8;
  background: radial-gradient(ellipse at 86% 20%, #264976 0%, transparent 56%),
              linear-gradient(114deg, var(--midnight), #142e55 68%, #173660);
  border-bottom: 3px solid #c9a76b;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 56rem; height: 34rem; left: -28rem; bottom: -28rem; transform: rotate(14deg);
  background: repeating-radial-gradient(ellipse at 50% 50%, transparent 0 11px, #c2d0e91c 12px, transparent 13px 19px);
}
.hero-inner {
  width: min(100%, var(--width)); margin-inline: auto;
  padding: clamp(2.7rem, 4.4vw, 4.6rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.12fr);
  gap: clamp(2rem, 5.6vw, 6rem); align-items: center;
}
.herocopy { min-width: 0; }
.herocopy h1 { margin: 1.2rem 0; font-size: clamp(3.3rem,6.25vw,6.25rem); line-height: .99; letter-spacing: -.052em; text-wrap: balance; }
.herocopy h1 em { display: block; color: var(--gold); font-weight: 400; }
.herocopy .prose { max-width: 46ch; font-size: clamp(.98rem,1.12vw,1.1rem); color: #dbe4f1; line-height: 1.7; }
.herocopy .actions { margin-top: clamp(1.3rem,2.3vw,2.15rem); gap: .7rem; }
.herocopy .actions:empty { display: none; }
.herocopy .btn { border-radius: 7px; padding-inline: 1.2rem; }
.herocopy .btn.ghost { border-color: #8092aa; color: #f1f4fb; }
.herocopy .btn.ghost:hover { background: #264671; }
.heroimage {
  position: relative; isolation: isolate; min-width: 0; margin: 0;
  padding: clamp(.35rem,.65vw,.65rem); border: 1px solid #dfc59b8c; border-radius: 3px;
  background: #faf5e8; box-shadow: 0 16px 40px #040f2759;
}
.heroimage img { display: block; width: 100%; height: auto; aspect-ratio: 1.64; object-fit: cover; object-position: center 48%; }
.heroimage figcaption {
  display: flex; align-items: center; gap: .45rem; padding: .45rem .3rem .05rem;
  color: #3f4f63; font-size: .76rem; font-weight: 600; letter-spacing: .02em;
}
.heroimage figcaption::after { content: ""; flex: 1; height: 1px; margin-left: .45rem; background: #d9cbb2; }
.heroimage figcaption .icon { width: 15px; height: 15px; color: var(--bronze); }
.pubsection { width: min(calc(100% - var(--gutter) * 2), calc(var(--width) - var(--gutter) * 2)); margin-inline: auto; padding-block: clamp(2.8rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.pubsection .eyebrow { margin-bottom: .85rem; }
.pubsection h2 { margin-bottom: .7rem; }
.pubsection .prose { color: #43546b; line-height: 1.8; max-width: 72ch; }
.about { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.24fr); gap: clamp(1.4rem, 5.8vw, 6rem); align-items: center; }
.about h2 { margin: 0; }
.about:not(.contact) .eyebrow .icon, .gallery-section .eyebrow .icon { box-sizing: content-box; padding: .46rem; border: 1px solid #d8c9ac; border-radius: 50%; }
.about:not(.contact) > div + div { padding-left: clamp(1.4rem, 3vw, 3.15rem); border-left: 2px solid #d9c699; }
.gallery-section { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.24fr); column-gap: clamp(1.4rem,5.8vw,6rem); align-items: start; }
.gallery-section > .eyebrow { grid-column: 1; }
.gallery-section > h2 { grid-column: 1; }
.gallery-section > .prose { grid-column: 1; }
.gallery-empty { grid-column: 2; grid-row: 1 / span 3; display: flex; align-items: center; gap: 1.1rem; align-self: stretch; background: linear-gradient(120deg,#f5f7fa,#eef2f7); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.1rem,2.8vw,2.4rem); color: #495c70; }
.gallery-empty .icon { padding: 11px; width: 50px; height: 50px; border: 1px solid #d2dce6; border-radius: 12px; background: #fafbfd; color: #516b87; }
.photogrid, .summarygrid { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(235px,100%),1fr)); gap: 1.2rem; }
.photogrid { grid-column: 1 / -1; }
.photogrid figure, .summarygrid article { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.photogrid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photogrid figcaption, .summarygrid article { padding: 1.25rem; }
.photogrid figure, .summarygrid article { box-shadow: var(--shadow); }
.photogrid figure > a { display: block; overflow: hidden; }
.photogrid img { transition: transform .25s ease; }
.photogrid a:hover img { transform: scale(1.025); }
.photogrid h3, .summarygrid h3 { margin: .25rem 0 .35rem; }
.pubsection.contact { position: relative; padding: clamp(1.6rem,4vw,4.3rem); background: linear-gradient(112deg,var(--midnight),#1b3b67); color: #fffcf5; border: 1px solid #294971; border-radius: 14px; margin-block: clamp(2rem,4vw,4.2rem); }
.contact h2 { margin-bottom: .6rem; }
.contact .eyebrow { color: #eac888; }
.contact .prose { color: #dce5f2; }
.contact .empty { color: #f0f3e9; background: #ffffff0c; border: 1px solid #ffffff40; }
.contact dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .8rem 1rem; align-items: baseline; }
.contact dl dt { color: #dfc89e; }
.contact a { color: #fff; }
.contact dd { margin: 0; }
.contact dt, .facts dt { font-size: .86rem; font-weight: 650; }
.empty { color: var(--muted); background: var(--pale); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
/* Tinggi minimum mengikuti ruang di bawah header. Konten panjang tetap mengalir. */
.publicmain > section {
  min-height: calc(100vh - var(--public-header-height));
  min-height: calc(100dvh - var(--public-header-height));
}
.publicmain > .hero { display: grid; align-items: center; }
.publicmain > .about, .publicmain > .gallery-section { align-content: center; }
.publicmain > .contact { margin-block: 0; }
.gallery-section > nav.actions { grid-column: 1 / -1; margin-top: 1rem; }
.publicmain > .empty { margin: 2rem var(--gutter); }
.footer { background: var(--midnight); color: white; }
.footer > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.7rem; }
.footer .brand, .sidebar .brand { color: #f8f9fc; }
.footer .brand small, .sidebar .brand small, .profile small { color: #becbdb; }
.backtop { color: #e0e8f0; text-decoration: none; font-size: .88rem; }
.backtop span { padding-left: .35rem; color: var(--gold); }

.office { display: grid; grid-template-columns: clamp(215px,18.5vw,278px) minmax(0,1fr); min-height: 100vh; background: #f2f5f9; }
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; overflow-y: auto;
  background: linear-gradient(165deg, var(--midnight), #142f58 78%, #19385e); color: #f1f4fb;
  padding: max(1.7rem, env(safe-area-inset-top, 0px)) 1rem 1rem; display: flex; flex-direction: column; gap: 1rem;
}
.sidetop { padding: .2rem .3rem 1.15rem; border-bottom: 1px solid #ffffff22; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sidebar .brand { gap: .55rem; }
.sidebar .brandmark { width: 40px; height: 40px; }
.sidebar .brand b { font-size: 1.03rem; }
.sidebar .brand small { font-size: .66rem; }
.side-label { margin: .85rem .75rem 0; color: #d5b880; }
.workspace-menu { flex: 1 0 auto; display: flex; flex-direction: column; gap: inherit; }
.sidebar nav { display: grid; gap: .32rem; }
.sideitem { display: flex; align-items: center; gap: .72rem; min-height: 45px; padding: .64rem .83rem; border-radius: 10px; text-decoration: none; font-size: .93rem; font-weight: 560; color: #d8e2ef; }
.sideitem .icon { color: #a9bfdd; }
.sideitem:hover, .sideitem.selected { background: #ffffff10; color: white; text-decoration: none; }
.sideitem.selected { background: #294971; box-shadow: inset 3px 0 var(--gold); }
.sideitem.selected .icon { color: #ecd39a; }
.profile { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .6rem .7rem; margin-top: auto; border-top: 1px solid #ffffff26; padding: 1rem .3rem 0; overflow-wrap: anywhere; }
.profile-icon, .period-symbol, .stat-icon { display: inline-grid; place-items: center; flex: none; }
.profile-icon { width: 38px; height: 38px; border: 1px solid #ffffff30; border-radius: 12px; background: #ffffff0d; color: #eed49c; }
.profile-info { min-width: 0; }
.profile b, .profile small { display: block; }
.profile small { margin-top: .1rem; color: #cbd8e9; }
.profile .form { grid-column: 1 / -1; }
.profile .btn { width: 100%; min-height: 44px; font-size: .87rem; }
.work { width: 100%; min-width: 0; max-width: 1480px; margin: 0 auto; padding: clamp(1.35rem,3.2vw,3.4rem); }
.pagetitle {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 0 1.4rem; padding: .3rem 0 1.45rem; border-bottom: 1px solid #cdd6e2;
}
.pagetitle::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 3.2rem; height: 3px; background: #bc9758; }
.pagetitle > div { min-width: 0; }
.pagetitle h1 { color: var(--navy); font-size: clamp(2.2rem,3.7vw,3.65rem); line-height: 1.08; }
.pagetitle p { color: var(--muted); margin-top: .55rem; max-width: 74ch; }
.pagetitle > .btn { flex: none; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.1rem,2.15vw,2.1rem); margin-bottom: 1.15rem; min-width: 0; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.78rem; margin-bottom: 1rem; }
.first-period { display: flex; gap: 1.25rem; align-items: center; background: linear-gradient(120deg,#f7f9fd,#fff 75%); border-color: #d2dce9; }
.period-symbol { width: 3.5rem; height: 3.5rem; background: #e6edf7; color: var(--blue); border-radius: 13px; }
.period-symbol .icon { width: 27px; height: 27px; }
.first-period h2 { margin-bottom: .2rem; }
.first-period p { color: var(--muted); }
.first-period > .btn { margin-left: auto; }
.panel p + .actions, .panel .muted + .tablewrap, .panel .badge + .prose, .panel .prose + .facts, .panel > .form + .form, .panel > .muted + .form { margin-top: 1rem; }
.form-feedback { border-left: 3px solid #aa3e34; padding: .7rem 1rem; background: #fff2ee; color: #742c24; }
.btn:disabled { opacity: .68; cursor: wait; }
.form { display: grid; gap: 1rem; }
.form label, .toolbar label { display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; font-weight: 650; }
.form label, .toolbar label, .form fieldset, .form > *, .grid2 > * { min-width: 0; }
.form label small { font-weight: 400; }
.form input:not([type=checkbox]):not([type=hidden]), .form textarea, .form select, .toolbar input, .toolbar select { width: 100%; min-height: 44px; min-width: 0; padding: .63rem .75rem; border: 1px solid #a6b4c6; border-radius: 9px; background: white; color: var(--ink); font-weight: 400; }
.form input::placeholder, .toolbar input::placeholder { color: #627284; }
.form :where(input,select,textarea):focus, .toolbar :where(input,select):focus { border-color: #305b91; outline: 2px solid #719cce80; outline-offset: 1px; }
.form textarea { resize: vertical; }
.form input[type=file]::file-selector-button { border: 1px solid #c1cedb; border-radius: 4px; padding: .28rem .5rem; color: var(--navy); background: #f0f4f7; margin-right: .6rem; }
.form label.check { flex-direction: row; align-items: center; gap: .6rem; }
.check input { width: 18px; height: 18px; accent-color: #294e78; }
.grid2, .navedit, .facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(215px,100%),1fr)); gap: 1rem; }
.navedit { align-items: center; }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .7rem 1rem 1rem; min-width: 0; }
.form legend { padding-inline: .45rem; color: #31547a; font-weight: 650; text-transform: capitalize; }
.editor { padding: 1rem 0; border-top: 1px solid var(--line); }
.editor summary { cursor: pointer; font-weight: 650; }
.editor[open] summary { margin-bottom: .9rem; }
.thumb { max-width: min(230px, 100%); max-height: 160px; border-radius: 7px; }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.work > .toolbar { padding: 1rem 1.2rem; border-radius: 15px; background: white; border: 1px solid var(--line); }
.toolbar .textlink { margin: auto 0 auto auto; }
.tablewrap { margin-top: .75rem; overflow-x: auto; }
.tablewrap table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: .8rem .75rem; border-bottom: 1px solid #e0e6ee; font-size: .91rem; }
td { overflow-wrap: anywhere; }
th { font-size: .81rem; font-weight: 680; color: var(--navy); background: #eaf0f8; }
thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child { border-radius: 0 8px 0 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f6f8fb; }
.cell-label { display: none; }
.cell-value { min-width: 0; }
td .form { gap: .35rem; }
.textlink { font-weight: 630; text-underline-offset: .2em; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; margin-bottom: 1.15rem; }
.stat { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .65rem .3rem; align-items: start; padding: clamp(.95rem,1.4vw,1.4rem); background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.stat small { align-self: center; font-weight: 620; line-height: 1.28; color: #435572; }
.stat-icon { width: 30px; height: 30px; color: #355d92; background: #eaf0f9; border-radius: 9px; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat:nth-child(3) .stat-icon { color: #795c27; background: #f4ecd8; }
.stat:first-child { background: linear-gradient(120deg,var(--navy),#254874); color: #fffaf0; border-color: var(--navy); }
.stat:first-child small { color: #e0eaf7; }
.stat:first-child .stat-icon { background: #ffffff12; color: #ead09c; }
.stat strong { grid-column: 1 / -1; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.facts { grid-template-columns: repeat(auto-fit,minmax(min(185px,100%),1fr)); }
.facts > div { padding: .65rem .8rem; border-left: 2px solid #c8d5e6; }
.facts dd { margin: .22rem 0 0; font-weight: 600; }
.badge { display: inline-block; font-size: .83rem; font-weight: 650; padding: .22rem .6rem; border-radius: 5px; background: #ebeff4; white-space: nowrap; }
.badge.sent { background: #e6eefb; color: #264673; }
.badge.revision { background: #fff1cf; color: #714909; }
.badge.approved { background: #e1f2e7; color: #275b41; }
.notice { background: #e9f0f9; border-left: 3px solid #587ba5; padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.authpage { display: grid; place-items: center; min-height: calc(100svh - 101px); padding: clamp(1.25rem,4vw,4rem) var(--gutter); background: radial-gradient(ellipse at 78% 5%,#274977,transparent 62%),var(--midnight); }
.auth-layout { display: grid; grid-template-columns: .96fr 1.04fr; max-width: 990px; width: 100%; overflow: hidden; border: 1px solid #a7b3c5; border-radius: 16px; background: white; box-shadow: 0 20px 56px #060f2440; }
.auth-art { position: relative; min-height: 100%; background: var(--navy); }
.auth-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 49% center; }
.auth-art::after { content: ""; position: absolute; inset: .8rem; border: 1px solid #fff5daaa; pointer-events: none; }
.authcard { align-self: center; min-width: 0; padding: clamp(1.5rem,4.2vw,3.8rem); }
.authcard h1 { margin: .85rem 0 .5rem; font-size: clamp(2.5rem, 4vw, 3.5rem); }
.authcard > p:not(.eyebrow):not(.notice) { color: var(--muted); }
.authcard .form { margin: 1.4rem 0 1rem; }
.authcard .btn { width: 100%; }
.authcard .notice { margin-block: .7rem; }
.error { width: min(calc(100% - 2rem), 500px); margin: 4rem auto; }
.error h1 { font-size: 2rem; margin: .8rem 0; }
.error .actions { margin-top: 1rem; }

@media (max-width: 1070px) {
  .headinner { gap: 1rem; }
  .publicnav a { padding-inline: .6rem; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Setiap rekaman memakai label kolom yang sudah disediakan oleh tabel. */
@media screen and (max-width: 1024px) {
  .tablewrap { overflow: visible; }
  .tablewrap table, .tablewrap tbody { display: block; }
  .tablewrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tablewrap tbody tr {
    display: block;
    padding: 0 .9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
  }
  .tablewrap tbody tr + tr { margin-top: .85rem; }
  .tablewrap td {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
    align-items: baseline;
    gap: .25rem .8rem;
    padding: .6rem 0;
    border: 0;
    line-height: 1.45;
  }
  .tablewrap td + td { border-top: 1px solid #e4eaf1; }
  .tablewrap td:first-child {
    grid-template-columns: minmax(0,1fr);
    margin-inline: -.9rem;
    padding: .65rem .9rem;
    background: var(--pale);
    border-radius: 9px 9px 0 0;
  }
  .tablewrap td:first-child .cell-value { font-weight: 650; color: var(--navy); }
  .cell-label { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
  .cell-value { overflow-wrap: anywhere; }
  .tablewrap td:has(.form, .actions, .attachment-preview) { grid-template-columns: minmax(0,1fr); }
  .cell-value .textlink { display: inline-block; max-width: 100%; min-height: 44px; padding-block: .65rem; }
  .cell-value .badge { max-width: 100%; white-space: normal; }
  .tablewrap + nav.actions { margin-top: 1rem; }
  .toolbar { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(13rem,100%),1fr)); }
  .toolbar > * { min-width: 0; }
  .toolbar .btn, .toolbar .textlink { width: 100%; }
  .toolbar .textlink { display: grid; place-items: center; min-height: 44px; margin: 0; text-align: center; }
  .form :where(input,select,textarea):not([type=checkbox]), .toolbar :where(input,select) { font-size: 1rem; }
}

@media (max-width: 800px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  :root {
    --gutter: clamp(1rem,4vw,2rem);
    --public-header-height: calc(65px + var(--header-clearance));
  }
  html { scroll-padding-top: 5rem; }
  .headinner {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 0 .5rem;
    min-height: 64px;
    padding-block: .5rem;
  }
  .headinner .menu-toggle { grid-column: 2; grid-row: 1; }
  .loginbtn { grid-column: 3; grid-row: 1; }
  .publicnav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    justify-content: stretch;
    align-items: stretch;
    gap: .25rem;
    width: 100%;
    margin: .5rem 0 0;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
    max-height: 55vh;
    max-height: 55dvh;
    overflow-y: auto;
  }
  /* Dengan JS, buka daftar di bawah header tanpa menggeser tujuan tautan. */
  .headinner .menu-toggle:not([hidden]) + .publicnav {
    position: absolute;
    inset: 100% var(--gutter) auto;
    width: auto;
    max-height: calc(100vh - var(--public-header-height) - .75rem);
    max-height: calc(100dvh - var(--public-header-height) - .75rem);
    margin: 0;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 0 0 .8rem .8rem;
    background: var(--paper);
    box-shadow: 0 .65rem 1.5rem rgb(9 27 56 / 14%);
  }
  /* Tanpa JS, semua tautan tetap berada dalam alur halaman. */
  html:has(.headinner .menu-toggle[hidden] + .publicnav:not(:empty)) {
    --public-header-height: 0px;
    scroll-padding-top: 0;
  }
  .sitehead:has(.menu-toggle[hidden] + .publicnav:not(:empty)) { position: static; }
  .publicnav:empty { display: none; }
  .publicnav a { max-width: none; padding: .65rem .8rem; border-radius: 7px; }
  .publicnav [aria-current] { background: var(--pale); }
  .publicnav [aria-current]::after { inset: .7rem auto .7rem 0; width: 3px; height: auto; }
  .hero-inner { gap: 1.65rem; }
  .sidetop {
    display: grid;
    grid-template-columns: minmax(0,1fr) max-content;
    gap: .75rem;
    align-items: center;
    border: 0;
    padding: 0;
  }
  .sidetop .brand { justify-self: start; max-width: 100%; }
  .sidetop .menu-toggle { white-space: nowrap; }
  .sidetop .brand small { font-size: .7rem; line-height: 1.3; }
  .sidetop .brandmark { object-fit: contain; }
  .workspace-menu { flex: none; padding-top: .65rem; border-top: 1px solid #ffffff26; }
  .office { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; }
  .sidebar { position: static; height: auto; overflow: visible; padding: calc(.6rem + var(--header-clearance)) var(--gutter) .75rem; gap: .65rem; }
  .sidebar .menu-toggle { color: white; border-color: #8496b0; }
  .side-label { display: none; }
  .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sideitem { gap: .5rem; padding-inline: .55rem; line-height: 1.35; overflow-wrap: anywhere; }
  .profile { display: grid; grid-template-columns: auto minmax(0,1fr) auto; margin: 0; padding: .6rem 0 0; }
  .profile-icon { width: 32px; height: 32px; border-radius: 9px; }
  .profile b { font-size: .9rem; }
  .profile small { font-size: .8rem; }
  .profile .form { grid-column: auto; }
  .work { padding: 1.25rem var(--gutter) 2rem; }
  .pagetitle { flex-wrap: wrap; align-items: start; padding-bottom: 1rem; margin-bottom: 1rem; }
  .pagetitle h1 { font-size: clamp(2rem,6vw,2.8rem); }
  .first-period { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .75rem 1rem; }
  .first-period > .btn { grid-column: 1 / -1; margin: 0; }
  .form label, .notice { overflow-wrap: anywhere; }
  .editor summary, .attachment-preview summary { min-height: 44px; padding-block: .6rem; }
  .form label.check { min-height: 44px; }
  .check input { flex-shrink: 0; }
  .archive-options .archive-option { min-height: 44px; }
}

/* Sebagian pratinjau ponsel menggambar poni tanpa melaporkan safe-area. */
@media (max-width: 600px) and (orientation: portrait) {
  :root { --header-clearance: max(2.25rem, env(safe-area-inset-top, 0px)); }
}

@media (max-width: 700px) {
  .hero-inner { grid-template-columns: minmax(0,1fr); padding-block: clamp(1.65rem,5vw,2.4rem); }
  .hero::before { left: -38rem; }
  .herocopy h1 { font-size: clamp(2.75rem,10vw,4.25rem); margin: .75rem 0 .9rem; }
  .herocopy .prose { font-size: 1rem; line-height: 1.6; }
  .herocopy .actions { margin-top: 1.15rem; }
  .heroimage img { aspect-ratio: auto; }
  .about, .gallery-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
  }
  .gallery-section .photogrid { width: 100%; }
  .about:not(.contact) > div + div { padding: 0; border: 0; margin-top: .85rem; }
  .gallery-empty, .contact > div + div { margin-top: 1.05rem; }
  .pubsection { padding-block: clamp(1.85rem,5vw,2.4rem); }
  .pubsection h2 { font-size: clamp(1.85rem,6vw,2.45rem); }
  .gallery-empty { padding: 1rem; }
  .pubsection.contact { padding: 1.25rem; }
  .auth-layout { max-width: 480px; grid-template-columns: minmax(0,1fr); }
  .auth-art { min-height: 0; height: clamp(5rem,24vw,9rem); }
  .auth-art img { object-position: 50% 44%; }
  .authcard { width: 100%; padding: clamp(1rem,4.5vw,1.5rem); }
  .authcard h1 { font-size: clamp(2rem,7vw,2.6rem); }
  .authcard > .textlink, .backtop { display: inline-flex; min-height: 44px; align-items: center; }
  .authpage { min-height: calc(100svh - 100px); padding-top: max(1.25rem, env(safe-area-inset-top, 0px)); }
  .panel { padding: 1rem; margin-bottom: 1rem; }
  .panel h2 { font-size: 1.5rem; }
}

@media (min-width: 801px) and (max-width: 1000px) {
  .sidebar { padding-inline: .65rem; }
}
@media (max-width: 480px) {
  .brand { gap: .45rem; }
  .brandmark { width: 36px; height: 36px; }
  .brand b { font-size: 1rem; }
  .brand small { font-size: .75rem; }
  .headinner .brand small { display: none; }
  .headinner .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .headinner .menu-toggle { width: 44px; padding: 0; }
  .loginbtn { padding-inline: .65rem; font-size: .875rem; }
  .loginbtn .icon { display: none; }
  .herocopy .actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(8.5rem,100%),1fr)); gap: .5rem; }
  .herocopy .actions:empty { display: none; }
  .herocopy .btn { width: 100%; padding-inline: .65rem; }
  .sidebar .brandmark { width: 36px; height: 36px; }
  .sidebar .brand b { font-size: 1rem; line-height: 1.25; }
  .contact dl { grid-template-columns: minmax(0,1fr); gap: .15rem; }
  .contact dt:not(:first-child) { margin-top: .65rem; }
  .pagetitle > .btn, .form > .btn, .first-period > .btn { width: 100%; }
  .stats { gap: .6rem; }
  .stat { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr auto; gap: .4rem; padding: .8rem; }
  .stat-icon { grid-row: 1; width: 26px; height: 26px; }
  .stat small { align-self: start; font-size: .875rem; }
  .stat strong { font-size: 2.15rem; }
  .grid2, .navedit, .toolbar { grid-template-columns: minmax(0,1fr); }
  .form fieldset { padding-inline: .7rem; }
  .work > .toolbar { padding: 1rem; }
  .panel > .actions > .btn { flex: 1 1 9rem; }
  .footer > div { flex-wrap: wrap; gap: .4rem 1rem; padding-block: 1rem; }
}
@media (max-width: 360px) {
  .sidetop { column-gap: .45rem; }
  .sidetop .menu-toggle { padding-inline: .5rem; }
  .sidebar nav { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .photogrid img { transition: none; }
  .photogrid a:hover img { transform: none; }
}
/*! Tailwind CSS v4.1.13 · transition utility · MIT License · Copyright (c) Tailwind Labs, Inc.
 * https://tailwindcss.com · License included in TAILWIND-LICENSE.txt. */
.workspace-notice.transition,
.confirm-dialog.transition,
.confirm-dialog.transition::backdrop {
  transition-property: color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;
  transition-timing-function: var(--tw-ease,var(--default-transition-timing-function));
  transition-duration: var(--tw-duration,var(--default-transition-duration));
}
.confirm-dialog {
  --tw-duration: 180ms;
  --tw-ease: cubic-bezier(.16, 1, .3, 1);
  --action-color: var(--navy);
  --action-tint: #eaf0f8;
  width: min(27rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  margin: auto;
  padding: 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid #d6dfe8;
  border-radius: 1.25rem;
  box-shadow: 0 2rem 5rem -.9rem rgb(8 24 51 / 38%);
  opacity: 0;
  transform: translateY(.65rem) scale(.97);
}
.confirm-dialog:not([open]) { display: none; }
.confirm-dialog[data-visible] { opacity: 1; transform: translateY(0) scale(1); }
.confirm-dialog::backdrop {
  --tw-duration: 180ms;
  --tw-ease: cubic-bezier(.16, 1, .3, 1);
  background: rgb(8 24 51 / 56%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
}
.confirm-dialog[data-visible]::backdrop { opacity: 1; }
.confirm-dialog[data-kind="delete"] {
  --action-color: #a12e33;
  --action-tint: #fceded;
}
.confirm-dialog[data-kind="logout"] {
  --action-color: #70511e;
  --action-tint: #faf1dd;
}
.confirm-content { padding: 1.5rem 1.5rem 1.3rem; }
.confirm-symbol {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .85rem;
  border-radius: .9rem;
  color: var(--action-color);
  background: var(--action-tint);
}
.confirm-symbol > span { display: none; }
.confirm-dialog[data-kind="save"] [data-symbol="save"],
.confirm-dialog[data-kind="delete"] [data-symbol="delete"],
.confirm-dialog[data-kind="logout"] [data-symbol="logout"] { display: flex; }
.confirm-dialog h2 { font: 650 clamp(1.3rem, 4vw, 1.55rem)/1.25 var(--sans); letter-spacing: -.025em; }
.confirm-dialog p { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  padding: .95rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #f7f9fb;
}
.confirm-actions .btn { min-width: 5.6rem; }
.confirm-dialog .confirm-yes { background: var(--action-color); color: white; }
.confirm-dialog .confirm-yes:hover { filter: brightness(.92); }
.account-actions { gap: .8rem; }
@media (max-width: 480px) {
  .confirm-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .confirm-dialog.transition, .confirm-dialog.transition::backdrop { transition: none; }
  .confirm-dialog { transform: none; }
}

.workspace-notice[data-floating] {
  --tw-duration: 180ms;
  --tw-ease: cubic-bezier(.16, 1, .3, 1);
  position: fixed;
  z-index: 12;
  inset: auto 1rem 1rem auto;
  bottom: max(1rem,env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: min(26rem, calc(100% - 2rem));
  margin: 0;
  padding: .6rem .65rem .6rem 1rem;
  border: 1px solid #bed6ca;
  border-left: 4px solid #347352;
  border-radius: .85rem;
  color: var(--ink);
  background: white;
  box-shadow: 0 .5rem 2rem rgb(8 24 51 / 18%);
  opacity: 0;
  transform: translateY(.5rem);
}
.workspace-notice[data-visible] { opacity: 1; transform: translateY(0); }
.workspace-notice [role="status"] { min-width: 0; overflow-wrap: anywhere; }
.workspace-notice button { flex-shrink: 0; width: 2.75rem; height: 2.75rem; border: 0; border-radius: .5rem; color: var(--muted); background: transparent; font-size: 1.3rem; cursor: pointer; }
.workspace-notice button:hover { background: var(--pale); }
@media (prefers-reduced-motion: reduce) {
  .workspace-notice.transition { transition: none; transform: none; }
}

.archive-picker summary,.attachment-preview summary{cursor:pointer}
.archive-options{max-height:19rem;overflow:auto;margin-block:.5rem;display:grid;gap:.25rem}
.archive-options .archive-option{display:flex;flex-direction:row;align-items:flex-start;gap:.7rem;margin:0;padding:.5rem;cursor:pointer}
.archive-options .archive-option[hidden]{display:none}
.archive-option input[type=checkbox]{flex:0 0 auto;width:1.15rem;height:1.15rem;margin:.2rem 0}
.archive-option span{min-width:0;overflow-wrap:anywhere}
.archive-option small{display:block}
.attachment-preview{margin-top:.4rem}
.attachment-preview iframe{display:block;width:100%;min-width:min(22rem,100%);height:24rem;border:1px solid #bcc8d5}
.attachment-preview img{max-width:100%;max-height:32rem;object-fit:contain}
.attachment-origin{display:block;margin-top:.25rem;color:#43546a;overflow-wrap:anywhere}
