:root {
    --bg: #eef2f7;
    --panel: #ffffff;
    --line: #d8e0eb;
    --text: #1d2a3a;
    --muted: #6b7788;
    --primary: #1d5ca8;
    --primary-dark: #143f75;
    --green: #2f8a4c;
    --amber: #b96d00;
    --danger: #ba2e3b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 14px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 240px;
    background: #172a45;
    color: #fff;
    padding: 18px 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #2e73bd;
    color: #fff;
    font-size: 13px;
}

.nav {
    margin-top: 24px;
    display: grid;
    gap: 6px;
}

.nav a {
    color: #dce7f5;
    padding: 11px 12px;
    border-radius: 6px;
}

.nav a.active,
.nav a:hover {
    background: #244366;
    color: #fff;
}

.main {
    flex: 1;
    padding: 22px;
    min-width: 0;
}

.topbar,
.section-heading,
.detail-head,
.karte-head,
.form-actions,
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.topbar {
    margin-bottom: 18px;
}

.topbar h1,
.section-heading h2,
.detail-head h2,
.karte-head h2 {
    margin: 0;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.panel,
.karte-head,
.login-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(20, 40, 70, 0.06);
}

.panel + .panel,
.karte-head + .karte-grid,
.karte-grid + .panel,
.three-column + .panel {
    margin-top: 16px;
}

.notice,
.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.notice {
    background: #e7f5ec;
    color: #21683a;
    border: 1px solid #b6dfc4;
}

.alert {
    background: #fff0f0;
    color: var(--danger);
    border: 1px solid #f0b9bf;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.button.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.button.ghost {
    background: #f7f9fc;
}

.button.block {
    width: 100%;
}

.action-grid,
.metrics,
.two-column,
.three-column,
.karte-grid {
    display: grid;
    gap: 16px;
}

.action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.action-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    gap: 8px;
    color: var(--text);
}

.action-tile.muted {
    opacity: .65;
}

.tile-icon {
    color: var(--primary);
    font-weight: 800;
    font-size: 24px;
}

.metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 16px;
}

.metrics div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.metrics strong {
    display: block;
    font-size: 26px;
}

.metrics span,
.helper,
.empty {
    color: var(--muted);
}

.two-column {
    grid-template-columns: 1fr 1fr;
}

.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.karte-grid {
    grid-template-columns: 1.2fr .8fr;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 9px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: #f5f7fa;
    color: #425066;
    font-size: 12px;
}

.data-table.compact th,
.data-table.compact td {
    padding: 8px;
}

.table-action {
    font-weight: 700;
}

.badge,
.badge-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #edf5ff;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.badge.warning {
    background: #fff4df;
    color: var(--amber);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.form-panel {
    max-width: 980px;
}

.equipment-create-panel {
    width: 100%;
    max-width: 1220px;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
}

.equipment-form-sections {
    display: grid;
    gap: 0;
}

.equipment-form-section {
    border: 0;
    border-radius: 0;
    padding: 28px;
    background: #fff;
}

.equipment-form-section + .equipment-form-section { border-top: 1px solid #e2e8f0; }

.equipment-form-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.equipment-form-heading > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.equipment-form-heading h2 { margin: 0; color: #0f2742; font-size: 19px; line-height: 1.35; }
.equipment-form-heading p { margin: 5px 0 0; color: #64748b; font-size: 14px; font-weight: 400; }
.field-help { color: #64748b; font-size: 12px; font-weight: 400; }

.equipment-form-heading.simple { margin-bottom: 20px; }
.site-search-label { margin-bottom: 16px; }
.site-search-input { position: relative; display: block; }
.site-search-input > svg { position: absolute; z-index: 1; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); stroke: #64748b; stroke-width: 1.8; }
.site-search-input input { min-height: 52px; padding-left: 46px; }
[data-site-select] { min-height: 52px; }
.site-not-found { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 16px 18px; border: 1px solid #dbe5f0; border-radius: 10px; background: #f8fafc; color: #475569; font-size: 13px; }
.site-not-found div { display: grid; gap: 2px; }
.site-not-found strong { color: #1e293b; font-size: 14px; }
.site-not-found small { color: #64748b; font-weight: 400; }
.equipment-essential-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.equipment-essential-fields input { min-height: 52px; }
.equipment-checks { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 30px; padding: 8px 0 4px; }
.equipment-form-actions { margin: 0; padding: 20px 28px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.equipment-form-actions .button { min-width: 120px; min-height: 44px; }

@media (max-width: 760px) {
    .site-not-found { align-items: stretch; flex-direction: column; }
    .equipment-essential-fields { grid-template-columns: 1fr; }
    .equipment-form-section { padding: 20px; }
    .equipment-checks { grid-template-columns: 1fr; }
    .equipment-form-actions { padding: 16px 20px; }
}

/* Equipment create page */
.equipment-create-page { width: 100%; max-width: 1220px; }
.equipment-create-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.equipment-create-head h1 { margin: 0; color: #0b2340; font-size: 30px; line-height: 1.25; letter-spacing: -.03em; }
.equipment-create-head p { margin: 8px 0 0; color: #475569; font-size: 15px; }
.equipment-back-button { min-width: 132px; min-height: 44px; }
.equipment-form-sections { display: grid; gap: 16px; }
.equipment-step-card { padding: 30px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 5px 20px rgba(15, 23, 42, .055); }
.equipment-step-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.equipment-step-heading > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 999px; background: #1768ef; color: #fff; font-size: 15px; font-weight: 800; }
.equipment-step-heading h2 { margin: 0; color: #102a4c; font-size: 20px; font-weight: 800; }
.equipment-step-heading h2 small { color: #334155; font-size: 14px; }
.equipment-step-description { margin: 0 0 18px; color: #334155; font-size: 14px; }
.site-card-search { position: relative; display: block; margin-bottom: 18px; }
.site-card-search svg { position: absolute; z-index: 1; left: 18px; top: 50%; transform: translateY(-50%); stroke: #7890ad; stroke-width: 2; }
.site-card-search input { min-height: 58px; padding: 0 18px 0 54px; border: 2px solid #1768ef; border-radius: 11px; box-shadow: 0 0 0 4px rgba(23, 104, 239, .08); font-size: 16px; }
.site-result-box { position: relative; padding-top: 18px; }
.site-result-label { position: absolute; z-index: 1; top: 0; left: 0; padding: 7px 14px; border: 1px solid #d8e1ec; border-bottom: 0; border-radius: 9px 9px 0 0; background: #fff; color: #1e293b; font-size: 13px; font-weight: 800; }
.site-result-label span { margin-left: 4px; color: #64748b; font-weight: 600; }
.site-result-list { max-height: 330px; overflow-y: auto; border: 1px solid #d8e1ec; border-radius: 0 10px 10px 10px; }
.site-result-row { display: flex; grid: none; align-items: center; gap: 16px; min-height: 100px; padding: 18px 24px; border-bottom: 1px solid #d8e1ec; cursor: pointer; transition: background .15s, box-shadow .15s; }
.site-result-row[hidden] { display: none; }
.site-result-row:last-of-type { border-bottom: 0; }
.site-result-row:hover { background: #f8fbff; }
.site-result-row.is-selected { background: #f0f6ff; box-shadow: inset 4px 0 #1768ef; }
.site-result-row > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.site-building-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 999px; background: #e8f1ff; color: #1768ef; font-size: 27px; font-weight: 800; }
.site-building-icon svg { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-result-details { display: grid; flex: 1; min-width: 0; gap: 2px; }
.site-result-details strong { overflow: hidden; color: #102a4c; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.site-result-details small { overflow: hidden; color: #475569; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.site-select-button { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; min-height: 42px; padding: 0 16px; border-radius: 9px; background: #0965ed; color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 3px 8px rgba(9, 101, 237, .2); }
.site-result-row.is-selected .site-select-button { background: #0f4fb7; }
.site-result-empty { padding: 40px 20px; color: #64748b; text-align: center; }
.site-add-link { display: flex; align-items: center; min-height: 66px; margin-top: 16px; padding: 0 30px; border: 1px dashed #7db0ff; border-radius: 9px; color: #0965ed; font-size: 14px; font-weight: 800; }
.equipment-step-card .equipment-essential-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.equipment-essential-fields input { min-height: 54px; }
.equipment-primary-checks { display: flex; gap: 54px; }
.equipment-other-options { border: 1px solid #d8e1ec; border-radius: 9px; }
.equipment-other-options summary { padding: 17px 20px; color: #102a4c; cursor: pointer; font-size: 14px; font-weight: 800; }
.equipment-other-options > div { display: flex; gap: 40px; padding: 0 20px 18px; }
.equipment-memo-wrap { position: relative; }
.equipment-memo-wrap textarea { min-height: 126px; padding: 16px 18px 32px; }
.equipment-memo-wrap > span { position: absolute; right: 16px; bottom: 12px; color: #64748b; font-size: 12px; }
.equipment-page-actions { display: flex; justify-content: flex-end; gap: 14px; padding: 24px 0 8px; }
.equipment-page-actions .button { min-width: 136px; min-height: 50px; border-radius: 9px; }
.site-create-page { width: 100%; max-width: 1080px; }
.site-create-card + .site-create-card { margin-top: 16px; }
.site-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.site-create-grid input, .site-create-grid select { min-height: 54px; }
.site-create-grid input[readonly] { background: #f1f5f9; color: #334155; }
.site-confirm-modal { width: min(680px, calc(100vw - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(15, 23, 42, .28); }
.site-confirm-modal::backdrop { background: rgba(15, 35, 60, .52); backdrop-filter: blur(2px); }
.site-confirm-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 20px; border-bottom: 1px solid #e2e8f0; }
.site-confirm-head span { color: #1768ef; font-size: 13px; font-weight: 800; }
.site-confirm-head h2 { margin: 4px 0 0; color: #102a4c; font-size: 22px; }
.site-confirm-head > button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: #f1f5f9; color: #475569; cursor: pointer; font-size: 24px; }
.site-confirm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 10px 26px 22px; }
.site-confirm-list > div { padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.site-confirm-list > div:nth-child(odd):not(.wide) { padding-right: 20px; }
.site-confirm-list > div:nth-child(even):not(.wide) { padding-left: 20px; border-left: 1px solid #e2e8f0; }
.site-confirm-list .wide { grid-column: 1 / -1; }
.site-confirm-list dt { margin-bottom: 6px; color: #64748b; font-size: 12px; font-weight: 700; }
.site-confirm-list dd { margin: 0; color: #102a4c; font-size: 15px; white-space: pre-wrap; }
.site-confirm-list dd strong { color: #1768ef; font-size: 18px; }
.site-confirm-list dd small { display: block; margin-top: 2px; color: #64748b; font-size: 11px; }
.site-confirm-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 26px; background: #f8fafc; }
.site-confirm-actions .button { min-width: 132px; min-height: 46px; }

@media (max-width: 760px) {
    .equipment-create-head { align-items: stretch; flex-direction: column; }
    .equipment-create-head h1 { font-size: 25px; }
    .equipment-step-card { padding: 20px; }
    .site-result-row { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
    .site-result-details { width: calc(100% - 64px); }
    .site-select-button { width: 100%; }
    .equipment-step-card .equipment-essential-fields { grid-template-columns: 1fr; }
    .equipment-primary-checks, .equipment-other-options > div { align-items: flex-start; flex-direction: column; gap: 12px; }
    .site-create-grid, .site-confirm-list { grid-template-columns: 1fr; }
    .site-create-grid .span-2 { grid-column: span 1; }
    .site-confirm-list > div:nth-child(even):not(.wide) { padding-left: 0; border-left: 0; }
}

.form-grid,
.search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: #344255;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cbd6e3;
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.check-row input {
    width: auto;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 18px;
}

.search-actions {
    grid-column: span 3;
    display: flex;
    gap: 8px;
    align-items: end;
}

.definition-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    margin: 12px 0 0;
    border-top: 1px solid var(--line);
}

.definition-list dt,
.definition-list dd {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.definition-list dt {
    color: var(--muted);
    font-weight: 700;
}

.memo-box {
    white-space: pre-wrap;
    line-height: 1.7;
}

.photo-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.photo-placeholder {
    min-height: 80px;
    border: 1px dashed #aebbd0;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: #f7f9fc;
    color: var(--muted);
}

.report-editor {
    display: grid;
    grid-template-columns: minmax(420px, .85fr) minmax(520px, 1.15fr);
    gap: 16px;
    align-items: start;
}

.input-pane h3 {
    margin: 20px 0 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.one-column {
    grid-template-columns: 1fr;
}

.stack-table {
    display: grid;
    gap: 8px;
}

.stack-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.stack-row.parts-row {
    grid-template-columns: 1.4fr .7fr .7fr 1.4fr;
}

.stack-row span {
    color: #344255;
    font-weight: 700;
}

.preview-pane {
    position: sticky;
    top: 18px;
    overflow-x: auto;
}

.excel-sheet {
    min-width: 760px;
    background: #fff;
}

.excel-sheet table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.excel-sheet th,
.excel-sheet td {
    border: 1px solid #8f9cad;
    padding: 7px;
    min-height: 30px;
    vertical-align: top;
    word-break: break-word;
}

.excel-sheet th {
    background: #eef3f8;
    color: #1f2d3d;
}

.excel-sheet .sheet-title {
    background: #dce8f5;
    font-size: 18px;
    text-align: center;
    padding: 12px;
}

.excel-sheet .text-cell {
    height: 74px;
    white-space: pre-wrap;
}

.excel-sheet .excel-inspection-cell {
    padding: 0;
}

.excel-inspection-results {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #000;
    font-family: "MS PGothic", "Yu Gothic", Meiryo, sans-serif;
    font-size: 10px;
}

.excel-inspection-results th,
.excel-inspection-results td {
    height: 22px;
    padding: 2px 4px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-align: center;
    vertical-align: middle;
}

.excel-inspection-results thead th {
    font-weight: 400;
}

.excel-inspection-results .excel-inspection-no {
    width: 34px;
}

.excel-inspection-results .excel-inspection-component {
    width: 124px;
    font-weight: 700;
    text-align: left;
}

.excel-inspection-results .excel-inspection-result {
    width: 44px;
}

.excel-inspection-results .excel-inspection-item {
    text-align: left;
}

.excel-inspection-results .excel-inspection-item span {
    display: block;
    font-weight: 700;
}

.excel-inspection-results .excel-inspection-item small {
    display: block;
    margin-top: 1px;
    font-size: 9px;
    text-align: right;
}

.excel-inspection-results .excel-inspection-code {
    font-size: 13px;
    font-weight: 700;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(420px, 92vw);
    display: grid;
    gap: 14px;
}

.login-card h1 {
    margin: 8px 0 0;
}

.login-brand {
    color: var(--text);
}

nav[role="navigation"] {
    margin-top: 14px;
}

.report-launch-intro {
    margin-bottom: 20px;
}

.report-launch-intro h2,
.report-launch-intro p {
    margin: 0 0 6px;
}

.report-launch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.report-launch-card {
    position: relative;
    padding: 24px;
}

.report-launch-card h2 {
    margin: 0 0 8px;
}

.report-launch-card p {
    min-height: 48px;
    margin-bottom: 18px;
    color: var(--muted);
}

.report-launch-card form,
.report-launch-card label {
    display: grid;
    gap: 10px;
}

.report-launch-step {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    background: #e8f0fb;
    color: #1e5d9f;
    font-weight: 700;
}

.report-launch-results {
    margin-top: 20px;
}

.report-match-row,
.equipment-report-match header,
.past-report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.report-match-row,
.equipment-report-match {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.report-match-row div,
.equipment-report-match header div,
.past-report-row div {
    display: grid;
    gap: 4px;
}

.report-match-row span,
.equipment-report-match span,
.past-report-row span,
.report-match-row small,
.past-report-row small {
    color: var(--muted);
}

.past-report-list {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.past-report-row {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.past-report-row:last-child {
    border-bottom: 0;
}

.past-report-row label {
    display: grid;
    min-width: 220px;
    gap: 4px;
    font-size: 13px;
}

.report-launch-empty {
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: 24px 0;
}

.work-home-head {
    margin-bottom: 24px;
}

.work-home-head p,
.work-home-head h1,
.work-home-head span {
    margin: 0;
}

.work-home-head p {
    margin-bottom: 5px;
    color: var(--color-blue, #0066cc);
    font-weight: 700;
}

.work-home-head h1 {
    margin-bottom: 6px;
    font-size: 30px;
}

.work-home-head span {
    color: var(--color-muted, #667085);
}

.work-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.work-action-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 126px;
    padding: 24px;
    border: 2px solid var(--color-border, #e3e8ef);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(11, 46, 89, .07);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.work-action-card:hover {
    transform: translateY(-2px);
    border-color: #7fb6eb;
    box-shadow: 0 16px 34px rgba(11, 46, 89, .13);
}

.work-action-card.primary {
    border-color: #176fc1;
    background: linear-gradient(135deg, #f5faff 0%, #eaf4ff 100%);
}

.work-action-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #eaf3ff;
    color: #075da9;
}

.work-action-card.primary .work-action-icon {
    background: #0868bd;
    color: #fff;
}

.work-action-card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 21px;
}

.work-action-card small {
    color: var(--color-muted, #667085);
    font-size: 13px;
    line-height: 1.55;
}

.work-action-arrow {
    color: #176fc1;
    font-size: 32px;
}

.work-home-columns {
    display: grid;
    gap: 20px;
}

.work-list-card {
    padding: 22px;
}

.work-list-card .card-heading {
    align-items: flex-start;
}

.work-list-card .card-heading h2,
.work-list-card .card-heading p {
    margin: 0;
}

.work-list-card .card-heading p {
    margin-top: 4px;
    color: var(--color-muted, #667085);
    font-size: 13px;
}

.work-list-card .card-heading a {
    color: #0868bd;
    font-weight: 700;
}

.work-item-list {
    margin-top: 14px;
    border-top: 1px solid var(--color-border, #e3e8ef);
}

.work-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto auto;
    align-items: center;
    gap: 22px;
    min-height: 76px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border, #e3e8ef);
}

.work-item:hover {
    background: #f7fbff;
}

.work-item span {
    display: grid;
    gap: 3px;
}

.work-item small {
    color: var(--color-muted, #667085);
}

.work-item b {
    color: #0868bd;
    white-space: nowrap;
}

.work-item-date {
    text-align: right;
}

.work-item-list.compact .work-item {
    grid-template-columns: 1.2fr 1fr auto;
}

.friendly-empty {
    display: grid;
    gap: 5px;
    padding: 28px 4px;
    color: var(--color-muted, #667085);
}

.machine-search-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.machine-search-guide div {
    display: grid;
    gap: 4px;
}

.machine-search-guide strong {
    font-size: 17px;
}

.machine-search-guide span {
    color: var(--color-muted, #667085);
}

.advanced-filter {
    margin-bottom: 18px;
    padding: 0;
}

.advanced-filter summary {
    padding: 16px 20px;
    cursor: pointer;
    color: #23405f;
    font-weight: 700;
}

.advanced-filter summary span {
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #0868bd;
    font-size: 12px;
}

.advanced-filter form {
    padding: 0 20px 20px;
    border-top: 1px solid var(--color-border, #e3e8ef);
    padding-top: 18px;
}

@media (max-width: 1040px) {
    .sidebar {
        width: 210px;
    }

    .action-grid,
    .metrics,
    .three-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column,
    .karte-grid,
    .report-launch-grid,
    .work-home-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: auto;
    }

    .main {
        padding: 14px;
    }

    .topbar,
    .section-heading,
    .detail-head,
    .karte-head,
    .report-match-row,
    .equipment-report-match header,
    .past-report-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .action-grid,
    .metrics,
    .form-grid,
    .search-grid,
    .three-column {
        grid-template-columns: 1fr;
    }

    .span-2,
    .span-3,
    .search-actions {
        grid-column: span 1;
    }
}
