:root { color-scheme: dark; --ink:#f9f7ff; --muted:#b7adca; --purple:#a24de1; --purple-dark:#6e2ea7; --lavender:rgba(196,104,242,.14); --surface:rgba(31,12,59,.82); --surface-2:#2b1047; --line:rgba(216,122,255,.19); --success:#6ef2b2; --danger:#ff6f9d; --warning:#ffd166; --shadow:0 18px 48px rgba(0,0,0,.24); }
body { color:var(--ink); background:radial-gradient(circle at 92% 0,rgba(162,77,225,.4),transparent 25rem),radial-gradient(circle at -8% 42%,rgba(110,46,167,.25),transparent 28rem),linear-gradient(180deg,#16062b 0%,#09031d 68%); }
body::before { position:fixed; inset:-4vh -3vw; z-index:0; overflow:hidden; color:rgba(255,255,255,.035); background:none; content:"?      ?          !\A        ?          ?\A   !           ?       ?\A         ?    !"; white-space:pre-wrap; font-family:Furore,"Russo One",sans-serif; font-size:clamp(70px,15vw,150px); line-height:1.5; letter-spacing:.08em; transform:rotate(-7deg); mask-image:linear-gradient(to bottom,black,transparent 88%); }
.problem-shell { position:relative; z-index:1; width:min(100%,940px); margin:0 auto; padding:max(18px,env(safe-area-inset-top)) 16px 34px; }
.problem-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.problem-title { min-width:0; }
.problem-title h1 { margin:0; font-family:Furore,"Russo One",sans-serif; font-size:clamp(24px,7.6vw,42px); font-weight:400; line-height:1; letter-spacing:.015em; white-space:nowrap; text-shadow:0 0 30px rgba(216,122,255,.48); }
.problem-title .eyebrow { overflow:hidden; color:#d7a4f2; text-overflow:ellipsis; white-space:nowrap; }
.primary-button { justify-self:end; min-height:46px; padding:0 13px; border:0; border-radius:13px; color:white; background:linear-gradient(145deg,var(--purple),var(--purple-dark)); font-size:14px; font-weight:800; cursor:pointer; }
.primary-button.wide { width: 100%; min-height: 46px; margin-top: 8px; font-size: 11px; }
.header-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:14px; }
.header-actions button { width:100%; }
.header-actions .primary-button { grid-column:1/-1; }
.secondary-button { min-height:46px; padding:0 10px; border:1px solid var(--line); border-radius:13px; color:#e0b5f5; background:rgba(31,12,59,.78); font-size:13px; font-weight:800; cursor:pointer; backdrop-filter:blur(14px); }
.equipment-mode-button { border-color:rgba(112,215,255,.25); color:#9ce5ff; background:linear-gradient(145deg,rgba(40,116,152,.2),rgba(31,12,59,.8)); }
.hidden { display: none !important; }
.problem-intro { display:grid; margin:12px 0; padding:10px 11px; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:9px; border:1px solid var(--line); border-radius:13px; background:rgba(31,12,59,.58); }
.problem-intro > span { display:grid; width:24px; height:24px; place-items:center; border-radius:8px; color:#d7a4f2; background:rgba(162,77,225,.13); font-size:10px; font-weight:800; }
.problem-intro > p { max-width:620px; margin:0; color:var(--muted); font-size:9px; line-height:1.4; }
.board-view-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; margin-bottom:12px; padding:4px; border:1px solid var(--line); border-radius:15px; background:rgba(31,12,59,.76); }
.board-view-tabs button { min-width:0; min-height:44px; border:0; border-radius:11px; color:var(--muted); background:transparent; font-size:13px; font-weight:800; cursor:pointer; }
.board-view-tabs button.active { color:white; background:linear-gradient(145deg,var(--purple),var(--purple-dark)); }
.problem-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:5px; border:1px solid var(--line); border-radius:16px; background:rgba(31,12,59,.76); box-shadow:var(--shadow); backdrop-filter:blur(16px); }
.problem-tabs button { display:flex; align-items:center; justify-content:center; width:100%; min-width:0; min-height:37px; gap:3px; padding:0 5px; border:0; border-radius:11px; color:var(--muted); background:transparent; font-size:9px; font-weight:750; white-space:nowrap; cursor:pointer; }
.problem-tabs button.active { color: white; background: var(--purple); }
.problem-tabs b { display:inline-grid; min-width:18px; height:18px; place-items:center; border-radius:999px; background:rgba(255,255,255,.15); }
.problem-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.problem-filters select, .problem-dialog input, .problem-dialog select, .problem-dialog textarea { width:100%; border:1px solid var(--line); border-radius:13px; color:var(--ink); outline:none; background:rgba(43,16,71,.88); }
.problem-filters select { min-height: 41px; padding: 0 10px; font-size: 9px; }
.problem-list { display: grid; gap: 9px; }
.task-analytics { display:grid; gap:11px; }
.analytics-heading { display:grid; min-width:0; padding:7px 2px 2px; text-align:center; }
.analytics-heading > strong { color:var(--ink); font-size:18px; font-weight:800; }
.analytics-period { display:grid; gap:7px; padding:10px; border:1px solid var(--line); border-radius:17px; background:rgba(31,12,59,.76); }
.analytics-period-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.analytics-period-tabs button { min-width:0; min-height:36px; padding:0 5px; border:0; border-radius:10px; color:var(--muted); background:transparent; font-size:10px; font-weight:800; cursor:pointer; }
.analytics-period-tabs button.active { color:white; background:var(--purple); }
.analytics-picker input,.analytics-picker select { width:100%; min-height:40px; padding:0 11px; border:1px solid var(--line); border-radius:12px; color:var(--ink); outline:none; background:var(--surface-2); font-size:11px; text-align:center; }
.analytics-exports { display:grid; gap:7px; }
.analytics-exports button { display:grid; width:100%; min-height:58px; padding:9px 12px; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:10px; border:1px solid rgba(216,122,255,.25); border-radius:15px; color:var(--ink); text-align:left; background:linear-gradient(145deg,rgba(162,77,225,.2),var(--surface)); box-shadow:var(--shadow); cursor:pointer; }
.analytics-exports button.excel { border-color:rgba(110,242,178,.23); background:linear-gradient(145deg,rgba(54,157,112,.17),var(--surface)); }
.analytics-exports button:disabled { cursor:wait; opacity:.64; }
.analytics-exports i { display:grid; width:34px; height:34px; place-items:center; border-radius:11px; color:#e6c7f7; background:var(--lavender); font-size:19px; font-style:normal; }
.analytics-exports .excel i { color:var(--success); background:rgba(110,242,178,.1); }
.analytics-exports span,.analytics-exports strong,.analytics-exports small { display:block; min-width:0; }
.analytics-exports strong { font-size:11px; }
.analytics-exports small { margin-top:3px; overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.analytics-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.analytics-summary-grid article { display:grid; min-width:0; min-height:92px; padding:13px 8px; align-content:center; justify-items:center; border:1px solid var(--line); border-radius:17px; text-align:center; background:var(--surface); box-shadow:var(--shadow); }
.analytics-summary-grid span,.analytics-summary-grid strong { display:block; max-width:100%; }
.analytics-summary-grid span { overflow:hidden; color:var(--muted); font-size:10px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.analytics-summary-grid strong { margin-top:7px; overflow:hidden; font-size:clamp(20px,5.5vw,27px); text-overflow:ellipsis; white-space:nowrap; }
.analytics-loading { min-height:100px; border-radius:17px; background:linear-gradient(90deg,var(--surface),var(--surface-2),var(--surface)); background-size:200% 100%; animation:analytics-shimmer 1.3s infinite; }
.analytics-error { grid-column:1/-1; }
.analytics-card { min-width:0; padding:14px; border:1px solid var(--line); border-radius:19px; background:var(--surface); box-shadow:var(--shadow); }
.analytics-card-head { display:flex; align-items:flex-end; justify-content:space-between; min-width:0; gap:10px; margin-bottom:12px; }
.analytics-card-head h3 { margin:0; font-size:16px; }
.analytics-card-head small { overflow:hidden; color:var(--muted); font-size:7px; text-align:right; text-overflow:ellipsis; white-space:nowrap; }
.analytics-status-bar { display:flex; width:100%; height:12px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.05); }
.analytics-status-bar i { min-width:0; height:100%; }
.status-work { background:var(--warning); }
.status-review { background:var(--purple); }
.status-done { background:var(--success); }
.analytics-status-legend { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin-top:10px; }
.analytics-status-legend div { display:grid; grid-template-columns:7px auto auto; align-items:center; justify-content:center; min-width:0; gap:5px; }
.analytics-status-legend i { width:7px; height:7px; border-radius:50%; }
.analytics-status-legend span { overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.analytics-status-legend strong { font-size:10px; }
.oldest-problem { display:grid; width:100%; min-width:0; gap:4px; padding:14px; border:1px solid rgba(255,209,102,.25); border-radius:17px; color:var(--ink); text-align:left; background:rgba(255,209,102,.08); cursor:pointer; }
.oldest-problem span { color:var(--warning); font-size:7px; font-weight:800; text-transform:uppercase; }
.oldest-problem strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.oldest-problem small { color:var(--muted); font-size:8px; }
.analytics-breakdown { display:grid; gap:12px; }
.analytics-breakdown-row { min-width:0; }
.analytics-breakdown-head { display:flex; align-items:center; justify-content:space-between; min-width:0; gap:10px; }
.analytics-breakdown-head strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.analytics-breakdown-head b { flex:none; color:#d7a4f2; font-size:11px; }
.analytics-breakdown-track { height:6px; margin:6px 0; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.06); }
.analytics-breakdown-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--purple-dark),var(--purple)); }
.analytics-breakdown-row > small { display:block; overflow:hidden; color:var(--muted); font-size:7px; text-overflow:ellipsis; white-space:nowrap; }
.analytics-trend { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); min-width:0; gap:3px; height:118px; }
.trend-month { display:grid; grid-template-rows:minmax(0,1fr) auto; min-width:0; gap:5px; }
.trend-month > div { display:flex; align-items:flex-end; justify-content:center; min-width:0; gap:1px; }
.trend-month i,.trend-month b { display:block; width:min(42%,8px); min-width:2px; border-radius:3px 3px 0 0; }
.trend-month i { background:var(--purple); }
.trend-month b { background:var(--success); }
.trend-month span { color:var(--muted); font-size:6px; text-align:center; }
@keyframes analytics-shimmer { to { background-position:-200% 0; } }
.equipment-view { display:grid; gap:11px; }
.equipment-heading { display:flex; align-items:center; min-width:0; gap:12px; }
.equipment-heading button { flex:none; min-height:38px; padding:0 11px; border:1px solid var(--line); border-radius:12px; color:var(--muted); background:var(--surface); font-size:9px; font-weight:800; cursor:pointer; }
.equipment-heading div { min-width:0; }
.equipment-heading p,.equipment-heading h2 { margin:0; }
.equipment-heading h2 { margin-top:3px; font-size:20px; }
.equipment-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:10px; border:1px solid var(--line); border-radius:17px; background:rgba(31,12,59,.76); }
.equipment-filters select,.equipment-filters input { width:100%; min-width:0; min-height:41px; padding:0 10px; border:1px solid var(--line); border-radius:12px; color:var(--ink); outline:none; background:var(--surface-2); font-size:9px; }
.equipment-filters input { grid-column:1/-1; }
.equipment-list { display:grid; gap:12px; }
.equipment-group { display:grid; gap:7px; }
.equipment-group-head { display:flex; align-items:center; justify-content:space-between; padding:0 3px; }
.equipment-group-head h3 { margin:0; font-size:14px; }
.equipment-group-head span { color:var(--muted); font-size:8px; }
.equipment-group-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.equipment-card { display:grid; min-width:0; min-height:118px; padding:13px; align-content:space-between; gap:12px; border:1px solid rgba(112,215,255,.18); border-radius:17px; color:var(--ink); text-align:left; background:linear-gradient(145deg,rgba(40,116,152,.12),var(--surface)); box-shadow:var(--shadow); cursor:pointer; }
.equipment-card > div { display:grid; min-width:0; gap:4px; }
.equipment-card strong,.equipment-card span { overflow:hidden; text-overflow:ellipsis; }
.equipment-card strong { font-size:11px; line-height:1.35; }
.equipment-card span { color:#9ce5ff; font-size:8px; white-space:nowrap; }
.equipment-card footer { display:flex; align-items:flex-end; justify-content:space-between; min-width:0; gap:7px; }
.equipment-card small { color:var(--muted); font-size:7px; }
.equipment-card b { flex:none; padding:5px 7px; border-radius:999px; color:var(--success); background:rgba(110,242,178,.1); font-size:7px; }
.equipment-card b.attention { color:var(--warning); background:rgba(255,209,102,.1); }
.equipment-identity { display:grid; gap:5px; padding:14px; border:1px solid rgba(112,215,255,.22); border-radius:16px; background:linear-gradient(145deg,rgba(40,116,152,.22),rgba(43,16,71,.9)); }
.equipment-identity strong { font-size:14px; }
.equipment-identity span { color:#9ce5ff; font-size:9px; }
.equipment-generations { display:flex; gap:6px; margin-top:10px; overflow-x:auto; }
.equipment-generation { flex:none; padding:7px 9px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:var(--surface-2); font-size:8px; font-weight:800; }
.equipment-generation.current { border-color:rgba(110,242,178,.3); color:var(--success); }
.equipment-detail-section { display:grid; gap:7px; margin-top:14px; }
.equipment-detail-section > h3 { margin:0 0 2px; font-size:13px; }
.equipment-timeline-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; min-width:0; gap:5px 10px; padding:11px; border:1px solid var(--line); border-radius:13px; color:var(--ink); text-align:left; background:var(--surface-2); }
button.equipment-timeline-entry { width:100%; cursor:pointer; }
.equipment-timeline-entry strong { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.equipment-timeline-entry time { color:var(--muted); font-size:7px; white-space:nowrap; }
.equipment-timeline-entry span { grid-column:1/-1; color:var(--muted); font-size:8px; line-height:1.45; }
.replace-equipment-button { width:100%; min-height:44px; margin-top:14px; border:0; border-radius:13px; color:#092318; background:var(--success); font-size:10px; font-weight:800; cursor:pointer; }
.replacement-warning { margin-bottom:11px; padding:11px; border:1px solid rgba(255,209,102,.3); border-radius:13px; color:#ffe09a; background:rgba(255,209,102,.08); font-size:9px; line-height:1.5; }
.replacement-warning strong { display:block; margin-bottom:4px; color:var(--warning); }
.problem-card { width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); text-align: left; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.problem-card h3 { min-width:0; margin:9px 0 0; font-size:13px; line-height:1.4; }
.problem-card p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.problem-card-badges { display:flex; width:100%; min-height:25px; align-items:center; gap:5px; }
.type-badge { flex:none; padding:5px 9px; border:1px solid transparent; border-radius:999px; font-size:9px; font-weight:750; white-space:nowrap; }
.type-badge.repair { border:1px solid rgba(216,122,255,.34); color:#d87aff; background:rgba(162,77,225,.1); }
.type-badge.general { border-color:rgba(255,209,102,.34); color:#ffd166; background:rgba(255,209,102,.09); }
.type-badge.bot { border-color:rgba(112,232,180,.32); color:#70e8b4; background:rgba(112,232,180,.09); }
.media-badge { padding:5px 9px; border:1px solid transparent; border-radius:999px; font-size:9px; font-weight:750; white-space:nowrap; }
.media-badge.photo { border-color:rgba(255,159,203,.2); color:#ff9fcb; background:rgba(255,111,157,.1); }
.media-badge.video { border-color:rgba(112,215,255,.2); color:#70d7ff; background:rgba(112,215,255,.1); }
.problem-dialog { width:min(calc(100% - 24px),570px); max-height:calc(100vh - 30px); padding:18px; overflow:auto; border:1px solid var(--line); border-radius:24px; color:var(--ink); background:#16072c; box-shadow:0 25px 80px rgba(0,0,0,.5); }
.problem-dialog::backdrop { background:rgba(5,2,18,.76); backdrop-filter:blur(6px); }
.small-dialog { width: min(calc(100% - 24px), 440px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-head h2 { margin: 4px 0 0; font-size: 20px; }
.close-dialog { width: 34px; height: 34px; border: 0; border-radius: 12px; color: var(--muted); background: var(--lavender); font-size: 20px; cursor: pointer; }
.problem-dialog label { display: block; margin-bottom: 11px; }
.problem-dialog label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 700; }
.problem-dialog input, .problem-dialog select { min-height: 44px; padding: 0 11px; font-size: 10px; }
.problem-dialog textarea { padding: 11px; resize: vertical; font-size: 10px; line-height: 1.5; }
.problem-media-picker { margin:2px 0 13px; }
.problem-media-label { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:7px; }
.problem-media-label span { color:var(--muted); font-size:8px; font-weight:700; }
.problem-media-label small { color:var(--muted); font-size:7px; text-align:right; }
.problem-media-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.problem-media-actions button { display:grid; min-width:0; min-height:54px; padding:7px 8px; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:6px; border:1px solid var(--line); border-radius:14px; color:#e6c7f7; background:rgba(43,16,71,.86); font-size:10px; font-weight:800; cursor:pointer; }
.problem-media-actions button.camera { border-color:rgba(112,215,255,.24); color:#9ce5ff; background:rgba(40,116,152,.14); }
.problem-media-actions i { display:grid; width:24px; height:24px; place-items:center; border-radius:8px; background:var(--lavender); font-size:14px; font-style:normal; }
.problem-media-actions button.camera i { background:rgba(112,215,255,.12); }
.problem-media-preview { display:grid; min-height:62px; margin-top:8px; padding:7px; grid-template-columns:54px minmax(0,1fr) 32px; align-items:center; gap:9px; border:1px solid var(--line); border-radius:14px; background:rgba(43,16,71,.72); }
.problem-media-preview img,.problem-media-preview video { display:block; width:54px; height:48px; object-fit:cover; border-radius:9px; background:#09031d; }
.problem-media-preview div { min-width:0; }
.problem-media-preview strong,.problem-media-preview small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.problem-media-preview strong { font-size:9px; }
.problem-media-preview small { margin-top:4px; color:var(--muted); font-size:7px; }
.problem-media-preview button { width:30px; height:30px; border:0; border-radius:9px; color:var(--danger); background:rgba(255,111,157,.1); font-size:17px; cursor:pointer; }
.repair-fields { margin:3px 0 13px; padding:13px; border:1px solid var(--line); border-radius:17px; background:rgba(162,77,225,.09); }
.repair-fields fieldset { min-width: 0; margin: 0 0 11px; padding: 0; border: 0; }
.repair-fields legend, .generated-title span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 700; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.location-option { margin: 0 !important; }
.location-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.location-option span { display:grid !important; min-height:38px; margin:0 !important; padding:7px; place-items:center; border:1px solid var(--line); border-radius:11px; color:var(--ink) !important; text-align:center; background:var(--surface-2); font-size:8px !important; cursor:pointer; }
.location-option input:checked + span { border-color: var(--purple); color: var(--purple) !important; background: var(--lavender); box-shadow: inset 0 0 0 1px var(--purple); }
.generated-title { padding:10px; border-radius:12px; background:var(--surface-2); }
.generated-title strong { display: block; font-size: 9px; line-height: 1.45; }
.similar-repairs { display:grid; gap:8px; margin-top:10px; padding:11px; border:1px solid rgba(255,209,102,.3); border-radius:14px; background:rgba(255,209,102,.07); }
.similar-repairs-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.similar-repairs-head > div { display:grid; gap:3px; }
.similar-repairs-head strong { color:var(--warning); font-size:10px; }
.similar-repairs-head span { color:var(--muted); font-size:7px; }
.similar-repairs-head > b { display:grid; min-width:24px; height:24px; place-items:center; border-radius:999px; color:#1d1020; background:var(--warning); font-size:8px; }
.similar-repair-list { display:grid; gap:6px; }
.similar-repair-card { display:grid; width:100%; min-width:0; gap:5px; padding:10px; border:1px solid rgba(255,209,102,.2); border-radius:12px; color:var(--ink); text-align:left; background:var(--surface-2); cursor:pointer; }
.similar-repair-card > span,.task-comment header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.similar-repair-card b { color:var(--warning); font-size:7px; }
.similar-repair-card time,.similar-repair-card small { color:var(--muted); font-size:7px; }
.similar-repair-card strong { overflow:hidden; font-size:9px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.similar-repair-card p { display:-webkit-box; margin:0; overflow:hidden; color:var(--muted); font-size:8px; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.repair-identity { display: grid; gap: 4px; padding: 14px; border-radius: 16px; color: white; background: linear-gradient(145deg, var(--purple), var(--purple-dark)); }
.repair-identity span { font-size: 7px; font-weight: 700; opacity: .72; }
.repair-identity strong { font-size: 13px; }
.repair-identity small { font-size: 8px; opacity: .86; }
.repair-history { margin-top: 14px; }
.task-activity { display:grid; gap:7px; margin-top:12px; padding:13px; border:1px solid var(--line); border-radius:15px; background:var(--surface-2); }
.task-activity .history-head { margin-bottom:1px; }
.task-activity-row { display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; min-width:0; gap:7px; }
.task-activity-row > i { display:grid; width:22px; height:22px; place-items:center; border-radius:8px; font-size:11px; font-style:normal; background:var(--lavender); }
.task-activity-row > div { display:grid; min-width:0; gap:2px; }
.task-activity-row strong { overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.task-activity-row span,.task-activity-row time { color:var(--muted); font-size:7px; font-style:normal; }
.task-activity-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.task-activity-row time { text-align:right; white-space:nowrap; }
.task-comments { display:grid; gap:8px; margin-top:12px; padding:13px; border:1px solid var(--line); border-radius:15px; background:var(--surface-2); }
.task-comment-list { display:grid; gap:7px; }
.task-comment { padding:10px; border:1px solid rgba(216,122,255,.18); border-radius:12px; background:rgba(162,77,225,.07); }
.task-comment header strong { overflow:hidden; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.task-comment header time { flex:none; color:var(--muted); font-size:7px; }
.task-comment p { margin:6px 0 0; font-size:9px; line-height:1.5; white-space:pre-wrap; }
.task-comments-empty { margin:0; color:var(--muted); font-size:8px; }
.task-comment-form { display:grid; gap:7px; margin-top:3px; padding-top:9px; border-top:1px solid var(--line); }
.task-comment-form label { margin:0; }
.task-comment-form textarea { width:100%; min-height:72px; color:var(--ink); border:1px solid var(--line); border-radius:12px; outline:none; background:rgba(31,12,59,.76); }
.task-comment-form .action-button { width:100%; }
.history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 700; }
.history-head b { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; color: var(--purple); background: var(--lavender); }
.history-entry { width:100%; margin-bottom:6px; padding:11px; border:1px solid var(--line); border-radius:13px; color:var(--ink); text-align:left; background:var(--surface-2); cursor:pointer; }
.history-entry > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-entry strong { font-size: 9px; }
.history-entry span, .history-entry small { color: var(--muted); font-size: 7px; line-height: 1.55; }
.history-entry p { margin: 5px 0; font-size: 9px; }
.catalog-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.catalog-section h3 { margin: 0 0 9px; font-size: 12px; }
.catalog-section > select { width:100%; min-height:42px; margin-bottom:7px; padding:0 10px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--surface-2); font-size:9px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; }
.inline-form input { min-width: 0; }
.inline-form button { padding: 0 11px; border: 0; border-radius: 11px; color: white; background: var(--purple); font-size: 8px; font-weight: 750; }
.stack-form > select { width:100%; min-height:42px; margin-bottom:6px; padding:0 10px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--surface-2); font-size:9px; }
.catalog-list { display: grid; gap: 5px; max-height: 250px; overflow: auto; }
.catalog-entry { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:11px; color:var(--ink); text-align:left; background:var(--surface-2); cursor:pointer; }
.catalog-entry span { font-size: 8px; }
.catalog-entry b { color: var(--success); font-size: 7px; }
.catalog-entry.inactive { opacity: .58; }
.catalog-entry.inactive b { color: var(--muted); }
.catalog-group { display: grid; gap: 4px; }
.catalog-detail { width:calc(100% - 14px); margin-left:14px; padding-block:7px; background:rgba(43,16,71,.68); }
.migration-section p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.migration-list { margin-top: 8px; }
.migration-entry span { line-height: 1.45; }
.migration-entry span b { color: var(--muted); font-size: 7px; }
.migration-entry strong { flex: none; color: var(--purple); font-size: 7px; }
.mapping-description { margin:-5px 0 14px; padding:10px; border-radius:12px; color:var(--muted); background:var(--surface-2); font-size:8px; line-height:1.5; }
#mappingForm fieldset { min-width: 0; margin: 0 0 11px; padding: 0; border: 0; }
#mappingForm legend { margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 700; }
.detail-description, .detail-feedback { margin-top:12px; padding:13px; border-radius:15px; background:var(--surface-2); }
.detail-description span, .detail-feedback span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 700; }
.detail-description p, .detail-feedback p { margin: 0; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.detail-photo { display:block; width:100%; max-height:420px; margin-top:12px; object-fit:contain; border-radius:16px; background:#210c39; }
.detail-video { display:block; width:100%; max-height:420px; margin-top:12px; border-radius:16px; background:#210c39; }
.detail-actions { display: grid; gap: 7px; margin-top: 14px; }
.action-button { min-height: 43px; border: 0; border-radius: 13px; color: white; background: var(--purple); font-size: 10px; font-weight: 750; cursor: pointer; }
.action-button.return { color: var(--danger); background: rgba(214,75,113,.09); }
.action-button.confirm { background: var(--success); }
.problem-toast { position:fixed; left:50%; bottom:22px; z-index:10; max-width:calc(100% - 32px); padding:11px 14px; border-radius:13px; color:white; background:#2b1047; font-size:10px; opacity:0; pointer-events:none; transform:translate(-50%,10px); transition:.2s; }
.problem-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.problem-toast.error { background: var(--danger); }
.problem-camera-stage { position:fixed; inset:0; z-index:80; overflow:hidden; color:white; background:#000; touch-action:none; user-select:none; }
.problem-camera-stage[hidden] { display:none; }
.problem-camera-stage > video { width:100%; height:100%; object-fit:cover; }
.problem-camera-shade { position:absolute; inset:0; pointer-events:none; background:linear-gradient(to bottom,rgba(0,0,0,.72),transparent 35%,transparent 55%,rgba(0,0,0,.84)); }
.problem-camera-instruction { position:absolute; top:calc(24px + env(safe-area-inset-top)); left:58px; right:58px; text-align:center; }
.problem-camera-instruction span,.problem-camera-instruction strong,.problem-camera-instruction small { display:block; }
.problem-camera-instruction span { color:#dba8f5; font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.problem-camera-instruction strong { margin-top:8px; font-size:15px; line-height:1.38; }
.problem-camera-instruction small { margin-top:7px; color:rgba(255,255,255,.72); font-size:9px; }
.problem-close-camera { position:absolute; top:calc(18px + env(safe-area-inset-top)); right:14px; width:40px; height:40px; border:1px solid rgba(255,255,255,.25); border-radius:14px; color:white; background:rgba(0,0,0,.42); font-size:24px; cursor:pointer; }
.problem-camera-controls { position:absolute; left:0; right:0; bottom:calc(25px + env(safe-area-inset-bottom)); display:grid; justify-items:center; gap:10px; }
.problem-camera-controls > span { color:rgba(255,255,255,.78); font-size:9px; }
.problem-shutter { display:grid; width:82px; height:82px; padding:7px; place-items:center; border:3px solid white; border-radius:50%; background:rgba(0,0,0,.2); cursor:pointer; }
.problem-shutter i { width:62px; height:62px; border-radius:50%; background:white; transition:.12s ease; }
.problem-shutter:active i { transform:scale(.88); }
.problem-shutter.holding i { border-radius:16px; background:#ff4d74; transform:scale(.72); }
.problem-recording-badge { position:absolute; top:calc(116px + env(safe-area-inset-top)); left:50%; display:flex; padding:7px 10px; align-items:center; gap:7px; border-radius:999px; background:rgba(0,0,0,.62); font-size:10px; font-weight:800; transform:translateX(-50%); }
.problem-recording-badge i { width:8px; height:8px; border-radius:50%; background:#ff4d74; animation:problem-recording-pulse 1s infinite; }
@keyframes problem-recording-pulse { 50% { opacity:.35; } }

@media (max-width: 600px) {
  .problem-title h1 { font-size:clamp(21px,6.65vw,32px); }
  .analytics-card-head small { max-width:48%; }
}
@media (min-width: 700px) {
  .analytics-summary-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .equipment-group-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
