.admin-login-page,
.admin-page {
    min-height: 100vh;
    background: #edf3f2;
}

.admin-kicker {
    display: block;
    color: var(--water-deep);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(480px, 0.92fr);
}

.admin-login__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(42px, 6vw, 88px);
    color: var(--white);
    background:
        radial-gradient(circle at 78% 12%, rgba(22, 166, 216, 0.25), transparent 27rem),
        linear-gradient(145deg, #0b354a, #102b3a 60%, #071f2a);
}

.brand--admin-login {
    align-self: flex-start;
    color: var(--white);
}

.brand--admin-login .tenant-mark {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 18px;
    font-size: 1rem;
}

.brand--admin-login .brand__name span {
    color: #9fb9c2;
}

.admin-login__brand h1 {
    max-width: 700px;
    margin: 20px 0 0;
    font-size: clamp(3.2rem, 5vw, 5.7rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.admin-login__brand h1 em {
    color: #a8dff0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.admin-login__brand > div > p:last-child {
    max-width: 650px;
    color: #b9cdd5;
}

.admin-login__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    color: #d9e6e9;
    font-size: 0.76rem;
    font-weight: 750;
    list-style: none;
}

.admin-login__benefits span {
    margin-right: 7px;
    color: var(--signal);
}

.admin-login__form-wrap {
    display: grid;
    place-items: center;
    padding: 40px;
    background:
        linear-gradient(rgba(237, 243, 242, 0.9), rgba(237, 243, 242, 0.96)),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(16, 43, 58, 0.04) 47px 48px);
}

.admin-login__card {
    width: min(100%, 475px);
    display: grid;
    gap: 23px;
    padding: 38px;
    border: 1px solid #c8d8da;
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 30px 80px rgba(16, 43, 58, 0.15);
}

.admin-concept-badge {
    padding: 11px 13px;
    border-radius: 10px;
    color: #74430b;
    background: var(--signal-light);
    font-size: 0.67rem;
    font-weight: 850;
    text-align: center;
}

.admin-login__card h2 {
    margin: 8px 0 0;
    font-size: 1.8rem;
    letter-spacing: -0.045em;
}

.admin-login__card > div > p {
    margin: 7px 0 0;
    color: #667d87;
    font-size: 0.77rem;
}

.admin-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.admin-field > span {
    font-size: 0.72rem;
    font-weight: 850;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #c9d7d9;
    border-radius: 10px;
    color: var(--ink);
    background: #fbfdfd;
}

.admin-field textarea {
    resize: vertical;
}

.admin-field small {
    color: #7c9098;
    font-size: 0.62rem;
}

.admin-field.is-disabled {
    opacity: 0.58;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus,
.wysiwyg__canvas:focus {
    border-color: var(--water);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(7, 140, 196, 0.11);
}

.admin-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #617680;
    font-size: 0.67rem;
}

.admin-login__options label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-login__options button,
.admin-text-button {
    padding: 0;
    border: 0;
    color: var(--water-deep);
    background: transparent;
    font-size: inherit;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.admin-primary-button,
.admin-secondary-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 17px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.admin-primary-button {
    border: 1px solid var(--signal);
    color: #422600;
    background: var(--signal);
    box-shadow: 0 8px 18px rgba(242, 138, 27, 0.2);
}

.admin-primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.admin-secondary-button {
    border: 1px solid #c4d4d6;
    color: var(--ink);
    background: var(--white);
}

.admin-login__result,
.admin-action-result {
    padding: 14px;
    border: 1px solid #afd3c0;
    border-radius: 12px;
    color: #27543f;
    background: #ebf7f0;
    font-size: 0.72rem;
}

.admin-login__result p,
.admin-action-result p {
    margin: 3px 0 7px;
}

.admin-login__result a {
    color: #174f70;
    font-weight: 900;
}

.admin-back-link {
    justify-self: center;
    color: #6c818a;
    font-size: 0.68rem;
    font-weight: 800;
}

/* Standing guidance under the tenant sign-in card, not a response to a
   submission. Deliberately quieter than .admin-login__result, which carries
   outcomes: this is the same text on every render and must not read as an
   answer to something the visitor just did. */
.admin-login__note {
    margin: 14px 2px 0;
    padding: 12px 14px;
    border-left: 3px solid #b8c6cc;
    color: #5c6f78;
    font-size: 0.68rem;
    line-height: 1.55;
}

.admin-login__note strong {
    color: #40525b;
}

/* Workspace shell */

.admin-page {
    padding-left: 248px;
}

.admin-sidebar {
    position: fixed;
    z-index: 60;
    top: 0;
    bottom: 0;
    left: 0;
    width: 248px;
    display: flex;
    flex-direction: column;
    padding: 23px 17px;
    color: #d9e4e8;
    background: #0a2633;
}

.admin-sidebar__brand {
    padding: 0 8px 23px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar__brand img {
    width: 43px;
    height: 43px;
}

.admin-sidebar__brand .tenant-mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    border-radius: 12px;
    font-size: 0.72rem;
}

.admin-sidebar__brand .brand__name strong {
    font-size: 0.9rem;
}

.admin-sidebar__brand .brand__name span {
    color: #829da8;
    font-size: 0.64rem;
}

.admin-sidebar nav {
    flex: 1;
    overflow-y: auto;
    padding-top: 15px;
    scrollbar-color: #486875 transparent;
    scrollbar-width: thin;
}

.admin-sidebar nav > span {
    display: block;
    margin: 20px 10px 7px;
    color: #668792;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-sidebar nav a {
    min-height: 40px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #a8bec6;
    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
}

.admin-sidebar nav a i {
    color: #7999a4;
    font-size: 0.9rem;
    font-style: normal;
}

.admin-sidebar nav a b {
    min-width: 21px;
    padding: 2px 5px;
    border-radius: 999px;
    color: #402500;
    background: var(--signal);
    font-size: 0.57rem;
    text-align: center;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.09);
}

.admin-sidebar nav a.is-active i {
    color: var(--signal);
}

.admin-sidebar nav > span.admin-nav-planned {
    min-height: 38px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 8px 10px;
    color: #718d97;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.admin-nav-planned i {
    font-style: normal;
}

.admin-nav-planned small {
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-sidebar__user {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 14px 7px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar__user > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #3c2300;
    background: var(--signal);
    font-size: 0.65rem;
    font-weight: 900;
}

.admin-sidebar__user strong,
.admin-sidebar__user small {
    display: block;
}

.admin-sidebar__user strong {
    color: var(--white);
    font-size: 0.68rem;
}

.admin-sidebar__user small {
    color: #718f9a;
    font-size: 0.57rem;
}

.admin-sidebar__user a,
.admin-sidebar__user button {
    border: 0;
    color: #8eabb5;
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.admin-workspace {
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 30px;
    border-bottom: 1px solid #d5e0e1;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.admin-menu-button {
    display: none;
}

.admin-search {
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-search > span {
    color: #718790;
    font-size: 1.2rem;
}

.admin-search input {
    min-width: 240px;
    border: 0;
    background: transparent;
    font-size: 0.72rem;
}

.admin-search:focus-within {
    border-radius: 8px;
    outline: 3px solid var(--signal);
    outline-offset: 4px;
}

.admin-search kbd {
    padding: 3px 6px;
    border: 1px solid #d3dfe0;
    border-radius: 5px;
    color: #7b8e96;
    background: #f4f7f7;
    font-size: 0.56rem;
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.admin-topbar__actions a {
    color: var(--water-deep);
    font-size: 0.68rem;
    font-weight: 850;
}

.admin-workspace-switch {
    display: grid;
    gap: 1px;
    padding: 7px 11px;
    border: 1px solid #d5e2e4;
    border-radius: 9px;
    color: var(--ink);
    background: #f7fafb;
    line-height: 1.2;
}

.admin-workspace-switch small {
    color: #758991;
    font-size: 0.51rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-workspace-switch strong {
    max-width: 190px;
    overflow: hidden;
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-preview-pill {
    padding: 6px 10px;
    border-radius: 999px;
    color: #77430a;
    background: var(--signal-light);
    font-size: 0.59rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-main {
    width: min(100% - 50px, 1350px);
    margin-inline: auto;
    padding-block: 36px 80px;
}

.admin-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.admin-breadcrumb {
    color: #68808a;
    font-size: 0.65rem;
    font-weight: 800;
}

.admin-page-heading h1 {
    margin: 5px 0 0;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.admin-page-heading p {
    margin: 9px 0 0;
    color: #607882;
    font-size: 0.77rem;
}

.admin-page-heading__actions {
    display: flex;
    gap: 9px;
}

.admin-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 22px;
}

.admin-editor-stack {
    display: grid;
    gap: 22px;
}

.admin-panel {
    min-width: 0;
    padding: 26px;
    border: 1px solid #ccd9db;
    border-radius: 17px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 43, 58, 0.045);
}

.admin-panel__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.admin-panel__heading h2 {
    margin: 4px 0 0;
    font-size: 1.3rem;
    letter-spacing: -0.035em;
}

.admin-panel__hint {
    color: #718790;
    font-size: 0.62rem;
}

.admin-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #365861;
    background: #eaf0f1;
    font-size: 0.58rem;
    font-weight: 900;
    white-space: nowrap;
}

.admin-status--draft {
    color: #77430b;
    background: var(--signal-light);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-field--wide {
    grid-column: 1 / -1;
}

.admin-money-input {
    display: grid;
    grid-template-columns: 39px 1fr;
}

.admin-money-input b {
    display: grid;
    place-items: center;
    border: 1px solid #c9d7d9;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: #6d828b;
    background: #eef3f3;
}

.admin-money-input input {
    border-radius: 0 10px 10px 0;
}

.wysiwyg {
    overflow: hidden;
    border: 1px solid #c9d7d9;
    border-radius: 12px;
    background: #fbfdfd;
}

.wysiwyg__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    min-height: 49px;
    padding: 7px 9px;
    border-bottom: 1px solid #d5e0e1;
    background: #f2f6f6;
}

.wysiwyg__toolbar button {
    min-width: 34px;
    min-height: 33px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    color: #3f5964;
    background: transparent;
    font-size: 0.68rem;
    cursor: pointer;
}

.wysiwyg__toolbar button:hover {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(16, 43, 58, 0.1);
}

.wysiwyg__toolbar > span {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: #ccd9db;
}

.wysiwyg__canvas {
    min-height: 330px;
    padding: 32px 38px;
    border: 0;
    background: var(--white);
}

.wysiwyg__canvas h2 {
    margin: 0 0 14px;
    font-size: 1.85rem;
    letter-spacing: -0.045em;
}

.wysiwyg__canvas h3 {
    margin: 28px 0 9px;
    font-size: 1.05rem;
}

.wysiwyg__canvas p,
.wysiwyg__canvas li {
    color: #425e6a;
    font-size: 0.82rem;
}

.wysiwyg__footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 12px;
    border-top: 1px solid #d5e0e1;
    color: #718790;
    background: #f2f6f6;
    font-size: 0.56rem;
}

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

.media-card {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid #d2dfe0;
    border-radius: 11px;
}

.media-card__image {
    position: relative;
}

.media-card__image img {
    width: 84px;
    height: 65px;
    object-fit: cover;
    border-radius: 7px;
}

.media-card__image span {
    position: absolute;
    bottom: 4px;
    left: 4px;
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--white);
    background: rgba(16, 43, 58, 0.82);
    font-size: 0.5rem;
    font-weight: 900;
}

.media-card strong,
.media-card small {
    display: block;
}

.media-card strong {
    font-size: 0.68rem;
}

.media-card small {
    margin-top: 3px;
    color: #718790;
    font-size: 0.56rem;
}

.media-card > button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.media-upload {
    min-height: 84px;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-content: center;
    column-gap: 10px;
    padding: 12px;
    border: 1px dashed #83afbc;
    border-radius: 11px;
    color: #4c6d79;
    background: #f3f9f9;
    cursor: pointer;
}

.media-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.media-upload:focus-within,
.admin-switch:focus-within {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
}

.media-upload > span {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--water);
}

.media-upload strong {
    font-size: 0.68rem;
}

.media-upload small {
    font-size: 0.55rem;
}

.gallery-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.gallery-settings strong,
.gallery-settings span {
    display: block;
}

.gallery-settings strong {
    font-size: 0.72rem;
}

.gallery-settings span {
    color: #718790;
    font-size: 0.62rem;
}

.admin-switch {
    display: grid;
    grid-template-columns: 40px auto;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
}

.admin-switch span {
    position: relative;
    width: 40px;
    height: 23px;
    border-radius: 999px;
    background: #b9c9cc;
}

.admin-switch span::after {
    position: absolute;
    width: 17px;
    height: 17px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(16, 43, 58, 0.25);
    content: "";
    transition: transform 150ms ease;
}

.admin-switch input:checked + span {
    background: var(--grass);
}

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

.admin-switch b {
    font-size: 0.62rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    padding: 12px 9px;
    border-bottom: 1px solid var(--line);
    font-size: 0.65rem;
    text-align: left;
}

.admin-table th {
    color: #758991;
    font-size: 0.57rem;
    text-transform: uppercase;
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td small {
    color: #718790;
    font-size: 0.55rem;
}

.admin-table td:last-child {
    text-align: right;
}

.admin-table td button {
    border: 0;
    color: var(--water-deep);
    background: transparent;
    font-size: 0.62rem;
    font-weight: 900;
    cursor: pointer;
}

.admin-publish {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 17px;
}

.admin-publish__card dl {
    display: grid;
    gap: 0;
    margin: 0 0 22px;
}

.admin-publish__card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.admin-publish__card dt,
.admin-publish__card dd {
    font-size: 0.64rem;
}

.admin-publish__card dt {
    color: #718790;
}

.admin-publish__card dd {
    margin: 0;
    font-weight: 850;
    text-align: right;
}

.admin-publish__card .admin-primary-button {
    width: 100%;
}

.admin-publish__card .admin-text-button {
    width: 100%;
    margin-top: 14px;
    font-size: 0.62rem;
}

.admin-checklist ul {
    display: grid;
    gap: 11px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.admin-checklist li {
    display: grid;
    grid-template-columns: 23px 1fr;
    align-items: center;
    gap: 8px;
    color: #6c818a;
    font-size: 0.62rem;
}

.admin-checklist li span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid #c9d7d9;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 900;
}

.admin-checklist li.is-complete {
    color: #315e49;
}

.admin-checklist li.is-complete span {
    color: var(--white);
    border-color: var(--grass);
    background: var(--grass);
}

.admin-action-result {
    margin: 0;
}

.admin-media-result {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    width: min(calc(100% - 48px), 420px);
    display: grid;
    padding: 16px;
    border: 1px solid #a7ccba;
    border-radius: 13px;
    color: #28513e;
    background: #ebf7f0;
    box-shadow: 0 20px 50px rgba(16, 43, 58, 0.18);
    font-size: 0.68rem;
}

.admin-media-result[hidden] {
    display: none;
}

.admin-nav-is-open {
    overflow: hidden;
}

.admin-nav-is-open::after {
    position: fixed;
    z-index: 50;
    inset: 0;
    background: rgba(4, 24, 33, 0.48);
    content: "";
    pointer-events: none;
}

.admin-media-result span {
    margin-top: 3px;
}

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

    .admin-publish {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-action-result {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .admin-login {
        grid-template-columns: 1fr;
    }

    .admin-login__brand {
        min-height: 570px;
        gap: 70px;
    }

    .admin-page {
        padding-left: 0;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-sidebar.is-open {
        display: flex;
    }

    .admin-menu-button {
        width: 42px;
        height: 42px;
        display: grid;
        align-content: center;
        gap: 4px;
        padding: 9px;
        border: 1px solid #cedadb;
        border-radius: 9px;
        background: var(--white);
    }

    .admin-menu-button span {
        height: 2px;
        background: var(--ink);
    }

    .admin-menu-button b {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .admin-search kbd {
        display: none;
    }

    .admin-main {
        width: min(100% - 32px, 1350px);
    }
}

@media (max-width: 680px) {
    .admin-login__brand {
        min-height: 520px;
        padding: 35px 25px;
    }

    .admin-login__brand h1 {
        font-size: 3rem;
    }

    .admin-login__form-wrap {
        padding: 25px 16px;
    }

    .admin-login__card {
        padding: 26px 20px;
    }

    .admin-topbar {
        padding-inline: 16px;
    }

    .admin-search {
        min-width: 0;
        flex: 1;
    }

    .admin-search input {
        width: 100%;
        min-width: 0;
    }

    .admin-topbar__actions a {
        display: none;
    }

    .admin-workspace-switch {
        display: none;
    }

    .admin-page-heading,
    .admin-page-heading__actions,
    .gallery-settings {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-form-grid,
    .media-grid,
    .admin-publish {
        grid-template-columns: 1fr;
    }

    .admin-field--wide,
    .admin-action-result {
        grid-column: 1;
    }

    .admin-panel {
        padding: 20px 16px;
    }

    .admin-panel__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .wysiwyg__canvas {
        min-height: 300px;
        padding: 25px 20px;
    }

    .wysiwyg__footer {
        flex-direction: column;
        gap: 2px;
    }
}

/* Quote and invoice builder concept */
.builder-heading {
    margin-bottom: 18px;
}

.builder-concept-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid #c7dce3;
    border-radius: 12px;
    color: #2b5361;
    background: #edf8fb;
    font-size: 0.82rem;
}

.builder-concept-note strong {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--water-deep);
    font-size: 0.67rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.builder-start {
    margin-bottom: 18px;
}

.builder-start__options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.builder-start__options button {
    min-height: 116px;
    padding: 16px;
    border: 1px solid #d4e0e2;
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.builder-start__options button:hover {
    transform: translateY(-2px);
    border-color: #7db3c5;
    box-shadow: 0 12px 25px rgba(15, 49, 64, 0.08);
}

.builder-start__options button:focus-visible {
    outline: 3px solid rgba(10, 127, 167, 0.2);
    outline-offset: 2px;
}

.builder-start__options button[aria-pressed="true"] {
    border-color: var(--water);
    box-shadow: 0 0 0 2px rgba(10, 127, 167, 0.14);
    background: #f5fbfd;
}

.builder-start__options button span,
.builder-start__options button strong,
.builder-start__options button small {
    display: block;
}

.builder-start__options button span {
    margin-bottom: 9px;
    color: var(--water);
    font-size: 1.15rem;
}

.builder-start__options button strong {
    margin-bottom: 5px;
}

.builder-start__options button small {
    color: #6a8088;
    line-height: 1.42;
}

.builder-source-summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f3f7f8;
}

.builder-source-summary p {
    margin: 0;
    color: #5e747c;
    font-size: 0.8rem;
    line-height: 1.55;
}

.builder-source-summary p strong {
    color: var(--ink);
}

.builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 18px;
}

.admin-editor-stack {
    display: grid;
    gap: 18px;
}

.builder-lines__table {
    overflow-x: auto;
}

.builder-lines__table:focus-visible {
    outline: 3px solid rgba(10, 127, 167, 0.18);
    outline-offset: 3px;
}

.builder-lines table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.builder-lines th {
    padding: 0 8px 9px;
    color: #71858b;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}

.builder-lines td {
    padding: 9px 8px;
    border-top: 1px solid #e8eeee;
    vertical-align: middle;
}

.builder-lines th:first-child,
.builder-lines td:first-child {
    width: 52%;
    padding-left: 0;
}

.builder-lines th:last-child,
.builder-lines td:last-child {
    padding-right: 0;
    text-align: right;
}

.builder-lines td input,
.builder-lines td textarea {
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #cedbdd;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.builder-lines td textarea {
    display: block;
    margin-top: 5px;
    resize: vertical;
    color: #60757c;
    font-size: 0.74rem;
}

.builder-lines td input:focus,
.builder-lines td textarea:focus {
    border-color: var(--water);
    outline: 3px solid rgba(10, 127, 167, 0.12);
}

.builder-lines td:nth-child(2) input {
    max-width: 62px;
}

.builder-lines td:nth-child(3) input {
    max-width: 104px;
}

.builder-lines td > button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d7e0e2;
    border-radius: 8px;
    color: #963e4c;
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.builder-lines td > button:focus-visible {
    outline: 3px solid rgba(150, 62, 76, 0.18);
    outline-offset: 2px;
}

.builder-optional {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #356272;
    font-size: 0.72rem;
    font-weight: 750;
}

.builder-optional input {
    width: auto !important;
}

.builder-price-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #765818;
    background: #fff7dc;
    font-size: 0.76rem;
}

.builder-price-warning > span {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #b27a16;
    font-weight: 900;
}

.builder-price-warning p {
    margin: 0;
}

.builder-variables {
    margin-bottom: 12px;
}

.builder-variables > strong {
    display: block;
    margin-bottom: 8px;
    color: #536d76;
    font-size: 0.69rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.builder-variables > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.builder-variables button {
    padding: 7px 9px;
    border: 1px solid #c7dce3;
    border-radius: 999px;
    color: #255d70;
    background: #f1f9fb;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

.builder-variables button:hover {
    background: #e3f3f7;
}

.builder-variables button:focus-visible {
    outline: 3px solid rgba(10, 127, 167, 0.18);
    outline-offset: 2px;
}

.builder-wysiwyg__canvas {
    min-height: 170px;
}

.builder-sidebar {
    position: sticky;
    top: 82px;
    display: grid;
    gap: 14px;
}

.builder-sidebar .admin-panel {
    padding: 20px;
}

.builder-summary dl {
    display: grid;
    gap: 10px;
    margin: 12px 0 16px;
}

.builder-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #60757c;
    font-size: 0.8rem;
}

.builder-summary dd {
    margin: 0;
    color: var(--ink);
    font-weight: 850;
}

.builder-summary dl .builder-summary__total {
    margin-top: 3px;
    padding-top: 12px;
    border-top: 1px solid #e0e9ea;
    color: var(--ink);
    font-size: 0.95rem;
}

.builder-deposit {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
    color: #536d76;
    font-size: 0.72rem;
    font-weight: 800;
}

.builder-deposit select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cedbdd;
    border-radius: 9px;
    background: #fff;
}

.builder-summary .admin-primary-button {
    width: 100%;
    justify-content: center;
}

.builder-summary > p,
.builder-template-tools > p {
    margin: 11px 0 0;
    color: #74878d;
    font-size: 0.7rem;
    line-height: 1.55;
}

.builder-template-tools {
    display: grid;
    gap: 8px;
}

.builder-template-tools h2 {
    margin: 0 0 3px;
    font-size: 1rem;
}

.builder-template-tools button {
    padding: 9px 10px;
    border: 1px solid #d1dfe1;
    border-radius: 9px;
    color: #345763;
    background: #fff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.builder-template-tools button:hover {
    border-color: #8fb9c5;
    background: #f5fafb;
}

.builder-validation ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: #5e747c;
    font-size: 0.74rem;
}

.builder-validation li {
    display: flex;
    gap: 7px;
}

.builder-validation li > span {
    color: #ad7412;
    font-weight: 900;
}

.builder-validation li.is-complete > span {
    color: #23805f;
}

.builder-result {
    grid-column: auto;
    margin: 0;
}

.builder-result[hidden] {
    display: none;
}

.admin-empty-state {
    display: grid;
    gap: 0.35rem;
    padding: 2.5rem 1.5rem;
    color: #536d78;
    text-align: center;
}

.admin-empty-state p {
    margin: 0;
    font-size: 0.72rem;
}

.admin-row-action {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--water-deep);
    background: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    text-decoration: none;
}

.builder-concept-note--success {
    border-color: #a7d1bc;
    color: #24533e;
    background: #eaf7f0;
}

.builder-concept-note--error {
    border-color: #e0ad98;
    color: #7a3225;
    background: #fff3ed;
}

.builder-concept-note a {
    margin-left: auto;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 900;
}

.builder-start__options button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.65);
    opacity: 0.52;
}

.builder-safe-editor {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 0.76rem;
    line-height: 1.65;
}

.builder-message > .admin-field + .admin-field {
    margin-top: 16px;
}

.builder-money-input {
    display: flex;
    min-width: 118px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.builder-money-input span {
    padding-left: 9px;
    color: #617985;
    font-weight: 850;
}

.builder-money-input input {
    min-width: 82px !important;
    border: 0 !important;
}

.builder-approval {
    display: inline-flex;
    min-width: 110px;
    align-items: center;
    gap: 6px;
    color: #526b76;
    font-size: 0.62rem;
    font-weight: 800;
}

.builder-approval input {
    min-width: auto !important;
}

[data-builder-price-warning][hidden] {
    display: none;
}

.invoice-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-invoice-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.admin-invoice-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.admin-invoice-card h2 {
    margin: 4px 0 0;
    font-size: 1rem;
}

.admin-invoice-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.admin-invoice-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 0.68rem;
}

.admin-detail-list {
    display: grid;
    gap: .7rem;
    margin: 1rem 0 0;
}

.customer-operation-links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.admin-detail-list div {
    display: grid;
    grid-template-columns: minmax(9rem, .45fr) 1fr;
    gap: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid rgba(16, 43, 58, .1);
}

.admin-detail-list dt {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.admin-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-panel pre {
    max-width: 100%;
    overflow: auto;
    padding: 1rem;
    border-radius: .8rem;
    background: var(--ink);
    color: var(--white);
    white-space: pre-wrap;
}

.admin-invoice-card dt {
    color: #718790;
}

.admin-invoice-card dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.admin-invoice-card form {
    display: grid;
    gap: 12px;
}

.admin-confirm-check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 8px;
    padding: 10px;
    border-radius: 9px;
    color: #536d78;
    background: #f2f6f5;
    font-size: 0.64rem;
    line-height: 1.5;
}

.admin-confirm-check input {
    margin-top: 3px;
}

.admin-invoice-card__issued {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 9px;
    color: #24533e;
    background: #eaf7f0;
    font-size: 0.7rem;
}

.admin-payment-history,
.admin-manual-payment {
    margin-top: 1rem;
    border-top: 1px solid var(--admin-border, #d8e0e3);
    padding-top: 1rem;
}

.admin-payment-history > strong,
.admin-manual-payment summary {
    color: #173845;
    font-weight: 800;
}

.admin-payment-history ul {
    display: grid;
    gap: .65rem;
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
}

.admin-payment-history li {
    border-radius: .7rem;
    background: #f3f7f6;
    padding: .7rem .8rem;
}

.admin-payment-history li div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.admin-payment-history li small {
    display: block;
    margin-top: .25rem;
    color: #607178;
}

.admin-payment-history li .admin-form-grid {
    display: grid;
    justify-content: initial;
}

.admin-payment-history li .admin-manual-payment {
    border-top-color: #cedbdd;
    background: #fff;
    padding: 1rem;
}

.admin-payment-history li > p {
    margin: .55rem 0 0;
    color: #435d68;
    font-size: .72rem;
    line-height: 1.55;
}

.admin-refund-recovery {
    display: grid;
    gap: .65rem;
    margin-top: .8rem;
    border-top: 1px solid #cedbdd;
    padding-top: .8rem;
}

.admin-refund-recovery .admin-panel__hint {
    margin: 0;
}

.admin-refund-recovery .admin-secondary-button {
    justify-self: start;
}

.admin-manual-payment summary {
    cursor: pointer;
}

.admin-manual-payment form {
    margin-top: 1rem;
}

.admin-conversation {
    margin-top: 1.25rem;
}

.admin-conversation__messages {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-conversation__messages li {
    max-width: 78%;
    border: 1px solid #dbe4e6;
    border-radius: .85rem;
    background: #f6f9f8;
    padding: .85rem 1rem;
}

.admin-conversation__messages li.is-staff {
    justify-self: end;
    background: #eaf5f7;
    border-color: #c5e1e8;
}

.admin-conversation__messages header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .35rem;
}

.admin-conversation__messages header span,
.admin-conversation__reply small {
    color: #64777e;
    font-size: .78rem;
}

.admin-conversation__messages p {
    margin: 0;
    white-space: normal;
}

.admin-conversation__reply {
    margin-top: 1.25rem;
    border-top: 1px solid #dbe4e6;
    padding-top: 1rem;
}

.admin-conversation__reply > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-stat-grid > * {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.dashboard-stat-grid span,
.dashboard-stat-grid small {
    color: #718790;
    font-size: 0.62rem;
}

.dashboard-stat-grid span {
    font-weight: 850;
    text-transform: uppercase;
}

.dashboard-stat-grid strong {
    font-size: 1.7rem;
}

.dashboard-contractor-tools {
    margin-bottom: 18px;
}

.dashboard-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.dashboard-tool-grid a {
    min-height: 132px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: linear-gradient(145deg, #fff, #f5faf9);
    text-decoration: none;
}

.dashboard-tool-grid a:hover,
.dashboard-tool-grid a:focus-visible {
    border-color: var(--water);
    outline: 3px solid rgba(7, 140, 196, 0.12);
}

.dashboard-tool-grid a span {
    color: #607985;
    font-size: 0.69rem;
    line-height: 1.5;
}

.dashboard-tool-grid a small {
    align-self: end;
    color: var(--water-deep);
    font-size: 0.62rem;
    font-weight: 900;
}

.dashboard-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-flow {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-flow li {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-flow li > span:first-child {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #342000;
    background: var(--signal);
    font-size: 0.62rem;
    font-weight: 900;
}

.dashboard-flow strong,
.dashboard-flow small {
    display: block;
}

.dashboard-flow strong {
    font-size: 0.72rem;
}

.dashboard-flow small {
    margin-top: 2px;
    color: #718790;
    font-size: 0.6rem;
}

.dashboard-flow a,
.dashboard-flow li > span:last-child {
    color: var(--water-deep);
    font-size: 0.62rem;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-provider-list {
    display: grid;
    gap: 10px;
}

.dashboard-provider-list article {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.dashboard-provider-list strong,
.dashboard-provider-list small {
    display: block;
}

.dashboard-provider-list strong {
    font-size: 0.7rem;
}

.dashboard-provider-list small,
.dashboard-provider-list p {
    color: #718790;
    font-size: 0.58rem;
}

.dashboard-provider-list p {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    line-height: 1.5;
}

.dashboard-placement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-placement h2 {
    margin: 4px 0;
}

.dashboard-placement p {
    margin: 0;
    color: #718790;
    font-size: 0.65rem;
}

.catalog-admin-layout {
    display: grid;
    grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.catalog-admin-list nav {
    display: grid;
    gap: 5px;
}

.catalog-admin-list nav a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 9px;
    color: var(--ink);
    text-decoration: none;
}

.catalog-admin-list nav a:hover,
.catalog-admin-list nav a.is-active {
    background: #edf5f3;
}

.catalog-admin-list strong,
.catalog-admin-list small {
    display: block;
}

.catalog-admin-list strong {
    font-size: 0.68rem;
}

.catalog-admin-list small,
.catalog-admin-list b {
    color: #718790;
    font-size: 0.56rem;
}

.catalog-admin-editor .admin-form-grid {
    padding-top: 4px;
}

.catalog-admin-roadmap {
    margin-top: 18px;
}

.catalog-admin-roadmap p {
    margin: 0;
    color: #617985;
    font-size: 0.7rem;
    line-height: 1.6;
}

@media (max-width: 1150px) {
    .builder-start__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .builder-layout {
        grid-template-columns: 1fr;
    }

    .builder-sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-panel-grid {
        grid-template-columns: 1fr;
    }

    .builder-result {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .builder-concept-note,
    .builder-source-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .builder-start__options,
    .builder-sidebar,
    .invoice-admin-grid,
    .catalog-admin-layout,
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-placement {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Tenant customer directory and unified profile */
.customer-search {
    display: grid;
    grid-template-columns: minmax(240px, 520px) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 12px;
    background: #f3f7f7;
}

.customer-search .admin-field {
    margin: 0;
}

.customer-search .admin-row-action {
    align-self: center;
    margin-bottom: 10px;
}

.customer-directory-table a,
.admin-invoice-card h2 a,
.admin-table td strong a {
    color: var(--water-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

.admin-pagination span {
    color: #617985;
    font-size: .68rem;
    font-weight: 800;
}

.customer-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    align-items: start;
    gap: 22px;
}

.customer-profile-layout--create {
    grid-template-columns: minmax(0, 820px);
}

.customer-profile-summary,
.customer-history-stack {
    display: grid;
    gap: 22px;
}

.customer-profile-form {
    display: grid;
    gap: 22px;
}

.customer-profile-form__actions {
    display: flex;
    justify-content: flex-end;
}

.customer-snapshot-notice {
    margin-top: 22px;
    padding: 14px 16px;
    border-left: 4px solid var(--water);
    border-radius: 8px;
    background: var(--water-light);
}

.customer-snapshot-notice strong,
.customer-snapshot-notice p {
    display: block;
}

.customer-snapshot-notice strong {
    font-size: .72rem;
}

.customer-snapshot-notice p {
    margin: 5px 0 0;
    color: #526d78;
    font-size: .66rem;
    line-height: 1.55;
}

.customer-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.customer-summary-stats div {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbfb;
}

.customer-summary-stats dt {
    color: #718790;
    font-size: .58rem;
    font-weight: 850;
    text-transform: uppercase;
}

.customer-summary-stats dd {
    margin: 4px 0 0;
    color: var(--water-deep);
    font-size: 1.3rem;
    font-weight: 900;
}

.customer-profile-summary h2,
.customer-profile-summary h3 {
    margin: 5px 0 12px;
}

.customer-support-reference p {
    margin: 7px 0 14px;
    color: #617985;
    font-size: .64rem;
    line-height: 1.55;
}

.customer-support-reference textarea {
    min-height: 92px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .58rem;
    line-height: 1.55;
}

.customer-profile-summary h2 {
    font-size: 1.05rem;
}

.customer-profile-summary h3 {
    margin-top: 22px;
    font-size: .8rem;
}

.customer-address-list,
.customer-record-list,
.customer-version-history ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-address-list li,
.customer-record-list li,
.customer-version-history li {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfdfd;
}

.customer-address-list strong,
.customer-address-list small,
.customer-record-list small,
.customer-version-history span {
    display: block;
}

.customer-address-list strong,
.customer-record-list strong,
.customer-version-history strong {
    font-size: .68rem;
}

.customer-address-list small,
.customer-record-list small,
.customer-version-history span {
    margin-top: 4px;
    color: #718790;
    font-size: .58rem;
    line-height: 1.45;
}

.customer-history-stack {
    margin-top: 22px;
}

.customer-version-history {
    margin-top: 18px;
}

.customer-version-history summary {
    color: var(--water-deep);
    font-size: .66rem;
    font-weight: 850;
    cursor: pointer;
}

.customer-version-history ul {
    margin-top: 12px;
}

.customer-version-history li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.customer-billing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.customer-billing-grid h3 {
    margin: 0 0 10px;
    font-size: .82rem;
}

.customer-record-list li > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.customer-record-list li > div span {
    color: #526d78;
    font-size: .58rem;
    font-weight: 850;
}

.customer-record-list .admin-row-action {
    display: inline-block;
    margin-top: 8px;
}

@media (max-width: 980px) {
    .customer-profile-layout {
        grid-template-columns: 1fr;
    }

    .customer-profile-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .customer-search,
    .customer-profile-summary,
    .customer-billing-grid {
        grid-template-columns: 1fr;
    }

    .customer-search {
        align-items: stretch;
    }

    .customer-search .admin-row-action {
        margin: 0;
    }

    .customer-profile-form__actions,
    .customer-profile-form__actions .admin-primary-button {
        width: 100%;
    }

    .customer-version-history li,
    .customer-profile-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-directory-panel .admin-table-wrap {
        overflow: visible;
    }

    .customer-directory-table,
    .customer-directory-table tbody,
    .customer-directory-table tr,
    .customer-directory-table td {
        display: block;
        width: 100%;
    }

    .customer-directory-table thead {
        display: none;
    }

    .customer-directory-table tbody {
        display: grid;
        gap: 14px;
    }

    .customer-directory-table tr {
        padding: 8px 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fbfdfd;
        box-shadow: 0 8px 22px rgba(16, 52, 68, .05);
    }

    .customer-directory-table td {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
        padding: 11px 0;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .customer-directory-table td::before {
        content: attr(data-label);
        color: #718790;
        font-size: .56rem;
        font-weight: 850;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .customer-directory-table td:last-child {
        border-bottom: 0;
        text-align: left;
    }

    .customer-directory-table td:last-child .admin-row-action {
        width: 100%;
    }
}

/* Individual-account MFA */
.mfa-form-panel {
    max-width: 760px;
}

.mfa-form-panel form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.mfa-form-panel .admin-field {
    max-width: 460px;
}

.mfa-setup-steps {
    display: grid;
    gap: 24px;
    margin: 22px 0 0;
    padding-left: 22px;
}

.mfa-setup-steps li {
    padding-left: 8px;
}

.mfa-setup-steps p,
.mfa-recovery-panel > p,
.mfa-form-panel > p {
    color: #617985;
    line-height: 1.6;
}

.mfa-secret {
    display: block;
    max-width: 100%;
    margin: 12px 0 7px;
    padding: 15px;
    overflow-wrap: anywhere;
    border: 1px solid #b8d4df;
    border-radius: 10px;
    background: #edf8fb;
    color: #102b3a;
    font: 700 0.92rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.08em;
}

.mfa-recovery-panel {
    margin-bottom: 22px;
    border: 2px solid #2f6e4f;
}

.mfa-code-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
    max-width: 600px;
    margin: 20px 0;
    padding-left: 28px;
}

.mfa-code-list code {
    color: #102b3a;
    font: 700 0.86rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.04em;
}

.mfa-status-list {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
}

.mfa-status-list div {
    display: grid;
    grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr);
    gap: 18px;
    padding: 12px 0;
    border-top: 1px solid #dbe8eb;
}

.mfa-status-list dt {
    color: #617985;
}

.mfa-status-list dd {
    margin: 0;
    color: #102b3a;
    font-weight: 700;
}

.mfa-confirm {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    max-width: 620px;
    color: #536d78;
    font-size: 0.72rem;
    line-height: 1.5;
}

.mfa-confirm input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.mfa-danger-panel {
    margin-top: 22px;
    border-color: #d6a9a4;
}

.admin-danger-button {
    min-height: 44px;
    width: fit-content;
    padding: 0 18px;
    border: 1px solid #a83f35;
    border-radius: 9px;
    background: #fff;
    color: #8d3028;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-danger-button:hover,
.admin-danger-button:focus-visible {
    background: #fff1ef;
}

.mfa-cancel-form {
    margin-top: 18px;
    text-align: center;
}

.mfa-cancel-form .admin-back-link {
    border: 0;
    background: transparent;
    cursor: pointer;
}

@media (max-width: 620px) {
    .admin-detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mfa-code-list {
        grid-template-columns: 1fr;
    }

    .mfa-status-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media print {
    .admin-sidebar,
    .admin-topbar,
    .admin-page-heading,
    .mfa-recovery-panel ~ *,
    .mfa-recovery-panel .admin-panel__heading span {
        display: none !important;
    }

    .admin-workspace,
    .admin-main,
    .mfa-recovery-panel {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
}

/* Managed pages and rich-text authoring */

.content-page-list {
    display: grid;
}

.content-page-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 24px 4px;
    border-top: 1px solid #dce7e6;
}

.content-page-list article:first-child {
    border-top: 0;
}

.content-page-list h2 {
    margin: 4px 0;
    font-size: 1.08rem;
}

.content-page-list p {
    max-width: 760px;
    margin: 0;
    color: #617985;
    font-size: 0.72rem;
}

.content-page-list small {
    color: #7b9098;
    font-size: 0.6rem;
}

.content-page-list article > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.content-page-list article > div:last-child > a:not(.admin-secondary-button) {
    color: var(--water-deep);
    font-size: 0.66rem;
    font-weight: 850;
}

.content-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.31fr);
    gap: 20px;
    align-items: start;
}

.content-editor-form {
    min-width: 0;
}

.content-rich-field {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.content-rich-field > span {
    font-size: 0.72rem;
    font-weight: 850;
}

.content-rich-field > small {
    color: #718790;
    font-size: 0.63rem;
}

.content-slug-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #c9d7d9;
    border-radius: 10px;
    background: #f4f8f7;
}

.content-slug-input b {
    padding-left: 13px;
    color: #748992;
    font-size: 0.64rem;
    font-weight: 700;
}

.content-slug-input input {
    border: 0;
    border-radius: 0;
}

.content-slug-input:focus-within {
    border-color: var(--water);
    box-shadow: 0 0 0 4px rgba(7, 140, 196, 0.11);
}

.content-slug-input:focus-within input {
    box-shadow: none;
}

.rich-text-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.content-rich-field .ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 9px 10px;
    border: 1px solid #c9d7d9;
    border-radius: 12px 12px 0 0;
    background: #f4f8f7;
    font-family: var(--font);
}

.content-rich-field .ql-container.ql-snow {
    border: 1px solid #c9d7d9;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
    font-family: var(--font);
    font-size: 0.86rem;
}

.content-rich-field .ql-editor {
    min-height: 410px;
    padding: 24px 26px;
    line-height: 1.7;
}

.content-rich-field .ql-editor h2,
.content-rich-field .ql-editor h3,
.content-rich-field .ql-editor h4 {
    margin: 1.2em 0 0.45em;
    color: var(--ink);
    line-height: 1.2;
}

.content-rich-field .ql-editor p {
    margin: 0 0 0.9em;
}

.content-rich-field .ql-container:focus-within {
    border-color: var(--water);
    box-shadow: 0 0 0 4px rgba(7, 140, 196, 0.11);
}

.content-rich-field .rich-text-editor.is-invalid {
    border-color: #a83828;
    box-shadow: 0 0 0 4px rgba(168, 56, 40, 0.1);
}

.rich-text-status {
    color: #923527;
    font-size: 0.65rem;
    font-weight: 800;
}

.builder-message .admin-field {
    margin-top: 18px;
}

.builder-message .ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 2px;
    padding: 8px 9px;
    border: 1px solid #c9d7d9;
    border-radius: 10px 10px 0 0;
    background: #f4f8f7;
    font-family: var(--font);
}

.builder-message .ql-container.ql-snow {
    border: 1px solid #c9d7d9;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #fff;
    font-family: var(--font);
    font-size: 0.78rem;
}

.builder-message .ql-editor {
    min-height: 220px;
    padding: 18px;
    line-height: 1.65;
}

.builder-message .admin-field:last-child .ql-editor {
    min-height: 150px;
}

.builder-message .ql-container:focus-within {
    border-color: var(--water);
    box-shadow: 0 0 0 4px rgba(7, 140, 196, 0.11);
}

.builder-message .rich-text-editor.is-invalid {
    border-color: #a83828;
    box-shadow: 0 0 0 4px rgba(168, 56, 40, 0.1);
}

.content-seo-fields {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #dce7e6;
}

.content-seo-fields summary {
    color: var(--water-deep);
    font-size: 0.7rem;
    font-weight: 850;
    cursor: pointer;
}

.content-seo-fields[open] summary {
    margin-bottom: 18px;
}

.content-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #dce7e6;
}

.content-editor-actions p {
    max-width: 600px;
    margin: 0;
    color: #718790;
    font-size: 0.65rem;
}

.content-editor-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.content-editor-sidebar h2 {
    margin: 5px 0 8px;
}

.content-editor-sidebar p,
.content-editor-sidebar li {
    color: #617985;
    font-size: 0.68rem;
    line-height: 1.55;
}

.content-editor-sidebar ul {
    display: grid;
    gap: 7px;
    margin: 16px 0 0;
    padding-left: 18px;
}

.content-publish-panel form {
    display: grid;
    gap: 16px;
}

.admin-confirm-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: start;
    color: #536d78;
    font-size: 0.65rem;
}

.admin-confirm-check input {
    margin-top: 3px;
}

@media (max-width: 1040px) {
    .content-editor-layout {
        grid-template-columns: 1fr;
    }

    .content-editor-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .content-page-list article,
    .content-editor-sidebar {
        grid-template-columns: 1fr;
    }

    .content-page-list article > div:last-child {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .content-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .content-rich-field .ql-editor {
        min-height: 330px;
        padding: 18px;
    }
}

/* Field operations: calendar, dispatch, work orders, and checklists. */
.field-schedule-filter form {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.field-schedule-filter .admin-field {
    min-width: 180px;
    margin: 0;
}

.field-schedule-filter a {
    padding: 11px 4px;
    color: #075d8c;
    font-size: 0.7rem;
    font-weight: 850;
}

.field-schedule-filter small {
    margin-left: auto;
    color: #718790;
    font-size: 0.65rem;
}

.field-operations-grid,
.work-order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.field-calendar,
.field-calendar__day > div,
.work-order-grid > div,
.work-order-grid > aside {
    display: grid;
    gap: 18px;
}

.field-calendar__day {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
}

.field-calendar__day > header {
    display: flex;
    align-items: center;
    flex-direction: column;
    align-self: start;
    gap: 2px;
    padding: 14px 8px;
    border-radius: 14px;
    color: #fff;
    background: #102b3a;
}

.field-calendar__day > header span {
    color: #9fbdc8;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field-visit-card {
    display: grid;
    grid-template-columns: 96px auto 1fr;
    gap: 6px 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid #dae6e7;
    border-radius: 14px;
    color: #102b3a;
    background: #fff;
    text-decoration: none;
}

.field-visit-card:hover,
.field-visit-card:focus-visible {
    border-color: #078cc4;
    box-shadow: 0 12px 28px rgba(16, 43, 58, 0.09);
}

.field-visit-card time {
    color: #075d8c;
    font-size: 0.68rem;
    font-weight: 900;
}

.field-visit-card > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-visit-card > small {
    grid-column: 3;
    color: #657d86;
    font-size: 0.62rem;
}

.field-awaiting__list,
.work-order-checklist,
.work-order-events {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.field-awaiting__list li {
    display: grid;
    gap: 6px;
    padding: 17px;
    border-radius: 14px;
    background: #f4f8f7;
}

.field-awaiting__list li > span {
    color: #0780b1;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field-awaiting__list li > strong {
    font-size: 0.76rem;
}

.field-awaiting__list li > small {
    color: #687e87;
    font-size: 0.62rem;
}

.field-awaiting__list .admin-secondary-button {
    justify-self: start;
    margin-top: 6px;
}

.admin-status--scheduled,
.admin-status--dispatched {
    color: #075d8c;
    background: #ddf3fa;
}

.admin-status--en-route,
.admin-status--on-site,
.admin-status--in-progress,
.admin-status--completed {
    color: #246246;
    background: #e1f3e9;
}

.admin-status--canceled {
    color: #873434;
    background: #fce8e8;
}

.work-order-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.work-order-meta div,
.work-order-appointment > dl div {
    padding: 16px;
    border-radius: 13px;
    background: #f4f8f7;
}

.work-order-meta dt,
.work-order-appointment dt {
    margin-bottom: 5px;
    color: #718790;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-order-meta dd,
.work-order-appointment dd {
    margin: 0;
    color: #233f4c;
    font-size: 0.69rem;
    font-weight: 750;
    line-height: 1.5;
}

.work-order-scope {
    margin-top: 20px;
    padding: 20px;
    border-left: 4px solid #078cc4;
    border-radius: 0 14px 14px 0;
    color: #405c67;
    background: #eef8fb;
    font-size: 0.68rem;
    line-height: 1.6;
}

.work-order-scope > span {
    display: block;
    margin-bottom: 10px;
    color: #075d8c;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-order-appointment {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #dce7e8;
    border-radius: 17px;
}

.work-order-appointment > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.work-order-appointment > header > div > span {
    color: #738891;
    font-size: 0.6rem;
    font-weight: 850;
}

.work-order-appointment h3 {
    margin: 5px 0 0;
    color: #102b3a;
    font-size: 1.15rem;
}

.work-order-appointment > dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.work-order-note {
    margin-top: 14px;
    padding: 14px;
    border-radius: 11px;
    color: #425d67;
    background: #f2f4f4;
    font-size: 0.65rem;
}

.work-order-note--public {
    color: #1f5540;
    background: #e9f5ee;
}

.work-order-note p {
    margin: 5px 0 0;
    line-height: 1.55;
}

.work-order-editor {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #dbe6e7;
    border-radius: 13px;
    background: #fbfdfd;
}

.work-order-editor--new {
    border-style: dashed;
}

.work-order-editor > summary {
    color: #075d8c;
    font-size: 0.68rem;
    font-weight: 900;
    cursor: pointer;
}

.work-order-editor[open] > summary {
    margin-bottom: 18px;
}

.work-order-state-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e0e9e9;
}

.work-order-state-actions > strong {
    margin-right: auto;
    color: #536c77;
    font-size: 0.63rem;
}

.work-order-state-actions form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.work-order-state-actions .admin-confirm-check {
    max-width: 330px;
}

.work-order-checklist > li {
    padding: 15px;
    border: 1px solid #dce7e8;
    border-radius: 13px;
}

.work-order-checklist > li.is-completed {
    border-color: #b9ddc8;
    background: #edf8f1;
}

.work-order-checklist > li.is-not-applicable {
    background: #f2f4f4;
}

.work-order-checklist li > div {
    display: grid;
    gap: 5px;
}

.work-order-checklist li > div > span,
.work-order-checklist li > div > small {
    color: #718790;
    font-size: 0.58rem;
    font-weight: 850;
}

.work-order-checklist li > div > strong {
    font-size: 0.69rem;
}

.work-order-checklist li > div > p {
    margin: 2px 0 0;
    color: #5c747e;
    font-size: 0.62rem;
}

.work-order-checklist form {
    display: grid;
    gap: 10px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #e3eaea;
}

.work-order-events li {
    display: grid;
    gap: 4px;
    padding-left: 14px;
    border-left: 3px solid #9fcfdf;
}

.work-order-events strong {
    font-size: 0.67rem;
}

.work-order-events span {
    color: #718790;
    font-size: 0.58rem;
}

@media (max-width: 1100px) {
    .field-operations-grid,
    .work-order-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .field-schedule-filter form {
        align-items: stretch;
        flex-direction: column;
    }

    .field-schedule-filter small {
        margin-left: 0;
    }

    .field-calendar__day {
        grid-template-columns: 1fr;
    }

    .field-calendar__day > header {
        align-items: baseline;
        flex-direction: row;
        justify-content: space-between;
    }

    .field-visit-card {
        grid-template-columns: 1fr auto;
    }

    .field-visit-card > strong,
    .field-visit-card > small {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .work-order-meta,
    .work-order-appointment > dl {
        grid-template-columns: 1fr;
    }
}

/* Inventory catalog, scanner, labels, and private item media. */

.inventory-directory-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 22px;
}

.inventory-directory-search .admin-field {
    margin: 0;
}

.inventory-directory-search .admin-row-action {
    margin-bottom: 12px;
}

.inventory-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.inventory-directory-card {
    display: grid;
    gap: 15px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #d8e5e6;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(7, 140, 196, .045), transparent 44%),
        #fff;
}

.inventory-directory-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.inventory-directory-card header > div {
    min-width: 0;
}

.inventory-directory-card header span:not(.inventory-reorder-pill) {
    color: #087dab;
    font: 850 .6rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .05em;
}

.inventory-directory-card h3 {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: #102b3a;
    font-size: .92rem;
}

.inventory-directory-card > p {
    min-height: 2.8em;
    margin: 0;
    color: #627984;
    font-size: .65rem;
    line-height: 1.45;
}

.inventory-directory-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.inventory-directory-card dl div {
    padding: 11px;
    border-radius: 10px;
    background: #f3f8f8;
}

.inventory-directory-card dt,
.inventory-stock-summary dt,
.inventory-detail-list dt {
    margin-bottom: 4px;
    color: #758a92;
    font-size: .53rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.inventory-directory-card dd,
.inventory-stock-summary dd,
.inventory-detail-list dd {
    margin: 0;
    color: #173644;
    font-size: .67rem;
    font-weight: 800;
}

.inventory-directory-card .admin-secondary-button {
    align-self: end;
    justify-self: stretch;
}

.inventory-reorder-pill {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    color: #8c4b12;
    background: #fff0d8;
    font-size: .54rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.inventory-scan-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.inventory-scan-form .admin-field {
    margin: 0;
}

.inventory-scan-form input {
    min-height: 56px;
    font: 750 1rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .02em;
}

.inventory-camera-controls {
    display: flex;
    align-items: end;
    gap: 11px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #dfe9e9;
}

.inventory-camera-controls .admin-field {
    min-width: 210px;
    margin: 0;
}

.inventory-scan-status {
    flex: 1 1 320px;
    margin: 0;
    color: #637b85;
    font-size: .65rem;
    line-height: 1.5;
}

.inventory-scan-status.is-error {
    color: #923527;
    font-weight: 800;
}

.inventory-camera-stage {
    display: grid;
    place-items: center;
    min-height: 220px;
    margin-top: 18px;
    overflow: hidden;
    border: 1px dashed #b8d4dd;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(7, 140, 196, .08), transparent),
        #0f2a38;
}

.inventory-camera-stage video {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.inventory-camera-stage video:not([src]) {
    min-height: 220px;
}

.inventory-scan-help {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.inventory-scan-help article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 18px;
    border: 1px solid #dae6e7;
    border-radius: 14px;
    background: #fff;
}

.inventory-scan-help article > span {
    color: #078cc4;
    font-size: .65rem;
    font-weight: 900;
}

.inventory-scan-help strong {
    color: #173644;
    font-size: .7rem;
}

.inventory-scan-help p {
    margin: 5px 0 0;
    color: #687e87;
    font-size: .61rem;
    line-height: 1.5;
}

.inventory-item-hero {
    display: grid;
    grid-template-columns: minmax(250px, .78fr) minmax(0, 1.6fr);
    gap: 0;
    min-height: 330px;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #d4e3e4;
    border-radius: 20px;
    background: #102b3a;
    box-shadow: 0 20px 48px rgba(16, 43, 58, .11);
}

.inventory-item-hero__image {
    min-height: 330px;
    background: #e9f3f4;
}

.inventory-item-hero__image > img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.inventory-media-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    height: 100%;
    min-height: 330px;
    color: #5f7d88;
    background:
        radial-gradient(circle at 25% 25%, rgba(7, 140, 196, .2), transparent 32%),
        linear-gradient(145deg, #f1f8f8, #dcebed);
}

.inventory-media-placeholder span {
    font-size: 3.4rem;
    font-weight: 200;
}

.inventory-media-placeholder small {
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.inventory-item-hero__content {
    display: grid;
    align-content: center;
    padding: clamp(28px, 5vw, 58px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(7, 140, 196, .34), transparent 38%),
        #102b3a;
}

.inventory-item-hero__eyebrow {
    display: flex;
    gap: 9px;
    align-items: center;
}

.inventory-item-hero h2 {
    max-width: 760px;
    margin: 16px 0 9px;
    color: #fff;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    line-height: 1.05;
}

.inventory-item-hero__content > p {
    max-width: 720px;
    margin: 0;
    color: #c5d9df;
    font-size: .72rem;
    line-height: 1.65;
}

.inventory-stock-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 24px 0 0;
}

.inventory-stock-summary div {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
}

.inventory-stock-summary dt {
    color: #8fb4c1;
}

.inventory-stock-summary dd {
    color: #fff;
    font-size: .76rem;
}

.inventory-item-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(310px, .72fr);
    gap: 22px;
    align-items: start;
}

.inventory-item-layout > div,
.inventory-item-layout > aside {
    display: grid;
    gap: 22px;
}

.inventory-item-layout > section,
.inventory-item-layout .admin-panel {
    margin: 0;
}

.inventory-item-layout > aside {
    position: sticky;
    top: 92px;
}

.inventory-detail-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.inventory-detail-list div {
    min-width: 0;
    padding: 14px;
    border-radius: 12px;
    background: #f3f8f8;
}

.inventory-detail-list dd {
    overflow-wrap: anywhere;
}

.inventory-identifier-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.inventory-identifier-list > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 13px;
    border: 1px solid #dce7e8;
    border-radius: 11px;
    background: #fbfdfd;
}

.inventory-identifier-list > li.is-retired {
    opacity: .58;
    background: #f1f3f3;
}

.inventory-identifier-list li > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.inventory-identifier-list li > div > span,
.inventory-identifier-list li > small {
    color: #718790;
    font-size: .53rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.inventory-identifier-list code {
    overflow-wrap: anywhere;
    color: #143745;
    font: 750 .63rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.inventory-identifier-list details {
    grid-column: 1 / -1;
}

.inventory-identifier-list summary,
.inventory-media-card summary,
.inventory-photo-source > summary {
    color: #075d8c;
    font-size: .61rem;
    font-weight: 850;
    cursor: pointer;
}

.inventory-identifier-list details form,
.inventory-identifier-add {
    display: grid;
    gap: 11px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e9e9;
}

.inventory-identifier-add {
    margin-top: 18px;
}

.inventory-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.inventory-media-card {
    overflow: hidden;
    border: 1px solid #d8e5e6;
    border-radius: 15px;
    background: #fff;
}

.inventory-media-card.is-primary {
    border-color: #078cc4;
    box-shadow: 0 0 0 3px rgba(7, 140, 196, .09);
}

.inventory-media-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #edf4f5;
}

.inventory-media-card > div,
.inventory-media-card > details {
    margin: 0 14px;
}

.inventory-media-card > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 0;
}

.inventory-media-card > div span {
    color: #17404f;
    font-size: .63rem;
    font-weight: 850;
}

.inventory-media-card > div small {
    color: #758a92;
    font-size: .54rem;
}

.inventory-media-card > details {
    padding: 11px 0;
    border-top: 1px solid #e2eaea;
}

.inventory-media-card details form {
    display: grid;
    gap: 11px;
    margin-top: 12px;
}

.inventory-media-card .inventory-media-retire {
    margin-bottom: 5px;
}

.inventory-photo-panel > .admin-panel__hint {
    display: block;
    margin: -4px 0 16px;
    line-height: 1.55;
}

.inventory-photo-source {
    padding: 14px 0;
    border-top: 1px solid #dfe9e9;
}

.inventory-photo-source form {
    display: grid;
    gap: 13px;
    margin-top: 15px;
}

.admin-file-field {
    display: grid;
    gap: 8px;
    padding: 15px;
    border: 1px dashed #91bdcb;
    border-radius: 12px;
    color: #17404f;
    background: #eff8fa;
}

.admin-file-field > span {
    font-size: .66rem;
    font-weight: 900;
}

.admin-file-field input {
    max-width: 100%;
    font-size: .63rem;
}

.admin-file-field small {
    color: #647e88;
    font-size: .56rem;
    line-height: 1.45;
}

.inventory-photo-preview {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 12px;
    background: #102b3a;
}

.inventory-photo-preview[hidden] {
    display: none;
}

.inventory-photo-selection {
    margin: -5px 0 0;
    color: #53707b;
    font-size: .58rem;
    font-weight: 750;
}

.inventory-label-sheet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 3.75in));
    gap: .18in;
    justify-content: center;
}

.inventory-label {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 3.75in;
    height: 2.25in;
    overflow: hidden;
    padding: .15in;
    border: 1px dashed #89a1aa;
    border-radius: .08in;
    color: #071f2b;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
}

.inventory-label header {
    display: flex;
    justify-content: space-between;
    gap: .12in;
}

.inventory-label header strong {
    max-width: 2.55in;
    overflow: hidden;
    font-size: .14in;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-label header span {
    font: 800 .1in/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.inventory-label__codes {
    display: grid;
    grid-template-columns: 1fr .85in;
    gap: .1in;
    align-items: center;
    min-height: 0;
}

.inventory-label__codes > div {
    display: grid;
    justify-items: center;
    min-width: 0;
}

.inventory-label__codes > div img {
    width: 100%;
    height: .62in;
    object-fit: fill;
}

.inventory-label__codes > div code {
    max-width: 100%;
    overflow: hidden;
    font: 750 .09in/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-label__codes > img {
    width: .82in;
    height: .82in;
}

.inventory-label footer {
    display: flex;
    justify-content: space-between;
    gap: .1in;
    font-size: .08in;
}

.inventory-label footer small {
    color: #526d78;
}

@media (max-width: 1180px) {
    .inventory-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-item-layout {
        grid-template-columns: 1fr;
    }

    .inventory-item-layout > aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .inventory-directory-search,
    .inventory-scan-form,
    .inventory-item-hero {
        grid-template-columns: 1fr;
    }

    .inventory-item-hero__image,
    .inventory-item-hero__image > img,
    .inventory-media-placeholder {
        min-height: 240px;
        max-height: 340px;
    }

    .inventory-stock-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-scan-help {
        grid-template-columns: 1fr;
    }

    .inventory-label-sheet {
        grid-template-columns: minmax(0, 3.75in);
    }
}

@media (max-width: 640px) {
    .inventory-directory-grid,
    .inventory-item-layout > aside,
    .inventory-detail-list,
    .inventory-media-grid {
        grid-template-columns: 1fr;
    }

    .inventory-directory-search .admin-primary-button,
    .inventory-scan-form .admin-primary-button,
    .inventory-camera-controls .admin-secondary-button {
        width: 100%;
    }

    .inventory-camera-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .inventory-label-sheet {
        display: block;
        overflow-x: auto;
    }

    .inventory-label {
        margin: 0 auto 12px;
        transform-origin: top center;
    }
}

@media print {
    @page {
        margin: .25in;
    }

    body.admin-page {
        background: #fff;
    }

    .inventory-label-controls {
        display: none !important;
    }

    .inventory-label-sheet {
        display: grid;
        grid-template-columns: repeat(2, 3.75in);
        gap: .12in;
        justify-content: center;
    }

    .inventory-label {
        border-color: #b7b7b7;
        box-shadow: none;
    }
}

/* Tenant task boards: an operations overlay, not a workflow authority. */

.workboard-filter-panel > form,
.workboard-create-panel > form,
.workboard-setup-panel details form,
.work-task-details details form,
.work-task-checklist-panel > form,
.work-task-links details form {
    display: grid;
    gap: 14px;
}

.workboard-filter-panel form > .admin-page-heading__actions {
    justify-content: flex-start;
    margin-top: 14px;
}

.workboard-setup-panel > .admin-page-heading__actions {
    justify-content: flex-start;
    margin: 15px 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.workboard-setup-panel > details {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid #dce7e8;
    border-radius: 13px;
    background: #fbfdfd;
}

.workboard-setup-panel > details > summary,
.work-task-details details > summary,
.work-task-links details > summary,
.admin-panel > details > summary {
    color: #075d8c;
    font-size: .67rem;
    font-weight: 900;
    cursor: pointer;
}

.workboard-setup-panel details form + form {
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid #dde8e8;
}

.workboard-column-manager > p,
.workboard-column-retire > p,
.workboard-board-retire > p {
    color: #4d626a;
    line-height: 1.55;
}

.workboard-column-admin-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.workboard-column-admin-card {
    min-width: 0;
    padding: 15px;
    border: 1px solid #d9e6e8;
    border-radius: 13px;
    background: #fff;
}

.workboard-column-admin-card > .admin-panel__heading {
    margin-bottom: 13px;
}

.workboard-column-admin-card > form {
    display: grid;
    gap: 12px;
}

.workboard-column-retire,
.workboard-board-retire {
    margin-top: 15px;
    padding: 13px;
    border: 1px solid #edc9c2;
    border-radius: 11px;
    background: #fff9f7;
}

.workboard-column-retire > summary,
.workboard-board-retire > summary {
    color: #8b2f24;
    font-size: .7rem;
    font-weight: 900;
    cursor: pointer;
}

.workboard-columns {
    display: grid;
    grid-auto-columns: minmax(290px, 1fr);
    grid-auto-flow: column;
    gap: 15px;
    align-items: start;
    overflow-x: auto;
    padding: 3px 3px 14px;
    scroll-snap-type: x proximity;
}

.workboard-column {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d7e4e5;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(7, 140, 196, .055), transparent 100px),
        #f4f8f8;
    scroll-snap-align: start;
}

.workboard-column > .admin-panel__heading {
    margin-bottom: 13px;
    padding: 2px 2px 11px;
    border-bottom: 1px solid #d6e3e4;
}

.workboard-column h3 {
    margin: 0;
    color: #153845;
    font-size: .78rem;
}

.workboard-card-list {
    gap: 10px;
}

.workboard-card-list > li.workboard-card {
    position: relative;
    display: grid;
    gap: 6px;
    overflow: hidden;
    padding: 15px 14px 14px 17px;
    border: 1px solid #d8e3e4;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(16, 43, 58, .055);
}

.workboard-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: #89aab7;
}

.workboard-card--low::before {
    background: #7da591;
}

.workboard-card--normal::before {
    background: #078cc4;
}

.workboard-card--high::before {
    background: #dc8a28;
}

.workboard-card--urgent::before {
    background: #bd4438;
}

.workboard-card.is-completed {
    opacity: .72;
    background: #edf5f1;
}

.workboard-card > span {
    color: #6d858e;
}

.workboard-card > strong a {
    color: #102b3a;
    text-decoration: none;
}

.workboard-card > strong a:hover,
.workboard-card > strong a:focus-visible {
    color: #075d8c;
    text-decoration: underline;
}

.workboard-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
    margin-top: 7px;
}

.workboard-card-actions form,
.workboard-card-actions button {
    width: 100%;
}

.workboard-card-actions .admin-secondary-button {
    min-height: 34px;
    padding: 0 8px;
    font-size: .55rem;
}

.workboard-card-actions form:last-child {
    grid-column: 1 / -1;
}

.work-task-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.work-task-meta div {
    padding: 14px;
    border-radius: 12px;
    background: #f3f8f8;
}

.work-task-meta dt {
    margin-bottom: 5px;
    color: #718790;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.work-task-meta dd {
    margin: 0;
    color: #173644;
    font-size: .66rem;
    font-weight: 750;
    line-height: 1.5;
}

.work-task-details > p {
    color: #4f6974;
    font-size: .7rem;
    line-height: 1.65;
}

.work-task-details > details,
.work-task-details > .work-task-actions,
.work-task-links > details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dfe8e8;
}

.work-task-actions {
    justify-content: flex-start;
}

.work-task-actions form {
    display: inline-flex;
}

.work-task-checklist > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
}

.work-task-checklist > li > span,
.work-task-checklist > li > strong,
.work-task-checklist > li > small {
    grid-column: 1;
}

.work-task-checklist > li > form {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
}

.work-task-links > ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.work-task-links > ul li {
    padding: 12px 14px;
    border: 1px solid #dde7e8;
    border-radius: 11px;
    color: #627984;
    background: #fbfdfd;
    font-size: .65rem;
}

.work-task-links > ul a {
    color: #075d8c;
    font-weight: 850;
}

@media (min-width: 1480px) {
    .workboard-columns {
        grid-auto-columns: minmax(310px, 1fr);
    }
}

@media (max-width: 760px) {
    .workboard-column-admin-list {
        grid-template-columns: 1fr;
    }

    .workboard-columns {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: 1fr;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .work-task-meta,
    .work-task-checklist > li {
        grid-template-columns: 1fr;
    }

    .work-task-checklist > li > form {
        grid-column: 1;
        grid-row: auto;
    }

    .work-task-actions,
    .work-task-actions form,
    .work-task-actions button {
        width: 100%;
    }
}

/* ---------------------------------------------------------------------------
   Platform support write session banner.

   Deliberately loud, deliberately sticky, and deliberately rendered by the
   shared layout rather than by any page: it is the human-readable half of
   "a request inside write mode is distinguishable from a genuine tenant
   login". It must not be possible to scroll it out of view while changing a
   company's records.
   --------------------------------------------------------------------------- */
.admin-support-banner {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    gap: 0.35rem;
    margin: 0 0 1.5rem;
    padding: 0.85rem 1.1rem;
    border: 2px solid #b45309;
    border-left-width: 6px;
    border-radius: 0.5rem;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 0.9rem;
    line-height: 1.45;
}

.admin-support-banner strong {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}

.admin-support-banner p {
    margin: 0;
}

.admin-support-banner a {
    color: inherit;
    text-decoration: underline;
}

.admin-support-banner button {
    justify-self: start;
    margin-top: 0.25rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid #7c2d12;
    border-radius: 0.35rem;
    background: #7c2d12;
    color: #fff7ed;
    font: inherit;
    cursor: pointer;
}

/* Impersonation reads DIFFERENTLY from platform-administrator mode, and the
   difference is functional rather than decorative. The two states an operator is
   most likely to lose track of are "I am here as myself" and "I am currently
   wearing one of this company's employees' names", and losing track is exactly
   how somebody acts under the wrong identity. Colour alone would not be enough -
   the banner also states the mode in words and names the person - but a distinct
   colour is what makes the change register peripherally when the operator did
   not go looking for it. */
.admin-support-banner--impersonating {
    border-color: #9f1239;
    background: #fff1f2;
    color: #881337;
}

.admin-support-banner--impersonating button {
    border-color: #881337;
    background: #881337;
    color: #fff1f2;
}

.admin-support-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.admin-support-banner__actions button {
    margin-top: 0;
}

.admin-support-touched {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
}
