@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Roboto+Slab:wght@700;800&display=swap');

    colors {
        --dust-grey: #dad2d8ff;
        --jet-black: #143642ff;
        --dark-cyan: #0f8b8dff;
        --golden-orange: #ec9a29ff;
        --mahogany-red: #a8201aff;
    }
    body {
        background-color: #4a5259;
        font-family: Roboto, Arial, sans-serif;
        color: #333333;
        margin: 0;
        padding: 40px 20px;
    }

    #authSection, #mainApp {
        background-color: #ffffff;
        border-radius: 15px;
        padding: 30px 40px;
        box-shadow: 0 6px 12px rgba(0,0,0,0.2);
        max-width: 1000px;
        margin: 0 auto 20px auto;
    }

    h2, h3 {
        color: #a8201aff;
        margin-top: 0;
        font-size: 28px;
    }

    .controls {
        margin-bottom: 20px;
    }

    button {
        background-color: #143642ff;
        color: #ffffff;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 4px;
        font-size: 16px;
        font-weight: bold;
        margin-right: 10px;
        margin-bottom: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .toast {
        visibility: hidden;
        min-width: 250px;
        background-color: #a8201aff; /* Matches the theme's red */
        color: #ffffff;
        text-align: center;
        border-radius: 4px;
        padding: 16px;
        position: fixed;
        z-index: 1000;
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
        font-size: 16px;
        font-weight: bold;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        opacity: 0;
        transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
    }

    .toast.show {
        visibility: visible;
        opacity: 1;
        bottom: 50px;
    }

    button:hover {
        background-color: rgb(28, 74, 91);
    }

    button[onclick="cancelAddMember()"] {
        background-color: #2d3b47;
    }

    button[onclick="cancelAddMember()"]:hover {
        background-color: #1c252d;
    }

    .table-container {
        max-height: 380px;
        overflow-y: auto;
        margin-bottom: 20px;
        border: 2px solid #2d3b47;
        border-radius: 4px;
    }

    table {
        border-collapse: collapse;
        width: 100%;
    }

    th {
        position: sticky;
        top: 0;
        background-color: #dad2d8ff;
        color: #000000;
        font-style: italic;
        font-weight: bold;
        font-size: 16px;
        padding: 12px;
        text-align: left;
        cursor: pointer;
        z-index: 1;
        border: 1px solid #1c252d;
        box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    }

    th:hover {
        background-color: #2d3b47;
        color:#a8201aff
    }

    td {
        border: 1px solid #ccc;
        padding: 10px;
        background-color: #fff;
        color: #333;
    }

    td[contenteditable="true"]:focus {
        background-color: #fcf4f4;
        outline: 2px solid #c93b32;
    }

    #addMemberSection {
        margin-top: 20px;
        padding: 20px;
        border-radius: 8px;
        background-color: #f4f6f8;
        border: 2px solid #2d3b47;
    }

    a {
        color: #c93b32;
        font-weight: bold;
    }

    a:hover {
        color: #a8322a;
    }

    #status, #authStatus {
        font-weight: bold;
        margin-left: 15px;
    }
    
    input[type="password"] {
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-right: 10px;
    }

    .is-loading {
    pointer-events: none; /* Disables mouse clicks/interaction */
    opacity: 0.5;         /* Visual cue for "loading" */
  cursor: not-allowed;  /* Shows a blocked cursor (though clicks are disabled) */
    }
    .modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(45, 59, 71, 0.7); /* Dark overlay matching navbar */
    }

    .modal-content {
        background-color: #ffffff;
        margin: 15% auto; 
        padding: 30px;
        border: 2px solid #2d3b47;
        border-radius: 8px;
        width: 80%; 
        max-width: 400px;
        text-align: center;
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }

    .modal-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .modal-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .modal-actions button {
        margin-bottom: 0; /* Override default button margin */
    }

    .poll-panel {
        margin-top: 20px;
        padding: 20px;
        border-radius: 8px;
        background-color: #f4f6f8;
        border: 2px solid #2d3b47;
    }

    .poll-question-card {
        background-color: #ffffff;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 15px;
        margin-bottom: 15px;
    }

    .poll-question-card input[type="text"],
    .poll-question-card textarea,
    .poll-question-card select,
    .poll-question-card input[type="number"] {
        padding: 8px;
        font-size: 15px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .poll-question-card label {
        font-weight: bold;
        font-size: 14px;
    }

/* ── Navigation + home menu ─────────────────────────────────────── */
.app-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 15px;
}
.app-nav a { color: #0f8b8dff; text-decoration: none; font-weight: bold; }
.app-nav a.current { color: #143642ff; border-bottom: 2px solid #ec9a29ff; }
.app-nav .spacer { flex: 1; }
.app-nav a.logout { color: #a8201aff; font-weight: normal; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.menu-card {
    display: block;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    color: #143642ff;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.menu-card:hover { border-color: #0f8b8dff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.menu-card h3 { margin: 0 0 8px 0; color: #0f8b8dff; }
.menu-card p { margin: 0; color: #555; font-size: 14px; line-height: 1.4; }

/* ── Sign in with Microsoft ─────────────────────────────────────── */
.ms-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #8c8c8c;
    border-radius: 4px;
    background: #ffffff;
    color: #5e5e5e;
    font-weight: 600;
    text-decoration: none;
}
.ms-btn:hover { background: #f3f3f3; }

/* ── Logs page ───────────────────────────────────────────────────── */
.log-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid #ddd; }
.log-tabs button {
    margin: 0; padding: 8px 14px; font-size: 14px; border-radius: 4px 4px 0 0;
    background: #eee; color: #143642ff; border: 1px solid #ddd; border-bottom: none;
}
.log-tabs button.current { background: #0f8b8dff; color: #fff; }
.log-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.log-table th { position: static; text-align: left; }
.log-table td { border: none; border-bottom: 1px solid #eee; padding: 6px; vertical-align: top; }
.log-table td.msg { white-space: pre-wrap; word-break: break-word; max-width: 420px; }

/* ══════════════════════════════════════════════════════════════════
   Look matched to smartlocal329.com (2026-09-26): slate page, navy
   banner menu, white rounded cards with a deep shadow, brick-red titles.
   These rules come last so they override the older ones above.
   ══════════════════════════════════════════════════════════════════ */
:root {
    --page: #54595f;      /* smartlocal329.com page grey */
    --navy: #2c3e50;      /* its side panels */
    --brick: #c0392b;     /* its headlines */
    --brick-light: #f28b7d;
    --ink: #333333;
}
body {
    background-color: var(--page);
    font-family: Roboto, Arial, sans-serif;
    padding: 108px 20px 40px 20px;
}
#authSection, #mainApp {
    background-color: #ffffff;
    border-radius: 21px;
    box-shadow: 0 0 36px 4px rgba(0,0,0,0.45);
    max-width: 1100px;
    padding: 32px 40px;
}
h2, h3 { color: var(--brick); }
h2 { font-family: 'Roboto Slab', Georgia, serif; font-weight: 800; }
a { color: var(--brick); }
a:hover { color: #a93226; }
button { background-color: var(--navy); border-radius: 8px; font-weight: 600; min-height: 40px; }
button:hover { background-color: #1f2d3a; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.toast { background-color: var(--brick); }
th { background-color: #eef2f6; color: var(--navy); font-style: normal; border: 1px solid #d5dbe1; }
th:hover { background-color: var(--navy); color: #ffffff; }
.table-container { border: 1px solid #d5dbe1; border-radius: 12px; overflow-x: auto; }
.poll-panel, #addMemberSection { border: 1px solid #d5dbe1; border-radius: 16px; background-color: #f6f8fa; }

/* Banner menu: a full-width navy bar fixed to the top of the window */
.app-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: 64px; box-sizing: border-box; padding: 0 40px; margin: 0;
    background: var(--navy); box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    display: flex; align-items: center; gap: 28px; font-size: 16px;
}
.app-nav a { color: #ffffff; text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 3px solid transparent; }
.app-nav a:hover { color: var(--brick-light); }
.app-nav a.current { color: #ffffff; border-bottom-color: var(--brick); }
.app-nav a.logout { color: var(--brick-light); font-weight: 500; }
.nav-title, .nav-toggle { display: none; }

/* Home page: title and cards sit on the grey page, like the union site */
#mainApp.home { background: transparent; box-shadow: none; padding: 0; }
#mainApp.home > h2 { color: #ffffff; font-size: 40px; }
#mainApp.home > p { color: #e5e7eb !important; font-size: 17px; }
.menu-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.menu-card { background: #ffffff; border: 0; border-radius: 21px; box-shadow: 0 0 36px 4px rgba(0,0,0,0.45); padding: 26px; }
.menu-card:hover { box-shadow: 0 0 36px 8px rgba(0,0,0,0.6); }
.menu-card h3 { color: var(--brick); font-size: 26px; font-weight: 600; }
.menu-card p { color: var(--ink); font-size: 15px; line-height: 1.5; }

/* Logs tabs in the same colours */
.log-tabs button { background: #eef2f6; color: var(--navy); }
.log-tabs button.current { background: var(--navy); color: #ffffff; }

/* ── Phones and narrow windows: the menu folds into a menu button ── */
@media (max-width: 900px) {
    body { padding: 84px 12px 24px 12px; }
    #authSection, #mainApp { padding: 22px 18px; border-radius: 16px; }
    #mainApp.home { padding: 0; }
    #mainApp.home > h2 { font-size: 30px; }
    .app-nav { height: auto; min-height: 60px; padding: 6px 8px 6px 20px; gap: 0; flex-wrap: wrap; }
    .app-nav > a, .app-nav .spacer { display: none; }
    .nav-title { display: block; order: 0; flex: 1; color: #ffffff; font-size: 18px; font-weight: 600; }
    .nav-toggle {
        display: flex; order: 1; align-items: center; justify-content: center;
        width: 48px; height: 48px; margin: 0; padding: 0; background: transparent; box-shadow: none;
    }
    .nav-toggle:hover { background: rgba(255,255,255,0.1); }
    .app-nav.open { padding-bottom: 10px; box-shadow: 0 12px 24px rgba(0,0,0,0.5); }
    .app-nav.open > a {
        display: flex; order: 2; flex-basis: 100%; align-items: center; min-height: 52px;
        margin: 0 -8px 0 -20px; padding: 0 20px; border-bottom: 0; font-size: 17px; color: #e5e7eb;
    }
    .app-nav.open > a.current { color: #ffffff; font-weight: 700; background: rgba(255,255,255,0.10); box-shadow: inset 4px 0 0 var(--brick); }
    .app-nav.open > a.logout { border-top: 1px solid #3f5569; color: var(--brick-light); }
    .menu-grid { grid-template-columns: 1fr; gap: 16px; }
    .menu-card { border-radius: 18px; padding: 18px 20px; }
    .menu-card h3 { font-size: 21px; }
}

/* Owner-only items stay hidden until common.js confirms the signed-in person is an owner */
.owner-only:not(.shown) { display: none !important; }

/* Testing page */
.test-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; }
.test-badge.dryrun { background: #fdecea; color: #a93226; }
.test-badge.commands { background: #e8eef5; color: #2c3e50; }
.test-badge.incoming { background: #e9f5ee; color: #1e6b3a; }
.test-badge.roster { background: #fff4e0; color: #8a4b00; }
.test-badge.errors { background: #a93226; color: #ffffff; }
.test-list { white-space: pre-wrap; font-family: Menlo, Consolas, monospace; font-size: 13px; background: #f6f8fa; padding: 10px; border-radius: 8px; max-height: 320px; overflow-y: auto; margin: 6px 0 0 0; }

/* ── Form Submissions (FormSubmissions.cshtml, FormSubmission.cshtml, js/forms.js) ── */
.test-badge.forms { background: #eef2f6; color: #2c3e50; border: 1px solid #c9d3dd; }
.test-badge.broadcasts { background: #e6f3f3; color: #0b6466; }
.fs-muted { color: #666666; }
.fs-error { color: #a93226; font-weight: 600; }
.fs-syncbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px 0; }
.fs-syncbar button { margin: 0; }
.fs-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fs-filters select, .fs-filters input[type=search], .fs-add select, .fs-add input[type=text], .fs-add textarea, #fsDialogText {
    padding: 8px; font-size: 15px; border: 1px solid #c9d3dd; border-radius: 6px; font-family: inherit;
}
.fs-filters input[type=search] { width: 260px; max-width: 100%; }
.fs-table .fs-row { cursor: pointer; }
.fs-table .fs-row:hover td { background: #f6f8fa; }
.fs-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; font-family: Roboto, Arial, sans-serif; }
.fs-badge.open { background: #fdecea; color: #a93226; }
.fs-badge.progress { background: #fff4e0; color: #8a4b00; }
.fs-badge.closed { background: #e9f5ee; color: #1e6b3a; }
h2 .fs-badge { font-size: 14px; }
.fs-secondary { background: #ffffff !important; color: var(--navy) !important; border: 2px solid var(--navy); box-shadow: none; }
.fs-secondary:hover { background: #eef2f6 !important; }
.fs-close { background: #1e6b3a; }
.fs-close:hover { background: #17542d; }
.fs-danger { background: #a93226; }
.fs-danger:hover { background: #7f251c; }
.fs-back { text-decoration: none; font-weight: 600; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.fs-actions button { margin: 0; }
.fs-button-link {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 8px;
    border: 2px solid var(--navy); color: var(--navy); font-weight: 600; text-decoration: none; box-sizing: border-box;
}
.fs-button-link:hover { background: #eef2f6; color: var(--navy); }
.fs-outcome { background: #e9f5ee; border-left: 4px solid #1e6b3a; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.fs-text { white-space: pre-wrap; word-break: break-word; margin-top: 4px; }
.fs-columns { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.fs-panel { border: 1px solid #d5dbe1; border-radius: 16px; padding: 16px 18px; background: #ffffff; }
.fs-panel h3 { margin: 0 0 10px 0; font-size: 22px; }
.fs-fields { width: 100%; border-collapse: collapse; font-size: 14px; }
.fs-fields th { position: static; background: none; border: 0; border-bottom: 1px solid #eee; color: var(--navy); text-align: left; vertical-align: top; padding: 6px 10px 6px 0; width: 42%; font-weight: 600; }
.fs-fields th:hover { background: none; color: var(--navy); }
.fs-fields td { border: 0; border-bottom: 1px solid #eee; padding: 6px 0; vertical-align: top; }
.fs-files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fs-file { display: flex; flex-direction: column; gap: 2px; font-size: 13px; max-width: 180px; word-break: break-all; }
.fs-file img { width: 160px; max-height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid #d5dbe1; }
.fs-file.missing { color: #a93226; }
.fs-entry { border-left: 4px solid #c9d3dd; padding: 8px 12px; margin-bottom: 10px; background: #f6f8fa; border-radius: 0 10px 10px 0; font-size: 14px; }
.fs-entry.received { border-left-color: var(--navy); }
.fs-entry.contact { border-left-color: #0f6e9c; }
.fs-entry.status { border-left-color: #8a4b00; background: #fffaf2; }
.fs-entry.closed { border-left-color: #1e6b3a; background: #f1faf4; }
.fs-entry.correction { border-left-color: #a93226; background: #fff6f5; }
.fs-entry.pdf { border-left-color: #999; background: #fafafa; }
.fs-entry-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fs-entry-id { color: #888; font-size: 12px; font-weight: 700; }
.fs-corrected { margin-top: 4px; font-size: 13px; color: #a93226; }
.fs-link-button { background: none !important; color: #a93226 !important; box-shadow: none; padding: 0; margin: 0 0 0 auto; min-height: 0; font-size: 13px; font-weight: 600; text-decoration: underline; }
.fs-add { border-top: 2px solid #eef2f6; margin-top: 16px; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fs-add h4 { margin: 0; color: var(--navy); font-size: 17px; }
.fs-add .log-tabs button { margin: 0; min-height: 34px; }
.fs-add textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.fs-add button[type=submit] { align-self: flex-start; margin: 0; }
.fs-row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fs-row2 label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
#fsCorrectionFields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
.fs-filepick { font-weight: 600; }
.fs-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid #c9d3dd; border-top-color: var(--navy); border-radius: 50%; animation: fs-spin 0.8s linear infinite; vertical-align: -1px; }
@keyframes fs-spin { to { transform: rotate(360deg); } }
.fs-sample { margin: 0 !important; }
@media (max-width: 900px) {
    .fs-columns { grid-template-columns: 1fr; }
    .fs-fields th { width: 45%; }
    .fs-file img { width: 130px; }
}
.fs-settings td { vertical-align: middle; }
.fs-settings input[type=checkbox] { width: 20px; height: 20px; }
.fs-settings textarea { width: 100%; min-width: 220px; box-sizing: border-box; padding: 6px 8px; font-size: 14px; font-family: inherit; border: 1px solid #c9d3dd; border-radius: 6px; resize: vertical; }
.fs-settings textarea:disabled { background: #f3f4f6; color: #888; }
.fs-notice { background: #e9f5ee; border-left: 4px solid #1e6b3a; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 14px; }
.fs-notice a { font-weight: 600; margin-left: 6px; }

/* Form Submissions menu items stay hidden until common.js confirms this person can see them */
.forms-only:not(.shown) { display: none !important; }
.wm-only:not(.shown) { display: none !important; }
.fs-radio { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.fs-radio input { margin-top: 4px; width: 18px; height: 18px; }

/* Manual issues (M-1, M-2, …) */
/* Issue Tracker categories and per-issue visibility */
.fs-cat-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e6f3f3; color: #0b6466; font-size: 12px; font-weight: 700; vertical-align: middle; }
.fs-lock { display: inline-block; margin-left: 4px; font-size: 12px; color: #8a4b00; white-space: nowrap; }
.fs-visline { margin: -4px 0 12px 0; font-size: 14px; color: #444; }
.fs-visibility { border: 1px solid #ddd; border-radius: 6px; padding: 8px 12px; margin: 0; }
.fs-visibility legend { font-size: 13px; color: #555; padding: 0 4px; }
.fs-visibility .fs-radio-inline { display: block; flex-direction: row; font-size: 14px; color: #222; margin: 4px 0; font-weight: normal; }
.fs-people { margin: 6px 0 0 22px; max-height: 180px; overflow-y: auto; }
.fs-visibility .fs-person { display: block; font-size: 14px; font-weight: normal; margin: 3px 0; color: #222; }
.fs-manual-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #e8eef5; color: #2c3e50; font-size: 11px; font-weight: 700; vertical-align: middle; }
.modal-content.fs-new-issue { text-align: left; max-width: 640px; width: 92%; margin: 6% auto; max-height: 86vh; overflow-y: auto; box-sizing: border-box; }
.fs-new-issue form { display: flex; flex-direction: column; gap: 10px; }
.fs-new-issue label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; font-weight: 600; }
.fs-new-issue input[type=text], .fs-new-issue input[type=tel], .fs-new-issue input[type=email], .fs-new-issue input[type=date],
.fs-new-issue select, .fs-new-issue textarea { padding: 8px; font-size: 15px; border: 1px solid #c9d3dd; border-radius: 6px; font-family: inherit; font-weight: 400; color: #222; }
.fs-new-issue textarea { resize: vertical; }
.fs-req { color: #a93226; }

/* ── Claims editor ── */
.cl-status { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; border: 1px solid #d5dbe1; border-radius: 12px; padding: 12px 16px; background: #f4f6f8; margin-bottom: 16px; }
.cl-status > div:first-child { flex: 1; min-width: 220px; }
.cl-status-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cl-status-actions button, .cl-status-actions a { margin: 0; }
.cl-columns { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .cl-columns { grid-template-columns: 1fr; } }
.cl-list-panel, .cl-edit-panel { border: 1px solid #d5dbe1; border-radius: 12px; padding: 12px; background: #fff; min-width: 0; }
.cl-list-panel #clList { max-height: 70vh; overflow-y: auto; }
.cl-item { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.cl-item:hover { background: #f4f6f8; }
.cl-item.current { background: #e7eef5; border-color: #2d3b47; }
.cl-item-title { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-item-meta { font-size: 12px; color: #777; white-space: nowrap; }
.cl-mark { display: inline-block; min-width: 16px; text-align: center; font-weight: 700; font-size: 13px; }
.cl-mark.err { color: #a93226; }
.cl-mark.warn { color: #b9770e; }
.cl-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.cl-edit-actions button { margin: 0; padding: 6px 10px; }
.cl-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 12px; }
.cl-label input[type=text], .cl-label textarea { padding: 8px; font-size: 15px; border: 1px solid #c9d3dd; border-radius: 6px; font-family: inherit; font-weight: 400; color: #222; box-sizing: border-box; width: 100%; }
.cl-label textarea { resize: vertical; }
.cl-hint { font-size: 12px; font-weight: 400; color: #777; }
.cl-blankbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; background: #f4f6f8; border-radius: 6px; font-weight: 400; }
.cl-blankbar input, .cl-blankbar select { padding: 6px; border: 1px solid #c9d3dd; border-radius: 4px; font-size: 14px; }
.cl-blankbar #clBlankOptions { flex: 1; min-width: 180px; }
.cl-blankbar button { margin: 0; padding: 6px 10px; }
.cl-issue { font-size: 13px; padding: 6px 10px; border-radius: 6px; margin-bottom: 4px; }
.cl-issue.error { background: #fdecea; color: #a93226; }
.cl-issue.warning { background: #fef5e7; color: #8a5a00; }
.cl-preview { border: 1px dashed #c9d3dd; border-radius: 8px; padding: 12px; background: #fafbfc; }
.cl-prev-instr { font-size: 14px; color: #444; background: #eef3f8; padding: 8px 10px; border-radius: 6px; margin-bottom: 10px; }
.cl-prev-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 10px; }
.cl-prev-fields label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 2px; }
.cl-prev-fields input, .cl-prev-fields select { width: 100%; box-sizing: border-box; padding: 6px; border: 1px solid #c9d3dd; border-radius: 4px; font-size: 14px; }
.cl-prev-text { font-size: 15px; line-height: 1.5; background: #fff; border: 1px solid #e1e6eb; border-radius: 6px; padding: 10px; }
.l329-var { background: #fff3c4; border-radius: 3px; padding: 0 3px; font-weight: 600; }
.cl-error { color: #a93226; }
.cl-versions { margin-top: 16px; }
.cl-versions summary { cursor: pointer; font-weight: 600; }
.cl-versions table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.cl-versions th, .cl-versions td { text-align: left; padding: 6px; border-bottom: 1px solid #e1e6eb; vertical-align: top; }
.cl-versions td button { margin: 0; padding: 4px 8px; font-size: 13px; }

/* ── Medium windows: the banner menu wraps onto a second line instead of spilling over the page;
      common.js keeps --app-nav-h equal to its height so the page always starts below it ── */
@media (min-width: 901px) {
    .app-nav { height: auto; min-height: 64px; flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 6px; }
    body { padding-top: calc(var(--app-nav-h, 64px) + 44px); }
}
