:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17312d; background: #f4f7f5; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #e3f3ed 0, #f4f7f5 42%, #eef2f0 100%); }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.shell { width: 100%; margin: 0 auto; padding: 36px 32px 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.eyebrow, .hero-kicker { margin: 0 0 5px; color: #6d817b; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(28px, 6vw, 42px); letter-spacing: -.05em; }
.icon-button { width: 44px; height: 44px; border-radius: 14px; color: #58746d; background: #fff; box-shadow: 0 5px 18px #1e453614; font-size: 20px; }
.hero-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 25px 27px; color: #fff; border-radius: 24px; background: linear-gradient(125deg, #1e7562, #2b9b7d); box-shadow: 0 14px 30px #1e75622b; }
.hero-card strong { display: inline-block; font-size: 48px; line-height: .95; letter-spacing: -.07em; }
.hero-card span { color: #d9f3e9; font-size: 15px; }
.hero-kicker { color: #bce9d9; }
.primary-button { padding: 13px 18px; color: #135442; border-radius: 12px; background: #fff; font-weight: 800; white-space: nowrap; box-shadow: 0 5px 12px #0a4e3a24; }
.primary-button:hover { transform: translateY(-1px); }
.quick-register { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: flex-start; gap: 18px; margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.hint { color: #82918b; font-size: 13px; }
.bulk-submit { order: -1; position: sticky; top: 12px; z-index: 3; padding: 13px 18px; color: #fff; border-radius: 12px; background: #22856c; font-weight: 800; box-shadow: 0 5px 12px #0a4e3a24; white-space: nowrap; }
.bulk-submit:hover { background: #176b57; }
.category-filters { display: flex; gap: 8px; margin-bottom: 13px; overflow-x: auto; padding-bottom: 3px; }
.catalog-search { display: block; width: min(100%, 520px); margin: 0 0 12px; padding: 12px 15px; border: 1px solid #d6e2dc; border-radius: 11px; background: #fff; font-size: 16px; }
.category-filter { padding: 9px 13px; color: #63766f; border: 1px solid #d9e6df; border-radius: 99px; background: #fff; font-size: 13px; font-weight: 750; white-space: nowrap; }
.category-filter.active { color: #fff; border-color: #22856c; background: #22856c; }
.catalog-list { display: grid; gap: 9px; }
.catalog-item { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); height: 48px; min-height: 48px; gap: 16px; align-items: center; padding: 5px 14px; overflow: hidden; border: 1px solid #e0e9e4; border-radius: 11px; background: #fff; }
.catalog-item { cursor: pointer; }
.catalog-item:hover { border-color: #9ecfbe; background: #fbfffd; }
.catalog-item-with-image { grid-template-columns: 180px 38px minmax(0, 1fr) minmax(0, 1fr); }
.catalog-item > div { min-width: 0; }
.catalog-image { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; background: #edf5f1; }
.catalog-name { margin: 0; font-size: 15px; font-weight: 800; white-space: nowrap; }
.catalog-english { margin: 0; color: #526d64; font-size: 13px; white-space: nowrap; }
.catalog-limit { margin-top: 2px; color: #719087; font-size: 11px; white-space: nowrap; }
.catalog-note { display: block; max-width: 220px; overflow: hidden; color: #7b8e87; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.english-cell { display: flex; align-items: center; gap: 14px; min-width: 0; white-space: nowrap; }
.english-cell .catalog-limit { margin: 0; }
.register-item { padding: 10px 12px; color: #1b765e; border: 1px solid #bfe4d6; border-radius: 10px; background: #effaf5; font-weight: 800; white-space: nowrap; }
.register-item:hover { background: #dff5eb; }
.register-area { display: flex; align-items: center; gap: 10px; min-width: 0; }
.direct-register { display: flex; align-items: center; gap: 5px; margin: 0; padding: 3px 7px; color: #235d4d; border: 1px solid #b9ded0; border-radius: 7px; background: #effaf5; font-size: 12px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.direct-register em { color: #6c847c; font-size: 10px; font-style: normal; font-weight: 600; }
.direct-register input { width: 14px; height: 14px; margin: 0; padding: 0; }
.stock-input { width: 96px; margin: 0; padding: 7px 9px; font-size: 13px; }
.register-area small { display: none; color: #71827c; font-size: 11px; }
.tabs { display: flex; gap: 8px; margin: 25px 0 14px; border-bottom: 1px solid #dce6e1; }
.tab { position: relative; padding: 11px 12px 13px; color: #7a8984; background: transparent; font-weight: 750; }
.tab span { display: inline-grid; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 5px; place-items: center; color: #60736d; border-radius: 99px; background: #e5ece8; font-size: 12px; }
.tab.active { color: #1b6958; }
.tab.active::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 3px; border-radius: 4px 4px 0 0; background: #279578; content: ""; }
.task-list { display: grid; gap: 11px; }
.task { display: grid; grid-template-columns: 1fr auto; height: 48px; min-height: 48px; gap: 12px; align-items: center; padding: 5px 12px; overflow: hidden; border: 1px solid #e0e9e4; border-radius: 11px; background: #fff; box-shadow: 0 4px 16px #204b3b09; }
.task-main { display: flex; min-width: 0; align-items: center; gap: 14px; overflow: hidden; }
.task-with-image { grid-template-columns: 34px 1fr auto; }
.task-image { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; background: #edf5f1; }
.task-name { flex: 0 0 150px; min-width: 0; margin: 0; overflow: hidden; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { display: flex; flex-wrap: nowrap; gap: 7px 12px; color: #81908b; font-size: 12px; white-space: nowrap; }
.edit-qty { padding: 0; color: #287866; background: transparent; font-size: 12px; text-decoration: underline; }
.recommend-text { color: #235d4d; font-weight: 800; }
.task-note { display: none; }
.urgent { color: #b94f3b; }
.done-task { opacity: .72; }
.done-task .task-name { text-decoration: line-through; }
.done-date { color: #548a78; font-size: 11px; white-space: nowrap; }
.complete-button { padding: 10px 13px; color: #1b765e; border: 1px solid #bfe4d6; border-radius: 11px; background: #effaf5; font-weight: 750; white-space: nowrap; }
.complete-button:hover { background: #dff5eb; }
.empty-state { padding: 62px 20px; text-align: center; color: #6f817a; }
.empty-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 15px; place-items: center; color: #fff; border-radius: 50%; background: #66b69d; font-size: 28px; }
.empty-state h2 { margin: 0 0 7px; color: #365e53; font-size: 19px; }
.empty-state p { margin: 0; font-size: 14px; }
.hidden { display: none !important; }
dialog { width: min(calc(100% - 24px), 760px); max-height: calc(100vh - 24px); padding: 0; color: #17312d; border: 0; border-radius: 22px; box-shadow: 0 25px 70px #18372e38; }
dialog::backdrop { background: #12352c66; backdrop-filter: blur(3px); }
dialog form { padding: 30px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.dialog-header h2 { margin: 0; font-size: 28px; }
.close-button { color: #6d817b; background: transparent; font-size: 28px; line-height: 1; }
label { display: block; margin: 14px 0; color: #49635b; font-size: 16px; font-weight: 700; }
input, textarea, select { width: 100%; margin-top: 7px; padding: 14px 15px; color: #17312d; border: 1px solid #d6e2dc; border-radius: 11px; outline: none; background: #fbfdfc; font-size: 16px; }
input:focus, textarea:focus { border-color: #53aa91; box-shadow: 0 0 0 3px #53aa9124; }
.quantity-row { display: flex; align-items: center; gap: 9px; }
.quantity-row input { margin: 0; }
.quantity-row span { min-width: 28px; color: #71827c; font-weight: 500; }
.full { width: 100%; margin-top: 12px; color: #fff; background: #22856c; }
.dialog-help { margin: -7px 0 17px; color: #7a8a84; font-size: 13px; line-height: 1.5; }
.defaults-list { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.default-row { display: grid; grid-template-columns: 1fr 1fr 1.1fr 110px 1.3fr auto; gap: 9px; align-items: center; }
.add-default-row { display: flex; margin-top: 10px; }
.default-row input, .add-default-row input { margin: 0; }
.default-row .remove-default { padding: 9px; color: #b76858; background: transparent; font-size: 18px; }
.secondary-button { padding: 11px 12px; color: #286e5d; border: 1px solid #c8e4d8; border-radius: 10px; background: #eff9f5; font-weight: 750; }
.add-status { margin: 9px 0 0; color: #6d817b; font-size: 13px; }
.import-box { display: grid; gap: 10px; margin-top: 19px; padding: 17px; color: #62776f; border: 1px dashed #b8d8cc; border-radius: 12px; background: #f5fbf8; font-size: 14px; }
.import-box strong { color: #286e5d; font-size: 17px; }
.import-box input { margin: 0; padding: 8px; background: #fff; }
.backup-box { display: grid; gap: 8px; margin-top: 13px; padding: 14px; color: #62776f; border: 1px solid #d8e8e1; border-radius: 12px; background: #fbfdfc; font-size: 13px; }
.backup-box strong { color: #286e5d; font-size: 16px; }
.backup-restore { display: inline-flex; width: fit-content; align-items: center; gap: 8px; margin: 0; padding: 8px 11px; color: #286e5d; border: 1px solid #c8e4d8; border-radius: 9px; background: #eff9f5; font-size: 13px; }
.backup-restore input { width: auto; margin: 0; padding: 0; border: 0; background: transparent; }
.import-box textarea { margin: 0; min-height: 110px; resize: vertical; background: #fff; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.import-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.paste-status { margin: 0; color: #58766c; font-size: 13px; }
.toast { position: fixed; right: 16px; bottom: 20px; left: 16px; width: fit-content; max-width: calc(100% - 32px); margin: auto; padding: 12px 16px; color: #fff; border-radius: 12px; background: #193f35; box-shadow: 0 8px 24px #12352c38; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 680px) { .shell { width: 100%; padding: 22px 11px 48px; } .hero-card { padding: 21px 19px; } .hero-card strong { font-size: 41px; } .primary-button { padding: 12px 13px; } .task { height: 48px; min-height: 48px; padding: 5px 9px; } .task-main { gap: 7px; } .task-name { flex-basis: 90px; } .task-meta { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; } .complete-button { padding: 7px 9px; font-size: 12px; } .section-heading { align-items: start; flex-direction: column; gap: 5px; } .catalog-item { grid-template-columns: 190px 1fr 1fr; height: 48px; min-height: 48px; gap: 8px; } .catalog-item-with-image { grid-template-columns: 190px 34px 1fr 1fr; } .english-cell { gap: 7px; overflow: hidden; } .register-area { grid-column: auto; justify-content: flex-start; flex-wrap: nowrap; } .register-area small { display: none; } .direct-register { font-size: 11px; } .default-row { grid-template-columns: 1fr 1fr auto; } .default-row input[data-default-english] { grid-column: 1 / 3; } dialog form { padding: 22px 18px; } }
