*{box-sizing:border-box}html{color:#202124;background:#f7f7f9;min-width:320px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}body{background:linear-gradient(#faf8fd 0,#f7f7f9 220px);min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font-family:inherit}button,select{touch-action:manipulation}:root{--purple:#531ba0;--pink:#f6b2eb;--green:#94c840;--light-green:#d6e590;--purple-hover:#42147f;--purple-soft:#f4edfc;--green-dark:#355b12;--green-soft:#f3f8e9;--red:#c62828;--red-soft:#fff0f0;--text:#202124;--text-secondary:#666;--border:#dedede;--background:#f7f7f9;--card:#fff;--shadow:0 2px 8px #0000000f}.app{width:100%;max-width:1180px;margin:0 auto;padding:20px}.card{background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:14px;padding:20px}h1,h2,h3{color:var(--text)}h1{margin:0}h2{margin-top:0}p{color:var(--text)}.page-header{border-bottom:3px solid var(--purple);flex-direction:column;gap:16px;margin-bottom:26px;padding-bottom:18px;display:flex}.page-header h1{color:var(--purple)}.page-header p{color:var(--text-secondary);margin:4px 0 0}.header-actions{flex-wrap:wrap;gap:10px;display:flex}button{font:inherit}.primary-button{border:1px solid var(--purple);background:var(--purple);color:#fff;cursor:pointer;border-radius:9px;min-height:44px;padding:10px 16px;font-weight:600}.primary-button:hover:not(:disabled){background:var(--purple-hover);border-color:var(--purple-hover)}.secondary-button{border:1px solid var(--purple);min-height:44px;color:var(--purple);cursor:pointer;background:#fff;border-radius:9px;padding:10px 16px;font-weight:600}.secondary-button:hover:not(:disabled){background:var(--purple-soft)}.danger-button{border:1px solid var(--red);min-height:44px;color:var(--red);cursor:pointer;background:#fff;border-radius:9px;padding:10px 16px;font-weight:600}.danger-button:hover:not(:disabled){background:var(--red-soft)}button:disabled{opacity:.55;cursor:not-allowed}.login-card{border:1px solid var(--border);border-top:6px solid var(--purple);width:min(440px,100%);box-shadow:var(--shadow);text-align:center;background:#fff;border-radius:16px;margin:80px auto;padding:32px}.login-card h1{color:var(--purple)}.login-card .primary-button,.login-card .secondary-button{width:100%;margin-top:14px}.error-message{background:var(--red-soft);color:#8c1d1d;border:1px solid #e6a2a2;border-radius:9px;padding:12px 14px}.success-message{border:1px solid var(--green);background:var(--light-green);color:var(--green-dark);border-radius:9px;padding:12px 14px}.request-form{grid-template-columns:1fr;gap:16px;display:grid}.request-form label,.status-control,.toolbar-field{flex-direction:column;gap:6px;font-weight:600;display:flex}input,select,textarea{width:100%;color:var(--text);font:inherit;box-sizing:border-box;background:#fff;border:1px solid #cfcfcf;border-radius:8px;padding:10px 11px}input:focus,select:focus,textarea:focus{border-color:var(--purple);outline:3px solid #531ba029}textarea{resize:vertical}.full-width{grid-column:1/-1}.form-buttons{flex-wrap:wrap;gap:10px;display:flex}.upload-label{margin-bottom:6px;font-weight:600;display:block}.drop-zone{background:var(--purple-soft);text-align:center;border:2px dashed #b9a5d5;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;min-height:180px;padding:24px;transition:border-color .15s,background .15s;display:flex}.drop-zone-active{border-color:var(--purple);background:#eee2fb}.drop-zone>span{margin-top:8px}.browse-button{background:var(--purple);color:#fff;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;min-height:44px;margin-top:10px;padding:10px 16px;font-weight:600;display:inline-flex}.browse-button:hover{background:var(--purple-hover)}.file-input-hidden{display:none}.field-help{color:var(--text-secondary);margin-top:6px;font-size:.85rem;font-weight:400}.selected-files{flex-direction:column;gap:8px;margin-top:12px;display:flex}.selected-file{border:1px solid var(--border);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.selected-file>div{flex-direction:column;min-width:0;display:flex}.selected-file span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.selected-file small{color:var(--text-secondary);margin-top:2px}.remove-file-button{color:red;cursor:pointer;background:#fff;border:1px solid #ccc;border-radius:7px;flex-shrink:0;min-height:36px;padding:6px 10px}.existing-files{background:var(--purple-soft);border-radius:8px;flex-direction:column;gap:6px;padding:12px;display:flex}.queue-section{margin-bottom:30px}.queue-header{justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px;display:flex}.queue-header h2{color:var(--purple);margin:0}.queue-header p{color:var(--text-secondary);margin:4px 0 0}.queue-empty{border-left:5px solid var(--green);margin-bottom:0}.queue-empty p{margin:0}.queue-line{scroll-snap-type:x proximity;gap:12px;padding:2px 2px 12px;display:flex;overflow-x:auto}.queue-item{border:1px solid var(--border);box-shadow:var(--shadow);scroll-snap-align:start;background:#fff;border-radius:13px;flex-direction:column;flex:0 0 min(280px,82vw);gap:8px;padding:16px;display:flex}.queue-item-up-next{border:3px solid var(--green);background:linear-gradient(135deg, white, var(--green-soft))}.queue-item-up-next .queue-position{background:var(--green);color:#1d3108;border-radius:999px;padding:4px 8px}.queue-item-dragging{opacity:.5}.queue-item-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.queue-position{letter-spacing:.04em;color:var(--purple);font-size:.78rem;font-weight:800}.queue-part-name{font-size:1.05rem}.queue-needed-by,.queue-person{color:var(--text-secondary);font-size:.9rem}.queue-arrows{gap:5px;display:flex}.queue-arrows button{width:40px;height:40px;color:var(--purple);cursor:pointer;background:#fff;border:1px solid #c5b2dd;border-radius:7px;padding:0;font-size:1.1rem;font-weight:700}.queue-arrows button:hover:not(:disabled){background:var(--purple-soft)}.queue-arrows button:disabled{opacity:.3;cursor:not-allowed}.requests-section{margin-top:28px}.requests-title-row{justify-content:space-between;align-items:end;gap:16px;margin-bottom:12px;display:flex}.requests-title-row h2{color:var(--purple);margin:0}.requests-title-row p{color:var(--text-secondary);margin:4px 0 0}.request-toolbar{background:var(--purple-soft);border:1px solid #d9caeb;border-radius:12px;grid-template-columns:1fr;gap:12px;margin-bottom:18px;padding:14px;display:grid}.requests-grid{grid-template-columns:1fr;gap:16px;display:grid}.request-card{position:relative;overflow:hidden}.request-card:before{background:var(--purple);content:"";width:100%;height:4px;position:absolute;top:0;left:0}.request-card-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.request-card-header h3{margin-top:0}.status{background:var(--purple-soft);color:var(--purple);text-transform:uppercase;letter-spacing:.03em;border-radius:999px;flex-shrink:0;padding:5px 9px;font-size:.75rem;font-weight:800}.status-submitted{color:var(--purple);background:#f2e8ff}.status-approved{background:var(--light-green);color:var(--green-dark)}.status-queued{background:var(--pink);color:var(--purple)}.status-machining{background:var(--purple);color:#fff}.status-ready{background:var(--green);color:#1d3108}.status-completed{background:var(--light-green);color:var(--green-dark)}.status-cancelled{color:#666;background:#eee}.request-people{border-left:4px solid var(--green);background:var(--green-soft);border-radius:8px;margin-bottom:14px;padding:10px 12px}.request-people p{margin:3px 0}.request-admin-controls{background:var(--purple-soft);border:1px solid #decff0;border-radius:10px;grid-template-columns:1fr;gap:12px;margin-bottom:16px;padding:12px;display:grid}.status-control{margin-bottom:0}.request-files{flex-direction:column;gap:8px;margin-top:16px;display:flex}.file-button{width:100%;min-height:44px;color:var(--text);text-align:left;cursor:pointer;background:#fafafa;border:1px solid #ddd;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;display:flex}.file-button:hover{background:var(--purple-soft);border-color:#c6a9e7}.file-button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-button small{color:#777;flex-shrink:0}.request-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.request-created{color:#777;margin-top:18px;margin-bottom:0;font-size:.8rem}.admin-page{flex-direction:column;gap:18px;display:flex}.admin-page-header{flex-direction:column;gap:12px;display:flex}.admin-page-header h2{color:var(--purple);margin:0}.admin-page-header p{color:var(--text-secondary);margin:4px 0 0}.admin-info-card{border-left:5px solid var(--green)}.admin-info-card p{margin-bottom:0}.admin-add-card{border-top:4px solid var(--purple)}.admin-add-card h3{margin-top:0}.admin-add-form{grid-template-columns:1fr;gap:12px;display:grid}.admin-add-form label,.admin-member-fields label,.admin-member-toolbar label{flex-direction:column;gap:6px;font-weight:600;display:flex}.admin-add-button-wrap{align-items:end;display:flex}.admin-add-button-wrap button{width:100%}.admin-member-toolbar{background:var(--purple-soft);border:1px solid #decff0;border-radius:12px;padding:14px}.admin-member-list{grid-template-columns:1fr;gap:14px;display:grid}.admin-member-card{flex-direction:column;gap:16px;display:flex}.admin-member-inactive{opacity:.68;background:#f5f5f5}.admin-member-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.admin-member-heading>div{flex-direction:column;gap:3px;min-width:0;display:flex}.admin-member-email{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.member-access-badge{border-radius:999px;flex-shrink:0;padding:5px 8px;font-size:.75rem;font-weight:800}.member-access-active{background:var(--light-green);color:var(--green-dark)}.member-access-inactive{color:#666;background:#eee}.admin-member-fields{grid-template-columns:1fr;gap:12px;display:grid}.admin-self-note{color:var(--text-secondary);margin:0;font-size:.85rem}.admin-member-actions{justify-content:flex-end;display:flex}.admin-member-actions button{width:100%}@media (width>=700px){.app{padding:28px}.page-header{flex-direction:row;justify-content:space-between;align-items:center}.request-form{grid-template-columns:repeat(2,minmax(0,1fr))}.request-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.requests-grid,.request-admin-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.queue-item{flex-basis:260px}.admin-page-header{flex-direction:row;justify-content:space-between;align-items:center}.admin-add-form{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(150px,.7fr) auto}.admin-add-button-wrap button{width:auto}.admin-member-fields{grid-template-columns:minmax(0,1.5fr) minmax(140px,.7fr) minmax(140px,.7fr)}.admin-member-actions button{width:auto}.admin-member-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1000px){.requests-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (hover:hover) and (pointer:fine){.queue-item-draggable{cursor:grab}.queue-item-draggable:active{cursor:grabbing}}.request-card-badges{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:6px;display:flex}.attention-badge{border-radius:999px;align-items:center;width:fit-content;padding:5px 8px;font-size:.75rem;font-weight:800;display:inline-flex}.attention-overdue{color:#a71919;background:#fff0f0;border:1px solid #e6a2a2}.attention-urgent{background:var(--light-green);color:var(--green-dark);border:1px solid var(--green)}.request-card-overdue:before{background:#c62828}.request-card-urgent:before{background:var(--green)}.existing-file-row{align-items:center;gap:8px;display:flex}.existing-file-row .file-button{flex:1;min-width:0}.existing-file-row .remove-file-button{flex-shrink:0}@media (width>=700px){.request-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1000px){.request-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}}.request-card-finished{opacity:.7;background:#eee}.request-card-finished:before{background:#999}.request-card-finished .request-people,.request-card-finished .request-admin-controls{background:#e5e5e5;border-color:#ccc}.request-activity{border-top:1px solid var(--border);margin-top:18px}.activity-toggle{width:100%;min-height:44px;color:var(--purple);text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;padding:12px 2px;font-weight:700;display:flex}.activity-toggle:hover{color:var(--purple-hover)}.activity-chevron{margin-left:12px;font-size:.7rem}.activity-panel{padding:4px 0 10px}.activity-list{flex-direction:column;gap:0;display:flex}.activity-item{grid-template-columns:18px minmax(0,1fr);gap:10px;min-height:58px;display:grid;position:relative}.activity-item:not(:last-child):before{background:var(--light-green);content:"";width:2px;position:absolute;top:17px;bottom:-1px;left:5px}.activity-dot{z-index:1;border:2px solid var(--purple);background:#fff;border-radius:50%;width:12px;height:12px;margin-top:5px;position:relative}.activity-content{flex-direction:column;gap:4px;padding-bottom:14px;display:flex}.activity-description{color:var(--text);font-size:.9rem}.activity-time{color:var(--text-secondary);font-size:.78rem}.activity-loading,.activity-empty{color:var(--text-secondary);margin:4px 0 8px;font-size:.9rem}
