:root { font-family: "Yu Gothic UI", "Meiryo", sans-serif; color: #202925; background: #f4f6f5; font-size: 15px; line-height: 1.6; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
header { background: #fff; border-bottom: 1px solid #d8dfdb; }
.header-inner { max-width: 800px; margin: 0 auto; min-height: 82px; display: flex; align-items: center; gap: 14px; padding: 16px 24px; }
.brand-symbol { width: 38px; height: 38px; color: #167747; flex-shrink: 0; }
h1 { font-size: 23px; font-weight: 650; margin: 0; min-width: 0; overflow-wrap: anywhere; }
main { max-width: 800px; margin: 36px auto; padding: 0 24px; }
.tool { padding: 26px; background: #fff; border: 1px solid #d8dfdb; border-radius: 6px; }
.tool-top { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.tool-top > div { min-width: 0; flex: 1; }
.file-symbol { width: 44px; height: 44px; color: #526b5d; flex-shrink: 0; }
h2 { font-size: 19px; margin: 0; overflow-wrap: anywhere; }
p { margin: 8px 0; overflow-wrap: anywhere; }
.muted { color: #637067; font-size: 14px; }
.form-row { margin-top: 18px; min-width: 0; }
label { display: block; font-weight: 600; margin-bottom: 7px; }
input { font: inherit; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid #a8b7ae; border-radius: 4px; padding: 9px 12px; background: white; color: inherit; }
input[type="file"] { padding: 8px; }
input:focus { outline: 2px solid #19824e; outline-offset: 2px; }
input:disabled { color: #68776e; background: #f2f4f3; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; min-height: 44px; padding: 9px 17px; border: 1px solid #197744; border-radius: 4px; color: white; background: #197744; cursor: pointer; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
button.secondary, .button.secondary { color: #34493e; background: #fff; border-color: #a6b5ac; }
button.danger { color: #ad3d3d; border-color: #cf9c9c; background: white; }
button:disabled { background: #e0e7e2; color: #65716a; cursor: default; border-color: #c9d2cc; }
button svg, .button svg { width: 19px; height: 19px; flex-shrink: 0; }
.message { min-height: 24px; margin-top: 20px; color: #2b6443; overflow-wrap: anywhere; }
.message.error { color: #a32929; }
.metadata { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 15px; margin: 16px 0; }
.metadata dt { color: #637067; }
.metadata dd { margin: 0; overflow-wrap: anywhere; }
progress { width: 100%; height: 14px; accent-color: #197744; margin-top: 12px; }
.progress-text { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-top: 12px; }
footer { max-width: 800px; margin: 24px auto; padding: 0 24px; font-size: 13px; color: #68766d; }
footer[data-company-name] { overflow-wrap: anywhere; }
footer[data-company-name] a { color: inherit; text-underline-offset: 3px; }
.selection-commands { display: flex; flex-wrap: wrap; gap: 8px; }
.file-drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; width: 100%; margin-top: 12px; padding: 16px; border: 1px dashed #92ad9d; border-radius: 4px; background: #f1f7f3; color: #34493e; text-align: center; overflow-wrap: anywhere; }
.file-drop-zone svg { width: 32px; height: 32px; flex-shrink: 0; }
.file-drop-zone.drag-over { border: 2px solid #197744; padding: 15px; background: #e3f1e8; }
.file-drop-zone[aria-disabled="true"] { opacity: .55; }
.selected-items { list-style: none; margin: 12px 0 0; padding: 0; max-height: 180px; overflow-y: auto; border-top: 1px solid #e0e5e1; }
.selected-items:empty { display: none; }
.selected-items li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e0e5e1; }
.selected-items .selection-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.selected-items svg { flex-shrink: 0; width: 18px; height: 18px; }
.selected-items .icon-button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 8px; flex-shrink: 0; }
body[data-page="request"] .selected-items .icon-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
@media (hover: none) and (pointer: coarse) { .file-drop-zone { display: none; } }
[hidden] { display: none !important; }
@media (max-width: 520px) { .header-inner { padding: 15px 18px; } h1 { font-size: 19px; } main { margin: 22px auto; padding: 0 16px; } .tool { padding: 20px; } .actions > * { flex: 1 1 auto; } .metadata { grid-template-columns: 75px minmax(0, 1fr); } footer { padding: 0 16px; } }
@media (pointer: coarse) {
  body[data-page="request"] input, body[data-page="download"] input { font-size: 16px; }
}
@media (max-width: 600px) {
  body[data-page="request"] input, body[data-page="download"] input { font-size: 16px; }
  body[data-page="request"] .tool, body[data-page="download"] .tool { padding: 18px; }
  body[data-page="request"] .tool-top, body[data-page="download"] .tool-top { align-items: flex-start; gap: 12px; }
  body[data-page="request"] .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body[data-page="request"] #start { grid-column: 1 / -1; }
  body[data-page="download"] .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
