:root,
html[data-theme="roadway"] {
    --page-bg: #d8d2c8;
    --street: #006b3c;
    --street-top: #0a7a46;
    --street-mid: #006b3c;
    --street-bottom: #005a32;
    --street-shadow: #083d22;
    --street-hover: #0a8f52;
    --btn: #1a73e8;
    --btn-hover: #1557b0;
    --btn-soft: #e8f0fe;
}

html[data-theme="night"] {
    --page-bg: #2a2a28;
    --street: #1b3d2e;
    --street-top: #2a5a44;
    --street-mid: #1b3d2e;
    --street-bottom: #12281e;
    --street-shadow: #0a1612;
    --street-hover: #2f6a4e;
    --btn: #8ab4f8;
    --btn-hover: #aecbfa;
    --btn-soft: #1f2a38;
}

html[data-theme="lake"] {
    --page-bg: #c5d4e0;
    --street: #155196;
    --street-top: #1d68b8;
    --street-mid: #155196;
    --street-bottom: #0e3a6e;
    --street-shadow: #0a2748;
    --street-hover: #1d6fc4;
    --btn: #155196;
    --btn-hover: #0e3a6e;
    --btn-soft: #d6e6f5;
}

html[data-theme="brick"] {
    --page-bg: #e4d2c0;
    --street: #8a2f1f;
    --street-top: #a83c28;
    --street-mid: #8a2f1f;
    --street-bottom: #6a2115;
    --street-shadow: #3d120c;
    --street-hover: #b3442e;
    --btn: #b33b2b;
    --btn-hover: #8a2f1f;
    --btn-soft: #f3e0d8;
}

html[data-theme="canary"] {
    --page-bg: #f3ecc8;
    --street: #c4a000;
    --street-top: #d4b000;
    --street-mid: #c4a000;
    --street-bottom: #8a7200;
    --street-shadow: #5c4a00;
    --street-hover: #d4b000;
    --btn: #8a7200;
    --btn-hover: #6b5a00;
    --btn-soft: #fff6c8;
}

html[data-theme="frost"] {
    --page-bg: #d5d8dc;
    --street: #4a5560;
    --street-top: #5c6b7a;
    --street-mid: #4a5560;
    --street-bottom: #343c45;
    --street-shadow: #1f2429;
    --street-hover: #5c6b7a;
    --btn: #5c6b7a;
    --btn-hover: #4a5560;
    --btn-soft: #e8eaed;
}

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding-bottom: 48px;
    background-color: var(--page-bg);
    background-image: url('./img/roadmap.svg'), url('./img/bkgnd.png');
    background-repeat: no-repeat, repeat;
    background-position: center top, 0 0;
    background-size: cover, 120px 120px;
    background-attachment: fixed, scroll;
}

footer {
    position: fixed;
    right: 16px;
    bottom: 12px;
    left: auto;
    margin: 0;
    padding: 0;
    text-align: right;
    background: transparent;
    pointer-events: none;
    z-index: 50;
}

.innertube-print {
    display: inline-block;
    margin: 0;
    padding: 10px 28px 12px;
    color: rgba(255, 255, 255, 0.42);
    font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Medium", Impact, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(180deg, #686868 0%, #2c2c2c 18%, #161616 48%, #0b0b0b 78%, #050505 100%);
    border-radius: 999px;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 8px 6px rgba(255, 255, 255, 0.04),
        inset 0 -6px 8px rgba(0, 0, 0, 0.55),
        0 5px 10px rgba(0, 0, 0, 0.4);
    transform: rotate(-3deg);
    transform-origin: 100% 100%;
}

@media (max-width: 600px) {
    .innertube-print {
        font-size: 10px;
        letter-spacing: 0.1em;
        padding: 8px 18px 10px;
    }
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: -20px -20px 16px;
    padding: 8px 20px 10px;
    background: transparent;
    box-shadow: none;
}

.header-brand,
a.street-name-sign {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.street-name-sign {
    padding: 8px 22px 8px 12px;
    background: var(--street);
    background-image: linear-gradient(180deg, var(--street-top) 0%, var(--street-mid) 42%, var(--street-bottom) 100%);
    border: 4px solid #fff;
    border-radius: 6px;
    outline: 3px solid #111;
    box-shadow: 0 5px 0 var(--street-shadow), 0 10px 16px rgba(0, 0, 0, 0.35);
}

.street-name-sign:hover {
    filter: brightness(1.06);
}

.header-logo {
    height: 56px;
    width: auto;
    display: block;
}

.header-brand h1,
.street-name-sign h1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    color: #fff;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Medium", Impact, sans-serif;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.street-name-line {
    font-size: 14px;
}

.street-name-main {
    font-size: 28px;
    letter-spacing: 0.16em;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.parking-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    filter: drop-shadow(0 4px 0 #111) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.parking-meter-head {
    width: 72px;
    padding: 6px 6px 8px;
    background: linear-gradient(180deg, #8a8f96 0%, #5c6168 40%, #3a3e44 100%);
    border: 3px solid #111;
    border-radius: 10px 10px 6px 6px;
}

.parking-meter-cap {
    height: 8px;
    margin: -2px 8px 6px;
    background: linear-gradient(180deg, #c5c8cc, #6d7278);
    border: 2px solid #111;
    border-radius: 8px 8px 2px 2px;
}

.parking-meter-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 4px 5px;
    background: #111;
    border: 2px solid #2a2a2a;
    border-radius: 3px;
}

.parking-meter-label {
    color: #f6c700;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
}

.parking-meter-time {
    color: #f6c700;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.parking-meter-slot {
    width: 22px;
    height: 4px;
    margin: 6px auto 0;
    background: #111;
    border-radius: 1px;
}

.parking-meter-pole {
    width: 10px;
    height: 16px;
    background: linear-gradient(180deg, #6d7278, #3a3e44);
    border: 2px solid #111;
    border-top: 0;
}

.parking-meter.is-low .parking-meter-time,
.parking-meter.is-low .parking-meter-label {
    color: #ff5a3c;
}

.parking-meter.is-expired .parking-meter-time {
    color: #ff5a3c;
    font-size: 14px;
}

.header-signs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.help-sign {
    display: block;
    width: 88px;
    height: 88px;
    min-width: 88px;
    text-decoration: none;
}

.help-sign svg {
    display: block;
    width: 88px;
    height: 88px;
    overflow: visible;
    filter: drop-shadow(0 0 0 #111) drop-shadow(0 4px 0 #111) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.help-sign:hover svg {
    filter: drop-shadow(0 0 0 #111) drop-shadow(0 4px 0 #111) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)) brightness(1.08);
}

.help-sign-plate {
    fill: #f6c700;
    stroke: #111;
    stroke-width: 5;
}

.help-sign-word {
    fill: #111;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Medium", Impact, sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0;
    text-anchor: middle;
}

.go-back-sign {
    display: block;
    width: 88px;
    height: 88px;
    min-width: 88px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.go-back-sign:disabled {
    cursor: default;
}

.go-back-sign svg {
    display: block;
    width: 88px;
    height: 88px;
    overflow: visible;
    filter: drop-shadow(0 0 0 #111) drop-shadow(0 4px 0 #111) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.go-back-sign:hover:not(:disabled) svg {
    filter: drop-shadow(0 0 0 #111) drop-shadow(0 4px 0 #111) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)) brightness(1.08);
}

.u-turn-plate {
    fill: #fff;
    stroke: #111;
    stroke-width: 5;
}

.u-turn-arrow {
    fill: none;
    stroke: #111;
    stroke-width: 20;
    stroke-linecap: butt;
    stroke-linejoin: round;
}

.u-turn-head {
    fill: #111;
}

.u-turn-ban {
    display: none;
}

.go-back-sign:disabled .u-turn-ban {
    display: block;
}

.u-turn-ban circle {
    fill: none;
    stroke: #e30613;
    stroke-width: 22;
}

.u-turn-ban line {
    stroke: #e30613;
    stroke-width: 22;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: block;
    width: 132px;
    height: 106px;
    min-width: 132px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    overflow: visible;
}

.user-menu-toggle:hover .interstate-shield {
    filter: drop-shadow(0 0 0 #111) drop-shadow(0 5px 0 #111) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)) brightness(1.08);
}

.interstate-shield {
    display: block;
    width: 132px;
    height: 106px;
    overflow: visible;
    filter: drop-shadow(0 0 0 #111) drop-shadow(0 5px 0 #111) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.interstate-white {
    fill: #fff;
    stroke: #111;
    stroke-width: 2.5;
}

.interstate-blue {
    fill: #155196;
}

.interstate-red {
    fill: #bf2f37;
}

.interstate-word,
.interstate-num,
.interstate-user {
    fill: #fff;
    text-anchor: middle;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Medium", Impact, Arial, sans-serif;
    font-weight: 800;
}

.interstate-user {
    text-transform: uppercase;
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    padding: 10px 8px 8px;
    background: var(--street);
    background-image: linear-gradient(180deg, var(--street-top) 0%, var(--street-mid) 40%, var(--street-bottom) 100%);
    border: 4px solid #fff;
    border-radius: 6px;
    outline: 3px solid #111;
    box-shadow: 0 6px 0 var(--street-shadow), 0 14px 24px rgba(0, 0, 0, 0.45);
    z-index: 20;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Medium", Impact, sans-serif;
    letter-spacing: 0.08em;
}

.user-menu-heading {
    padding: 8px 14px 10px;
    margin: 0 4px 8px;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.user-menu-panel a {
    display: block;
    margin: 2px 4px;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

.user-menu-panel a:hover {
    background: var(--street-hover);
}

.highway-sign {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 12px 12px 14px;
    background: var(--street);
    background-image: linear-gradient(180deg, var(--street-top) 0%, var(--street-mid) 40%, var(--street-bottom) 100%);
    border: 4px solid #fff;
    border-radius: 6px;
    outline: 3px solid #111;
    box-shadow: 0 6px 0 var(--street-shadow), 0 14px 24px rgba(0, 0, 0, 0.35);
    font-family: "Arial Narrow", "Helvetica Neue Condensed", "Franklin Gothic Medium", Impact, sans-serif;
    letter-spacing: 0.08em;
}

.highway-sign h2 {
    margin: 0 8px 10px;
    padding: 8px 14px 10px;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.highway-sign-exits {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.highway-sign-exits a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 180px;
    margin: 0 4px;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.15;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

.highway-sign-exits a::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 12px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #fff;
}

.highway-sign-exits a:hover,
.highway-sign-exits a.is-current {
    background: var(--street-hover);
}

.report-builder-form label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 700;
}

.report-builder-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.report-builder-columns label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 500;
}

.report-builder-form textarea {
    width: 100%;
    min-height: 120px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 12px 0;
}

.report-actions button {
    min-width: 0;
    height: 36px;
    padding: 0 14px;
}

.report-show-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    background: var(--street);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
}

.qbe-form {
    max-width: 1200px;
    margin: 0 auto;
}

.qbe-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: end;
    padding: 12px 16px;
}

.qbe-toolbar label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.qbe-toolbar input,
.qbe-toolbar select {
    min-width: 140px;
}

.qbe-toolbar button {
    min-width: 0;
    height: 36px;
    padding: 0 12px;
}

.qbe-surface {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 72px 88px;
    align-items: flex-start;
    min-height: 220px;
    margin: 0 0 16px;
    padding: 16px;
    background: #c3c7cb;
    border: 2px solid #808080;
    box-shadow: inset 1px 1px 0 #fff;
}

.qbe-join-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 3;
}

.qbe-join-svg .qbe-join-hit {
    pointer-events: stroke;
    cursor: pointer;
}

.qbe-join-drag {
    pointer-events: none;
}

.qbe-empty {
    margin: auto;
    color: #333;
}

.qbe-table {
    position: relative;
    z-index: 2;
    width: 180px;
    background: #fff;
    border: 1px solid #000;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.qbe-table header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    background: #000080;
    color: #fff;
    font-size: 13px;
}

.qbe-table header button {
    min-width: 0;
    height: 20px;
    padding: 0 6px;
    background: #c0c0c0;
    color: #000;
    font-size: 14px;
}

.qbe-fields {
    margin: 0;
    padding: 4px 0 8px;
    max-height: 180px;
    overflow: auto;
    list-style: none;
}

.qbe-fields li {
    padding: 2px 8px;
    cursor: pointer;
    font-size: 13px;
}

.qbe-fields li:hover {
    background: #000080;
    color: #fff;
}

.qbe-fields li.is-joined {
    background: #dce6f5;
}

.qbe-fields li.is-join-source {
    background: #000080;
    color: #fff;
}

.qbe-join-row select.qbe-join-type {
    min-width: 110px;
    width: auto;
}

.qbe-joins,
.qbe-grid-wrap {
    padding: 12px 16px 16px;
}

.qbe-join-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
}

.qbe-grid-scroll {
    overflow-x: auto;
}

.qbe-grid {
    border-collapse: collapse;
    background: #fff;
}

.qbe-grid th,
.qbe-grid td {
    border: 1px solid #808080;
    padding: 4px;
    vertical-align: middle;
    background: #fff;
}

.qbe-grid th {
    width: 90px;
    background: #d4d0c8;
    text-align: left;
    text-transform: none;
    color: #000;
    font-size: 12px;
}

.qbe-grid select,
.qbe-grid input[type="text"] {
    width: 150px;
    min-width: 150px;
}

.qbe-clear {
    min-width: 0;
    height: 22px;
    margin-left: 4px;
    padding: 0 6px;
    background: #c0c0c0;
    color: #000;
}

.qbe-sql {
    margin: 0 0 16px;
    padding: 10px;
    background: #111;
    color: #d4f4d4;
    white-space: pre-wrap;
    font: 13px/1.4 ui-monospace, Consolas, monospace;
}

.qbe-sql-label {
    margin: 0 0 6px;
    font-weight: 700;
}

h2 {
    text-align: center;
    color: #333;
}

h3 {
    color: #5f6368;
    font-weight: 500;
    margin-bottom: 16px;
}

.table-list, .table-form, .table-data {
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.table-list table, .table-form table, .table-data table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
    border-radius: 8px;
    overflow: hidden;
}

.table-list th, .table-list td, .table-form th, .table-form td, .table-data th, .table-data td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #dadce0;
}

.table-list th, .table-form th, .table-data th {
    background-color: #f1f3f4;
    color: #5f6368;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
}

.table-list tr:hover, .table-form tr:hover, .table-data tr:hover {
    background-color: #f8f9fa;
}

.action-btn, .execute-btn {
    display: inline-block;
    width: 32px;
    height: 32px;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s;
}

.action-btn:hover, .execute-btn:hover {
    opacity: 0.8;
}

.action-btn.edit-btn, .execute-btn.update-btn {
    background-image: url('./img/edit.png');
    background-size: cover;
    background-position: center;
}

.action-btn.view-btn {
    background-image: url('./img/view.png');
    background-size: cover;
    background-position: center;
}

.action-btn.add-btn, .execute-btn.add-btn {
    background-image: url('./img/add.png');
    background-size: cover;
    background-position: center;
}

.execute-btn.delete-btn {
    background-image: url('./img/delete-light.png');
    background-size: cover;
    background-position: center;
}

.execute-btn.delete-btn:hover {
    background-image: url('./img/delete-dark.png');
    background-size: cover;
    background-position: center;
}

.form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #5f6368;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

textarea {
    height: 100px;
}

.error {
    color: darkred;
    font-size: 30px;
}

.success {
    color: darkgreen;
    font-size: 14px;
}

button {
    background-color: var(--btn);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: var(--btn-hover);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.menu-item {
    position: relative;
}

.menu-item a {
    text-decoration: none;
    color: #000;
    display: block;
    background-color: #fff;
    border: 5px solid #000;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    position: relative;
}

.menu-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.menu-item a::before,
.menu-item a::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}

.menu-item a::before {
    left: 20px;
}

.menu-item a::after {
    right: 20px;
}

.menu-title {
    font-weight: bold;
    text-transform: uppercase;
}

.menu-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.menu-icon img {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.pane-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}

.pane-icon {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

@media (max-width: 800px) {
    header {
        gap: 8px;
        margin: -16px -12px 12px;
        padding: 6px 10px 8px;
    }

    .header-left,
    .header-brand,
    a.street-name-sign {
        gap: 8px;
    }

    .header-signs {
        gap: 6px;
    }

    .street-name-sign {
        padding: 5px 12px 5px 6px;
        border-width: 3px;
        outline-width: 2px;
        box-shadow: 0 3px 0 var(--street-shadow), 0 6px 10px rgba(0, 0, 0, 0.35);
    }

    .header-logo {
        height: 34px;
        width: auto;
    }

    .street-name-line {
        font-size: 9px;
    }

    .street-name-main {
        font-size: 17px;
        letter-spacing: 0.12em;
    }

    .parking-meter,
    .parking-meter-head {
        width: 45px;
    }

    .parking-meter-head {
        padding: 4px 4px 5px;
        border-width: 2px;
    }

    .parking-meter-cap {
        height: 5px;
        margin: -1px 5px 4px;
    }

    .parking-meter-label {
        font-size: 6px;
    }

    .parking-meter-time {
        font-size: 11px;
    }

    .parking-meter-slot {
        width: 14px;
        height: 3px;
        margin-top: 4px;
    }

    .parking-meter-pole {
        width: 6px;
        height: 10px;
    }

    .help-sign,
    .go-back-sign {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }

    .help-sign svg,
    .go-back-sign svg {
        width: 54px;
        height: 54px;
    }

    .user-menu-toggle,
    .interstate-shield {
        width: 82px;
        height: 66px;
        min-width: 82px;
    }

    .menu-icon {
        font-size: 1.2em;
        margin-bottom: 6px;
    }

    .menu-icon img {
        width: 28px;
        height: 28px;
    }

    .pane-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .pane-title {
        gap: 6px;
    }
}

.menu-description {
    font-size: 0.9em;
    color: #666;
}

.dash-card {
    position: relative;
    background-color: #fff;
    border: 5px solid #000;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dash-card::before,
.dash-card::after {
    content: '';
    position: absolute;
    top: -6px;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.dash-card::before {
    left: 20px;
}

.dash-card::after {
    right: 20px;
}

.giveaways-layout {
    display: grid;
    grid-template-columns: minmax(480px, 600px) 1fr;
    gap: 24px;
    max-width: 1480px;
    margin: 0 auto;
    align-items: start;
}

.giveaways-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.group-ticket {
    background-color: #ffef00;
    box-shadow: 0 6px 14px rgba(140, 120, 0, 0.28);
}

.group-ticket .pink-ticket-head,
.group-ticket .pink-ticket-body {
    background: #ffef00;
}

.group-ticket .pink-ticket-head h2 {
    margin: 12px 0 0;
    color: #6b5a00;
    font-size: 28px;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.group-ticket .ticket-hole {
    border-color: #c4b000;
}

.group-ticket .ticket-count span,
.group-ticket .pink-ticket-body h2 {
    color: #6b5a00;
}

.group-ticket input.ticket-line,
.group-ticket input.ticket-line[type="text"],
.group-ticket input.ticket-line[type="date"],
.group-ticket input.ticket-line[type="number"] {
    border-bottom-color: #6b5a00;
    color: #4a3f00;
}

.group-ticket button {
    background: #c4b000;
}

.group-ticket button:hover {
    background: #a89800;
}

.ticket-count {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-count span {
    color: #7a2d44;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.name-lookup-form {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
}

.name-lookup-form input[type="text"] {
    flex: 1;
    min-width: 0;
}

.name-lookup-form button {
    min-width: 0;
    height: 36px;
    padding: 0 14px;
}

@media (max-width: 1100px) {
    .giveaways-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    body.giveaways-page,
    body.repairs-page {
        margin: 0;
        padding: 0;
        background-image: none;
        background-color: #f7c1d0;
    }

    body.repairs-page {
        background-color: #ecd9a4;
    }

    body.groups-page {
        background-color: #ffef00;
    }

    body.giveaways-page header,
    body.giveaways-page footer,
    body.giveaways-page .giveaways-side,
    body.repairs-page header,
    body.repairs-page footer,
    body.repairs-page .giveaways-side {
        display: none;
    }

    body.giveaways-page .giveaways-layout,
    body.repairs-page .giveaways-layout {
        display: block;
        max-width: none;
        margin: 0;
        gap: 0;
    }

    body.giveaways-page .pink-ticket,
    body.repairs-page .pink-ticket,
    body.repairs-page .tan-ticket,
    body.repairs-page .intake-form,
    body.repairs-page .intake-ticket {
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        border-radius: 0;
    }

    body.repairs-page .intake-form {
        gap: 0;
    }

    body.repairs-page .intake-ticket {
        min-height: 100vh;
        box-shadow: none;
    }
}

.pink-ticket {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 560px;
    max-width: 100%;
    min-height: 1040px;
    margin: 0 auto 20px;
    padding: 0;
    background-color: #f7c1d0;
    background-image: none;
    border: 1px solid #000;
    box-shadow: 0 6px 14px rgba(120, 40, 70, 0.25);
    overflow: visible;
    -webkit-mask-image: radial-gradient(circle 18px at 50% 32px, transparent 17px, #000 19px);
    mask-image: radial-gradient(circle 18px at 50% 32px, transparent 17px, #000 19px);
}

.pink-ticket-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 32px 12px;
    background: #f7c1d0;
}

.pink-ticket-head img {
    width: 96px;
    height: auto;
}

.ticket-record {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 1;
    color: #c41230;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

.ticket-hole {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border: 4px solid #c45a7a;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.ticket-tear {
    display: block;
    width: 100%;
    height: 32px;
    margin: -1px 0 0;
    background: transparent url('/img/ticket-tear.svg') center / 100% 100% no-repeat;
    flex-shrink: 0;
    pointer-events: none;
}

.pink-ticket-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 16px 44px 32px;
    background: #f7c1d0;
}

.pink-ticket-lower {
    padding-top: 16px;
}

.pink-ticket-body h2 {
    margin: 0 0 20px;
    color: #7a2d44;
    font-size: 32px;
    letter-spacing: 0.16em;
}

.ticket-half {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    color: #7a2d44;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ticket-half span {
    flex: 1 1 auto;
    min-width: 0;
}

.pink-ticket .ticket-half input.ticket-line {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
}

.ticket-row {
    display: flex;
    gap: 10px;
}

.ticket-field {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 0 0 16px;
    color: #7a2d44;
    font-size: 26px;
    font-weight: 700;
}

.ticket-field label {
    margin: 0;
    min-width: 148px;
    color: #7a2d44;
    font-weight: 700;
}

.ticket-choices {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.ticket-choice {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    border: none;
    color: #7a2d44;
    font-size: 24px;
    font-weight: 700;
}

.ticket-choice legend {
    float: left;
    width: auto;
    margin: 0 12px 0 0;
    padding: 0;
    color: #7a2d44;
    font-size: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ticket-choice label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 24px;
}

.ticket-choice input[type="radio"] {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #c45a7a;
}

.pink-ticket input.ticket-line,
.pink-ticket input.ticket-line[type="text"],
.pink-ticket input.ticket-line[type="date"],
.pink-ticket input.ticket-line[type="number"],
.pink-ticket select.ticket-line {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 4px 0 2px;
    border: none;
    border-bottom: 2px solid #7a2d44;
    border-radius: 0;
    background: transparent;
    color: #4a1b2c;
    font-size: 28px;
    box-shadow: none;
}

.pink-ticket select.ticket-line {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #7a2d44 50%), linear-gradient(135deg, #7a2d44 50%, transparent 50%);
    background-position: calc(100% - 14px) calc(50% + 4px), calc(100% - 4px) calc(50% + 4px);
    background-size: 10px 10px, 10px 10px;
    background-repeat: no-repeat;
    padding-right: 28px;
    cursor: pointer;
}

.pink-ticket select.ticket-line option {
    color: #4a1b2c;
    background: #f7c1d0;
    font-size: 18px;
}

.pink-ticket input.ticket-line:focus,
.pink-ticket select.ticket-line:focus {
    outline: none;
    border-bottom-width: 2px;
}

.pink-ticket .ticket-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.pink-ticket button {
    background: #c45a7a;
    min-width: 0;
    height: 56px;
    padding: 0 24px;
    font-size: 24px;
}

.pink-ticket button:hover {
    background: #a84464;
}

.tan-ticket {
    background-color: #ecd9a4;
    box-shadow: 0 6px 14px rgba(120, 90, 30, 0.25);
}

.tan-ticket .pink-ticket-head,
.tan-ticket .pink-ticket-body {
    background: #ecd9a4;
}

.tan-ticket .ticket-hole {
    border-color: #b8944a;
}

.tan-ticket .ticket-tear {
    background-image: url('/img/ticket-tear-tan.svg');
}

.tan-ticket .pink-ticket-body h2,
.tan-ticket .ticket-field,
.tan-ticket .ticket-field label,
.tan-ticket .ticket-choice,
.tan-ticket .ticket-choice legend {
    color: #6b4e1f;
}

.tan-ticket .ticket-choice input[type="radio"] {
    accent-color: #c4a04a;
}

.tan-ticket input.ticket-line,
.tan-ticket input.ticket-line[type="text"],
.tan-ticket input.ticket-line[type="date"],
.tan-ticket input.ticket-line[type="number"],
.tan-ticket select.ticket-line {
    border-bottom-color: #6b4e1f;
    color: #4a3514;
}

.tan-ticket select.ticket-line {
    background-image: linear-gradient(45deg, transparent 50%, #6b4e1f 50%), linear-gradient(135deg, #6b4e1f 50%, transparent 50%);
}

.tan-ticket select.ticket-line option {
    color: #4a3514;
    background: #ecd9a4;
}

.tan-ticket button {
    background: #c4a04a;
}

.tan-ticket button:hover {
    background: #a88638;
}

.repairs-layout {
    grid-template-columns: minmax(420px, 480px) 1fr;
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 460px;
    max-width: 100%;
    margin: 0 auto 24px;
}

.intake-ticket {
    width: 100%;
    padding: 22px 28px 20px;
    background: #f3e6b3;
    color: #111;
    border: 1px solid #111;
    box-shadow: 0 8px 18px rgba(80, 60, 20, 0.28);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.intake-page-2 .intake-stub {
    filter: blur(3.5px);
    opacity: 0.78;
}

.intake-form > .ticket-actions {
    display: flex;
    justify-content: flex-end;
}

.intake-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

.intake-head img,
.intake-stub-brand img {
    width: 56px;
    height: auto;
    flex-shrink: 0;
}

.intake-org {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.intake-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.intake-hash {
    color: #c41230;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.intake-ticket .intake-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 12px;
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

.intake-ticket .intake-line-wrap {
    flex-wrap: wrap;
}

.intake-ticket .intake-line span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.intake-ticket .intake-line input[type="text"],
.intake-ticket .intake-line input[type="date"],
.intake-ticket .intake-line input[type="tel"],
.intake-ticket .intake-line select {
    flex: 1;
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 2px 0 1px;
    border: none;
    border-bottom: 1px solid #111;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 14px;
    box-shadow: none;
}

.intake-ticket .intake-line select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 22px;
    background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
    background-position: calc(100% - 12px) calc(50% + 3px), calc(100% - 4px) calc(50% + 3px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.intake-ticket .intake-line select option {
    color: #111;
    background: #f3e6b3;
}

.intake-ticket .intake-line input:focus,
.intake-ticket .intake-line select:focus {
    outline: none;
    border-bottom-width: 2px;
}

.intake-box {
    margin: 10px 0 14px;
    padding: 10px 10px 6px;
    border: 2px solid #111;
}

.intake-split {
    display: flex;
    gap: 16px;
}

.intake-split .intake-line {
    flex: 1;
    min-width: 0;
}

.intake-comments {
    min-height: 140px;
}

.intake-comments > span {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
}

.intake-ticket textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    resize: vertical;
    box-shadow: none;
}

.intake-ticket textarea:focus {
    outline: none;
}

.intake-perf {
    height: 0;
    margin: 22px -8px 20px;
    border: none;
    border-top: 2px dashed #111;
}

.intake-note,
.intake-hint,
.intake-stub-legal {
    margin: 0 0 10px;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.intake-hint {
    margin: -4px 0 10px 28px;
    font-weight: 500;
}

.intake-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

.intake-check-sub {
    margin-left: 26px;
}

.intake-check-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

.intake-ticket .intake-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #111;
}

.intake-ticket .intake-inline {
    flex: 1;
    min-width: 80px;
    width: auto;
    height: auto;
    padding: 2px 0 1px;
    border: none;
    border-bottom: 1px solid #111;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 13px;
}

.intake-stub-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
}

.intake-stub-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

.intake-form .ticket-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.intake-form button[type="submit"] {
    background: #c4a04a;
    color: #fff;
    min-width: 0;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    font-size: 18px;
}

.intake-form button[type="submit"]:hover {
    background: #a88638;
}

.pagination {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a {
    color: var(--btn);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #f1f3f4;
}

.pagination span {
    color: #5f6368;
    font-size: 14px;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', Arial, sans-serif;
}

body.login-page header {
    display: none;
}

.login-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.login-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 448px;
}

.login-signs {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.login-signs svg {
    display: block;
    height: 180px;
    width: auto;
    overflow: visible;
    filter: drop-shadow(0 0 0 #111) drop-shadow(0 4px 0 #111) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.mutcd-plate {
    fill: #fff;
    stroke: #111;
    stroke-width: 6;
}

.bike-lane-field {
    fill: #111;
}

.bike-lane-word {
    fill: #111;
    font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-anchor: middle;
}

.no-parking-plate {
    fill: #fff;
    stroke: #e30613;
    stroke-width: 7;
}

.no-parking-word {
    fill: #e30613;
    font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-anchor: middle;
}

.no-parking-parking {
    font-size: 40px;
    letter-spacing: 0;
}

@media (max-width: 520px) {
    .login-signs {
        gap: 12px;
    }

    .login-signs svg {
        height: 132px;
    }
}

.login-card {
    width: 100%;
    max-width: 448px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 48px 40px 36px;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    position: relative;
    z-index: 1;
}

.login-form-header {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 28px;
}

.login-page .login-form-header:hover {
    filter: none;
}

.login-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 400;
    color: #202124;
}

.login-subtitle {
    margin: 0 0 32px;
    text-align: center;
    color: #202124;
    font-size: 16px;
}

.login-page .form-group {
    position: relative;
    margin: 0 0 24px;
}

.login-page .form-group label {
    position: absolute;
    left: 12px;
    top: 18px;
    margin: 0;
    padding: 0 4px;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    color: #80868b;
    pointer-events: none;
    transition: transform 0.15s ease, font-size 0.15s ease, color 0.15s ease, top 0.15s ease;
}

.login-page .form-group input[type="text"],
.login-page .form-group input[type="password"] {
    width: 100%;
    height: 56px;
    padding: 13px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    color: #202124;
    background: #fff;
    outline: none;
}

.login-page .form-group input:focus {
    border-color: var(--btn);
    border-width: 2px;
    padding: 12px 14px;
}

.login-page .form-group input:focus + label,
.login-page .form-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: var(--btn);
}

.login-page .error {
    color: #d93025;
    font-size: 14px;
    margin: -8px 0 20px;
}

.login-page .error p {
    margin: 0;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.login-actions button[type="submit"] {
    margin-left: auto;
}

.login-page button {
    min-width: 88px;
    height: 36px;
    padding: 0 24px;
    background: var(--btn);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    box-shadow: none;
}

.login-page button:hover {
    background: #1765cc;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.login-page button:disabled,
.login-page input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.login-page button:disabled:hover {
    background: var(--btn);
    box-shadow: none;
}

.login-page .passkey-btn {
    background: transparent;
    color: var(--btn);
    padding: 0 8px;
    min-width: 0;
    box-shadow: none;
}

.login-page .passkey-btn:hover {
    background: #f6fafe;
    box-shadow: none;
}

.login-page .passkey-status {
    margin: 0 0 8px;
    font-size: 14px;
}

.passkey-settings {
    max-width: 720px;
    margin: 0 auto 30px;
}

.passkey-add {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin: 16px 0 24px;
}

.passkey-list {
    display: grid;
    gap: 8px;
}

.passkey-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
}

.passkey-status {
    margin: 8px 0;
}

.theme-settings {
    max-width: 920px;
    margin: 0 auto 20px;
}

.theme-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}

.theme-choice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 12px;
    border: 3px solid #111;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.theme-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.theme-choice.is-current,
.theme-choice:has(input:checked) {
    box-shadow: inset 0 0 0 3px var(--btn);
}

.theme-swatch {
    display: flex;
    height: 16px;
    overflow: hidden;
    border-radius: 4px;
}

.theme-swatch i {
    flex: 1;
}

.theme-choice span {
    color: #5f6368;
    font-size: 13px;
    font-weight: 400;
}

.user-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 920px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.user-settings {
    max-width: 920px;
    margin: 0 auto 30px;
}

.user-panels .user-settings {
    margin: 0;
    max-width: none;
}

.user-add,
.user-password-form,
.user-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.user-add,
.user-create-form {
    margin: 16px 0 24px;
}

.user-create-form,
.user-perm-form,
.user-dialog-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.user-dialog {
    border: 5px solid #000;
    border-radius: 15px;
    padding: 16px 18px;
    width: min(400px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.user-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.user-dialog-form {
    margin: 0;
}

.user-dialog-form h2,
.user-dialog-form .pane-title {
    margin: 0;
}

.user-dialog-progress {
    margin: 0;
    font-weight: 700;
    color: #5f6368;
}

.user-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.user-dialog-cancel {
    background: #5f6368;
}

.user-dialog-cancel:hover {
    background: #3c4043;
}

#create-user-dialog,
#edit-access-dialog {
    width: min(480px, calc(100vw - 32px));
}

#create-user-dialog .perm-grid,
#edit-access-dialog .perm-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 8px;
    gap: 8px 12px;
}

#create-user-dialog .perm-group,
#edit-access-dialog .perm-group {
    gap: 4px;
}

@media (max-width: 560px) {
    #create-user-dialog .perm-grid,
    #edit-access-dialog .perm-grid {
        grid-template-columns: 1fr;
    }
}

.user-chart-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.user-chart-accounts .user-chart-actions {
    text-align: left;
    padding: 8px 10px;
}

.perm-block {
    display: grid;
    gap: 12px;
    margin: 8px 0;
}

.admin-switch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.admin-switch-ui {
    flex: 0 0 48px;
    width: 48px;
    height: 28px;
    margin-top: 2px;
    border-radius: 14px;
    background: #9aa0a6;
    position: relative;
    box-shadow: inset 0 0 0 1px #80868b;
}

.admin-switch-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}

.admin-switch input:checked + .admin-switch-ui {
    background: #188038;
    box-shadow: none;
}

.admin-switch input:checked + .admin-switch-ui::after {
    transform: translateX(20px);
}

.admin-switch-copy {
    display: grid;
    gap: 2px;
}

.admin-switch-copy small {
    font-weight: 400;
    color: #5f6368;
}

.perm-grid {
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 12px;
    margin: 0;
    display: grid;
    gap: 12px;
}

.perm-grid.is-locked {
    opacity: 0.45;
}

.perm-group {
    display: grid;
    gap: 6px;
}

.perm-group label {
    font-weight: 400;
}

.user-row {
    flex-wrap: wrap;
}

.user-perm-form {
    flex: 1 1 100%;
}

.user-list {
    display: grid;
    gap: 8px;
}

.user-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
}

.user-row-actions form {
    margin: 0;
}

.user-remove {
    background: #c5221f;
}

.user-remove:hover {
    background: #a50e0e;
}

.user-remove:disabled,
.user-remove:disabled:hover {
    background: #9aa0a6;
    cursor: not-allowed;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.user-settings#accounts {
    max-width: 720px;
}

.user-chart-form {
    display: grid;
    gap: 12px;
}

.user-chart-wrap {
    overflow-x: auto;
    margin: 12px 0;
    container-type: inline-size;
    container-name: user-chart;
}

.user-chart-short {
    display: none;
}

.user-chart {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #80868b;
    font-size: 12px;
    line-height: 1.2;
}

.user-chart th,
.user-chart td {
    padding: 6px 4px;
    text-align: center;
    border-left: 1px solid #c5cad0;
    border-right: none;
    border-top: none;
    border-bottom: none;
    white-space: nowrap;
}

.user-chart thead th {
    background: #f1f3f4;
    color: #5f6368;
    font-weight: 700;
    font-size: 11px;
    border-bottom: 1px solid #80868b;
}

.user-chart .user-chart-admin,
.user-chart .is-group-start,
.user-chart .user-chart-actions {
    border-left: 2px solid #80868b;
}

.user-chart .user-chart-user,
.user-chart th[scope="row"] {
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
}

.user-chart th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    font-weight: 700;
}

.user-chart tbody tr:nth-child(odd) th[scope="row"],
.user-chart tbody tr:nth-child(odd) td {
    background: #fff;
}

.user-chart tbody tr:nth-child(even) th[scope="row"],
.user-chart tbody tr:nth-child(even) td {
    background: #eef3f8;
}

.user-chart tbody tr:hover th[scope="row"],
.user-chart tbody tr:hover td {
    background: #e8f0fe;
}

.user-chart tbody tr.is-admin-row th[scope="row"],
.user-chart tbody tr.is-admin-row td {
    opacity: 0.72;
}

.admin-switch-chart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
}

.admin-switch-chart .admin-switch-ui {
    margin-top: 0;
}

.user-chart-check {
    display: flex;
    justify-content: center;
    margin: 0;
}

.user-chart-password {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.user-chart-password input {
    width: 72px;
    min-width: 0;
    padding: 4px 6px;
    font-size: 12px;
}

.user-chart-password button,
.user-chart .user-remove {
    padding: 4px 8px;
    font-size: 12px;
}

@container user-chart (max-width: 1180px) {
    .user-chart-full {
        display: none;
    }

    .user-chart-short {
        display: inline;
    }
}

@media (max-width: 1180px) {
    .user-chart-wrap .user-chart-full {
        display: none;
    }

    .user-chart-wrap .user-chart-short {
        display: inline;
    }
}

@media (max-width: 720px) {
    .user-row {
        flex-direction: column;
    }
}

.report-hub,
.report-list,
.report-builder-form,
.report-run {
    max-width: 920px;
    margin: 0 auto 30px;
}

.report-run tr.is-total td,
.table-list tr.is-total td {
    font-weight: 700;
    border-top: 2px solid #9aa0a6;
    background: #e8eaed;
    color: #5f6368;
}

.report-help {
    color: #5f6368;
    font-size: 14px;
}

.report-field {
    display: block;
    margin: 12px 0;
    font-weight: 700;
}

.report-field .report-help,
.report-field textarea,
.report-field input,
.report-field select {
    margin-top: 6px;
}

.report-hub-actions {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
}

.report-hub-actions .report-btn {
    flex: 1 1 160px;
}

.report-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.report-btn,
.report-btn-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    box-sizing: border-box;
}

.report-btn-fill {
    background: var(--street);
    color: #fff;
}

.report-btn-fill:hover {
    background: var(--street-hover);
}

.report-btn-outline,
.report-btn-outline-btn {
    background: #fff;
    color: var(--btn);
    border: 2px solid var(--btn);
}

.report-btn-outline:hover,
.report-btn-outline-btn:hover {
    background: #e8f0fe;
}

.report-btn-outline-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.report-set-heading {
    margin: 28px 0 8px;
    color: #202124;
    font-size: 18px;
}

.report-list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
}

.report-list-copy {
    min-width: 0;
    flex: 1 1 240px;
}

.report-list-copy h3 {
    margin: 0;
}

.report-list-detail,
.report-list-meta {
    margin: 4px 0 0;
    color: #5f6368;
    font-size: 14px;
}

.report-list-actions {
    display: flex;
    gap: 8px;
}

.report-list-actions .report-btn {
    min-width: 88px;
    min-height: 40px;
}

.report-builder-form h2 {
    margin: 24px 0 8px;
}

.report-sql {
    width: 100%;
    min-height: 140px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    height: auto;
}

.report-chart-wrap {
    overflow-x: auto;
    margin: 16px 0;
    background: #fff;
}

.report-chart-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.help-page .help-guide {
    max-width: 760px;
    margin: 0 auto 30px;
    padding: 28px 32px 24px;
}

.help-lead {
    color: #3c4043;
    font-size: 16px;
}

.help-toc {
    margin: 28px 0 8px;
}

.help-toc ol {
    margin: 8px 0 0;
    padding-left: 22px;
}

.help-toc li {
    margin: 6px 0;
}

.help-toc ol ol {
    margin-top: 4px;
    list-style-type: lower-alpha;
}

.help-toc ol ol ol {
    list-style-type: lower-roman;
}

.help-toc a,
.help-guide a {
    color: var(--btn);
}

.help-pager a {
    color: var(--btn);
    text-decoration: none;
}

.help-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #dadce0;
}

.help-pager-next {
    margin-left: auto;
    text-align: right;
}

