*{box-sizing:border-box}html{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#182437;background:#f3f5f9}body{margin:0;min-width:320px}.shell{min-height:100dvh;display:grid;place-items:center;padding:20px}.panel{width:min(100%,430px);padding:36px 26px;background:white;border:1px solid #e3e8f0;border-radius:20px;box-shadow:0 12px 48px #15223812;text-align:center}.logo{display:grid;place-items:center;margin:0 auto 20px;width:54px;height:54px;border-radius:16px;background:#182437;color:#fff;font-size:28px;font-weight:750}.eyebrow{margin:0 0 9px;font-size:11px;letter-spacing:.18em;font-weight:700;color:#758298}h1{margin:0;font-size:27px;letter-spacing:-.04em}.description{margin:12px 0 26px;color:#6b7789;font-size:14px}.login,.secondary{width:100%;min-height:54px;border-radius:12px;border:1px solid #dce2eb;background:#fff;color:#182437;font-size:16px;font-weight:650;cursor:pointer}.login:hover,.secondary:hover{background:#f6f8fb}button:disabled{opacity:.6;cursor:wait}.status{min-height:24px;margin:16px 0 0;font-size:13px;line-height:1.5;color:#a42323}.note{margin:10px 0 0;color:#8993a3;font-size:12px}.account{overflow-wrap:anywhere;color:#17623d;font-size:14px}.hidden{display:none}
.field-label{display:block;text-align:left;margin:14px 0 6px;font-size:13px;font-weight:700}
input,select{width:100%;min-height:48px;border:1px solid #dce2eb;border-radius:10px;padding:0 12px;background:#fff;font-size:16px}
#signup-submit{margin-top:20px;background:#182437;color:#fff}
.profile{display:flex;align-items:center;justify-content:center;gap:10px;font-size:20px}
#profile-role{font-size:12px;border-radius:20px;background:#e9eef6;padding:5px 10px}
.section-title{font-size:15px;text-align:left;margin-top:28px}
.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.menu-card{padding:18px 8px;border:1px solid #e3e8f0;border-radius:12px;font-weight:700;font-size:14px;text-align:center}
.menu-card small{display:block;font-weight:400;color:#8993a3;margin-top:7px}
#logout{margin-top:18px}

/* 발주하기: 모바일 우선 */
.menu-action{font-family:inherit;background:#eef3fb;color:#182437;cursor:pointer;width:100%;min-height:92px}
.menu-action:hover{background:#e2ebf9}
.order-view{text-align:left}
.order-header{display:flex;align-items:center;gap:12px;margin-top:8px}
.order-header h2{font-size:21px;margin:0}
.back-button{border:0;background:#e9eef6;border-radius:10px;min-height:44px;padding:0 12px;font-size:14px;font-weight:650;cursor:pointer}
.catalog-info{font-size:13px;color:#52617a;margin:14px 0}
.vendor-notice{font-size:13px;line-height:1.5;background:#fff8e7;padding:12px;border-radius:10px;white-space:pre-wrap}
.item-list{display:grid;gap:10px;margin-top:16px}
.item-card{border:1px solid #e0e6ee;border-radius:13px;padding:14px;background:#fff}
.item-title{font-size:16px;font-weight:750;line-height:1.45;overflow-wrap:anywhere}
.item-meta{color:#637187;font-size:13px;margin-top:5px;overflow-wrap:anywhere}
.item-description{font-size:12px;color:#738095;margin-top:7px;white-space:pre-wrap;overflow-wrap:anywhere}
.item-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.qty-control{display:flex;align-items:center;gap:6px}
.qty-control button{width:44px;height:44px;border:1px solid #dce2eb;background:#f4f7fb;border-radius:10px;font-size:23px;cursor:pointer}
.qty-control input{width:70px;min-height:44px;text-align:center;padding:0 4px;font-size:17px;font-weight:700}
.draft-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 0;margin-top:12px;border-top:1px solid #e3e8f0;font-size:14px}
#clear-draft{min-height:42px;padding:0 12px;border:1px solid #dce2eb;background:#fff;border-radius:9px;cursor:pointer}
.empty-state{padding:26px 12px;text-align:center;color:#738095;background:#f6f8fb;border-radius:12px;font-size:14px}
@media(max-width:480px){.shell:has(.order-view:not(.hidden)){display:block;padding:10px}.panel:has(.order-view:not(.hidden)){padding:24px 16px;max-width:650px;margin:auto}.panel:has(.order-view:not(.hidden))>.logo,.panel:has(.order-view:not(.hidden))>.eyebrow{display:none}}

.cart-list{display:grid;gap:8px;margin:12px 0}.cart-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e3e8f0;padding:10px 0;font-size:13px}.cart-row span{overflow-wrap:anywhere}.cart-row strong{white-space:nowrap}.primary-action{background:#182437;color:white;margin:8px 0 12px}.history-detail{font-size:13px;border-top:1px solid #f0f1f4;padding:9px 0;color:#52617a}.panel:has(.history-view:not(.hidden)){text-align:left}.shell:has(.history-view:not(.hidden)){display:block;padding:10px}

.sms-panel{margin-top:22px;padding-top:12px;border-top:2px solid #dce2eb}.sms-panel h3{margin:0 0 8px}.sms-panel .item-card{margin:12px 0}.sms-message{display:block;width:100%;min-height:170px;resize:vertical;margin:12px 0;border:1px solid #dce2eb;border-radius:10px;padding:12px;font:14px/1.6 system-ui,sans-serif}.sms-actions{display:flex;flex-wrap:wrap;gap:8px}.sms-actions button{flex:1 1 130px;min-height:46px}

.vendor-setting{display:flex;align-items:center;gap:12px;margin:12px 0;font-size:16px}.vendor-setting input{width:22px;height:22px;flex:none}

/* v9: textarea와 저장 버튼이 인접해 붙어 보이는 현상 수정 */
.editor-form{display:flex;flex-direction:column;align-items:stretch;gap:0;text-align:left}
.editor-form textarea{display:block;width:100%;min-height:110px;padding:12px;border:1px solid #dce2eb;border-radius:10px;font:16px/1.5 system-ui,sans-serif;resize:vertical;margin:0}
.editor-form .editor-actions{display:flex;gap:10px;margin-top:18px;align-items:stretch}
.editor-form .editor-actions button{flex:1;min-height:48px;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer}
.editor-form .editor-save{border:0;background:#182437;color:white}
#worker-editor{margin-top:16px}

/* v10: 품목 등록/수정 독립 모달 및 저장 결과 */
.catalog-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(13,23,39,.65);padding:16px;overflow-y:auto}
.catalog-modal.hidden{display:none}
.catalog-modal-card{width:min(100%,480px);max-height:calc(100dvh - 32px);overflow-y:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 20px 80px #0004;text-align:left}
.catalog-modal-card h3{margin:0 0 14px}
.catalog-feedback{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:10px 0 0;min-height:18px}
.modal-open{overflow:hidden}
.toast{position:fixed;z-index:1100;bottom:24px;left:50%;transform:translateX(-50%);width:min(calc(100% - 32px),440px);padding:14px 18px;border-radius:12px;color:white;box-shadow:0 8px 32px #0003;text-align:center;font-size:14px;overflow-wrap:anywhere}
.toast.hidden{display:none}.toast-success{background:#17623d}.toast-error{background:#a42323}

/* GPS 출퇴근 테스트 */
#attendance-clock{font-size:34px;font-variant-numeric:tabular-nums;letter-spacing:1px}.attendance-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.attendance-actions button{min-height:64px;font-size:20px;font-weight:700;border-radius:12px}.attendance-actions button:disabled{opacity:.45;cursor:not-allowed}
