:root {
    --bg: #141414;
    --bg-elevated: #1c1c1c;
    --sidebar: #1a1a1a;
    --card: #242424;
    --card-border: #333;
    --gold: #c9a44c;
    --gold-hover: #d8b45c;
    --gold-text: #1a1408;
    --text: #f3f3f3;
    --text-muted: #9a9a9a;
    --link: #c9a44c;
    --sidebar-width: 248px;
    --radius: 14px;
    --radius-sm: 10px;
}

html {
    color-scheme: dark;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--bg);
    color: var(--text);
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

a,
a:link,
a:visited,
a:focus,
a:active {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--gold-hover);
}

p {
    margin: 0 0 12px;
}

table {
    border-collapse: collapse;
}

th, td {
    padding: 10px 12px;
    vertical-align: middle;
}

th {
    font-weight: 600;
    white-space: nowrap;
}

.contentWrap nav,
.dashboard-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    margin: 8px 0 18px;
}

.contentWrap nav a,
.dashboard-subnav a {
    display: inline-block;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    color: #eee;
}

.contentWrap nav a:hover,
.contentWrap nav a:focus,
.dashboard-subnav a:hover,
.dashboard-subnav a:focus {
    background-color: #333;
    color: #fff;
    text-decoration: none;
}

.contentWrap nav a.is-current {
    color: var(--gold);
    font-weight: 600;
}

.nav-menu {
    position: relative;
    display: block;
}

.nav-menu-label {
    display: block;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    color: #eee;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.nav-menu-toggle {
    width: 1.7rem;
    height: 1.7rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #eee;
    -webkit-appearance: none;
    appearance: none;
}

.nav-menu-toggle::after {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.nav-submenu {
    display: none;
    position: static;
    z-index: 30;
    min-width: 0;
    max-width: none;
    padding: 0 0 6px 18px;
    background: transparent;
    border: 0;
}

.nav-menu.open .nav-submenu {
    display: block;
}

.nav-submenu a {
    display: block;
    border-radius: 8px;
    white-space: normal;
    color: #d0d0d0;
}

button,
input[type=button],
input[type=submit],
input[type=checkbox],
select {
    cursor: pointer;
}

input[type=submit],
input[type=button],
button {
    font: inherit;
    font-size: 0.95rem;
    border: 1px solid #555;
    padding: 8px 14px;
    background-color: #2a2a2a;
    border-radius: var(--radius-sm);
    margin: 4px 6px 4px 0;
    color: #fff;
}

input[type=submit]:hover,
input[type=button]:hover,
button:hover {
    background-color: #3a3a3a;
    border-color: var(--gold);
}

.btn-gold,
a.btn-gold,
a.btn-gold:link,
a.btn-gold:visited {
    display: inline-block;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--gold);
    color: var(--gold-text);
    font-weight: 600;
    text-decoration: none;
}

.btn-gold:hover,
a.btn-gold:hover,
a.btn-gold:focus {
    background: var(--gold-hover);
    color: var(--gold-text);
    text-decoration: none;
}

input[type=submit].btn-gold,
input[type=button].btn-gold,
button.btn-gold {
    background: var(--gold);
    background-color: var(--gold);
    border: 0;
    color: var(--gold-text);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
}

input[type=submit].btn-gold:hover,
input[type=button].btn-gold:hover,
button.btn-gold:hover,
input[type=submit].btn-gold:focus,
input[type=button].btn-gold:focus,
button.btn-gold:focus {
    background: var(--gold-hover);
    background-color: var(--gold-hover);
    border: 0;
    color: var(--gold-text);
}

.btn-outline,
a.btn-outline,
a.btn-outline:link,
a.btn-outline:visited {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #777;
    border-radius: 10px;
    background: transparent;
    color: #eee;
    font-weight: 600;
    text-decoration: none;
}

.btn-outline:hover,
a.btn-outline:hover,
a.btn-outline:focus {
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
}

input[type=submit].btn-outline,
input[type=button].btn-outline,
button.btn-outline {
    background: transparent;
    background-color: transparent;
    border: 1px solid #777;
    color: #eee;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 10px;
}

input[type=submit].btn-outline:hover,
input[type=button].btn-outline:hover,
button.btn-outline:hover,
input[type=submit].btn-outline:focus,
input[type=button].btn-outline:focus,
button.btn-outline:focus {
    background: transparent;
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

select,
input[type=date],
input[type=month],
input[type=number],
input[type=email],
input[type=text],
input[type=password],
textarea {
    font: inherit;
    background-color: #131313;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 1rem;
}

input[type=date],
input[type=month] {
    color-scheme: dark;
}

#txtCaptcha {
    text-transform: uppercase;
}

select:focus,
input:focus,
textarea:focus,
button:focus-visible,
input[type=submit]:focus-visible,
input[type=button]:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-color: var(--gold);
}

::placeholder {
    color: #888;
}

textarea {
    min-height: 6.5rem;
    resize: vertical;
}

input[type=checkbox] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0 8px 0 0;
    accent-color: var(--gold);
    vertical-align: middle;
}

input[type=file] {
    font: inherit;
    color: #eee;
}

.file-drop-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    min-height: 120px;
    max-width: 420px;
    margin: 0 0 8px;
    padding: 28px 16px;
    border: 2px dashed #666;
    border-radius: 8px;
    background-color: #1c1c1c;
    box-sizing: border-box;
    cursor: pointer;
}

.file-drop-zone.has-file {
    border-color: #4caf50;
    outline: 1px solid #4caf50;
}

.file-drop-zone.is-dragover {
    border-color: #ffe082;
    outline: none;
    background-color: #333;
}

.file-drop-zone input[type=file] {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 0;
}

.file-drop-hint {
    color: #ccc;
    font-size: 0.85rem;
}

.tblForm .file-drop-zone {
    width: 100%;
    max-width: 420px;
    margin: 0 0 8px;
}

.media-upload-panel,
.newAttachmentForm.media-upload-panel {
    width: 85vw;
    max-width: 85vw;
}

.newAttachmentForm[hidden],
.backdrop[hidden],
.media-upload-panel[hidden] {
    display: none !important;
}

.media-multi-zone {
    min-height: 180px;
    max-width: none;
    width: 100%;
}

.media-pending input[type=text],
.media-pending select {
    width: 100%;
    min-width: 7rem;
    max-width: 16rem;
}

.media-upload-panel .tblForm select {
    margin: 0 6px 6px 0;
}

.btnWrap {
    margin: 16px 0;
}

.btnWrap button,
.btnWrap input[type=submit],
.btnWrap input[type=button] {
    margin-right: 8px;
}

.ddlWrap {
    text-align: center;
    margin: 8px 0 16px;
}

.ddlWrap select {
    width: min(20em, 100%);
}

.record-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.record-toolbar select.record-filter {
    width: auto;
    min-width: 11rem;
}

.asset-switcher-primary {
    flex: 1 1 18rem;
    min-width: 16rem;
    max-width: 32rem;
}

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

.media-actions input,
.media-actions button {
    margin: 0;
}

.asset-detail.is-media-tab,
#pnlEditProperties.is-media-tab {
    display: grid;
    grid-template-columns: repeat(6, max-content) minmax(0, 1fr);
    justify-items: start;
    align-items: end;
    column-gap: 10px;
    row-gap: 12px;
}

.asset-detail.is-media-tab .record-toolbar,
.asset-detail.is-media-tab #pnlEditUnits,
.asset-detail.is-media-tab #pnlEditTenants,
.asset-detail.is-media-tab #pnlEditLeases,
.asset-detail.is-media-tab #pnlDocuments,
.asset-detail.is-media-tab #pnlImages,
.asset-detail.is-media-tab .media-filter,
#pnlEditProperties.is-media-tab .ddlWrap,
#pnlEditProperties.is-media-tab #pnlDocuments,
#pnlEditProperties.is-media-tab #pnlImages,
#pnlEditProperties.is-media-tab .media-filter {
    display: contents;
}

.asset-detail.is-media-tab #btnNewUnitTop,
.asset-detail.is-media-tab #btnPrintUnitsTop,
.asset-detail.is-media-tab #btnNewTenantTop,
.asset-detail.is-media-tab #btnPrintTenantsTop,
.asset-detail.is-media-tab #btnNewLeaseTop,
.asset-detail.is-media-tab #btnPrintLeasesTop {
    display: none;
}

.asset-detail.is-media-tab .media-actions {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0;
}

#pnlEditProperties.is-media-tab > nav {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: stretch;
}

#pnlEditProperties.is-media-tab .media-actions {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0;
}

.asset-detail.is-media-tab #ddlListProperty,
.asset-detail.is-media-tab .asset-switcher-primary,
.asset-detail.is-media-tab .media-filter > * {
    grid-row: 2;
}

#pnlEditProperties.is-media-tab #ddlProperties,
#pnlEditProperties.is-media-tab .media-filter > * {
    grid-row: 3;
}

.asset-detail.is-media-tab .asset-switcher-primary,
#pnlEditProperties.is-media-tab #ddlProperties {
    min-width: 16rem;
    max-width: 32rem;
    width: auto;
}

.asset-detail.is-media-tab .media-filter > *,
#pnlEditProperties.is-media-tab .media-filter > * {
    justify-self: start;
    width: auto;
    max-width: none;
}

.asset-detail.is-media-tab .media-filter .filter-field input[type=text],
#pnlEditProperties.is-media-tab .media-filter .filter-field input[type=text] {
    width: auto;
    min-width: 0;
}

.asset-detail.is-media-tab .page-size-field select,
#pnlEditProperties.is-media-tab .page-size-field select {
    width: auto;
    min-width: 5rem;
}

.asset-detail.is-media-tab .tblWrap,
.asset-detail.is-media-tab .table-pager,
.asset-detail.is-media-tab .backdrop,
#pnlEditProperties.is-media-tab .tblWrap,
#pnlEditProperties.is-media-tab .table-pager,
#pnlEditProperties.is-media-tab .backdrop {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
}

.asset-detail.is-media-tab .newAttachmentForm,
#pnlEditProperties.is-media-tab .newAttachmentForm {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(640px, 75%, calc(100% - 32px));
    max-width: 75%;
}

.hidden {
    display: none !important;
    visibility: hidden !important;
}

.bold {
    font-weight: 600;
}

.mainContainer {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 48px;
}

body.app-signed-in {
    background: var(--bg);
}

body.app-signed-in .app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: auto 1fr;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
}

body.app-signed-in .chrome-bar {
    display: contents;
}

body.app-signed-in .brandHome {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

body.app-signed-in .navWrap {
    grid-column: 1;
    grid-row: 2;
}

body.app-signed-in .app-main {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

body.app-public .app-shell {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.app-public .chrome-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: #161616;
    border-bottom: 1px solid #2a2a2a;
}

body.app-public .app-main {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

body.app-public .app-topbar,
body.app-public .navWrap {
    display: none;
}

.public-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
}

.nav-toggle {
    display: none;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 64px;
    padding: 12px 28px 0;
    overflow: visible;
}

.user-chip {
    position: relative;
    color: #eee;
    font-weight: 600;
    min-width: 0;
}

button.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    max-width: min(280px, 46vw);
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
}

button.user-menu-toggle:hover,
button.user-menu-toggle:focus {
    background-color: #2a2a2a;
    border-color: transparent;
    color: var(--gold);
}

.user-menu-toggle::after {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

#lblNavUser {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 40;
    min-width: 11rem;
    padding: 6px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.user-menu.open .user-submenu {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .user-menu:hover .user-submenu,
    .user-menu:focus-within .user-submenu {
        display: block;
    }
}

.user-submenu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #e6e6e6;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.user-submenu a:hover,
.user-submenu a:focus,
.user-submenu a.is-current {
    background: #2a2a2a;
    color: var(--gold);
    text-decoration: none;
}

.contentWrap {
    padding: 8px 28px 24px;
    flex: 1 1 auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.demo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: #2a2418;
}

.demo-banner-copy {
    margin: 0;
    flex: 1 1 16rem;
}

.demo-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.demo-banner-status {
    color: var(--gold);
}

.demo-banner .btn-outline,
.demo-banner input[type=submit].btn-outline {
    border-color: var(--gold);
    color: var(--gold);
}

.demo-login-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: #2a2418;
}

.demo-login-note p {
    margin: 0 0 8px;
}

.demo-login-note p:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: 28px;
    padding: 16px 28px 28px;
    border-top: 1px solid #2f2f2f;
    text-align: center;
}

.site-footer nav.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    gap: 4px 14px;
}

.site-footer nav.footer-nav a {
    background: transparent;
    border-radius: 0;
    padding: 4px 6px;
    font-size: 0.9rem;
    color: #8d8d8d;
    text-decoration: none;
}

.site-footer nav.footer-nav a:hover {
    background: transparent;
    color: var(--gold);
}

.page-prose {
    max-width: 44rem;
    margin: 0 auto;
}

.page-prose h2 {
    margin-top: 1.6em;
}

.page-prose h3 {
    margin-top: 1.2em;
}

.page-prose ul,
.page-prose ol {
    margin: 0 0 12px;
    padding-left: 1.35rem;
}

.page-prose li {
    margin: 0 0 6px;
}

.page-prose .toc {
    margin: 0 0 24px;
}

.page-prose code {
    font-family: Consolas, "Segoe UI Mono", monospace;
    font-size: 0.9em;
}

a.brandHome,
a.brandHome:link,
a.brandHome:visited,
a.brandHome:hover,
a.brandHome:focus,
a.brandHome:active {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    background: transparent;
    text-align: left;
}

body.app-signed-in a.brandHome {
    padding: 18px 18px 8px;
    background: var(--sidebar);
}

.siteTitle {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

.contentWrap > h1,
.pageTitle {
    text-align: left;
    margin-bottom: 8px;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 18px;
    margin: 0 0 18px;
}

.page-header .pageTitle {
    margin-bottom: 6px;
}

.welcome-panel {
    padding: 48px 0 24px;
    text-align: center;
}

.welcome-hero {
    max-width: 42rem;
    margin: 0 auto 36px;
}

.welcome-title {
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.welcome-tagline {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin: 0 0 22px;
}

.welcome-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.welcome-card,
a.welcome-card,
a.welcome-card:link,
a.welcome-card:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 18px 20px;
    border: 1px solid #333;
    border-radius: var(--radius);
    background: #1c1c1c;
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
}

a.welcome-card:hover,
a.welcome-card:focus {
    border-color: var(--gold);
    color: #fff;
    text-decoration: none;
}

.welcome-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2a2418;
    color: var(--gold);
}

.tblWrap {
    display: block;
    width: 100%;
    overflow: auto;
    margin: 12px 0;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background-color: var(--card);
}

.tblWrap-pane {
    max-height: min(70vh, 720px);
    overscroll-behavior: contain;
}

.tblWrap-pane .tblList th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #1c1c1c;
    box-shadow: inset 0 -1px 0 #3f3f3f;
}

.tblList {
    width: 100%;
    border-collapse: collapse;
}

.tblList th {
    background-color: #161616;
    color: #bdbdbd;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tblList a,
.tblList a:link,
.tblList a:visited {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tblList a:hover {
    color: var(--gold-hover);
}

#tblLeases th a,
#tblExpenses th a,
#tblDocuments th a,
#tblImages th a,
#tblRequests th a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tblList td {
    font-size: 0.95rem;
    border-top: 1px solid #3a3a3a;
}

.tblList tr:nth-of-type(even) {
    background-color: #2a2a2a;
}

.tblList tr:hover td {
    background-color: #323232;
}

.tblList button,
.tblList input[type=submit],
.tblList input[type=button] {
    padding: 5px 10px;
    font-size: 0.85rem;
    margin: 2px;
}

td.imgCell,
td.actionCell {
    text-align: center;
    vertical-align: middle;
}

td.imgCell {
    width: 1%;
    padding: 16px 18px;
    white-space: nowrap;
}

td.imgCell .thumbnail {
    display: block;
    margin: 0 auto;
    width: 168px;
    height: 126px;
    object-fit: cover;
    border-radius: 8px;
    max-width: 168px;
}

td.descriptionCell {
    vertical-align: middle;
}

td.dateCell {
    white-space: nowrap;
    vertical-align: middle;
}

td.descriptionCell {
    max-width: 300px;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 8px 12px;
    vertical-align: top;
}

.tblBtn {
    font-size: 0.85rem;
}

.tblForm {
    width: 100%;
    max-width: 720px;
    margin: 4px 0 12px;
}

.tblForm > tbody > tr > td {
    padding: 7px 12px 7px 0;
    vertical-align: top;
}

.tblForm > tbody > tr > td:first-child {
    width: 9.5rem;
    padding-top: 14px;
    color: #ccc;
    white-space: nowrap;
}

.tblForm > tbody > tr > td > input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
.tblForm > tbody > tr > td > select,
.tblForm > tbody > tr > td > textarea {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 0 8px;
}

.tblForm .tblList {
    max-width: none;
}

.tblForm .tblList td,
.tblForm .tblList th {
    padding: 8px 10px;
}

.tblForm .tblList input,
.tblForm .tblList select,
.tblForm .tblList textarea,
.tblForm .tblList button {
    display: inline-block;
    width: auto;
    max-width: none;
    margin: 2px;
}

.descriptionBox {
    width: 100%;
    max-width: 420px;
    height: 160px;
    min-height: 160px;
}

.newAttachmentForm {
    display: block;
    width: min(640px, 75%, calc(100% - 32px));
    max-width: 75%;
    max-height: calc(100% - 48px);
    margin: 0;
    padding: 20px;
    border: 1px solid #555;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a;
    z-index: 1001;
    overflow: auto;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    height: 100%;
    z-index: 999;
}

.txtBxLarge {
    width: 100%;
    max-width: 640px;
    min-height: 220px;
}

.block {
    display: block;
    margin: 8px auto;
}

.ddlPrompt {
    display: inline-block;
    min-width: 120px;
    margin: 8px 12px 8px 0;
    color: #ccc;
}

.imgPreview {
    max-width: 100%;
    max-height: 280px;
}

#imgPropertyDashboard {
    display: block;
    margin: 8px auto 16px;
    border-radius: 12px;
}

.imgPreviewDisplay {
    width: min(900px, 92%);
    height: auto;
    max-height: 90%;
    margin: 0 auto;
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(34, 34, 34, 0.92);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.thumbnail {
    cursor: pointer;
    border-radius: 8px;
    max-width: 220px;
}

.bigImgPreview {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92%;
    height: auto;
    max-height: 92%;
    border-radius: 12px;
}

.flexWrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
}

.flexWrap h2,
.flexWrap h4,
.flexWrap .btnNew {
    margin-bottom: 0;
}

.logoWrap {
    text-align: left;
    flex-shrink: 0;
}

.logoWrap img {
    display: block;
    width: 42px;
    height: auto;
    margin: 0;
}

body.app-signed-in .navWrap {
    display: flex;
    flex-direction: column;
    background: var(--sidebar);
    border-right: 1px solid #2a2a2a;
    min-height: 0;
    height: 100%;
}

#siteNav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 8px 12px 16px;
    flex: 1 1 auto;
    box-sizing: border-box;
}

#siteNav a,
#siteNav .nav-menu-label {
    display: block;
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-decoration: none;
    color: #e6e6e6;
}

#siteNav a:hover,
#siteNav a:focus,
#siteNav .nav-menu-label:hover {
    background-color: #2a2a2a;
    color: var(--gold);
    text-decoration: none;
}

#siteNav a.is-current,
#siteNav .nav-menu.is-current > a,
#siteNav .nav-menu.is-current > .nav-menu-label {
    background: #3a2f18;
    color: var(--gold);
    font-weight: 600;
}

#siteNav .nav-menu {
    width: 100%;
}

#siteNav .nav-menu > a,
#siteNav .nav-menu > .nav-menu-label {
    padding-right: 36px;
}

#siteNav .nav-menu-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
}

#siteNav .nav-submenu a {
    padding: 6px 12px;
    color: #cfcfcf;
}

#siteNav .nav-divider {
    height: 1px;
    margin: 10px 8px;
    background: #333;
}

#siteNav .nav-logout {
    margin-top: auto;
    border: 1px solid #444;
    text-align: center;
}

#siteNav a.nav-logout:hover {
    border-color: var(--gold);
}

.note-item {
    margin: 12px 0;
    border: 1px solid #555;
    padding: 12px 14px;
    border-radius: 12px;
    background-color: #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.note-item-header {
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
}

.docPreview {
    width: min(960px, 92%);
    height: min(860px, 86%);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    border: 1px solid #555;
    border-radius: 12px;
    background-color: #222;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.doc-preview-backdrop {
    z-index: 1100;
}

.doc-preview-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #444;
}

.doc-preview-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    overflow-x: auto;
}

.doc-preview-actions a,
.doc-preview-actions button {
    margin: 0;
    flex: 0 0 auto;
}

.doc-preview-actions .image-preview-open {
    margin: 0;
    padding: 8px 14px;
    font-size: 0.95rem;
}

.doc-preview-actions a:hover {
    background-color: #3a3a3a;
    border-color: #777;
    color: #fff;
}

.doc-preview-actions button:disabled {
    opacity: 0.45;
    cursor: default;
}

.doc-preview-bar h3 {
    margin: 0;
    flex: 1 1 4rem;
    min-width: 4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.doc-preview-close {
    margin: 0;
    flex: 0 0 auto;
}

.doc-preview-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.doc-preview-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

.doc-preview-text {
    flex: 1;
    margin: 0;
    padding: 16px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: #1c1c1c;
    color: #eee;
    font: 0.95rem/1.45 Consolas, "Courier New", monospace;
}

.doc-preview-note {
    padding: 28px 24px;
    color: #eee;
}

.doc-preview-download {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
}

.image-preview-link {
    margin-top: 8px;
    text-align: center;
}

.image-preview-link a {
    font-size: 0.9rem;
}

.imagePreview .doc-preview-body {
    overflow: auto;
    align-items: center;
    justify-content: safe center;
    background: #111;
}

.image-preview-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 100%;
}

.image-preview-open {
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.preview-print-frame {
    position: fixed;
    width: 0;
    height: 0;
    border: 0;
    left: -9999px;
    visibility: hidden;
}

.image-preview-photo {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.no-wrap {
    white-space: nowrap;
}

.dashboard-section {
    background-color: var(--card);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 16px 0;
    padding: 18px 20px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.dashboard-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#btnToggleExpenseTable {
    margin: 8px 0 4px;
}

.expense-table-wrap.is-collapsed {
    display: none;
}

.dashboard-filter {
    justify-content: flex-start;
    align-items: flex-end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-size-field select {
    width: auto;
    min-width: 5rem;
}

.filter-field label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ccc;
}

.dashboard-range {
    color: #ccc;
    margin: 0 0 8px;
}

.dashboard-tools {
    margin: 0 0 12px;
}

.dashboard-subnav {
    margin: 0 auto 18px;
}

td.errorLogMessage {
    white-space: pre-wrap;
    word-break: break-word;
    vertical-align: top;
}

.errorDetails {
    width: min(720px, 92%);
    height: auto;
    max-height: 86%;
}

.error-detail-body {
    overflow: auto;
    padding: 20px 24px 28px;
    gap: 18px;
}

.error-detail-row {
    margin: 0;
}

.error-detail-label {
    margin: 0 0 6px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
}

.error-detail-value {
    color: #eee;
    line-height: 1.5;
    word-break: break-word;
}

.error-detail-stack {
    margin: 0;
    padding: 12px 14px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid #444;
    border-radius: 8px;
    background: #1c1c1c;
    color: #ddd;
    font: 0.85rem/1.5 Consolas, "Courier New", monospace;
}

.analytics-chart-wrap {
    margin: 4px 0 18px;
    max-width: 100%;
}

.analytics-chart-empty {
    margin: 0 0 12px;
    color: #ccc;
}

.analytics-hbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 16px;
}

.analytics-hbar-row {
    display: grid;
    grid-template-columns: minmax(8rem, 14rem) 1fr 3.5rem;
    gap: 10px;
    align-items: center;
}

.analytics-hbar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    color: #ccc;
}

.analytics-hbar-label .analytics-filter-link {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.analytics-filter-link {
    cursor: pointer;
}

#analyticsRecent {
    scroll-margin-top: 80px;
}

.analytics-hbar-track {
    height: 18px;
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

.analytics-hbar-fill {
    height: 100%;
    background: var(--gold);
}

.analytics-hbar-value {
    text-align: right;
    font-size: 0.85rem;
    color: #fff;
}

.expense-chart-wrap {
    margin: 28px 0 40px;
    max-width: 100%;
    overflow-x: auto;
}

.expense-chart-title {
    margin: 0 0 10px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ccc;
}

.expense-line-wrap {
    margin: 8px 0 40px;
    max-width: 100%;
    overflow-x: auto;
}

.expense-line {
    display: block;
    width: 100%;
    min-width: 640px;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.expense-line-grid {
    stroke: #444;
}

.expense-line-axis,
.expense-line-month {
    fill: #ccc;
}

.expense-line-month.current {
    fill: var(--gold);
}

.expense-line-path {
    fill: none;
    stroke: var(--gold);
    stroke-linejoin: round;
    stroke-linecap: round;
}

.expense-line-dot {
    fill: var(--gold);
    stroke: #2c2c2c;
}

.expense-chart {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 28px;
    flex-wrap: nowrap;
    width: max-content;
    margin: 0 auto;
}

.expense-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 8.5rem;
}

.expense-bar-value {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #fff;
}

.expense-bar.current .expense-bar-value,
.expense-bar.current .expense-bar-label {
    color: var(--gold);
}

.expense-bar-plot {
    display: flex;
    align-items: flex-end;
    width: 3.25rem;
    height: 150px;
    background: #1c1c1c;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

.expense-bar-fill {
    width: 100%;
    background: var(--gold);
}

.expense-bar-label {
    margin-top: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: #ccc;
}

.expense-pie-pair {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 28px 48px;
    margin: 28px 0 24px;
}

.expense-pie-wrap {
    margin: 0;
    flex: 1 1 20rem;
    min-width: 16rem;
    max-width: 36rem;
}

.expense-pie-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.expense-pie {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid #444;
    flex: 0 0 auto;
}

.expense-pie-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 14rem;
}

.expense-pie-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: #fff;
    font-size: 0.9rem;
}

.expense-pie-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 3px;
    flex: 0 0 auto;
}

.expense-pie-empty {
    margin: 28px 0 24px;
    color: #ccc;
    font-size: 0.9rem;
}

.amount {
    text-align: right;
    white-space: nowrap;
}

[data-utc] {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

#lblMessage,
#lblDashboardMessage,
#lblHomeMessage,
#lblRentRollNote,
#lblOutstandingNote,
#lblPropertyUsersMessage,
#lblGrantPropertyUserNote,
#lblLedgerMessage,
#lblLedgerNotice {
    display: block;
    margin: 0 0 12px;
}

#lblRentRollNote,
#lblOutstandingNote,
#lblEndingNote {
    color: #ccc;
}

#tblRentRoll input,
#tblRentRoll select,
#tblRentRoll textarea {
    width: 8.5rem;
    margin: 0;
    padding: 4px 6px;
    font-size: 0.85rem;
}

#tblRentRoll .wideInput,
#tblRentRoll textarea.wideInput {
    width: 12rem;
}

#tblRentRoll textarea {
    min-height: 2.6rem;
}

#tblRentRoll td {
    vertical-align: top;
}

#tblRentRoll td.tenantCell {
    white-space: normal;
    min-width: 10rem;
}

#tblRentRoll td.checkCell {
    text-align: center;
}

#tblRentRoll td.receiptCell {
    white-space: nowrap;
}

#tblRentRoll button.receipt-btn {
    padding: 4px 10px;
    margin: 0;
    font-size: 0.8rem;
    white-space: nowrap;
}

#tblRentRoll td.balance-due.owing {
    color: #ff8a80;
    font-weight: 600;
}

#tblRentRoll td.balance-due.credit {
    color: #90caf9;
    font-weight: 600;
}

.tblLeaseLedger td.owing,
.ledger-balance.owing {
    color: #ff8a80;
    font-weight: 600;
}

.tblLeaseLedger td.credit,
.ledger-balance.credit {
    color: #90caf9;
    font-weight: 600;
}

.ledger-footer {
    margin-top: 12px;
    font-weight: 600;
}

.field-note {
    display: block;
    margin-top: 4px;
    color: #ccc;
    font-size: 0.85rem;
}

.field-note a {
    color: #eee;
    text-decoration: underline;
}

#lnkReceipt {
    display: inline-block;
    margin: 6px 0 8px;
}

#fileReceipt {
    color: #fff;
}

.rent-roll-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin: 8px 0 16px;
}

.rent-roll-summary .rent-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rent-total-label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ccc;
}

.total-due,
.total-paid {
    color: var(--gold);
    font-weight: 600;
}

.total-percent {
    color: #90caf9;
    font-weight: 600;
}

.total-outstanding {
    color: #ff8a80;
    font-weight: 600;
}

.cash-note {
    display: block;
    margin: 0 0 16px;
    color: #ccc;
}

.cash-note.over {
    color: #ff8a80;
    font-weight: 600;
}

.loan-section {
    margin-top: 32px;
    padding-top: 8px;
    border-top: 1px solid #3f3f3f;
}

.loan-schedule-wrap {
    max-height: 420px;
}

.report-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 12px 16px;
    margin: 12px 0;
}

.report-filters .filter-field {
    margin: 0;
}

.report-filters .filter-field > label,
.report-filters .filter-label {
    display: block;
    min-height: 16px;
    line-height: 16px;
}

.report-filters select,
.report-filters input[type="date"],
.report-filters input[type="submit"],
.report-filters input[type="button"],
.report-filters button {
    height: 40px;
    margin: 0;
    box-sizing: border-box;
    vertical-align: bottom;
}

.report-action-buttons {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.report-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 18px 0 8px;
}

#lblLoanMessage,
#lblLoanPayment,
#lblReportNote {
    display: block;
    margin: 8px 0;
}

.tblList tr.report-section td {
    font-weight: 600;
    color: var(--gold);
    background-color: #1c1c1c;
}

.tblList tr.total-row td {
    font-weight: 600;
    color: var(--gold);
    background-color: #1c1c1c;
}

#tblUserPassword {
    max-width: none;
}

#tblUserPassword .password-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

#tblUserPassword .password-field-row > input {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0;
    flex: 0 1 420px;
}

.share-password-notice {
    display: none;
    margin: 0;
    padding: 0;
    color: #ff4d4d;
    flex: 1 1 12rem;
}

.share-password-notice.is-visible {
    display: inline;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.share-password-notice.is-visible.is-hiding {
    opacity: 0;
}

.learn-page {
    padding: 20px 0 48px;
}

.learn-hero {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 48px;
}

.learn-eyebrow {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.learn-hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    text-align: center;
}

.learn-subcopy {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 22px;
}

.learn-shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 48px;
}

.learn-shot {
    margin: 0;
}

.learn-shot-frame {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    border: 1px solid #333;
    background-color: #1a1a1a;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.learn-shot-frame:hover,
a.learn-shot-frame:focus-visible {
    border-color: var(--gold);
    color: inherit;
    text-decoration: none;
}

.learn-shot-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.learn-shot figcaption {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.learn-shot figcaption strong {
    color: var(--text);
    font-weight: 600;
}

.learn-features {
    margin: 0 auto 48px;
    max-width: 42rem;
}

.learn-features h2 {
    text-align: center;
    margin-bottom: 8px;
}

.learn-feature {
    padding: 16px 0;
    border-top: 1px solid #2a2a2a;
}

.learn-feature:last-child {
    border-bottom: 1px solid #2a2a2a;
}

.learn-feature h3 {
    color: var(--gold);
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.learn-feature p {
    margin: 0;
    color: var(--text-muted);
}

.learn-contact {
    max-width: 36rem;
    margin: 0 auto;
    padding-top: 8px;
    scroll-margin-top: 24px;
}

.feedback-page {
    max-width: 36rem;
}

.learn-contact-lead {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.learn-optional {
    display: block;
    margin-top: -4px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.learn-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 4px 0 8px;
}

.learn-captcha-row img {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 8px;
}

.learn-form-msg {
    color: #ff6b6b;
}

.learn-thanks {
    padding: 24px;
    border: 1px solid #333;
    border-radius: var(--radius);
    background: #1c1c1c;
}

.learn-thanks p {
    margin: 0;
}

.about-callout {
    max-width: 42rem;
    margin: 0 auto 40px;
    padding: 24px 22px;
    border: 1px solid #333;
    border-radius: var(--radius);
    background: #1c1c1c;
}

.about-callout h2 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 1.2rem;
}

.about-callout ul {
    margin: 0 0 12px;
    padding-left: 1.35rem;
}

.about-callout li {
    margin: 0 0 6px;
}

.about-callout p {
    margin: 0;
    color: var(--text-muted);
}

.about-actions {
    justify-content: center;
    margin: 8px 0 24px;
}

.about-page {
    max-width: 46rem;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.about-page .learn-hero {
    text-align: left;
    max-width: none;
    margin: 0 0 40px;
}

.about-page .learn-hero h1 {
    text-align: left;
}

.about-page .hero-actions {
    justify-content: flex-start;
}

.about-section {
    margin: 0 0 40px;
}

.about-section h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
}

.about-section p {
    color: var(--text-muted);
    margin: 0 0 14px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-flow {
    margin: 20px 0 0;
    padding: 18px 16px 14px;
    border: 1px solid #333;
    border-radius: 16px;
    background: #141414;
    min-width: 0;
    max-width: 100%;
}

.about-flow-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.about-flow-node {
    border: 1px solid #3a3a3a;
    border-radius: 14px;
    padding: 10px 12px;
    background: #1a1a1a;
    min-height: 58px;
}

.about-flow-node.is-wide {
    grid-column: 1 / -1;
}

.about-flow-node.is-span2 {
    grid-column: span 2;
}

.about-flow-node strong {
    display: block;
    font-size: 0.95rem;
}

.about-flow-node span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.about-flow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 0 8px;
    padding: 0;
}

.about-flow-tags li {
    border: 1px dashed #555;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.about-flow figcaption {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

.about-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.about-step {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 18px;
}

.about-step:last-child {
    margin-bottom: 0;
}

.about-step-num {
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2px;
}

.about-step h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: var(--text);
}

.about-step p {
    margin: 0;
    color: var(--text-muted);
}

.about-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 0;
    padding: 14px 16px;
    border: 1px solid #444;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: #1a1a1a;
}

.about-link-card:hover,
.about-link-card:focus-visible {
    border-color: var(--gold);
    color: inherit;
    text-decoration: none;
}

.about-link-card strong {
    display: block;
}

.about-link-card > span:first-child span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.about-link-card-arrow {
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1;
}

.about-legal {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 800px) {
    .learn-shots {
        grid-template-columns: 1fr;
    }

    .about-flow-map {
        grid-template-columns: 1fr;
    }

    .about-flow-node.is-wide,
    .about-flow-node.is-span2 {
        grid-column: auto;
    }
}

.options-page {
    max-width: 44rem;
}

.options-section h2 {
    margin-bottom: 8px;
}

.signature-editor {
    margin: 12px 0 8px;
}

.signature-pad {
    display: block;
    width: 100%;
    max-width: 600px;
    height: 160px;
    background: #ffffff;
    color: #1a56c4;
    border: 1px solid #444;
    border-radius: 8px;
    touch-action: none;
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
}

.signature-preview {
    margin: 0 0 12px;
}

.signature-preview-img,
.company-logo-preview {
    display: block;
    max-width: 280px;
    max-height: 90px;
    background: #ffffff;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 8px;
}

.theme-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 4px;
}

.theme-choice {
    display: block;
    position: relative;
    margin: 0;
    cursor: pointer;
}

.theme-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.theme-choice-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 10.5rem;
    padding: 12px;
    border: 1px solid #444;
    border-radius: var(--radius);
    background: var(--card);
}

.theme-choice input:focus-visible + .theme-choice-card {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.theme-choice input:checked + .theme-choice-card {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 164, 76, 0.35);
}

.theme-choice-preview {
    display: block;
    height: 64px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.theme-choice-dark .theme-choice-preview {
    background:
        linear-gradient(90deg, #1a1a1a 28%, transparent 28%),
        linear-gradient(#141414, #141414);
    border-color: #333;
}

.theme-choice-ember .theme-choice-preview {
    background:
        linear-gradient(90deg, #241c14 28%, transparent 28%),
        linear-gradient(#2c2218, #2c2218);
    border-color: #5c4a36;
}

.theme-choice-light .theme-choice-preview {
    background:
        linear-gradient(90deg, #cbeaff 28%, transparent 28%),
        linear-gradient(#f4f8fc, #f4f8fc);
    border-color: #b5d4ea;
}

.theme-choice-sage .theme-choice-preview {
    background:
        linear-gradient(90deg, #cdead4 28%, transparent 28%),
        linear-gradient(#f4f8f4, #f4f8f4);
    border-color: #b5d4c0;
}

.theme-choice-name {
    font-weight: 600;
}

.table-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 4px;
}

.table-pager-status {
    margin-right: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.table-pager a,
.table-pager .table-pager-current,
.table-pager .table-pager-disabled,
.table-pager .table-pager-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-sizing: border-box;
}

.table-pager a,
.table-pager a:link,
.table-pager a:visited {
    color: #e6e6e6;
    background: #2a2a2a;
    border: 1px solid #444;
}

.table-pager a:hover,
.table-pager a:focus {
    color: var(--gold);
    border-color: var(--gold);
    background: #333;
    text-decoration: none;
}

.table-pager-current {
    background: #3a2f18;
    color: var(--gold);
    font-weight: 600;
    border: 1px solid var(--gold);
}

.table-pager-disabled,
.table-pager-gap {
    color: #777;
    border: 1px solid transparent;
}
