@font-face {
    font-family: "Jeju Gothic";
    src: url("fonts/JejuGothic-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: Youth;
    src: url("fonts/Youth.woff2") format("woff2");
    font-style: normal;
    font-weight: normal;
    font-display: swap;
}
:root {
    color-scheme: light;
    --ink: #1d2c24;
    --muted: #596b60;
    --line: #dfe6de;
    --page: #f4f6f1;
    --paper: #fff;
    --green: #286245;
    --green-hover: #204d37;
    --green-10: #e7f1e8;
    --cream: #fbf7ee;
    --danger: #a63835;
    --shadow: 0 5px 16px rgb(23 44 32 / 4%);
    font-family: "Jeju Gothic", "Malgun Gothic", system-ui, sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: var(--ink);
    background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, input:is([type="button"], [type="submit"], [type="reset"]), .button, .link-button, [role="button"] {
    font-family: Youth, "Jeju Gothic", "Malgun Gothic", system-ui, sans-serif;
}
button { cursor: pointer; }
button:disabled { opacity: .56; cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
:is(h1, h2, h3, h4, h5, h6, strong, b, th, summary) { font-weight: inherit; }
h1, h2, h3 { letter-spacing: -.04em; }
small { font-size: .86rem; }
time, .numeric { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid #6ea787; outline-offset: 3px; }
.muted { color: var(--muted); }
.button {
    min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border-radius: 8px; border: 1px solid transparent; padding: 9px 15px;
    white-space: nowrap; text-decoration: none; line-height: 1.25;
}
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--green-hover); }
.button.quiet { border-color: var(--line); color: var(--ink); background: var(--paper); }
.button.quiet:hover { border-color: #a5baab; background: var(--page); }
.button.danger { color: white; background: var(--danger); }
.button.compact { min-height: 33px; padding: 6px 10px; font-size: .87rem; }
.button.full { width: 100%; }
.button-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-button { border: 0; padding: 0; color: var(--green); background: transparent; text-align: left; }
.link-button:hover { text-decoration: underline; }
.icon-button { background: transparent; border: 0; color: var(--muted); font-size: 27px; line-height: 1; min-width: 36px; min-height: 36px; border-radius: 8px; }
.icon-button:hover { background: var(--page); }
label { display: grid; gap: 7px; color: var(--ink); }
input, textarea, select {
    width: 100%; min-width: 0; min-height: 42px; border: 1px solid #cad6cd;
    border-radius: 8px; padding: 10px 11px; background: #fff; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #6b7a70; }
input:focus, textarea:focus, select:focus { outline: 2px solid #66a681; outline-offset: 1px; }
input[readonly] { background: var(--page); }
textarea { resize: vertical; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row input { flex: 1; }
.check-row { display: flex; align-items: center; }
.check-row input { width: 17px; min-height: 17px; accent-color: var(--green); }
.notice { color: var(--green-hover); padding: 10px 12px; margin-top: 8px; background: var(--green-10); border-radius: 8px; line-height: 1.55; }
.error-text { color: #8d2521 !important; background: #f9e9e7 !important; }
.brand-mark {
    width: 37px; height: 37px; display: inline-grid; place-items: center; border-radius: 11px;
    color: #f0e7ca; background: #3f6954; font-size: 22px; flex: none;
}
.badge {
    display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 8px;
    background: #ebefea; color: #42534a; font-size: .82rem; white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-held { color: #4c6073; background: #e4ebf1; }
.badge-pending, .badge-assigned { color: #2e537a; background: #e7f0fa; }
.badge-accepted { color: #225b42; background: #e4f1e8; }
.badge-en_route, .badge-collected { color: #285962; background: #e4f0ef; }
.badge-cremating { color: #633c83; background: #eee6f4; }
.badge-delivering { color: #285d77; background: #e0f0f5; }
.badge-completed { color: #365748; background: #e8efea; }
.badge-canceled { color: #8f3838; background: #f9e8e7; }
.map-surface {
    overflow: hidden; position: relative; isolation: isolate; background: #e9efe8;
}
.map-fallback {
    min-height: 100%; display: grid; place-items: center; text-align: center; padding: 20px;
    color: var(--muted); background: repeating-linear-gradient(135deg,#e9efe8,#e9efe8 18px,#e5ece4 19px,#e5ece4 20px);
}
.map-pin {
    border: 2px solid white; border-radius: 12px; background: var(--green); color: white;
    padding: 4px 8px; font-size: .8rem; box-shadow: 0 2px 6px rgb(0 0 0 / 24%);
}
.map-pin.pin-pickup { background: #a34933; }
.map-pin.pin-return { background: #7153a5; }
.map-pin.pin-busy { background: #876222; }
.map-pin.pin-self { background: #386483; }
.empty { display: grid; place-items: center; align-content: center; text-align: center; gap: 8px; min-height: 155px; color: var(--muted); padding: 24px 10px; }
.empty strong { color: var(--ink); }
.empty p { line-height: 1.5; font-size: .92rem; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--green-10); color: var(--green); border-radius: 13px; font-size: 21px; }
.modal {
    padding: 0; border: 1px solid var(--line); border-radius: 15px; width: min(650px, calc(100% - 28px));
    max-height: min(90vh, 900px); background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgb(16 35 23 / 23%);
}
.modal-small { max-width: 480px; }
.modal::backdrop { background: rgb(17 37 27 / 45%); }
.modal > form { display: flex; flex-direction: column; max-height: min(90vh, 900px); }
.modal-head, .modal-actions { display: flex; align-items: center; gap: 10px; padding: 16px 22px; }
.modal-head { justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.38rem; }
.modal-head p { color: var(--muted); margin-top: 4px; }
.modal-actions { justify-content: flex-end; border-top: 1px solid var(--line); }
.modal-body { padding: 18px 22px; overflow: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.field-hint { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 6px; }
