:root{--theme-bg: #f4f7f9;--theme-surface: #ffffff;--theme-surface-soft: #f8fafc;--theme-surface-muted: #f1f5f9;--theme-text: #111827;--theme-text-muted: #6b7280;--theme-border: #e5e7eb;--theme-accent: #1e88e5;--theme-accent-strong: #1e3a8a;--theme-shadow: 0 2px 10px rgba(0, 0, 0, .06)}:root[data-theme=dark]{--theme-bg: #0b1220;--theme-surface: #111827;--theme-surface-soft: #1f2937;--theme-surface-muted: #0f172a;--theme-text: #e5e7eb;--theme-text-muted: #9ca3af;--theme-border: #334155;--theme-accent: #3b82f6;--theme-accent-strong: #93c5fd;--theme-shadow: 0 8px 30px rgba(2, 6, 23, .45)}html,body,#root{background:var(--theme-bg);color:var(--theme-text)}body{transition:background-color .2s ease,color .2s ease}a{color:var(--theme-accent-strong)}.theme-toggle{position:fixed;top:14px;right:14px;z-index:12000;width:42px;height:42px;border-radius:999px;border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);font-size:18px;line-height:1;cursor:pointer;box-shadow:var(--theme-shadow)}.theme-toggle:hover{background:var(--theme-surface-soft)}.theme-toggle:active{transform:translateY(1px)}[data-theme=dark] .app-hero{background:linear-gradient(90deg,#1b3a8a,#111f4d)}[data-theme=dark] .app-subtitle{color:#cbd5e1}[data-theme=dark] .app-container,[data-theme=dark] .admin-page,[data-theme=dark] .toolbar-metrics,[data-theme=dark] .authbar,[data-theme=dark] .form-section,[data-theme=dark] .rf-screen,[data-theme=dark] .list-section,[data-theme=dark] .filters-panel,[data-theme=dark] .filters-top,[data-theme=dark] .mc-card,[data-theme=dark] .calendar-cell,[data-theme=dark] .calendar-metrics,[data-theme=dark] .section-card,[data-theme=dark] .users-section,[data-theme=dark] .settings-section,[data-theme=dark] .reports-section,[data-theme=dark] .bulk-section,[data-theme=dark] .history-section,[data-theme=dark] .history-order-card,[data-theme=dark] .history-order-item,[data-theme=dark] .history-actions-panel,[data-theme=dark] .timeline-item,[data-theme=dark] .stat-card,[data-theme=dark] .setting-item,[data-theme=dark] .bulk-item,[data-theme=dark] .notif-bell,[data-theme=dark] .notif-item,[data-theme=dark] .om-modal,[data-theme=dark] .recall-card{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border);box-shadow:var(--theme-shadow)}[data-theme=dark] .history-order-item.selected,[data-theme=dark] .history-item.selected,[data-theme=dark] .notif-item--unread{background:#1e293b}[data-theme=dark] .mc-card-hot-new{background:linear-gradient(180deg,#1f2937,#111827 45%);border-color:#f59e0b;box-shadow:0 10px 24px #f59e0b2e,0 1px 2px #02061759}[data-theme=dark] .mc-card-hot-new .mc-title{color:#fbbf24}[data-theme=dark] .mc-body,[data-theme=dark] .rf__title,[data-theme=dark] .rf__label,[data-theme=dark] .authbar__who,[data-theme=dark] .kv-key,[data-theme=dark] .kv-val,[data-theme=dark] .admin-header h1,[data-theme=dark] .section-card h3,[data-theme=dark] .section-card h4,[data-theme=dark] .section-header h2,[data-theme=dark] .settings-section h2,[data-theme=dark] .settings-group-title,[data-theme=dark] .reports-section h2,[data-theme=dark] .bulk-section h2,[data-theme=dark] .history-section h2,[data-theme=dark] .timeline-header strong,[data-theme=dark] .notif-item__title{color:var(--theme-text)}[data-theme=dark] .mc-title,[data-theme=dark] .cell-day,[data-theme=dark] .cell-count,[data-theme=dark] .tab-active,[data-theme=dark] .history-view-btn{color:#e2e8f0}[data-theme=dark] .cell-meta,[data-theme=dark] .rf__hint,[data-theme=dark] .rf__error,[data-theme=dark] .calendar-head .legend,[data-theme=dark] .legend,[data-theme=dark] .stat-label,[data-theme=dark] .empty-state,[data-theme=dark] .section-description,[data-theme=dark] .filter-count,[data-theme=dark] .history-order-info-row,[data-theme=dark] .history-order-meta,[data-theme=dark] .history-order-foreman,[data-theme=dark] .timeline-time,[data-theme=dark] .timeline-user,[data-theme=dark] .timeline-note,[data-theme=dark] .timeline-detail,[data-theme=dark] .notif-item__time,[data-theme=dark] .notif-item__msg,[data-theme=dark] .setting-desc{color:var(--theme-text-muted)}[data-theme=dark] .btn,[data-theme=dark] .btn-secondary,[data-theme=dark] .btn-outline,[data-theme=dark] .filters-actions button,[data-theme=dark] .notif-bell__action,[data-theme=dark] .rf__input,[data-theme=dark] .search-input,[data-theme=dark] .stat-reset,[data-theme=dark] .rf__qa,[data-theme=dark] .rf__cancel,[data-theme=dark] .role-select,[data-theme=dark] .bulk-select,[data-theme=dark] .filter-input,[data-theme=dark] .filter-select,[data-theme=dark] .assign-input,[data-theme=dark] .setting-item input,[data-theme=dark] .form-grid input,[data-theme=dark] .form-grid textarea,[data-theme=dark] .form-grid select,[data-theme=dark] .picker-open-btn,[data-theme=dark] .data-table th,[data-theme=dark] .data-table td,[data-theme=dark] .timeline-icon,[data-theme=dark] .timeline-note{background:var(--theme-surface-soft);color:var(--theme-text);border-color:var(--theme-border)}[data-theme=dark] .btn:hover,[data-theme=dark] .btn-secondary:hover,[data-theme=dark] .btn-outline:hover,[data-theme=dark] .filters-actions button:hover,[data-theme=dark] .notif-bell:hover{background:#273449}[data-theme=dark] .btn-primary,[data-theme=dark] .btn-blue,[data-theme=dark] .history-view-btn{background:#2563eb;color:#eff6ff}[data-theme=dark] .btn-primary:hover,[data-theme=dark] .btn-blue:hover,[data-theme=dark] .history-view-btn:hover{background:#1d4ed8}[data-theme=dark] .tab,[data-theme=dark] .tab-active{color:#cbd5e1}[data-theme=dark] .tab:hover,[data-theme=dark] .tab-active{color:#93c5fd;border-bottom-color:#3b82f6}[data-theme=dark] .admin-tabs{border-bottom-color:var(--theme-border)}[data-theme=dark] .btn-active,[data-theme=dark] .filters-actions button.active{background:#1e3a8a;border-color:#3b82f6;color:#dbeafe}[data-theme=dark] .stat-btn{border-color:#475569}[data-theme=dark] .rf__input::placeholder,[data-theme=dark] .search-input::placeholder,[data-theme=dark] .filter-input::placeholder{color:#94a3b8}[data-theme=dark] .rf__submit{background:linear-gradient(135deg,#2563eb,#1e3a8a)}[data-theme=dark] .rf__cancel{color:#e2e8f0}[data-theme=dark] .metrics-link{color:#93c5fd}[data-theme=dark] .metrics-link--disabled{color:#64748b}[data-theme=dark] .om-header,[data-theme=dark] .modal-actions-row{border-color:var(--theme-border);background:var(--theme-surface)}[data-theme=dark] .om-title,[data-theme=dark] .om-title-lg{color:var(--theme-text)}[data-theme=dark] .om-backdrop{background:#020617ad}[data-theme=dark] .om-modal .MuiInputBase-root,[data-theme=dark] .om-modal .MuiOutlinedInput-root{background:var(--theme-surface-soft);color:var(--theme-text)}[data-theme=dark] .om-modal .MuiOutlinedInput-notchedOutline{border-color:var(--theme-border)}[data-theme=dark] .om-modal .MuiInputBase-input{color:var(--theme-text);-webkit-text-fill-color:var(--theme-text)}[data-theme=dark] .om-modal .MuiInputBase-input.Mui-disabled{color:var(--theme-text-muted)!important;-webkit-text-fill-color:var(--theme-text-muted)!important}[data-theme=dark] .om-modal .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline{border-color:#475569}[data-theme=dark] .om-modal .MuiSvgIcon-root{color:var(--theme-text-muted)}@media (max-width: 768px){.theme-toggle{width:38px;height:38px;top:10px;right:10px;font-size:16px}}*,*:before,*:after{box-sizing:border-box}html,body{width:100%;overflow-x:hidden}img,video{max-width:100%;height:auto;display:block}.app-container{max-width:clamp(320px,100vw,1440px);margin:0 auto;padding:16px clamp(12px,4vw,24px) 48px}.app-content-line{max-width:1200px;margin:0 auto;width:100%;padding:0 16px;box-sizing:border-box}.app-grid{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:28px;align-items:start}.app-grid--single{grid-template-columns:minmax(0,1fr)}.app-grid--single .list-wrap{max-width:100%}.app-grid>*{min-width:0}.form-section{display:flex;flex-direction:column}.form-section .rf-screen{flex:1;display:flex;flex-direction:column}.form-section .rf-body{flex:1}.form-section .rf-footer{margin-top:12px}.right-pane{display:grid;grid-auto-rows:min-content;gap:14px;min-width:0;max-width:100%}.list-wrap{width:100%;max-width:min(1000px,100%);margin:0;min-width:0}.cards{display:grid;grid-template-columns:1fr;gap:14px;min-width:0}@media (max-width: 768px){.cards{padding-bottom:96px}}.mc-card{padding:14px 16px;width:100%;max-width:100%;overflow:hidden}.mc-card__row{display:flex;gap:8px;flex-wrap:wrap;min-width:0}.mc-card__title,.mc-card__value{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mc-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.mc-badges{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}.mc-status-badge.recall{background:#fee2e2;color:#b91c1c;border-color:#fecdd3}.calendar-item{padding:10px 12px;max-width:100%}.react-datepicker .MuiPickersDay-root,.MuiPickersDay-root{font-weight:700!important;font-size:1.0625rem!important}.MuiDialog-root .MuiClockPicker-root{transform:scale(1.1)}.MuiDialog-root .MuiDialog-paper{padding:20px}.filters,.tabs{display:flex;gap:8px;flex-wrap:wrap;min-width:0}.filters__chip,.tab{padding:10px 12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-actions{display:flex;gap:8px;flex-wrap:wrap;min-width:0}.card-actions .btn{flex:1 1 auto;min-width:120px;max-width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;color:#111827;font-size:14px;line-height:1;cursor:pointer;text-decoration:none;transition:background-color .12s ease,box-shadow .12s ease,transform .05s ease,color .12s ease,border-color .12s ease}.btn:hover{background:#f8fafc;box-shadow:0 2px 8px #0000000d}.btn:active{transform:translateY(1px)}.btn-group{display:inline-flex;gap:8px}.btn-active{background:#eef2ff;border-color:#c7d2fe;color:#1e40af}.toolbar-metrics{margin:12px 0 14px;padding:14px 18px;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa;display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:space-between}.toolbar-actions{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:10px}.toolbar-actions__top{display:flex;justify-content:flex-end;width:100%}.toolbar-metrics .metrics-text{font-size:15px;line-height:1.5;display:flex;flex-direction:column;gap:4px}.toolbar-metrics .metrics-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.toolbar-metrics .btn{padding:0 12px;height:34px}.metrics-link{background:none;border:none;padding:0;margin:0;color:#1e3a8a;font-weight:500;font-size:inherit;cursor:pointer;text-decoration:underline}.metrics-link--disabled{cursor:default;text-decoration:none;opacity:.9}.metrics-link:disabled{cursor:default}.metrics-sep{opacity:.7}.authbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px;padding:10px 12px;border:1px solid #eee;border-radius:10px;background:#fff}@media (min-width: 1024px){.toolbar-metrics{padding:16px 20px}.toolbar-metrics .metrics-text{font-size:17px}}@media (min-width: 1440px){.app-content-line{max-width:1200px}.toolbar-metrics .metrics-text{font-size:18px}}@media (max-width: 640px){.app-container{padding:0 12px 24px;width:100%;max-width:100%;box-sizing:border-box}.app-content-line{padding:0 12px;width:100%;max-width:100%;margin:0;box-sizing:border-box}.toolbar-metrics{margin:10px 0;padding:10px 12px;gap:10px;justify-content:flex-start}.toolbar-metrics .metrics-text{font-size:13px}.toolbar-metrics .btn-group{width:100%;margin-left:0!important;justify-content:center;flex-wrap:wrap}.toolbar-actions{width:100%;align-items:center}.toolbar-actions__top{justify-content:flex-end}.metrics-sep{display:none}.btn{height:34px;padding:0 12px;font-size:13px}}.fab-add{position:fixed;right:16px;bottom:16px;width:64px;height:64px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#1e88e5!important;color:#fff!important;font-size:44px;line-height:1;font-weight:700;border:none;outline:none;cursor:pointer;box-shadow:0 12px 26px #00000047;z-index:1000;-webkit-tap-highlight-color:transparent}.fab-add:active{transform:translateY(1px);box-shadow:0 10px 22px #0000003d}@media (min-width: 1025px){.fab-add{display:none}}@media (max-width: 1024px){.add-modal-open .fab-add{display:none}}.rf-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #eee;padding:12px 0 0}.rf__submit{width:100%;height:44px;font-size:16px;border-radius:12px}.rf-body{padding-bottom:72px}.login-panel{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.login-role{font-size:12px;opacity:.8}.login-form{display:flex;gap:8px;align-items:center}.login-input{padding:10px 12px;height:44px;font-size:16px}.login-submit{height:46px;font-size:16px}.login-error{color:#dc2626;font-size:12px}.login-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}@media (max-width: 768px){.login-form{flex-direction:column;width:100%;max-width:420px;margin:0 auto;align-items:stretch}.login-submit{width:100%}.login-actions{width:100%;justify-content:flex-start}}@media (max-width: 900px){.app-grid{display:block!important;grid-template-columns:1fr!important;gap:0!important}.right-pane{max-width:100%!important;width:100%!important}.app-container .list-section,.app-container .list-wrap,.app-container .filters,.app-container .cards,.app-container .main-content{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important}.list-wrap{max-width:100%!important}}:root{--gap: 12px}.container{max-width:1200px;margin:0 auto;padding:0 clamp(12px,4vw,16px)}@media (max-width: 768px){html,body{width:100%;overflow-x:hidden}*,*:before,*:after{box-sizing:border-box}img,video{max-width:100%;height:auto;display:block}.mobile-stack{display:flex;flex-direction:column;gap:var(--gap);min-width:0}.row,.mc-header,.filters-panel,.filters-top,.status-row,.filters-actions,.card-actions{min-width:0}.app-hero{text-align:center;padding:8px 0 10px}.app-title{margin:0;font-size:clamp(18px,5vw,22px);line-height:1.2;color:#fff}.app-subtitle{margin:6px 0 10px;font-size:14px;color:#eef2ff}.hero-add-btn{background:#163b8a;color:#fff;border:none;padding:10px 14px;border-radius:12px;box-shadow:0 6px 16px #0b2e911f;border:1px solid rgba(255,255,255,.25);max-width:55vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-only{display:inline-flex}.only-desktop{display:none}.status-row{display:flex;flex-wrap:wrap;gap:10px}.stat-btn{width:100%;justify-content:flex-start;max-width:100%}.filters-top{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.filters-actions{display:flex;gap:8px;width:100%;flex-wrap:wrap}.filters-actions>button{flex:1 1 auto;min-width:120px;max-width:100%}.search-input{width:100%;max-width:100%}.mc-card{padding:14px;width:100%;max-width:100%;overflow:hidden}.mc-header{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.mc-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0}.btn-outline,.btn-blue,.fio{width:100%;max-width:100%}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.main-content{display:block;padding:12px}.form-section,.list-section{width:100%;flex:none;padding:16px;min-width:0}.form-section{margin-bottom:12px}.modal{max-height:90vh;padding:14px;width:min(600px,100vw - 24px);max-width:100%}.modal-actions-row{padding-bottom:4px}.form-grid{gap:12px}}@media (min-width: 769px){.mobile-only{display:none!important}}:root{--font: "Inter", system-ui, -apple-system, sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font);font-size:15px}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:var(--bg, #f4f7f9);color:var(--text, #1f2937)}.app-header{display:flex;align-items:center;gap:20px;padding:0 24px;height:56px;background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:10}.brand{font-weight:700;font-size:18px;color:#1e3a8a;letter-spacing:-.3px}.main-nav{display:flex;gap:4px;flex:1}.main-nav a{padding:8px 16px;border-radius:8px;text-decoration:none;color:#6b7280;font-weight:500;font-size:14px;transition:all .15s}.main-nav a:hover{background:#f3f4f6;color:#374151}.main-nav a.active{background:#1e3a8a;color:#fff}.header-right{display:flex;align-items:center;gap:12px}.who{color:#9ca3af;font-size:13px}.theme-toggle,.link-btn,.btn-link{background:none;border:none;cursor:pointer;font-size:14px;color:#6b7280}.btn-link{color:#3b82f6;font-weight:500;padding:0}.btn-link:hover{text-decoration:underline}.app-main{padding:24px;max-width:1100px;margin:0 auto;width:100%}.page h1{font-size:22px;font-weight:700;color:#111827;margin:0 0 16px}.muted{color:#9ca3af}.empty-text{color:#9ca3af;text-align:center;padding:24px 0}.form-err{color:#dc2626;font-size:13px;padding:10px 14px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px}.card+.card{margin-top:12px}.btn-blue{padding:10px 20px;border:none;border-radius:8px;background:#1e3a8a;color:#fff;font-weight:600;font-size:14px;cursor:pointer;transition:background .15s}.btn-blue:hover{background:#1e40af}.btn-blue:disabled{background:#9ca3af;cursor:wait}.btn-blue.btn-sm{padding:7px 14px;font-size:13px}.btn-outline{padding:8px 16px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#374151;font-size:13px;font-weight:500;cursor:pointer;transition:border-color .15s}.btn-outline:hover{border-color:#3b82f6;color:#3b82f6}.btn-outline.btn-sm{padding:6px 12px;font-size:12px}.filter-bar,.tab-bar{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:16px}.filter-bar button,.tab-btn{padding:7px 14px;border:1px solid #e5e7eb;border-radius:20px;background:#fff;color:#6b7280;font-size:13px;cursor:pointer;transition:all .15s}.filter-bar button:hover,.tab-btn:hover{border-color:#3b82f6;color:#3b82f6}.filter-bar button.active,.tab-btn.active{background:#1e3a8a;color:#fff;border-color:#1e3a8a}.inst-list{display:flex;flex-direction:column;gap:8px}.inst-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;cursor:pointer;transition:box-shadow .15s}.inst-card:hover{box-shadow:0 2px 12px #0000000f}.inst-card-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.inst-card-footer{display:flex;gap:16px;font-size:13px;color:#9ca3af;margin-top:6px}.detail-header{display:flex;align-items:center;gap:14px;margin:8px 0 16px;flex-wrap:wrap}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.info-row{display:flex;gap:8px;font-size:14px;padding:6px 0}.info-label{color:#9ca3af;min-width:130px}.info-value{color:#111827;font-weight:500}.status-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid #f3f4f6}.doc-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f3f4f6}.doc-row:last-of-type{border-bottom:none}.doc-info{flex:1}.doc-label{font-weight:600;font-size:14px;display:block;color:#374151}.doc-name{font-size:13px;color:#3b82f6;text-decoration:none;word-break:break-all}.doc-name:hover{text-decoration:underline}.doc-empty{font-size:13px;color:#d1d5db}.doc-preview{width:64px;height:48px;object-fit:cover;border-radius:6px;border:1px solid #e5e7eb}.pdf-icon{display:flex;align-items:center;justify-content:center;background:#fef2f2;color:#dc2626;font-weight:700;font-size:11px}.doc-section-title{font-weight:600;font-size:14px;margin:16px 0 8px;color:#374151}.media-toolbar{display:flex;gap:8px;margin-bottom:16px;align-items:center;flex-wrap:wrap}.select-styled{padding:8px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:13px;background:#fff;color:#374151;cursor:pointer}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.media-card{border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;background:#fff}.media-thumb{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#f9fafb}.video-thumb{display:flex;align-items:center;justify-content:center;font-size:28px;color:#9ca3af;background:#f3f4f6}.media-meta{padding:8px}.media-name{display:block;font-size:11px;color:#374151;word-break:break-all;line-height:1.3}.media-kind-tag{display:inline-block;font-size:10px;color:#6b7280;background:#f3f4f6;padding:2px 6px;border-radius:4px;margin-top:4px}.delivery-form{display:flex;flex-direction:column;gap:12px;padding:16px;background:#f9fafb;border-radius:10px;margin-bottom:16px}.delivery-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:500;color:#374151}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.input-styled{padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff;color:#111827;outline:none}.input-styled:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f61a}.delivery-row{display:flex;gap:16px;padding:12px 0;border-bottom:1px solid #f3f4f6;align-items:flex-start}.delivery-date{font-weight:600;font-size:14px;color:#111827;min-width:90px}.delivery-info{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#6b7280}.status-tag{padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600}.status-planned{background:#dbeafe;color:#1e40af}.status-shipped{background:#fef3c7;color:#92400e}.status-accepted{background:#d1fae5;color:#065f46}.status-cancelled{background:#fee2e2;color:#991b1b}.history-row{display:flex;gap:12px;padding:8px 0;border-bottom:1px solid #f9fafb;font-size:13px;align-items:baseline}.history-time{color:#9ca3af;min-width:130px;font-size:12px}.history-action{font-weight:600;color:#374151}.history-note{color:#6b7280}.history-user{color:#9ca3af;margin-left:auto;font-size:12px}@media (max-width: 640px){.app-header{padding:0 12px;gap:8px}.brand{font-size:16px}.app-main{padding:12px}.card{padding:14px}.who{display:none}.info-grid,.form-row{grid-template-columns:1fr}.media-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.inst-card-footer{flex-direction:column;gap:2px}.detail-header{flex-direction:column;align-items:flex-start}}
