
:root {
    --blue: #123d6a;
    --blue-light: #1e73d8;
    --orange: #f58220;
    --green: #198754;
    --red: #c93636;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --line: #dce4ef;
    --text: #152238;
    --muted: #6d788b;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
.layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 255px 1fr;
}
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
}
.brand { padding: 0 10px 20px; }
.brand div { font-size: 28px; font-weight: 800; color: var(--blue); }
.brand b { color: var(--orange); }
.brand small { color: var(--muted); }
nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 9px;
    color: #24344a;
    text-decoration: none;
    font-weight: 600;
}
nav a:hover, nav a.active { background: #e8f2ff; color: #075fca; }
.nav-icon { width: 22px; text-align: center; }
.sync-card {
    margin-top: auto;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
}
.sync-card strong, .sync-card small { display: block; }
.sync-card small { margin-top: 6px; color: var(--muted); }
.sync-line { margin-top: 8px; }
.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 50%;
    background: #e1a93b;
}
.dot.green { background: var(--green); }
main { min-width: 0; }
.topbar {
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.mobile-menu { display: none; }
.search {
    width: min(620px, 60%);
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.search input {
    width: 90%;
    border: 0;
    outline: none;
    background: transparent;
}
.user { margin-left: auto; font-weight: 700; }
.user small { display: block; color: var(--muted); font-weight: 400; }
.content { padding: 28px; }
footer { padding: 18px 28px; color: var(--muted); font-size: 13px; }
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.page-head h1 { margin: 0 0 6px; font-size: 28px; }
.page-head p { margin: 0; color: var(--muted); }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}
.btn-primary { background: var(--blue-light); color: #fff; }
.btn-light { background: #fff; color: var(--blue-light); border: 1px solid var(--line); }
.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.card, .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(18, 38, 65, .04);
}
.kpi { padding: 19px; }
.kpi .label { color: var(--muted); font-weight: 600; }
.kpi .value { margin: 6px 0; font-size: 30px; font-weight: 800; }
.grid-3 {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr .9fr;
    gap: 16px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; font-size: 18px; }
.panel-body { padding: 8px 18px 18px; }
.list-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f6;
}
.list-row:last-child { border-bottom: 0; }
.time { color: var(--blue-light); font-weight: 800; }
.muted { color: var(--muted); font-size: 13px; }
.badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #075fca;
    font-size: 12px;
    font-weight: 700;
}
.badge.orange { background: #fff0e1; color: #b95a00; }
.badge.green { background: #e6f5ec; color: #14753a; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #edf1f6;
}
.table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}
.sync-details { padding: 20px; }
.sync-log {
    min-height: 130px;
    padding: 14px;
    border-radius: 9px;
    background: #111827;
    color: #d1d5db;
    font: 13px Consolas, monospace;
    white-space: pre-wrap;
}
.planner { overflow-x: auto; }
.planner-grid {
    display: grid;
    min-width: 1000px;
    grid-template-columns: 90px repeat(4, minmax(190px, 1fr));
}
.planner-grid > div {
    min-height: 58px;
    padding: 9px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.planner-grid .head { background: #f8fafc; font-weight: 800; }
.appointment {
    padding: 8px;
    border-left: 4px solid var(--blue-light);
    border-radius: 7px;
    background: #e8f2ff;
    font-size: 13px;
}
.appointment.orange {
    border-left-color: var(--orange);
    background: #fff0e1;
}
.placeholder { padding: 35px; text-align: center; color: var(--muted); }
.system-check { display: grid; gap: 10px; }
.check-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #edf1f6;
}
.ok { color: var(--green); font-weight: 800; }
.warning { color: #bd6b00; font-weight: 800; }

@media (max-width: 1080px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: -275px;
        width: 255px;
        z-index: 20;
        transition: left .2s;
    }
    body.menu-open .sidebar { left: 0; }
    .mobile-menu { display: block; }
    .search { display: none; }
    .topbar { padding: 0 16px; }
    .content { padding: 18px; }
    .kpis { grid-template-columns: 1fr; }
}

/* Kundenmodul */
.customer-toolbar { margin-bottom: 16px; padding: 18px; }
.customer-search-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.customer-search-row { display: flex; gap: 10px; align-items: center; }
.customer-search-row input[type="search"] {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    color: var(--text);
    background: #fff;
}
.customer-search-row input[type="search"]:focus {
    outline: 3px solid rgba(25, 111, 214, .14);
    border-color: var(--blue-light);
}
.customer-live-hint { display: block; margin-top: 8px; color: var(--muted); }
.customer-table-panel { overflow: hidden; }
.customer-table-wrap { overflow-x: auto; }
.customer-table { min-width: 930px; }
.customer-table td { vertical-align: top; }
.customer-table tbody tr { transition: background .15s ease; }
.customer-table tbody tr:hover,
.customer-table tbody tr:focus { background: #f2f7ff; outline: none; }
.customer-row { cursor: pointer; }
.customer-name-link { color: var(--text); font-weight: 800; text-decoration: none; }
.customer-name-link:hover { color: var(--blue-light); }
.customer-sort-link {
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}
.customer-sort-link:hover,
.customer-sort-link.active { color: var(--blue-light); }
.customer-open-cell { text-align: right !important; white-space: nowrap; }
.customer-open { padding: 7px 10px; }
.customer-table mark {
    padding: 0 2px;
    border-radius: 3px;
    background: #fff0a8;
    color: inherit;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.pagination .disabled { pointer-events: none; opacity: .45; }
.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}
.page-number:hover { border-color: var(--blue-light); color: var(--blue-light); }
.page-number.active { border-color: var(--blue-light); background: var(--blue-light); color: #fff; }
.pagination-gap { color: var(--muted); padding: 0 2px; }
.customer-back { display: inline-block; margin-bottom: 8px; color: var(--blue-light); text-decoration: none; font-weight: 700; }
.customer-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.detail-list { padding: 6px 18px 14px; }
.detail-list > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f6;
}
.detail-list > div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { overflow-wrap: anywhere; }
.detail-list a { color: var(--blue-light); }
.customer-notes { margin-top: 16px; }
.customer-notes p { margin: 8px 0 0; line-height: 1.55; }

@media (max-width: 850px) {
    .customer-search-row { align-items: stretch; flex-direction: column; }
    .customer-detail-grid { grid-template-columns: 1fr; }
    .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Kunden: Detailansicht und Eingabemaske bewusst identisch */
.customer-detail-form .customer-detail-grid { align-items: start; }
.customer-input-list > div { align-items: center; }
.customer-input-list label,
.customer-input-list > div > span {
    color: var(--muted);
    font-weight: 400;
}
.customer-input-list input,
.customer-notes-edit textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #cfd8e6;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font: inherit;
    box-sizing: border-box;
}
.customer-input-list input:focus,
.customer-notes-edit textarea:focus {
    outline: 3px solid rgba(25, 111, 214, .13);
    border-color: var(--blue-light);
}
.customer-inline-fields {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.customer-inline-fields-name { grid-template-columns: 1fr 1fr; }
.customer-inline-fields-address { grid-template-columns: minmax(90px, .35fr) minmax(160px, 1fr); }
.customer-readonly-row strong { color: var(--text); }
.customer-notes-edit textarea { resize: vertical; min-height: 110px; }
.customer-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}
@media (max-width: 850px) {
    .customer-inline-fields-name,
    .customer-inline-fields-address { grid-template-columns: 1fr; }
    .customer-form-actions { justify-content: stretch; }
    .customer-form-actions .btn { justify-content: center; flex: 1; }
}


/* Kundenkennzeichnung: rote, gelbe und grüne Fähnchen */
.customer-note-editor {display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:24px;align-items:start;}
.customer-note-field,.customer-flag-field{display:grid;gap:8px;}
.customer-note-field label,.customer-flag-field label{font-weight:700;color:var(--text,#14213d);}
.customer-note-editor textarea,.customer-note-editor select{width:100%;}
.customer-flag-field small{color:var(--muted,#667085);line-height:1.4;}
.customer-flag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;white-space:nowrap;}
.customer-flag-red{color:#991b1b;background:#fee2e2;border:1px solid #fecaca;}
.customer-flag-yellow{color:#854d0e;background:#fef3c7;border:1px solid #fde68a;}
.customer-flag-green{color:#166534;background:#dcfce7;border:1px solid #bbf7d0;}
.customer-notes-head{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.customer-flag-heading,.customer-flag-cell{width:230px;}
.customer-flag-cell{display:flex;align-items:center;gap:8px;}
.customer-flag-cell .customer-flag{min-width:34px;justify-content:center;padding:5px 8px;font-size:17px;}
.customer-flag-note{color:#475467;font-size:12px;line-height:1.35;}
.customer-row-flagged-red td:first-child{box-shadow:inset 4px 0 0 #dc2626;}
.customer-row-flagged-yellow td:first-child{box-shadow:inset 4px 0 0 #eab308;}
.customer-row-flagged-green td:first-child{box-shadow:inset 4px 0 0 #16a34a;}
.customer-row-flagged-red{background:rgba(254,226,226,.24);}
.customer-row-flagged-yellow{background:rgba(254,243,199,.24);}
.customer-row-flagged-green{background:rgba(220,252,231,.24);}
@media (max-width:900px){.customer-note-editor{grid-template-columns:1fr;}.customer-flag-heading,.customer-flag-cell{width:auto;}}

/* Deutliche Kundenkennzeichnung in Detailansicht und Liste */
.customer-notes-status {
    border-width: 2px;
    overflow: hidden;
}
.customer-notes-status .panel-head {
    border-bottom-width: 1px;
}
.customer-notes-status .panel-body {
    padding: 22px 24px;
}
.customer-notes-status .panel-body p {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.55;
}
.customer-notes-status-red {
    border-color: #ef4444;
    background: #fff1f2;
    box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}
.customer-notes-status-red .panel-head {
    background: #dc2626;
    color: #fff;
    border-bottom-color: #b91c1c;
}
.customer-notes-status-red .panel-head h2 { color: #fff; }
.customer-notes-status-red .panel-body { background: #fff1f2; color: #7f1d1d; }
.customer-notes-status-yellow {
    border-color: #eab308;
    background: #fffbeb;
    box-shadow: 0 0 0 3px rgba(234,179,8,.08);
}
.customer-notes-status-yellow .panel-head {
    background: #facc15;
    color: #713f12;
    border-bottom-color: #eab308;
}
.customer-notes-status-yellow .panel-head h2 { color: #713f12; }
.customer-notes-status-yellow .panel-body { background: #fffbeb; color: #713f12; }
.customer-notes-status-green {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(34,197,94,.08);
}
.customer-notes-status-green .panel-head {
    background: #22c55e;
    color: #fff;
    border-bottom-color: #16a34a;
}
.customer-notes-status-green .panel-head h2 { color: #fff; }
.customer-notes-status-green .panel-body { background: #f0fdf4; color: #14532d; }

/* In der Liste wird der Namensbereich deutlich farbig markiert. */
.customer-row-flagged-red td:first-child {
    background: #fee2e2 !important;
    box-shadow: inset 7px 0 0 #dc2626;
}
.customer-row-flagged-yellow td:first-child {
    background: #fef3c7 !important;
    box-shadow: inset 7px 0 0 #eab308;
}
.customer-row-flagged-green td:first-child {
    background: #dcfce7 !important;
    box-shadow: inset 7px 0 0 #16a34a;
}
.customer-row-flagged-red td:first-child .customer-name-link { color: #991b1b; }
.customer-row-flagged-yellow td:first-child .customer-name-link { color: #854d0e; }
.customer-row-flagged-green td:first-child .customer-name-link { color: #166534; }
.customer-row-flagged-red:hover td:first-child { background: #fecaca !important; }
.customer-row-flagged-yellow:hover td:first-child { background: #fde68a !important; }
.customer-row-flagged-green:hover td:first-child { background: #bbf7d0 !important; }


/* Sicherer HERO-Kunden-Prüfvergleich */
.hero-preview-result {
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    line-height: 1.45;
}
.hero-preview-result-running {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e3a8a;
}
.hero-preview-result-success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #14532d;
}
.hero-preview-result-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}
.hero-preview-title {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 700;
}
.hero-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}
.hero-preview-grid > div {
    padding: 10px 12px;
    border: 1px solid rgba(20, 83, 45, .15);
    border-radius: 8px;
    background: rgba(255, 255, 255, .75);
}
.hero-preview-grid span,
.hero-preview-grid strong {
    display: block;
}
.hero-preview-grid span {
    margin-bottom: 3px;
    font-size: 12px;
    color: #475569;
}
.hero-preview-grid strong {
    font-size: 20px;
}
.hero-preview-safe {
    font-weight: 600;
}
.hero-preview-file {
    margin-top: 5px;
    font-size: 12px;
    color: #475569;
}
@media (max-width: 900px) {
    .hero-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Entwicklerbereich */
.developer-warning {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid #f4c76b;
    border-radius: 10px;
    background: #fff8e8;
    color: #6b4b0b;
}
.developer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.developer-result {
    margin-top: 14px;
    min-height: 54px;
    padding: 13px;
    border: 1px solid #d8e0ea;
    border-radius: 9px;
    background: #f8fafc;
    line-height: 1.5;
}
.developer-check {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr 24px;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 7px;
}
.developer-check.ok { background: #ecfdf3; color: #166534; }
.developer-check.error { background: #fef2f2; color: #991b1b; }
.developer-check span { color: inherit; opacity: .85; }
.developer-check b { text-align: center; font-size: 18px; }
.developer-result small { display: block; margin-top: 10px; color: #64748b; }
.developer-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.developer-tools > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border: 1px solid #dce4ee;
    border-radius: 9px;
    background: #fbfdff;
}
.developer-tools span { color: #64748b; font-size: 13px; line-height: 1.4; }
.developer-log-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.developer-log-grid h3 { margin: 0 0 8px; }
.developer-log {
    max-height: 340px;
    overflow: auto;
    margin: 0;
    padding: 13px;
    border-radius: 9px;
    background: #111827;
    color: #e5e7eb;
    font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-word;
}
@media (max-width: 1050px) {
    .developer-grid, .developer-log-grid { grid-template-columns: 1fr; }
    .developer-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .developer-tools { grid-template-columns: 1fr; }
    .developer-check { grid-template-columns: 1fr 24px; }
    .developer-check span { grid-column: 1 / -1; }
}

/* GraphQL Explorer */
.developer-explorer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 16px;
    margin-top: 14px;
}
.developer-explorer-grid label { display: block; margin-bottom: 7px; }
.developer-code-input {
    width: 100%;
    min-height: 250px;
    padding: 13px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #111827;
    color: #e5e7eb;
    font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.developer-code-input-small { min-height: 150px; }
.developer-confirm-label { margin-top: 13px; }
.developer-explorer-actions { display: flex; gap: 9px; margin-top: 14px; }
.developer-explorer-response { min-height: 230px; max-height: 520px; margin-top: 12px; }
.developer-api-log-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.developer-api-log-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid #dce4ee; border-radius: 8px; background: #fbfdff; }
.developer-api-log-list span { color: #64748b; font-size: 12px; white-space: nowrap; }
@media (max-width: 900px) {
    .developer-explorer-grid, .developer-api-log-list { grid-template-columns: 1fr; }
}


/* Eigenständiges HERO-Explorer-Modul */
.developer-module-launch { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:17px 18px; border:1px solid #93c5fd; border-radius:11px; background:#eff6ff; }
.developer-module-launch div { display:flex; flex-direction:column; gap:4px; }
.developer-module-launch strong { font-size:17px; color:#1e3a8a; }
.developer-module-launch span { color:#475569; }
.hero-explorer-head-actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.hero-explorer-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.hero-explorer-summary > div { display:flex; flex-direction:column; gap:4px; padding:15px 16px; border:1px solid #dbe4ef; border-radius:10px; background:#fff; }
.hero-explorer-summary strong { font-size:22px; color:#172033; overflow-wrap:anywhere; }
.hero-explorer-summary span { font-size:12px; color:#64748b; text-transform:uppercase; letter-spacing:.04em; }
.hero-explorer-schema-result { margin-bottom:16px; }
.hero-explorer-filter { display:grid; grid-template-columns:minmax(250px,1fr) 210px 240px auto auto; gap:9px; margin-bottom:16px; padding:14px; border:1px solid #dbe4ef; border-radius:10px; background:#fff; }
.hero-explorer-layout { display:grid; grid-template-columns:minmax(300px,370px) minmax(0,1fr); gap:16px; align-items:start; }
.hero-operation-list { max-height:calc(100vh - 210px); overflow:auto; border:1px solid #dbe4ef; border-radius:10px; background:#fff; position:sticky; top:12px; }
.hero-operation-list-head { display:flex; justify-content:space-between; padding:13px 14px; border-bottom:1px solid #e5eaf1; background:#f8fafc; }
.hero-operation-list-head span { color:#64748b; font-size:12px; }
.hero-operation-list h3 { margin:0; padding:12px 14px 7px; color:#64748b; font-size:11px; letter-spacing:.05em; text-transform:uppercase; border-top:1px solid #eef2f7; }
.hero-operation-item { display:grid; grid-template-columns:28px minmax(0,1fr); gap:10px; align-items:start; padding:10px 13px; color:inherit; text-decoration:none; border-left:3px solid transparent; }
.hero-operation-item:hover { background:#f8fafc; }
.hero-operation-item.active { border-left-color:#2573d9; background:#eff6ff; }
.hero-operation-item > span:last-child { min-width:0; display:flex; flex-direction:column; gap:3px; }
.hero-operation-item strong { font:600 13px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap:anywhere; }
.hero-operation-item small { color:#64748b; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero-operation-badge { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:6px; font-size:11px; font-weight:800; flex:0 0 auto; }
.hero-operation-badge.query { background:#dbeafe; color:#1d4ed8; }
.hero-operation-badge.mutation { background:#fee2e2; color:#b91c1c; }
.hero-operation-detail { min-width:0; }
.hero-operation-title { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.hero-operation-title > div { display:flex; align-items:center; gap:10px; min-width:0; }
.hero-operation-title h2 { overflow-wrap:anywhere; }
.hero-return-type { padding:5px 9px; border-radius:7px; background:#f1f5f9; color:#475569; font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap:anywhere; }
.hero-meta-row { display:grid; grid-template-columns:120px 1fr; gap:12px; margin:16px 0; padding:10px 12px; border-radius:8px; background:#f8fafc; }
.hero-meta-row span { color:#64748b; }
.hero-argument-table { overflow-x:auto; border:1px solid #dce4ee; border-radius:9px; }
.hero-argument-table > div { display:grid; grid-template-columns:minmax(120px,.7fr) minmax(130px,.8fr) minmax(90px,.5fr) minmax(230px,2fr); gap:12px; padding:10px 12px; border-top:1px solid #e7ecf2; align-items:start; }
.hero-argument-table > div:first-child { border-top:0; }
.hero-argument-header { background:#f8fafc; color:#64748b; font-size:12px; font-weight:700; }
.hero-argument-table code { overflow-wrap:anywhere; color:#1d4ed8; }
.hero-argument-table span { color:#475569; line-height:1.4; }
.hero-empty { padding:14px; }
@media (max-width:1200px) { .hero-explorer-filter { grid-template-columns:1fr 1fr; } .hero-explorer-filter input { grid-column:1/-1; } }
@media (max-width:980px) { .hero-explorer-layout { grid-template-columns:1fr; } .hero-operation-list { position:static; max-height:430px; } .hero-explorer-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .developer-module-launch,.hero-operation-title { align-items:stretch; flex-direction:column; } .hero-explorer-filter,.hero-explorer-summary { grid-template-columns:1fr; } .hero-explorer-filter input { grid-column:auto; } .hero-argument-table > div { grid-template-columns:1fr; gap:4px; } .hero-argument-header { display:none !important; } }
