/* Operator console. Tokens, fonts and base element styles live in theme.css. */

/* ---------- Shared pieces ---------- */
svg{width:20px;height:20px;flex-shrink:0;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;fill:none;stroke-width:1.8}
h1{font-size:28px;letter-spacing:-.02em}
h2{font-size:20px}
h3{font-size:15px}
.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:17px;font-weight:700;letter-spacing:-.01em;min-width:0}
.brand-mark{width:36px;height:36px;border-radius:9px;background:var(--primary);color:var(--primary-fg);display:grid;place-items:center;flex-shrink:0}
.brand-mark svg{width:19px;height:19px;stroke-width:2}
.brand-text{display:flex;flex-direction:column;line-height:1.15;white-space:nowrap}
.brand-text small{font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.brand sup{display:none}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:500;background:var(--secondary);color:var(--muted);border:1px solid var(--line);padding:3px 8px;border-radius:999px;white-space:nowrap}

.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;min-height:38px;padding:9px 14px;font-size:13px;font-weight:600;white-space:nowrap;background:var(--primary);color:var(--primary-fg);border:1px solid transparent;transition:background .15s,border-color .15s,color .15s}
.button:hover{background:var(--primary-hover);text-decoration:none}
.button svg{width:16px;height:16px}
.button.secondary{background:var(--surface);border-color:var(--input-line);color:var(--ink)}
.button.secondary:hover{background:var(--secondary);border-color:var(--gvr-gray-40)}
.button.ghost{background:transparent;color:var(--muted);padding:8px}
.button.ghost:hover{background:var(--secondary);color:var(--ink)}
.button.danger{background:var(--surface);color:var(--danger);border-color:#d23f3f55}
.button.danger:hover{background:var(--danger-soft);border-color:var(--danger)}
.icon-button{background:transparent;border-radius:8px;padding:6px;color:var(--muted);display:grid;place-items:center}
.icon-button:hover{background:var(--secondary);color:var(--ink)}
.icon-button svg{width:18px;height:18px}
.refresh{border:1px solid var(--input-line);border-radius:8px;background:var(--surface);color:var(--muted);height:38px;width:38px;display:grid;place-items:center}
.refresh:hover{background:var(--secondary);color:var(--ink)}
.refresh svg{width:16px;height:16px}

.error-banner{margin:0 0 18px;padding:12px 14px;border:1px solid #d23f3f4d;background:var(--danger-soft);color:#9b2f2f;font-size:13px;border-radius:var(--radius-sm);line-height:1.55}
.loading{min-height:220px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:14px}
.spinner{width:16px;height:16px;border:2px solid var(--line);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.skeleton-line{height:12px;border-radius:4px;background:var(--secondary);animation:pulse 1.5s ease-in-out infinite}
@keyframes pulse{50%{opacity:.4}}
.busy-inline{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px;padding:11px 0}
.toast{position:fixed;bottom:24px;left:calc(50% + 120px);transform:translateX(-50%);z-index:200;background:var(--ink);color:#fff;border-radius:var(--radius);padding:12px 16px;box-shadow:var(--shadow-lg);font-size:13px;font-weight:500;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px)}
.toast svg{width:18px;height:18px;color:#5fd79a}
.toast.error{background:var(--danger)}
.toast.error svg{color:#fff}

/* ---------- Status, priority, categories ---------- */
.status{display:inline-flex;align-items:center;gap:7px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--secondary);color:var(--muted)}
.status i{width:6px;height:6px;border-radius:50%;background:currentColor}
.status.phase-open,.status.phase-other,.status.open{background:var(--secondary);color:var(--accent)}
.status.is-assigned,.status.assigned{background:var(--blue-soft);color:var(--blue)}
.status.phase-in_progress,.status.in_progress{background:var(--amber-soft);color:var(--amber)}
.status.phase-review{background:var(--primary-soft-strong);color:var(--gvr-red-2)}
.status.phase-completed,.status.done{background:var(--green-soft);color:#157a42}
.status.phase-cancelled,.status.cancelled{background:var(--secondary);color:var(--gvr-gray-60)}
.priority{display:inline-flex;gap:7px;align-items:center;font-size:12px;font-weight:500;color:var(--muted)}
.priority i{display:inline-flex;align-items:flex-end;gap:2px;height:12px}
.priority i b{display:block;width:3px;border-radius:1px;background:var(--gvr-gray-20)}
.priority i b:nth-child(1){height:5px}.priority i b:nth-child(2){height:8px}.priority i b:nth-child(3){height:12px}
.priority.normal i b:nth-child(-n+2),.priority.low i b:nth-child(1){background:var(--gvr-gray-40)}
.priority.high{color:var(--amber)}.priority.high i b{background:currentColor}
.priority.urgent{color:var(--danger)}.priority.urgent i b{background:currentColor}
.category-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--secondary);color:var(--accent);flex-shrink:0}
.category-icon svg{width:18px;height:18px}
.category-icon.lighting{background:var(--amber-soft);color:var(--amber)}
.category-icon.drainage{background:var(--blue-soft);color:var(--blue)}
.category-icon.fencing{background:var(--primary-soft-strong);color:var(--gvr-red-2)}
.category-icon.pavement{background:var(--secondary);color:var(--gvr-gray-80)}
.role-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--secondary);color:var(--accent)}
.role-badge svg{width:13px;height:13px}
.role-badge.admin{background:var(--primary-soft-strong);color:var(--primary)}

/* ---------- Shell ---------- */
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:22px 16px 18px;z-index:20}
.workspace{margin:26px 4px 20px;display:flex;gap:11px;align-items:center}
.workspace-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;color:var(--primary);background:var(--bg)}
.workspace-icon svg{width:17px;height:17px}
.workspace-name{font-size:13px;color:var(--ink);font-weight:600}
.workspace-note{font-size:11px;color:var(--muted);margin-top:2px}
.nav-label{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.1em;margin:0 12px 10px}
.nav-item{display:flex;width:100%;gap:11px;align-items:center;padding:10px 12px;border-radius:8px;background:transparent;color:var(--accent);text-decoration:none;font-size:13px;font-weight:500;text-align:left;margin-bottom:3px;transition:background .15s,color .15s}
.nav-item:hover{background:var(--secondary);text-decoration:none;color:var(--ink)}
.nav-item.active{background:var(--primary-soft);color:var(--primary);font-weight:600;box-shadow:inset 3px 0 0 var(--primary)}
.nav-item svg{width:17px;height:17px}
.nav-item .count{margin-left:auto;border-radius:999px;background:var(--secondary);color:var(--muted);padding:1px 8px;font-size:11px;font-weight:600}
.nav-item.active .count{background:var(--primary-soft-strong);color:var(--primary)}
.sidebar-bottom{margin-top:auto}
.sandbox-note{border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:16px;font-size:12px;line-height:1.55;color:var(--muted);background:var(--bg)}
.sandbox-note .note-title{color:var(--ink);display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;margin-bottom:5px}
.sandbox-note svg{width:14px;height:14px;color:var(--primary)}
.account{border-top:1px solid var(--line);padding:16px 4px 0;display:flex;align-items:center;gap:10px}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--primary-soft-strong);color:var(--primary);font-size:11px;font-weight:700;display:grid;place-items:center;flex-shrink:0}
.account-name{font-size:13px;font-weight:600;color:var(--ink)}
.account-subtitle{font-size:11px;color:var(--muted);margin-top:1px}
.account button{margin-left:auto;background:none;color:var(--muted);padding:6px;border-radius:8px}
.account button:hover{background:var(--secondary);color:var(--ink)}
.account button svg{width:16px;height:16px}
.main{grid-column:2;min-width:0}
.topbar{height:64px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;background:var(--surface)}
.breadcrumbs{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.breadcrumbs svg{width:14px;height:14px}
.breadcrumbs span:last-child{color:var(--ink);font-weight:600}
.topbar-right{display:flex;align-items:center;gap:18px;font-size:13px;color:var(--muted)}
.environment{border:1px solid var(--line);padding:5px 10px;border-radius:999px;font-size:11px;letter-spacing:.06em;color:var(--ink);font-weight:600;background:var(--bg)}
.environment i,.live-label i{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin-right:7px}
.mobile-menu{display:none}
.content{padding:32px 40px 28px;max-width:1480px;margin:0 auto}

/* ---------- Page headings, metrics ---------- */
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.page-heading .eyebrow{color:var(--primary);margin-bottom:8px}
.page-heading .subtitle{margin-top:6px;font-size:14px;color:var(--muted);line-height:1.6}
.page-heading-actions{display:flex;align-items:center;gap:10px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:26px 0}
.metrics.with-review{grid-template-columns:repeat(5,minmax(0,1fr))}
.metric{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-height:118px;padding:18px 20px;position:relative;overflow:hidden;box-shadow:var(--shadow)}
.metric-heading{font-size:12px;color:var(--muted);font-weight:500;display:flex;justify-content:space-between;align-items:center;gap:6px}
.metric-heading svg{width:16px;height:16px;color:var(--gvr-gray-40)}
.metric-value{font-size:30px;line-height:1.1;letter-spacing:-.03em;font-weight:700;margin-top:12px;font-variant-numeric:tabular-nums}
.metric-foot{font-size:11px;color:var(--muted);margin-top:8px;display:flex;align-items:center;gap:6px}
.metric-foot i{width:6px;height:6px;border-radius:50%;background:var(--green)}
.metric.featured{border-top:3px solid var(--primary)}
.metric.featured .metric-value{color:var(--primary)}
.metric.featured .metric-heading svg{color:var(--primary)}

/* ---------- Work section, filters, tables ---------- */
.work-section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 16px}
.section-heading-left{display:flex;align-items:center;gap:10px}
.section-heading h2{font-size:16px;font-weight:700}
.live-label{display:flex;align-items:center;font-size:12px;color:var(--muted)}
.filters{display:flex;gap:10px;padding:0 22px 18px}
.search{position:relative;max-width:380px;flex:1;min-width:160px}
.search svg{position:absolute;left:11px;top:11px;width:16px;height:16px;color:var(--gvr-gray-40)}
.search input{width:100%;height:38px;padding:8px 11px 8px 35px;font-size:13px;background:var(--surface);border:1px solid var(--input-line);border-radius:8px;color:var(--ink)}
.search input::placeholder,.field input::placeholder,.field textarea::placeholder{color:var(--gvr-gray-40)}
.search input:focus-visible,.filter-select:focus-visible,.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{border-color:var(--primary);box-shadow:var(--focus);border-radius:8px}
.filter-select{height:38px;border:1px solid var(--input-line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:13px;padding:0 30px 0 11px;max-width:210px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366707d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;background-size:14px}
.filter-spacer{flex:1}
.table-scroll{overflow-x:auto}
.orders-table{width:100%;border-collapse:collapse;text-align:left;table-layout:fixed;min-width:800px}
.orders-table th{background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 18px;font-size:11px;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;font-weight:600}
.orders-table td{padding:16px 18px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle}
.orders-table th:first-child,.orders-table td:first-child{padding-left:22px}
.orders-table th:last-child,.orders-table td:last-child{padding-right:22px}
.orders-table th:nth-child(1){width:38%}.orders-table th:nth-child(2){width:15%}.orders-table th:nth-child(3){width:19%}.orders-table th:nth-child(4){width:12%}.orders-table th:nth-child(5){width:16%}
.orders-table tbody tr:last-child td{border-bottom:none}
.orders-table tbody tr{cursor:pointer;transition:background .15s}
.orders-table tbody tr:hover{background:var(--bg)}
.orders-table tbody tr:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--primary)}
.order-main{display:flex;align-items:center;gap:12px}
.order-title{font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.order-copy{min-width:0}
.order-meta{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);margin-top:3px}
.order-meta .mono{color:var(--accent);font-size:12px}
.order-meta svg{width:12px;height:12px;vertical-align:-2px}
.meta-dot{width:3px;height:3px;border-radius:50%;background:var(--gvr-gray-40)}
.team-cell{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:13px}
.team-avatar{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--secondary);color:var(--accent);font-size:9px;font-weight:700;flex-shrink:0}
.updated-cell{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}
.updated-cell svg{width:14px;height:14px;color:var(--gvr-gray-40)}
.table-footer{border-top:1px solid var(--line);padding:12px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);background:var(--bg)}
.table-footer span:last-child{display:flex;align-items:center;gap:6px;white-space:nowrap}
.table-footer svg{width:13px;height:13px}
.users-table th:nth-child(1){width:27%}.users-table th:nth-child(2){width:13%}.users-table th:nth-child(3){width:15%}.users-table th:nth-child(4){width:16%}.users-table th:nth-child(5){width:29%}
.users-table tbody tr{cursor:default}
.users-table tbody tr:hover{background:transparent}
.users-table .team-avatar{width:32px;height:32px;font-size:10px}
.row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.row-actions .button{min-height:32px;padding:6px 10px;font-size:12px}
.row-actions .button svg{width:14px;height:14px}
.integration-strip{display:flex;align-items:center;gap:14px;margin-top:18px;padding:16px 20px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line)}
.integration-icon{background:var(--primary-soft);border:1px solid var(--primary-line);border-radius:9px;width:36px;height:36px;display:grid;place-items:center;color:var(--primary);flex-shrink:0}
.integration-icon svg{width:17px;height:17px}
.integration-strip h3{font-size:14px;font-weight:600;color:var(--ink)}
.integration-strip p{font-size:12px;color:var(--muted);line-height:1.55;margin-top:3px}
.integration-strip .button{margin-left:auto;background:transparent;color:var(--primary);font-size:13px;min-height:34px;padding:6px 10px;border:1px solid var(--primary-line)}
.integration-strip .button:hover{background:var(--primary-soft)}
.page-footer{display:flex;justify-content:space-between;gap:12px;margin-top:22px;font-size:12px;color:var(--muted)}
.page-footer span{display:flex;align-items:center;gap:5px}
.page-footer svg{width:13px;height:13px}
.empty-state{padding:56px 24px 60px;text-align:center}
.empty-icon{display:grid;place-items:center;width:52px;height:52px;background:var(--secondary);border-radius:14px;margin:0 auto 16px;color:var(--accent)}
.empty-state h3{font-size:16px}
.empty-state p{font-size:13px;line-height:1.7;color:var(--muted);margin:7px auto 18px;max-width:360px}

/* ---------- Activity ---------- */
.activity-list{border-top:1px solid var(--line)}
.event-row{display:flex;align-items:flex-start;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line)}
.event-row:last-child{border-bottom:none}
.event-icon{background:var(--secondary);color:var(--accent);width:34px;height:34px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}
.event-icon svg{width:15px;height:15px}
.event-content{min-width:0;flex:1}
.event-content h3{font-size:14px;color:var(--ink);font-weight:600}
.event-content p{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.55;overflow-wrap:anywhere}
.event-time{font-size:12px;color:var(--muted);white-space:nowrap}
.event-link{background:none;color:var(--primary);font-size:12px;font-weight:600;padding:8px 0 0;display:flex;align-items:center;gap:5px}
.event-link svg{width:12px;height:12px}

/* ---------- Modals, forms ---------- */
.overlay{position:fixed;inset:0;background:#1a223073;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(2px)}
.modal{background:var(--surface);border-radius:var(--radius-lg);width:min(100%,660px);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;box-shadow:var(--shadow-lg);overflow:hidden}
.modal-header{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.modal-header h2{font-size:20px;margin-top:4px}
.modal-header p{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.55}
.modal-header .eyebrow{color:var(--primary)}
.form-body{padding:24px 26px;overflow-y:auto}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}
.field.full{grid-column:1/-1}
.field label{font-size:12px;font-weight:600;color:var(--ink)}
.field .optional{font-weight:400;color:var(--muted);margin-left:3px}
.field input,.field select,.field textarea{width:100%;padding:9px 11px;border:1px solid var(--input-line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:14px;min-height:40px}
.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366707d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px;padding-right:32px}
.field textarea{resize:vertical;min-height:84px;line-height:1.6}
.field-hint{color:var(--muted);font-size:12px;line-height:1.5}
.field-group-title{grid-column:1/-1;display:flex;align-items:center;gap:7px;border-top:1px solid var(--line);padding-top:18px;margin-top:2px;color:var(--ink);font-weight:600;font-size:13px}
.field-group-title svg{width:15px;height:15px;color:var(--primary)}
.assignment-note{display:flex;gap:9px;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--muted);line-height:1.55;font-size:12px;grid-column:1/-1}
.assignment-note svg{width:14px;height:14px;margin-top:2px;color:var(--primary)}
.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding:16px 26px;background:var(--bg)}
.modal-footer .footer-note{margin-right:auto;color:var(--muted);font-size:12px}
.confirm-modal{width:min(100%,480px)}
.confirm-modal .modal-header h2{font-size:18px;margin-top:0}
.credential-box{border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);padding:4px 16px}
.credential-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.credential-row:last-child{border-bottom:0}
.credential-value{font-size:16px;color:var(--ink);user-select:all;overflow-wrap:anywhere;text-align:right}

/* ---------- Detail drawer ---------- */
.drawer-overlay{justify-content:flex-end;padding:0}
.drawer{height:100dvh;max-height:none;border-radius:0;width:580px;max-width:100%;animation:slide-in .18s ease-out}
@keyframes slide-in{from{transform:translateX(30px);opacity:.6}to{transform:translateX(0);opacity:1}}
.drawer .modal-header{padding:22px 26px 20px}
.drawer .modal-header h2{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
.detail-kicker{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-bottom:8px}
.detail-kicker .mono{color:var(--primary);font-weight:600;font-size:12px}
.detail-body{overflow-y:auto;padding:24px 26px;flex:1}
.detail-description{font-size:14px;line-height:1.7;color:var(--accent);margin-bottom:22px;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.detail-section h3{font-size:14px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}
.detail-section h3 .count{font-size:12px;color:var(--muted);font-weight:500}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}
.detail-label{font-size:12px;color:var(--muted);margin-bottom:5px;display:flex;align-items:center;gap:4px}
.detail-label svg{width:12px;height:12px}
.detail-value{font-size:13px;color:var(--ink);line-height:1.6;overflow-wrap:anywhere}
.detail-grid .field label{font-weight:500;color:var(--muted);font-size:12px}
.detail-grid .field select{padding:8px 32px 8px 10px;font-size:13px}
.coordinate-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius)}
.coordinate-box .coord{font-size:14px;color:var(--ink);margin:4px 0 6px}
.coordinate-box a{font-size:12px;font-weight:600;display:flex;align-items:center;gap:5px}
.coordinate-box a svg{width:12px;height:12px}
.coordinate-box>.coord-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--primary-soft-strong);color:var(--primary);flex-shrink:0}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.photo-card{min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-sm);overflow:hidden}
.photo-card figure{margin:0}
.photo-image{height:96px;background:var(--secondary);display:flex;align-items:center;justify-content:center;color:var(--gvr-gray-40)}
.photo-image img{width:100%;height:100%;object-fit:cover}
.photo-card figcaption{padding:6px 6px 6px 9px;font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:4px}
.photo-card figcaption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.photo-card .icon-button{padding:4px}
.photo-card .icon-button svg{width:14px;height:14px}
.upload-area{display:flex;justify-content:center;align-items:center;gap:9px;cursor:pointer;padding:16px;background:var(--bg);border:1px dashed var(--input-line);border-radius:var(--radius-sm);color:var(--accent);font-size:13px;font-weight:500;position:relative}
.upload-area:hover{background:var(--secondary);border-color:var(--gvr-gray-40)}
.upload-area input{position:absolute;width:1px;height:1px;opacity:0}
.upload-area:focus-within{box-shadow:var(--focus)}
.upload-area svg{width:16px;height:16px;color:var(--primary)}
.upload-area small{color:var(--muted);font-size:11px;font-weight:400;margin-left:4px}
.history-list{display:flex;flex-direction:column}
.history-item{position:relative;padding:0 0 18px 22px;border-left:1px solid var(--line);margin-left:5px;font-size:13px}
.history-item:last-child{padding-bottom:0;border-left-color:transparent}
.history-item::before{content:'';width:9px;height:9px;border:2px solid var(--surface);background:var(--gvr-gray-40);border-radius:50%;position:absolute;left:-6px;top:3px}
.history-item:first-child::before{background:var(--primary)}
.history-title{color:var(--ink);font-size:13px;line-height:1.5;font-weight:500}
.history-note{font-size:12px;line-height:1.55;color:var(--muted);margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}
.history-date{font-size:12px;color:var(--muted);margin-top:3px}
.drawer-footer{justify-content:space-between;gap:10px;flex-wrap:wrap}
.drawer-footer .button{font-size:13px}
.drawer-footer .button:first-child{margin-right:auto}
.drawer-footer .button.secondary{background:var(--surface)}
.detail-integration{padding:12px 0 0;font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
.detail-integration .mono{color:var(--accent)}
.detail-integration>svg{width:12px;height:12px;vertical-align:-2px}
.detail-status-row{display:flex;align-items:center;gap:8px;margin-bottom:18px}
.detail-status-row .priority{margin-left:auto}
.lifecycle-card{margin:0 0 22px;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.lifecycle-heading{display:flex;align-items:center;gap:8px;margin-bottom:6px;color:var(--ink)}
.lifecycle-heading svg{width:17px;height:17px;color:var(--primary)}
.lifecycle-heading h3{font-size:14px}
.lifecycle-card>p{font-size:13px;line-height:1.6;color:var(--muted)}
.lifecycle-card.phase-review{border-color:var(--primary-line);background:var(--primary-soft)}
.lifecycle-card.phase-review .lifecycle-heading svg{color:var(--gvr-red-2)}
.lifecycle-card.phase-completed{border-color:#1f9d5755;background:#1f9d5712}
.lifecycle-card.phase-completed .lifecycle-heading svg{color:var(--green)}
.lifecycle-card .review-meta{font-size:12px;color:var(--muted);margin-top:6px}
.lifecycle-card .field{margin-top:14px}
.lifecycle-card textarea{min-height:68px}
.review-note{border-left:2px solid var(--primary-line);padding-left:10px;margin-top:12px;color:var(--accent);font-size:13px;line-height:1.6}
.review-note strong{font-weight:600;color:var(--ink)}
.review-note p{white-space:pre-wrap;overflow-wrap:anywhere}

/* ---------- Login ---------- */
.login-page{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
.login-art{background:var(--primary);color:#fff;position:relative;overflow:hidden;padding:40px 52px;display:flex;flex-direction:column;justify-content:space-between}
.login-art::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#ffffff0a 1px,transparent 1px),linear-gradient(#ffffff0a 1px,transparent 1px);background-size:44px 44px;pointer-events:none}
.login-art .brand{position:relative;color:#fff}
.login-art .brand-mark{background:#fff;color:var(--primary)}
.login-art .brand-text small{color:#ffffffb3}
.login-pitch{position:relative;max-width:520px;padding:70px 0 80px}
.login-pitch .eyebrow{color:#ffffffb3}
.login-pitch h1{font-size:46px;line-height:1.12;margin:18px 0;color:#fff;letter-spacing:-.03em}
.login-pitch p{font-size:15px;line-height:1.7;color:#ffffffd6;max-width:400px}
.login-flow{display:flex;align-items:center;gap:12px;margin-top:34px;flex-wrap:wrap}
.flow-node{padding:9px 13px;border:1px solid #ffffff40;background:#ffffff14;border-radius:8px;font-size:12px;font-weight:500;color:#fff;display:flex;align-items:center;gap:8px}
.flow-node svg{width:14px;height:14px}
.flow-arrow{font-size:14px;color:#ffffff99}
.login-art-footer{font-size:12px;color:#ffffffb3;position:relative;display:flex;justify-content:space-between;gap:12px}
.login-form-side{display:flex;align-items:center;justify-content:center;padding:48px;background:var(--surface)}
.login-form{width:100%;max-width:360px}
.login-form h2{font-size:26px;margin:12px 0 8px;letter-spacing:-.02em}
.login-form>p{color:var(--muted);line-height:1.6;font-size:14px;margin-bottom:26px}
.login-form .field{margin-bottom:16px}
.login-form .field input{padding:11px 12px;min-height:44px}
.login-form .button{width:100%;margin-top:6px;min-height:44px;font-size:14px}
.dev-hint{border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px;margin-top:20px;background:var(--bg);font-size:12px;color:var(--muted);line-height:1.8}
.dev-hint strong{font-weight:600;color:var(--ink)}
.login-caption{font-size:12px!important;color:var(--muted)!important;margin-top:22px;line-height:1.6!important}
.login-mark{height:40px;width:40px;display:grid;place-items:center;color:var(--primary);background:var(--primary-soft-strong);border-radius:10px;margin-bottom:20px}
.login-mark svg{width:20px;height:20px}

/* ---------- Responsive ---------- */
@media(min-width:1500px){.content{padding-top:40px}.metrics{margin:32px 0}}
@media(max-width:1150px){.shell{grid-template-columns:216px minmax(0,1fr)}.sidebar{width:216px;padding-left:12px;padding-right:12px}.topbar{padding:0 26px}.content{padding:28px 26px}.metric{padding:16px}.metrics.with-review{grid-template-columns:repeat(3,minmax(0,1fr))}.filters{padding-left:18px;padding-right:18px}.filter-select{max-width:160px}.integration-strip p{max-width:420px}.toast{left:calc(50% + 100px)}}
@media(max-width:900px){.shell{grid-template-columns:72px minmax(0,1fr)}.sidebar{width:72px;padding:18px 10px}.brand{justify-content:center}.brand .brand-text,.brand sup,.workspace,.nav-label,.nav-item .nav-text,.nav-item .count,.sandbox-note,.account-name,.account-subtitle,.account .avatar{display:none}.nav{margin-top:28px}.nav-item{justify-content:center;padding:13px}.nav-item.active{box-shadow:none}.nav-item svg{width:20px;height:20px}.account{padding:16px 0 0;justify-content:center}.account button{margin:0}.account button svg{width:18px;height:18px}.topbar{padding:0 22px;height:60px}.content{padding:24px 22px}.metrics{gap:10px}.metric{padding:14px;min-height:104px}.metric-value{font-size:26px}.toast{left:calc(50% + 36px)}.login-art{padding:34px}.login-pitch h1{font-size:36px}.flow-node{padding:8px 10px;font-size:11px}.flow-node svg{display:none}.login-form-side{padding:34px}}
@media(max-width:650px){.shell{display:block}.sidebar{width:100%;height:60px;inset:0 0 auto;flex-direction:row;align-items:center;padding:8px 14px;border-right:0;border-bottom:1px solid var(--line)}.brand .brand-text{display:flex}.brand-text small{display:none}.brand{gap:7px;font-size:15px}.brand-mark{width:28px;height:28px;border-radius:7px}.brand-mark svg{width:16px;height:16px}.nav{margin:0 0 0 auto;display:flex;gap:2px}.nav-item{padding:9px;margin:0}.nav-item svg{width:18px;height:18px}.sidebar-bottom{margin:0 0 0 6px}.account{padding:0;border:0}.account button svg{width:17px;height:17px}.main{padding-top:60px}.topbar{height:48px;padding:0 16px}.topbar-right{gap:10px}.topbar-date{display:none}.environment{font-size:10px;padding:4px 8px}.breadcrumbs{font-size:12px}.content{padding:22px 16px}.page-heading{gap:12px;align-items:flex-start;flex-wrap:wrap}h1{font-size:24px}.page-heading .subtitle{font-size:13px;margin-top:4px}.page-heading-actions .button{font-size:12px;padding:8px 12px;min-height:36px}.metrics,.metrics.with-review{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.metric{min-height:100px;padding:14px 16px}.section-heading{padding:16px 16px 14px}.section-heading h2{font-size:15px}.live-label{font-size:11px}.filters{flex-wrap:wrap;padding:0 16px 16px;gap:8px}.search{max-width:none;flex-basis:100%}.filter-select{flex:1;max-width:none}.filter-spacer{display:none}.orders-table{min-width:680px}.orders-table td{padding:14px 12px}.orders-table th:first-child,.orders-table td:first-child{padding-left:16px}.table-footer{padding:12px 16px;flex-wrap:wrap}.integration-strip{padding:14px;gap:10px;flex-wrap:wrap}.integration-strip .button{margin-left:46px}.page-footer{margin-top:18px;gap:9px;flex-wrap:wrap}.toast{left:50%;bottom:14px;font-size:12px;width:max-content}.overlay{padding:12px}.modal{max-height:calc(100dvh - 24px);border-radius:12px}.modal-header{padding:18px}.form-body{padding:18px}.form-grid{gap:14px 12px}.modal-footer{padding:14px 18px}.modal-footer .footer-note{display:none}.drawer-overlay{padding:0}.drawer{max-height:none;border-radius:0;width:100%}.drawer .modal-header{padding:18px}.detail-body{padding:18px}.drawer-footer{padding:14px 18px}.drawer-footer .button{padding:8px 11px;font-size:12px}.drawer-footer [data-lifecycle-status]{flex:1;justify-content:center}.event-row{padding:16px;gap:10px}.row-actions{justify-content:flex-start}.credential-row{flex-direction:column;align-items:flex-start;gap:6px}.credential-value{text-align:left}.login-page{display:block}.login-art{padding:24px;min-height:260px}.login-pitch{padding:30px 0 6px;max-width:none}.login-pitch h1{font-size:30px;margin:10px 0}.login-pitch p{font-size:13px;max-width:100%}.login-flow,.login-art-footer{display:none}.login-form-side{padding:32px 22px 40px}.login-form{max-width:420px}.login-mark{display:none}.login-form h2{font-size:23px;margin-top:6px}}

/* ---------- ADS-B feeds ---------- */
.metrics.feed-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.feeds-table{min-width:980px}
.feeds-table th:nth-child(1){width:25%}.feeds-table th:nth-child(2){width:17%}.feeds-table th:nth-child(3){width:7%}.feeds-table th:nth-child(4){width:10%}.feeds-table th:nth-child(5){width:8%}.feeds-table th:nth-child(6){width:9%}.feeds-table th:nth-child(7){width:24%}
.feed-url{font-size:12px;color:var(--accent);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feed-area{grid-column:1/-1}
.check-field{display:flex;align-items:center;gap:8px;grid-column:1/-1;font-size:13px}
.check-field input{width:16px;height:16px;margin:0;accent-color:var(--primary)}
.url-copy{display:flex;align-items:flex-start;gap:8px}
.url-copy .mono{flex:1;min-width:0;padding:9px 11px;border:1px solid var(--input-line);border-radius:8px;background:var(--bg);font-size:12px;overflow-wrap:anywhere;user-select:all}
.feed-steps{grid-column:1/-1;margin:0;padding-left:20px;font-size:13px;color:var(--muted);line-height:1.8}
.feed-steps strong{color:var(--ink);font-weight:600}
@media(max-width:650px){.metrics.feed-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.url-copy{flex-direction:column;align-items:stretch}}

/* ---------- ADS-B feeds: airports, lookups and aircraft database (phase 2) ---------- */
.feeds-table{min-width:1060px}
.feeds-table th:nth-child(1){width:23%}.feeds-table th:nth-child(2){width:15%}.feeds-table th:nth-child(3){width:9%}.feeds-table th:nth-child(4){width:6%}.feeds-table th:nth-child(5){width:9%}.feeds-table th:nth-child(6){width:7%}.feeds-table th:nth-child(7){width:9%}.feeds-table th:nth-child(8){width:22%}
.airport-rows{grid-column:1/-1;display:flex;flex-direction:column;gap:12px}
.airport-rows:empty{display:none}
.airport-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.airport-row [data-airport="icao"]{text-transform:uppercase;font-family:var(--mono)}
.airport-remove{height:38px;width:38px}
.airport-remove:hover{background:var(--secondary);color:var(--ink)}
.aircraft-db-card{display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:16px 20px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.aircraft-db-copy{flex:1;min-width:0}
.aircraft-db-copy h3{margin:0 0 3px}
.aircraft-db-copy p{margin:0;font-size:13px;color:var(--ink);line-height:1.6}
.aircraft-db-copy strong{font-weight:600}
.aircraft-db-error{color:var(--gvr-red-2)}
.aircraft-db-state{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);white-space:nowrap}
.aircraft-db-card .button:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:650px){.aircraft-db-card{flex-wrap:wrap;padding:14px}.aircraft-db-card .button{width:100%}.airport-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.airport-row .field:first-child{grid-column:1/-1}}

/* ---------- ADS-B feeds: providers, fallback and usage (phase 3) ---------- */
.feeds-table{min-width:1180px}
.feeds-table th:nth-child(1){width:20%}.feeds-table th:nth-child(2){width:9%}.feeds-table th:nth-child(3){width:13%}.feeds-table th:nth-child(4){width:8%}.feeds-table th:nth-child(5){width:5%}.feeds-table th:nth-child(6){width:8%}.feeds-table th:nth-child(7){width:6%}.feeds-table th:nth-child(8){width:8%}.feeds-table th:nth-child(9){width:23%}
.feed-provider span{font-weight:500}
.feed-served{font-size:11px;color:var(--amber);margin-top:2px;white-space:nowrap}
.feed-fallback{font-size:11px;color:var(--muted);margin-top:2px}
.fallback-row{display:flex;flex-wrap:wrap;gap:8px 18px}
.fallback-row .check-field{grid-column:auto;white-space:nowrap}
.fallback-option:has(input:disabled){color:var(--muted)}
.provider-modal{max-width:560px}
.usage-metric .usage-rows{display:flex;flex-direction:column;gap:4px;margin-top:10px;font-size:13px}
.usage-row{display:flex;justify-content:space-between;gap:10px}
.usage-row .usage-count{font-weight:700;color:var(--primary);font-variant-numeric:tabular-nums}
