:root {
    --bg: #0f1012;
    --surface: #17191d;
    --surface2: #1e2126;
    --surface3: #23262d;
    --border: #2a2d34;
    --accent: #e8a020;
    --accent2: #3b82f6;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --text: #e8eaed;
    --text2: #9ca3af;
    --text3: #6b7280;
    --mono: 'DM Mono', monospace;
    --head: 'Barlow Condensed', sans-serif;
    --body: 'Barlow', sans-serif;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* HEADER */
  header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
  }

  .logo {
    font-family: var(--head);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .logo span { color: var(--text2); font-weight: 300; }

  .header-stats {
    display: flex;
    gap: 18px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text3);
    flex-wrap: wrap;
  }
  .header-stats strong { color: var(--text2); }

  .header-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }

  .btn-header {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text2);
    border-radius: 3px;
    padding: 5px 10px;
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .btn-header:hover { border-color: var(--accent); color: var(--accent); }
  .btn-header.active { background: var(--accent); border-color: var(--accent); color: #0f1012; font-weight: 500; }

  /* LAYOUT */
  .app {
    display: grid;
    grid-template-columns: 360px 1fr;
    height: calc(100vh - 52px);
  }

  /* SIDEBAR */
  .sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .sidebar-top {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .btn-add {
    width: 100%;
    background: var(--accent);
    color: #0f1012;
    border: none;
    border-radius: 4px;
    padding: 9px;
    font-family: var(--head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  .btn-add:hover { opacity: 0.88; }

  .btn-add-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .btn-add-sub {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text2);
    border-radius: 3px;
    padding: 6px 4px;
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
  }
  .btn-add-sub:hover { border-color: var(--accent); color: var(--accent); }

  .filter-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
  }

  .filter-btn {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text2);
    border-radius: 3px;
    padding: 4px 3px;
    font-family: var(--mono);
    font-size: 9px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-align: center;
    min-width: 0;
  }
  .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0f1012;
    font-weight: 500;
  }

  .search-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 6px 10px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 11px;
    outline: none;
    transition: border-color 0.15s;
  }
  .search-input:focus { border-color: var(--accent); }
  .search-input::placeholder { color: var(--text3); }

  /* PROPERTY LIST */
  .prop-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
  }

  .prop-list::-webkit-scrollbar { width: 4px; }
  .prop-list::-webkit-scrollbar-track { background: transparent; }
  .prop-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  .prop-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
  }
  .prop-card:hover { border-color: var(--accent); }
  .prop-card.selected { border-color: var(--accent); background: #1e1f24; }
  .prop-card.knockout { opacity: 0.45; }
  .prop-card.knockout.selected { opacity: 1; }

  .prop-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 5px;
    gap: 6px;
  }

  .prop-address {
    font-family: var(--head);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    flex: 1;
    min-width: 0;
  }

  .score-badge {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .risk-0 { background: #14532d33; color: #4ade80; border: 1px solid #166534; }
  .risk-1 { background: #14532d33; color: #86efac; border: 1px solid #166534; }
  .risk-2 { background: #713f1233; color: #fbbf24; border: 1px solid #92400e; }
  .risk-3 { background: #78350f33; color: #f97316; border: 1px solid #9a3412; }
  .risk-4 { background: #7f1d1d33; color: #f87171; border: 1px solid #991b1b; }
  .risk-5 { background: #7f1d1d55; color: #ef4444; border: 1px solid #dc2626; }
  .risk-none { background: var(--surface); color: var(--text3); border: 1px solid var(--border); }

  .ko-badge {
    display: inline-block;
    background: #7f1d1d44;
    color: #ef4444;
    border: 1px solid #dc2626;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 9px;
    padding: 1px 5px;
    margin-left: 4px;
  }

  .prop-meta {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text3);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
  }

  .prop-meta .fcl-date { color: var(--warning); }

  .prop-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }

  .btn-sm {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text3);
    transition: all 0.15s;
  }
  .btn-sm:hover { color: var(--text); border-color: var(--text3); }
  .btn-sm.danger:hover { color: var(--danger); border-color: var(--danger); }

  /* MAIN AREA */
  .main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* TAB BAR */
  .tab-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    padding: 0 20px;
    gap: 0;
    overflow-x: auto;
    flex-shrink: 0;
  }
  .tab-bar::-webkit-scrollbar { height: 0; }

  .tab {
    font-family: var(--head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text3);
    padding: 13px 16px 11px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .tab:hover { color: var(--text2); }
  .tab.active { color: var(--accent); border-bottom-color: var(--accent); }

  .main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
  }
  .main-content::-webkit-scrollbar { width: 4px; }
  .main-content::-webkit-scrollbar-track { background: transparent; }
  .main-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  /* EMPTY STATE */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    color: var(--text3);
  }
  .empty-icon { font-size: 42px; opacity: 0.35; }
  .empty-state h3 { font-family: var(--head); font-size: 18px; font-weight: 600; color: var(--text2); }
  .empty-state p { font-size: 13px; text-align: center; max-width: 300px; line-height: 1.6; }

  /* DETAIL VIEW */
  .detail-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .detail-address {
    font-family: var(--head);
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 6px;
  }

  .detail-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 6px;
  }

  .meta-chip {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text2);
  }

  .meta-chip.fcl { background: #78350f22; border-color: #92400e; color: var(--warning); }
  .meta-chip.ko { background: #7f1d1d22; border-color: #991b1b; color: #f87171; }

  /* SECTIONS */
  .section-label {
    font-family: var(--head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 8px;
  }

  .section-block {
    margin-bottom: 22px;
  }

  /* TWO-COL GRID */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .four-col { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; }

  /* FIELDS */
  .field-group { margin-bottom: 12px; }

  .field-label {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text3);
    margin-bottom: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .text-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 6px 9px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 11px;
    outline: none;
    transition: border-color 0.15s;
  }
  .text-input:focus { border-color: var(--accent); }
  .text-input::placeholder { color: var(--text3); }
  select.text-input { appearance: none; cursor: pointer; }

  /* SCORING - 1-5 */
  .score-selector {
    display: flex;
    gap: 5px;
  }

  .score-btn {
    width: 38px;
    height: 38px;
    border-radius: 3px;
    border: 2px solid var(--border);
    background: var(--surface2);
    color: var(--text3);
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .score-btn:hover { border-color: var(--text2); color: var(--text2); }
  .score-btn.sel-1 { border-color: #ef4444; background: #7f1d1d33; color: #ef4444; }
  .score-btn.sel-2 { border-color: #f97316; background: #78350f22; color: #f97316; }
  .score-btn.sel-3 { border-color: #fbbf24; background: #713f1222; color: #fbbf24; }
  .score-btn.sel-4 { border-color: #86efac; background: #14532d22; color: #86efac; }
  .score-btn.sel-5 { border-color: #4ade80; background: #14532d33; color: #4ade80; }

  .score-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .score-row-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text2);
    text-align: right;
  }

  /* VALUATION TABLE */
  .val-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 11px;
  }
  .val-table th {
    text-align: left;
    padding: 5px 8px;
    color: var(--text3);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
  }
  .val-table td {
    padding: 5px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
    vertical-align: middle;
  }
  .val-table tr:last-child td { border-bottom: none; }
  .val-table td:last-child { color: var(--text); }
  .val-table input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 11px;
    width: 100%;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background 0.1s;
  }
  .val-table input:focus { background: var(--surface3); }
  .val-table tr.avg-row td { color: var(--accent); font-weight: 500; }
  .val-table tr.max-row td { color: var(--success); font-weight: 500; }

  /* MAX BID DISPLAY */
  .maxbid-display {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .maxbid-item { text-align: center; }
  .maxbid-label { font-family: var(--mono); font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
  .maxbid-value { font-family: var(--mono); font-size: 16px; color: var(--text); }
  .maxbid-value.accent { color: var(--accent); font-size: 20px; }
  .maxbid-value.success { color: var(--success); font-size: 20px; }
  .maxbid-divider { color: var(--border); font-size: 20px; }

  /* NOTES */
  .notes-field {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 8px 10px;
    color: var(--text);
    font-family: var(--body);
    font-size: 13px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.15s;
    line-height: 1.6;
  }
  .notes-field:focus { border-color: var(--accent); }
  .notes-field::placeholder { color: var(--text3); }

  /* PHOTOS */
  .photo-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 6px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    margin-bottom: 14px;
  }
  .photo-upload-zone:hover, .photo-upload-zone.drag-over {
    border-color: var(--accent);
    background: #e8a02008;
  }
  .photo-upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
  .upload-icon { font-size: 28px; margin-bottom: 6px; }
  .upload-text { font-family: var(--head); font-size: 14px; color: var(--text2); }
  .upload-sub { font-size: 11px; color: var(--text3); margin-top: 3px; }

  .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface2);
    border: 1px solid var(--border);
  }
  .photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .photo-del {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.75);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .photo-item:hover .photo-del { opacity: 1; }
  .photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 10px 5px 3px;
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    font-family: var(--mono);
  }

  /* ROUTE VIEW */
  .route-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
  .route-config { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 14px; }
  .prop-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .prop-checkbox:hover { border-color: var(--accent); }
  .prop-checkbox input { accent-color: var(--accent); cursor: pointer; }
  .prop-checkbox label { cursor: pointer; font-size: 12px; color: var(--text); flex: 1; }
  .stop-list { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
  .stop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
    font-size: 12px;
  }
  .stop-item:last-child { border-bottom: none; }
  .stop-item:hover { background: var(--surface); }
  .stop-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #0f1012;
    font-family: var(--mono);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .stop-addr { flex: 1; color: var(--text); }
  .stop-risk { font-family: var(--mono); font-size: 9px; }
  .route-link-wrap { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 14px; margin-top: 14px; }
  .route-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--accent2);
    color: #fff;
    border-radius: 3px;
    font-family: var(--head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.15s;
  }
  .route-link:hover { opacity: 0.85; }
  .route-url { font-family: var(--mono); font-size: 9px; color: var(--text3); word-break: break-all; margin-top: 7px; }

  /* MODAL */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px;
    transform: translateY(10px);
    transition: transform 0.2s;
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-title {
    font-family: var(--head);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 18px;
  }
  .modal-field { margin-bottom: 12px; }
  .modal-actions { display: flex; gap: 8px; margin-top: 18px; }

  /* SORT CONTROLS */
  .sort-row { display: flex; gap: 5px; align-items: center; padding: 0 8px 6px; flex-wrap: wrap; }
  .sort-label { font-family: var(--mono); font-size: 9px; color: var(--text3); margin-right: 2px; }
  .sort-btn {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text3);
    cursor: pointer;
    transition: all 0.15s;
  }
  .sort-btn.active { background: var(--surface2); color: var(--text2); border-color: var(--text3); }

  /* BUTTONS */
  .btn-primary {
    background: var(--accent);
    color: #0f1012;
    border: none;
    border-radius: 3px;
    padding: 7px 14px;
    font-family: var(--head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  .btn-primary:hover { opacity: 0.88; }
  .btn-secondary {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 7px 14px;
    font-family: var(--head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-secondary:hover { border-color: var(--text2); color: var(--text); }
  .btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 3px;
    padding: 7px 14px;
    font-family: var(--head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-danger:hover { background: #ef444422; }

  /* TAGS */
  .tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
  .tag {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 2px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text3);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
  }
  .tag.active { background: #3b82f622; border-color: var(--accent2); color: var(--accent2); }

  /* KNOCK-OUT */
  .ko-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
  .ko-tag {
    font-family: var(--mono);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 2px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text3);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
  }
  .ko-tag.active { background: #7f1d1d22; border-color: #dc2626; color: #f87171; }

  /* CLEAN TITLE */
  .clean-title-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }
  .yn-btn {
    padding: 5px 14px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text3);
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .yn-btn.yes.active { background: #14532d33; border-color: var(--success); color: var(--success); }
  .yn-btn.no.active { background: #7f1d1d22; border-color: var(--danger); color: var(--danger); }
  .yn-btn:hover { border-color: var(--text2); }

  /* SAVE BAR */
  .save-bar {
    padding: 10px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
  }
  .save-hint { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-left: auto; }

  /* TOAST */
  .toast {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--success);
    border-radius: 4px;
    padding: 9px 14px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text);
    z-index: 300;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s;
    max-width: 280px;
  }
  .toast.show { transform: translateY(0); opacity: 1; }

  /* TABULAR VIEW */
  .table-wrap { overflow-x: auto; }
  .prop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
  }
  .prop-table th {
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 7px 9px;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    text-align: left;
  }
  .prop-table td {
    border: 1px solid var(--border);
    padding: 5px 8px;
    color: var(--text2);
    font-family: var(--mono);
    vertical-align: middle;
  }
  .prop-table tr:hover td { background: var(--surface3); }
  .prop-table tr.ko-row-table td { opacity: 0.45; }
  .prop-table td.addr-cell { color: var(--text); min-width: 160px; }
  .prop-table td input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 11px;
    width: 100%;
    min-width: 80px;
  }
  .prop-table td input:focus { background: var(--surface3); border-radius: 2px; padding: 1px 3px; }

  /* DIVIDER */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 18px 0;
  }

  /* INFO BOX */
  .info-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 14px;
  }
  .info-box.warn { border-color: #92400e; background: #78350f11; color: var(--warning); }

  /* RADIO TOGGLE */
  .toggle-group { display: flex; gap: 4px; }
  .toggle-opt {
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text3);
    font-family: var(--mono);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .toggle-opt.active { background: var(--accent); border-color: var(--accent); color: #0f1012; font-weight: 500; }

  /* DETAIL ACTIONS ROW */
  .detail-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
