/* usulan.html: surat usulan lokasi dari pemerintah daerah. Tokens and Barlow come from kat-design.css (body.kat-ds).
   Radii: 8 inputs, 14 media and notices, 20 panels, 999 buttons. */
*{box-sizing:border-box}html{color-scheme:light}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.6 var(--font-body)}
a{color:var(--forest-700)}p{margin:0 0 16px}[hidden]{display:none!important}
h1,h2,h3,button,.button,.steps li,.u-brand strong,.u-back{font-family:var(--font-display);font-stretch:87.5%}
/* Headings that wrap are balanced, so none ends in a single short word (a no-break space in usulan.html keeps the last two
   words together where balancing alone would not, and a short preposition with the word after it). */
h2{margin:0 0 12px;font-size:30px;font-weight:600;line-height:1.12;color:var(--ink);text-wrap:balance}h3{margin:0 0 10px;font-size:21px;font-weight:600;line-height:1.2;color:var(--ink);text-wrap:balance}
:focus-visible{outline:3px solid var(--forest-500);outline-offset:3px}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.ico{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ico-xl{width:40px;height:40px;stroke-width:1.5}

/* Header over the photo band */
.u-header{position:absolute;top:0;left:0;right:0;z-index:3;color:#fff;--kat-focus:#fff}
.u-header :focus-visible{outline-color:#fff}
.u-header__bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px}
.u-brand{display:inline-flex;align-items:center;gap:12px;min-height:44px;color:#fff;text-decoration:none}.u-brand img{width:36px;height:36px;flex:none}
.u-brand strong{display:block;font-size:17px;font-weight:600;line-height:1.1;letter-spacing:.01em;white-space:nowrap}.u-brand small{display:block;font-size:12px;line-height:1.3;color:rgba(255,255,255,.82)}
.u-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 2px;color:#fff;font-size:16px;font-weight:600;letter-spacing:.03em;text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:5px;white-space:nowrap}
.u-back:hover{text-decoration-color:#fff}
/* Below 360 px the back link shows "Kembali"; " ke beranda" stays in the link's name for screen readers. */
@media(max-width:359.98px){.u-back__more{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}

/* Photo band: the same Praijing photo as chapter 04 on the landing page, text on the left */
.u-band{--kat-focus:#fff;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;min-height:420px;background:var(--forest-900);color:#fff}
.u-band .kat-pic{--kat-pos:50% 36%;--kat-pos-phone:56% 40%}.u-band .kat-pic img{height:100%}
.u-band__shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:
  linear-gradient(90deg,rgba(18,48,31,.95) 0,rgba(18,48,31,.88) 32%,rgba(18,48,31,.5) 58%,rgba(18,48,31,.1) 82%,rgba(18,48,31,0) 100%),
  linear-gradient(180deg,rgba(10,30,20,.6) 0,rgba(10,30,20,0) 132px),linear-gradient(0deg,rgba(12,36,25,.55) 0,rgba(12,36,25,0) 38%)}
.u-band__inner{position:relative;z-index:2;padding-top:128px;padding-bottom:88px}
.u-band__text{max-width:660px}
.u-band h1{margin:14px 0 0;font:600 clamp(40px,4.6vw,60px)/1.02 var(--font-display);font-stretch:87.5%;letter-spacing:-.01em;color:#fff;text-wrap:balance}
.u-band__lead{margin:18px 0 0;max-width:34em;font-size:19px;line-height:1.5;color:rgba(255,255,255,.88)}
.u-band>.kat-credit{position:absolute;z-index:2;right:var(--kat-gutter);bottom:22px;text-align:right}
.u-band>.kat-credit .kat-credit__place{justify-content:flex-end}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:40px 0 32px;padding:0;list-style:none}
.steps li{display:flex;align-items:baseline;gap:10px;padding-top:14px;border-top:4px solid var(--line);color:var(--ink-2);font-size:17px;font-weight:600;line-height:1.25;letter-spacing:.02em}
.steps li span{font-size:24px;font-weight:700;line-height:1;font-variant-numeric:lining-nums tabular-nums}
.steps li[aria-current=step]{border-color:var(--forest-700);color:var(--forest-700)}.steps li[aria-current=step] span{color:var(--terra-600)}

/* Layout: the tool panel and a quiet guide column separated by hairlines */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:56px;align-items:start;padding-bottom:96px}
.card{min-width:0;padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-panel);overflow-wrap:break-word}
#upload-title,#review-title,#submit-title,#done-title{scroll-margin-top:56px}#handoffConfirm{scroll-margin:16px}
.aside{padding-top:4px}.aside h3{font-size:20px}.aside p{font-size:15px;color:var(--ink-2)}
.aside hr{margin:24px 0;border:0;border-top:1px solid var(--line)}
.aside a{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700}
.muted,small{color:var(--ink-2)}.note{margin-top:16px;font-size:14px}
.draft-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.draft-tools small{max-width:65%;font-size:14px}

/* Controls */
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 22px;border:1.5px solid var(--forest-700);border-radius:999px;background:var(--forest-700);color:#fff;font-size:16px;font-weight:600;line-height:1.15;letter-spacing:.03em;text-align:center;text-decoration:none;text-wrap:balance;cursor:pointer;transition:background-color .15s,border-color .15s}
button:hover,.button:hover{background:var(--forest-800);border-color:var(--forest-800)}
button.secondary,.button.secondary{background:transparent;color:var(--forest-700)}button.secondary:hover,.button.secondary:hover{background:var(--forest-100)}
button.small,.button.small{min-height:44px;padding:8px 16px;font-size:15px}
button:disabled,button:disabled:hover{opacity:.45;cursor:not-allowed;background:var(--forest-700)}button.secondary:disabled,button.secondary:disabled:hover{background:transparent}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;align-items:center}
input:not([type=checkbox]),textarea,select{width:100%;min-height:48px;margin-top:6px;padding:10px 12px;border:1px solid #7a8c80;border-radius:var(--r-input);background:#fff;color:var(--ink);font:400 16px/1.4 var(--font-body)}
textarea{min-height:96px;resize:vertical}
input[type=checkbox]{width:22px;height:22px;flex:none;margin:2px 0 0;accent-color:var(--forest-700)}
label{display:block;font-size:14px;font-weight:700}label span.help{display:block;font-weight:400;font-size:13px;color:var(--ink-2)}
.check{display:flex;gap:12px;align-items:flex-start;margin-top:24px;font-size:15px;font-weight:400}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}
.trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
progress{width:100%;height:8px;accent-color:var(--forest-700)}

/* Notices */
.notice{margin:16px 0;padding:14px 18px;border-radius:var(--r-media);background:#f6efdc;color:#5a4a1f;font-size:15px;white-space:pre-line}
.error{background:#fbefeb;color:#8f3a26}.success{background:#e6f0e8;color:#164f3c}.status{white-space:pre-line}
.confirm{background:#fff;border:1.5px solid var(--forest-700);color:var(--ink);white-space:normal}.confirm p{margin:0 0 8px}.confirm .actions{margin-top:16px}
.confirm__title{font-weight:700;text-wrap:balance}
#recordFields>#message{grid-column:1/-1;margin:0}#attachments{overflow-wrap:anywhere}
.badge{display:inline-block;margin-bottom:14px;padding:4px 12px;border-radius:999px;background:var(--forest-100);color:var(--forest-800);font-size:13px;font-weight:700}
.evidence{margin:18px 0;padding:14px 18px;border:1px solid var(--line);border-radius:var(--r-media);background:#f3f6f2;font-size:15px;white-space:pre-line}
.choice{margin-bottom:20px}.review-docs{margin:0 0 20px}.busy-text{margin:18px 0 8px}hr.rule{margin:24px 0;border:0;border-top:1px solid var(--line)}

/* Step 1 drop zone (#dropzone) and the file list */
.upload{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:20px;padding:36px 24px 28px;border:1.5px dashed #9db1a3;border-radius:var(--r-media);background:#f3f6f2;text-align:center;color:var(--forest-700);transition:border-color .15s,background-color .15s}
.upload:hover{border-color:var(--forest-500)}.upload.is-over{border-style:solid;border-color:var(--forest-700);background:var(--forest-100)}
.upload h3{margin:6px 0 0;font-size:24px}.upload__or{margin:0;color:var(--ink-2)}.upload .actions{justify-content:center;margin-top:12px}
.upload__hint{margin:8px 0 0;font-size:14px;color:var(--ink-2)}
.upload__cams{max-width:36em;margin:2px 0 0;font-size:13.5px;line-height:1.45;color:var(--ink-2)}.upload__cams strong{color:var(--ink);font-weight:600}
.touch-only{display:none}
@media (hover:none) and (pointer:coarse){.drag-only{display:none}.touch-only{display:inline}}
.files{display:grid;gap:12px;margin-top:20px}.files:empty{display:none}
.file{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-media);background:#fff}
.file img,.file-doc{width:48px;height:64px;flex:none;border-radius:var(--r-input);object-fit:contain;background:#eef1eb;box-shadow:0 0 0 1px var(--line)}
.file img{background:#fff}
.file-doc{display:grid;place-items:center;color:var(--forest-700)}
.file>div:first-of-type,.file>div.file-info{flex:1;min-width:160px}
.file a{display:inline-flex;align-items:center;gap:6px;max-width:100%;font-weight:700;overflow-wrap:anywhere}.file small{display:block;font-size:13px}
/* The name and the external-link icon sit in .file-label (proposal.js); on wide screens they are two items of the link as before
   (the link no wider than its column, and the name, min-width:0, in the room the icon leaves, so neither runs under a row
   button), and on phones the icon in the name's last no-wrap unit shows instead, so it never stands alone on a line.
   Names break only after _, - or . (<wbr> in proposal.js) and between the words of a long word; no-wrap units keep a number, a
   separator with the end of its part, and the extension with the characters before it, and a number wider than the line
   (data-wide) breaks after its own - and . only. A name that would take more than three lines (two below 360 px) is marked
   data-cut by proposal.js: its start keeps two lines (one with data-cut="1") and ends in an ellipsis, never inside a number
   (data-stop hides that group and the rest), and its end (last parts and extension) keeps a line of its own, so the extension
   always shows (an end too long for that keeps its last part, data-tail, whose <wbr> before that part is hidden with the lead
   so no empty line is left; a last part wider than the line shows its right side after an ellipsis, data-clip; a camera page
   number that heads it stays in front of that ellipsis, .file-name__page).
   The full name stays in the link text, its accessible name and the tooltip. */
.file-label{display:contents}.file-name{min-width:0}.file-nb{white-space:nowrap}.file-nb[data-wide]{white-space:normal}.file-num:not([data-wide])>wbr{display:none}
.file-name .ico,.file-name__more,.file-name[data-tail] .file-name__lead,.file-name[data-tail] .file-name__end>wbr{display:none}
.file-name[data-cut]{display:flex;flex-direction:column}.file-name[data-cut]>wbr{display:none}
.file-name[data-cut] .file-name__start{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.file-name[data-cut="1"] .file-name__start{display:block;white-space:nowrap;text-overflow:ellipsis}.file-name[data-cut="1"] .file-name__start wbr{display:none}
.file-name[data-tail] .file-name__end::before,.file-name__start[data-stop]::after,.file-name__last[data-stop]::before,.file-name__page[data-stop]::after{content:'\2026';content:'\2026' / ''}
.file-name[data-clip] .file-name__end::before{content:none}
.file-name[data-clip] .file-name__last{display:block;overflow:hidden;white-space:nowrap}
.file-name[data-clip] .file-name__last .file-nb{white-space:nowrap}.file-name[data-clip] .file-name__last wbr{display:none}
@media(pointer:coarse){.file a{min-height:44px}}
.file-actions{display:flex;gap:8px;flex-wrap:wrap}.file-actions button{white-space:nowrap}
#receiptHistory{overflow-wrap:anywhere;white-space:pre-line}
.data-review{display:grid;grid-template-columns:180px 1fr;gap:0 20px;margin:20px 0;overflow-wrap:anywhere}
.data-review dt,.data-review dd{padding:10px 0;border-top:1px solid var(--line)}.data-review dt{color:var(--ink-2)}.data-review dd{margin:0;font-weight:700}

/* Camera dialog. The picture and the dashed guide sit in .camera-frame; .camera-bar holds the status line and the buttons. */
dialog{width:min(760px,calc(100% - 24px));max-height:94dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:var(--r-panel);background:#fff;color:var(--ink)}
dialog::backdrop{background:rgba(9,37,29,.85)}
.camera-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}
.document-camera{position:relative;min-height:120px;overflow:hidden;border-radius:var(--r-media);background:var(--forest-950)}
.camera-frame{position:relative}
.document-camera video,.document-camera img{display:block;width:100%;max-height:52dvh;object-fit:contain}.document-camera img{background:var(--forest-950)}
#documentGuide{position:absolute;inset:8% 14%;border:2px dashed rgba(255,255,255,.6);border-radius:4px;pointer-events:none}
#cameraStatus{margin:12px 0;font-size:14px}dialog .actions{margin:12px 0}
/* Phones and short landscape screens: the dialog fills the screen height, the preview takes the room that is left, and the
   frame takes the shape of the picture (--cam-ar, set by proposal.js), so the guide frames the page and not the dark bars. */
@media(max-width:699.98px),(orientation:landscape) and (max-height:540px){
  dialog{--dp:14px;height:calc(100vh - 16px);height:calc(100dvh - 16px);max-height:none}
  .camera-heading{align-items:center;gap:10px}
  #cameraTitle{margin:0;font-size:22px}
  #closeCamera{flex:none;padding-inline:12px;font-size:14px;letter-spacing:.01em;white-space:nowrap}
  #cameraHint{font-size:14px;line-height:1.45}
  .document-camera{display:grid;place-items:center;container-type:size}
  .camera-frame{width:100%;aspect-ratio:var(--cam-ar)}
  /* Container units came with Chrome 105, Samsung Internet 20 and iOS 16. A var() in the value hides an unknown unit until
     the value is used, so older browsers get a frame laid over the whole box instead, the picture letterboxed inside it.
     Laid over (absolute), not sized by it: an auto-sized frame grows to the picture's own height and is cut off sideways. */
  @supports (width:1cqw){.camera-frame{width:min(100cqw,100cqh * var(--cam-ar))}}
  @supports not (width:1cqw){.camera-frame{position:absolute;top:0;right:0;bottom:0;left:0;width:auto;aspect-ratio:auto}}
  .camera-frame video,.camera-frame img{width:100%;height:100%;max-height:none}
  dialog>p.muted{font-size:13px;line-height:1.45}
  #cameraStatus{margin:0 0 10px;line-height:1.45}
  dialog .actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
  dialog .actions>*{flex:1 1 auto;width:auto;min-height:44px;padding:8px 10px;font-size:14px;letter-spacing:.01em}
  dialog .actions>:is(#capturePhoto,#usePhoto){flex-basis:100%;min-height:48px;font-size:15px}
}
/* Portrait: one column; the note moves above the bar, and the bar stays at the bottom edge even if the sheet has to scroll. */
@media(max-width:699.98px){
  dialog{width:calc(100% - 16px);max-width:none;padding:var(--dp) var(--dp) 0}
  dialog[open]{display:flex;flex-direction:column}
  #cameraHint{margin:8px 0 10px}
  .document-camera{--cam-ar:.75;flex:1 1 0;min-height:120px}
  dialog>p.muted{order:1;margin:10px 0 0}
  .camera-bar{order:2;position:sticky;bottom:0;z-index:1;margin:10px calc(-1 * var(--dp)) 0;padding:10px var(--dp) var(--dp);border-top:1px solid var(--line);background:#fff}
}
/* Landscape: the preview on the left; the title, the status and the buttons on the right. The hint spans a second row, so
   a hint taller than the title row (3-4 lines below 700 px) does not push the bar down; a bar taller than the room left
   (permission denied, 568x320) starts under the title and the sheet scrolls, instead of rising over the title. */
@media(orientation:landscape) and (max-height:540px){
  dialog{width:calc(100% - 24px);max-width:1000px;padding:var(--dp)}
  dialog[open]{display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"hint head" "hint bar" "stage bar" "note bar";gap:0 16px}
  .camera-heading{grid-area:head}
  #cameraHint{grid-area:hint;align-self:center;margin:0}
  .document-camera{--cam-ar:1.7778;grid-area:stage;min-height:0;margin-top:8px}
  dialog>p.muted{grid-area:note;margin:8px 0 0}
  .camera-bar{grid-area:bar;align-self:end;align-self:safe end;position:static;margin:8px 0 0;padding:10px 0 0;border-top:1px solid var(--line);background:none}
}
/* Short landscape screens (640x360 to 812x375): the arrangement of the very short screens below (title and hint above the
   preview on the left, the bar in the right column) with a 260 px bar, so the preview is larger than at 568x320 (310x174 at
   640x360). The closing note fits under the buttons here, and "Foto ulang" takes a row of its own like "Ganti kamera", so the
   right column is filled in every state instead of leaving a gap under the title. */
@media(orientation:landscape) and (min-height:340.02px) and (max-height:380px){
  dialog[open]{grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"head bar" "hint bar" "stage bar" "stage note"}
  .camera-heading{flex-wrap:wrap;row-gap:6px}
  #cameraHint{align-self:start;margin:6px 0 0}
  dialog>p.muted{margin:10px 0 0}
  .camera-bar{margin:0;padding:0;border-top:0}
  #retakePhoto{flex-basis:100%}
}
/* Very short landscape screens (568x320 and lower): a 300 px bar would leave the preview a column about 200 px wide. Here the
   title and the hint sit above the preview on the left, the bar takes the whole right column (220-300 px, so the preview
   column keeps about 280 px: a 16:9 picture about 157 px tall at 568x320), and the closing note is left to screen readers.
   With the camera off (permission refused or stopped) there is no picture, so the bar gets 300 px and its buttons share rows.
   At 300 px tall and lower the hint keeps its first sentence on screen. */
@media(orientation:landscape) and (max-height:340px){
  dialog[open]{grid-template-columns:minmax(0,1fr) clamp(220px,100% - 300px,300px);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"head bar" "hint bar" "stage bar"}
  dialog[open]:has(#startCamera:not([hidden])){grid-template-columns:minmax(0,1fr) 300px}
  .camera-heading{flex-wrap:wrap;row-gap:6px} /* a column too narrow for the title and the button puts the button under it */
  #cameraHint{align-self:start;margin:6px 0 0}
  dialog>p.muted{grid-area:auto;position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .camera-bar{margin:0;padding:0;border-top:0}
}
@media(orientation:landscape) and (max-height:300px){
  .camera-hint__more{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
/* With the picture on (live and review; not permission refused), the right column above the bar was empty. At 568x320 the
   picture was held by the height of the title row and a three-line hint: there the hint keeps its first sentence on screen,
   as on the lower screens below (the status line beside the picture says the same as the rest, which stays for screen
   readers), and the bar narrows to 200 px (its buttons already take a row each), so 276x155 becomes about 298x168.
   On screens 300 px tall and lower that are 600 px wide or more (653x280), "Tutup kamera" moves to the top of the right
   column, beside the title and the hint, so the preview gains the height of the button row, and the bar keeps only the
   width its buttons need on one row: 277x156 becomes about 298x168. */
@media(orientation:landscape) and (min-height:310px) and (max-height:340px) and (max-width:599.98px){
  dialog[open]:has(#startCamera[hidden]){grid-template-columns:minmax(0,1fr) 200px}
  dialog[open]:has(#startCamera[hidden]) .camera-hint__more{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(orientation:landscape) and (max-height:300px) and (min-width:600px){
  dialog[open]:has(#startCamera[hidden]){grid-template-columns:minmax(0,1fr) 285px;grid-template-areas:"title close" "hint close" "stage bar"}
  dialog[open]:has(#startCamera[hidden]) .camera-heading{display:contents}
  dialog[open]:has(#startCamera[hidden]) #cameraTitle{grid-area:title;align-self:center}
  dialog[open]:has(#startCamera[hidden]) #closeCamera{grid-area:close;justify-self:end;align-self:start}
}

footer.u-footer{padding:28px 0 20px;border-top:1px solid var(--line);color:var(--ink-2);font-size:14px}footer.u-footer p{margin:0 0 8px}
/* Footer links stay inline (same wrapping and line height); the vertical padding makes each line of a link a 26 px tall target */
footer.u-footer a{padding:5px 0}

/* minmax(0,1fr): a long unbroken file name must not widen the single column (and with it the page) */
@media(max-width:959.98px){.layout{grid-template-columns:minmax(0,1fr);gap:48px}.aside{order:2}}
@media(max-width:699.98px){
  .u-header__bar{min-height:60px}.u-brand small{display:none}.u-back{font-size:15px}
  .u-band{min-height:0}
  .u-band__shade{background:linear-gradient(180deg,rgba(18,48,31,.62) 0,rgba(18,48,31,.35) 28%,rgba(18,48,31,.84) 60%,rgba(18,48,31,.96) 100%)}
  .u-band__inner{padding-top:104px;padding-bottom:20px}
  .u-band h1{font-size:36px;line-height:1.05}.u-band__lead{font-size:16px}
  .u-band>.kat-credit{position:relative;right:auto;bottom:auto;margin:0 var(--kat-gutter) 20px;text-align:left;font-size:12px}
  .u-band>.kat-credit .kat-credit__place{justify-content:flex-start;font-size:12px}
  .u-band .kat-credit__by{padding:4px 0}
  .steps{gap:8px;margin:28px 0 24px}.steps li{flex-direction:column;gap:6px;font-size:14px}.steps li span{font-size:20px}
  .card{padding:20px}.layout{padding-bottom:64px}h2{font-size:26px}
  .draft-tools{align-items:flex-start;flex-direction:column}.draft-tools small{max-width:none}
  .upload{padding:28px 16px 24px}
  /* File rows: thumbnail beside the name, buttons on their own row under both */
  .file{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px 12px;align-items:start;padding:12px}
  .file img,.file-doc{width:40px;height:54px}
  .file>div.file-info{min-width:0}
  .file-actions{grid-column:1/-1}.file-actions button{flex:1 1 auto;padding-inline:10px}
  /* The name runs in one block with the icon in its last no-wrap unit, after its last letters */
  .file a{max-width:100%;font-size:15px;line-height:1.35}
  .file-label{display:block;min-width:0}
  .file-label>.ico{display:none}
  .file-name .ico{display:inline-block;margin-left:6px;vertical-align:-4px}
  .file small{margin-top:2px;line-height:1.45;text-wrap:balance}
  /* Step 3: one line per attachment, the end always shown. proposal.js cuts the start after whole characters and ends it with
     its own ellipsis (data-stop, never inside a number), so the end follows the ellipsis directly; a start that cannot keep
     three characters is not shown and the end begins with the ellipsis, its right side only when even it is wider than the
     line (data-clip="all"); data-clip: a camera time stamp cut after the start. white-space:pre keeps the space at a cut
     (surat |usulan.PDF). */
  #attachments .attachment{display:flex;max-width:100%}
  #attachments .attachment__start{min-width:0;overflow:hidden;white-space:pre}
  #attachments .attachment__end{flex:none;white-space:pre}
  #attachments .attachment__start wbr,#attachments .attachment[data-clip="all"] .attachment__start{display:none}
  #attachments .attachment[data-clip] .attachment__start{flex:none}
  #attachments .attachment[data-clip] .attachment__end{flex:0 1 auto;min-width:0;overflow:hidden}
  #attachments .attachment[data-clip="all"] .attachment__end{flex-grow:1}
  #attachments .attachment__start[data-stop]::after,#attachments .attachment__end[data-stop]::before{content:'\2026';content:'\2026' / ''}
}
/* Narrow phones: a shorter band, and room for the text inside the card and its notices */
@media(max-width:379.98px){
  .u-band__inner{padding-top:84px;padding-bottom:16px}
  .u-band__lead{margin-top:14px;font-size:15px;line-height:1.45}
  .card{padding:16px}
  .notice,.evidence{padding:12px 14px}
  .confirm .actions>*{padding-inline:12px;font-size:15px;letter-spacing:.01em}
  /* File rows a little tighter, so a long-name row stays about 155 px tall */
  .file{gap:8px 10px;padding:10px}
  .file small{margin-top:0;line-height:1.4}
}
@media(max-width:359.98px){.file-actions button{padding-inline:6px;letter-spacing:.01em}}
/* Three file buttons do not fit one row below 320 px: two columns, the first button across both when there are three */
@media(max-width:319.98px){
  .file-actions{display:grid;grid-template-columns:1fr 1fr}
  .file-actions>:first-child:nth-last-child(3),.file-actions>:only-child{grid-column:1/-1}
}
/* Landscape phones: the band no longer fills the screen, and the credit joins the text flow */
@media(orientation:landscape) and (max-height:540px){
  .u-header__bar{min-height:60px}
  .u-band{min-height:0}
  .u-band__inner{padding-top:80px;padding-bottom:16px}
  .u-band h1{font-size:34px}
  .u-band__lead{margin-top:12px;font-size:16px}
  .u-band>.kat-credit{position:relative;right:auto;bottom:auto;margin:0 var(--kat-gutter) 16px;text-align:left;font-size:12px}
  .u-band>.kat-credit .kat-credit__place{justify-content:flex-start;font-size:12px}
  .u-band .kat-credit__by{padding:4px 0}
  .steps{margin:24px 0}
}
@media(max-width:480px){.grid{grid-template-columns:1fr}.full{grid-column:auto}.actions>*{width:100%}.data-review{grid-template-columns:1fr}.data-review dt{padding-bottom:0}.data-review dd{border-top:0;padding-top:2px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
