@font-face {
  font-family: Inter;
  src: url("/aset/inter.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f6f2;
  --white: #fff;
  --ink: #182923;
  --muted: #51645b;
  --line: #dce4dd;
  --green: #185443;
  --green-dark: #103e31;
  --soft-green: #ebf4ef;
  --focus: #317d66;
  --error: #982d28;
  --radius: 20px;
  font: 15px/1.55 Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 20px; scroll-padding-bottom: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.15; letter-spacing: -.035em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: 10px; left: 16px; padding: 10px; background: white; transform: translateY(-200%); z-index: 2; }
.skip-link:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 70px; gap: 42px; }
.wordmark { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; font-size: 23px; font-weight: 800; letter-spacing: -.065em; }
.brand-mark { display: inline-grid; place-content: center; position: relative; width: 34px; height: 34px; background: var(--green); border-radius: 10px; }
.brand-mark::before, .brand-mark::after { content: ""; width: 17px; height: 7px; border: 1.6px solid #ebf7ed; border-left-color: transparent; border-radius: 65% 45%; transform: rotate(-27deg); }
.brand-mark::after { margin-top: -2px; transform: translateX(-2px) rotate(-27deg); }
.site-nav { align-self: stretch; display: flex; gap: 26px; align-items: stretch; }
.site-nav a { display: flex; align-items: center; padding: 2px 1px 0; border-bottom: 2px solid transparent; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--green-dark); border-bottom-color: var(--green); }
.guide-link { margin-left: auto; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font-size: .85rem; font-weight: 650; color: var(--ink); text-decoration: none; white-space: nowrap; }
.guide-link:hover { background: var(--soft-green); }
.guide-link span { padding-left: 6px; color: var(--green); }

.upload-page, .standard-page { padding-block: 32px 56px; }
.hero { isolation: isolate; position: relative; overflow: hidden; display: grid; align-items: center; min-height: 220px; border-radius: var(--radius); padding: 31px 42px; background-color: #dcece2; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(91deg, #dcece2 23%, #dcece2 47%, #dcece2d6 54%, #dcece200 71%), url("/aset/medan-das.webp") center 52% / cover no-repeat; }
.hero-copy { max-width: 490px; }
.hero-kicker { display: flex; gap: 9px; align-items: center; margin-bottom: 12px; color: #2a5d4c; font-size: .76rem; font-weight: 750; letter-spacing: .115em; }
.hero-kicker span { opacity: .65; }
.hero h1 { font-size: clamp(2.4rem, 4.35vw, 4.1rem); font-weight: 760; letter-spacing: -.065em; }
.hero-copy > p:last-child { margin-top: 12px; max-width: 400px; color: #35564b; }
.trial-note { display: flex; align-items: baseline; gap: 10px; margin: 15px 0 23px; padding: 8px 13px; border: 1px solid #e9dec6; border-radius: 9px; background: #fbf4e7; color: #635437; font-size: .79rem; }
.trial-note strong { font-size: .7rem; font-weight: 750; letter-spacing: .08em; white-space: nowrap; }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 338px); align-items: start; gap: 22px; }
.panel { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 5px #18292305; }
.upload-content, .side-column, .field { min-width: 0; }
.form-section { padding: 25px 27px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.section-heading h2, .guide-panel h2 { font-size: 1.42rem; font-weight: 720; }
.section-heading p, .guide-panel > p { margin-top: 6px; color: var(--muted); font-size: .89rem; }
.dropzone { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 165px; margin-top: 17px; padding: 18px 12px; text-align: center; background: #f5faf7; border: 1px dashed #7d9e8c; border-radius: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-dragging { background: #e5f3eb; border-color: var(--green); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.dropzone.has-error { border-color: var(--error); }
.dropzone input { max-width: 100%; }
.js-upload .dropzone input, .js-upload .dropzone.has-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.dropzone input:not([disabled]) + .upload-icon { margin-top: 4px; }
.upload-icon { display: grid; place-items: center; position: relative; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: #e4efe8; color: var(--green); font-size: 1.5rem; line-height: 1; padding-bottom: 5px; }
.upload-icon::after { content: ""; width: 17px; height: 5px; position: absolute; bottom: 9px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; }
.drop-text { font-weight: 650; font-size: .97rem; }
.choose-text { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.drop-hint { color: var(--muted); margin-top: 5px; font-size: .82rem; }
.file-card { display: flex; gap: 13px; align-items: center; margin-top: 17px; min-height: 77px; padding: 13px; border: 1px solid #bad5c5; background: #f5faf7; border-radius: 12px; }
.file-icon { width: 25px; height: 29px; border: 1.5px solid var(--green); border-radius: 5px; flex: 0 0 auto; position: relative; }
.file-icon::after { content: ""; width: 11px; height: 8px; border-block: 1px solid var(--green); position: absolute; top: 10px; left: 5px; }
.file-text { display: grid; min-width: 0; }
.file-name { overflow-wrap: anywhere; }
.file-size { color: var(--muted); font-size: .81rem; }
.remove-file { margin-left: auto; }
.inline-error { margin-top: 9px; font-size: .87rem; color: var(--error); }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 15px; margin-top: 17px; }
.rain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 5px; color: var(--ink); font-size: .88rem; font-weight: 680; }
.field label span { display: inline-block; margin-left: 4px; color: var(--muted); font-size: .73rem; font-weight: 450; }
input, textarea, select, button { font: inherit; }
.field :is(input, textarea, select), .chat-prompt textarea { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #cfdad2; border-radius: 9px; padding: 9px 11px; color: var(--ink); background: #fcfdfa; }
.field :is(input, select, textarea):focus { background: #fff; }
.field :is(input, textarea)::placeholder { color: #6c7c73; }
select:invalid { color: #606e66; }
input[type="datetime-local"] { min-width: 0; }
textarea { resize: vertical; }
.field small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }

.form-footer { position: sticky; bottom: 0; z-index: 1; padding: 15px 26px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--white); }
.form-actions, .success-actions { display: flex; align-items: center; gap: 10px; }
.form-note { font-size: .81rem; color: var(--muted); margin-right: auto; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 9px; padding: 10px 14px; min-height: 41px; font-size: .85rem; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.primary span { margin-left: 6px; }
.button.secondary { border-color: #c7d9cf; background: white; color: var(--green-dark); }
.button.secondary:hover, .button.text-button:hover { background: var(--soft-green); }
.button.text-button { background: transparent; color: var(--green-dark); }
.button:disabled { cursor: progress; opacity: .7; }
.upload-progress { padding-bottom: 10px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
progress { display: block; width: 100%; height: 8px; margin-top: 8px; accent-color: var(--green); }
.request-error { margin: 0 0 9px; }

.guide-panel { padding: 23px 23px 18px; }
.data-list { padding: 0; margin: 16px 0 11px; list-style: none; }
.data-list li { display: flex; gap: 11px; align-items: center; padding: 10px 0; }
.data-list li + li { border-top: 1px solid #edf0ed; }
.data-list li > div { display: grid; gap: 1px; min-width: 0; }
.data-list strong { font-size: .89rem; }
.data-list li > div > :last-child { color: var(--muted); font-size: .79rem; overflow-wrap: anywhere; }
.folder-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; position: relative; color: #3a6b57; background: #edf4ee; border-radius: 8px; }
.folder-icon::before { content: ""; width: 17px; height: 11px; margin-top: 3px; border: 1.4px solid currentColor; border-radius: 2px; }
.folder-icon::after { content: ""; position: absolute; top: 9px; left: 8.5px; width: 7px; height: 4px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.zip-details { border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 650; }
.zip-details summary { font-size: .82rem; color: var(--green-dark); }
.tree-content { margin-top: 10px; }
pre { padding: 13px; border-radius: 9px; background: #edf2ed; max-width: 100%; overflow: auto; }
.tree-content pre { margin: 0; padding: 9px; font-size: .72rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tree-content p { font-size: .77rem; color: var(--muted); margin-top: 9px; }
.next-panel { display: flex; align-items: flex-start; gap: 12px; margin-top: 15px; padding: 16px; background: #e8f1eb; border: 1px solid #d6e5db; border-radius: 15px; }
.next-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; color: var(--green); background: #f9fcfa; border-radius: 9px; font-weight: 750; }
.next-panel h2 { padding-top: 1px; font-size: .96rem; letter-spacing: -.01em; }
.next-panel p { margin-top: 5px; color: #435b50; font-size: .82rem; }

.notice { margin-bottom: 14px; padding: 13px 16px; border-radius: 12px; }
.error-notice, .err { color: var(--error); background: #fff3f2; border: 1px solid #e9beb9; }
.error-notice p { margin-top: 4px; overflow-wrap: anywhere; }
.error-notice small { display: block; margin-top: 5px; }
.success-panel { padding: 27px; }
.success-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 12px; color: var(--green); background: var(--soft-green); border-radius: 13px; font-size: 1.5rem; }
.success-panel h2 { font-size: 1.65rem; }
.success-panel p { margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.success-actions { flex-wrap: wrap; margin-top: 17px; }
.chat-prompt { margin-top: 24px; background: #f3f7f3; border-radius: 12px; padding: 16px; }
.chat-prompt label { display: block; margin-bottom: 8px; font-weight: 700; }
.chat-prompt textarea { min-height: 73px; resize: vertical; }
.copy-button { margin-top: 10px; }
.copy-status { margin-left: 7px; color: var(--green); font-size: .82rem; }

.standard-page h1 { margin-top: 25px; margin-bottom: 17px; font-size: 2.35rem; overflow-wrap: anywhere; }
.standard-page :is(p, details, table) { margin-bottom: 15px; }
.standard-page table { display: block; overflow-x: auto; border-collapse: collapse; background: white; border: 1px solid var(--line); border-radius: 12px; max-width: 100%; }
.standard-page td, .standard-page th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.standard-page .err { padding: 12px; border-radius: 9px; }

@media (max-width: 960px) {
  .upload-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 290px); gap: 15px; }
  .rain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-section, .form-footer { padding-inline: 20px; }
  .hero::before { background: linear-gradient(91deg, #dcece2 31%, #dcece2 49%, #dcece210 80%), url("/aset/medan-das.webp") 64% center / cover no-repeat; }
}
@media (max-width: 760px) {
  html { scroll-padding-bottom: 20px; }
  .shell { width: calc(100% - 36px); }
  .upload-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 195px; padding: 24px; }
  .hero-copy { max-width: 345px; }
  .hero-copy > p:last-child { font-size: .89rem; }
  .form-footer { position: static; }
  .side-column { scroll-margin-top: 15px; }
}
@media (max-width: 480px) {
  .header-inner { gap: 14px; min-height: 60px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
  .wordmark { font-size: 20px; gap: 6px; }
  .site-nav { gap: 10px; }
  .site-nav a, .guide-link { font-size: .73rem; white-space: nowrap; }
  .guide-link { padding: 6px 8px; }
  .guide-link span { display: none; }
  .upload-page, .standard-page { padding-top: 18px; }
  .hero { padding: 20px; min-height: 185px; }
  .hero::before { background: linear-gradient(91deg, #dcece2 31%, #dcece2 53%, #dcece245 100%), url("/aset/medan-das.webp") 72% 48% / cover no-repeat; }
  .hero-copy > p:last-child { max-width: 245px; }
  .hero h1 { font-size: clamp(1.82rem, 8vw, 2.65rem); }
  .trial-note { gap: 7px; margin-bottom: 15px; }
  .form-section, .form-footer, .guide-panel, .success-panel { padding-inline: 15px; }
  .rain-grid, .dates { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-wrap: wrap; }
  .form-note { flex-basis: 100%; }
  .submit-upload { flex: 1 1 auto; }
}
@media (max-width: 365px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; padding-top: 9px; }
  .site-nav { grid-area: 2 / 1 / 3 / 3; min-height: 35px; gap: 18px; }
  .guide-link { grid-area: 1 / 2; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
