@font-face {
    font-family: Inter;
    src: url("/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root {
    font-family: Inter,"Segoe UI",Arial,sans-serif;
    color: #233b32;
    background: #f5f6f2;
    --ink: #153e38;
    --teal: #226950;
    --line: #e2e7de;
    --muted: #65735e;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
a {
    color: var(--teal);
    text-decoration: none;
}
button,input,select,textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
button: disabled {;
    opacity: .55;
    cursor: wait;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline: 3px solid #9cc89b;
    outline-offset: 3px;
}
h1,h2,h3,p {
    margin-top: 0;
}
h1 {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 10px;
    font-weight: 650;
}
h2 {
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.3px;
}
h3 {
    font-size: 15px;
}
h1:focus {
    outline: none;
}
.muted {
    color: var(--muted);
}
.eyebrow {
    display: block;
    font-size: 9px;
    letter-spacing: 1.8px;
    font-weight: 750;
    color: #63765a;
    margin-bottom: 10px;
}
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}
.button {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border-radius: 9px;
    min-height: 43px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.primary {
    background: var(--ink);
    color: #fff;
}
.primary:hover {
    background: #245c4b;
}
.secondary {
    background: white;
    border-color: #dce4d6;
    color: var(--ink);
}
.secondary:hover {
    background: #eff3e9;
}
.danger {
    color: #9b3d36;
    background: #fff1ed;
    border-color: #f2d7d0;
}
.text-button {
    border: 0;
    background: transparent;
    color: var(--teal);
    font-weight: 650;
    padding: 7px;
}
.icon-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    height: 37px;
}
.icon-button:hover {
    background: #edf2e4;
}
.button .icon {
    width: 17px;
    height: 17px;
}
.spinner {
    display: inline-block;
    width: 23px;
    height: 23px;
    border: 2px solid #d7e1d0;
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.workspace-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 248px;
    background: var(--ink);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    padding: 30px 18px 20px;
    display: flex;
    flex-direction: column;
    color: #c8dbce;
}
.brand {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
}
.brand img {
    display: block;
    width: 184px;
    max-width: 100%;
    height: auto;
}
.brand-light {
    margin: 0 13px 32px;
}
.nav-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
    color: #9cb7aa;
    padding: 0 15px;
    margin: 0 0 12px;
}
.sidebar nav {
    overflow-y: auto;
    scrollbar-width: thin;
}
.sidebar nav>a {
    color: #c6dacf;
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 12px 15px;
    margin: 3px 0;
    border-radius: 9px;
    font-size: 12px;
}
.sidebar nav>a:hover {
    background: #214d43;
}
.sidebar nav>a.active {
    background: #cbe3b4;
    color: #173e31;
    font-weight: 700;
}
.sidebar nav>a .icon {
    width: 18px;
    height: 18px;
}
.nav-section {
    margin-top: 30px;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 26px;
}
.workspace-mark {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 14px 20px;
    font-size: 9px;
    color: #a3bcac;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bed69d;
}
.sidebar-profile {
    border-top: 1px solid #396054;
    padding: 20px 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
.sidebar-profile strong {
    font-size: 11px;
    font-weight: 550;
    display: block;
    max-width: 136px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-profile small {
    display: block;
    color: #abc1b1;
    font-size: 9px;
    margin-top: 2px;
}
.sidebar-profile>.icon {
    width: 15px;
}
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #2b5a4b;
    border: 1px solid #446c5c;
    color: #e1eddd;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}
.workspace-main {
    margin-left: 248px;
    width: calc(100% - 248px);
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: 76px;
    padding: 0 42px;
    background: #fbfcf9;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.topbar-label {
    font-size: 10px;
    color: #708078;
}
.topbar-label>span {
    padding: 0 14px;
    color: #b4beb4;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.account-link {
    display: flex;
    gap: 8px;
    color: #4f6258;
    font-size: 11px;
    align-items: center;
}
.account-link>.icon {
    width: 15px;
}
.page-content {
    padding: 37px 42px 55px;
    flex: 1;
    max-width: 1800px;
    width: 100%;
    margin: auto;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.page-heading p {
    font-size: 12px;
    margin-bottom: 0;
}
.page-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.workspace-footer {
    display: flex;
    justify-content: space-between;
    color: #8d998d;
    font-size: 10px;
    padding: 20px 42px;
    border-top: 1px solid var(--line);
}
.mobile-menu {
    display: none;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    background: #fff;
    padding: 12px;
}
.skip-link:focus {
    top: 10px;
}
.nav-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: #102a2477;
    z-index: 29;
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 25px;
    margin-bottom: 22px;
    box-shadow: 0 3px 10px #1b402004;
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.panel-heading h2 {
    margin: 0;
    font-size: 17px;
}
.panel-heading .muted {
    font-size: 11px;
}
.panel-title {
    display: flex;
    gap: 10px;
    align-items: center;
}
.panel-title>.icon {
    color: #6e9077;
}
.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.search-box {
    position: relative;
    min-width: 220px;
    max-width: 370px;
    flex: 1;
}
.search-box>.icon {
    position: absolute;
    left: 13px;
    top: 12px;
    width: 17px;
    height: 17px;
    color: #829080;
}
.search-box input {
    padding-left: 39px!important;
}
.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}
.count-badge {
    background: #edf2e9;
    color: #63765e;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 650;
}
.data-table-wrap {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12px;
}
.data-table th {
    color: #839080;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    padding: 13px 15px;
    background: #fcfdfb;
    white-space: nowrap;
}
.data-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #edf0e9;
    vertical-align: middle;
    color: #53665b;
}
.data-table tr:last-child td {
    border: 0;
}
.data-table tbody tr:hover {
    background: #fafcf7;
}
.data-table td:first-child {
    font-weight: 620;
    color: #294536;
}
.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}
.row-actions .icon-button {
    width: 31px;
    height: 31px;
    border-color: #e7ece3;
}
.row-actions .icon {
    width: 14px;
    height: 14px;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #edf4e9;
    color: #477342;
    font-size: 10px;
    font-weight: 650;
    padding: 4px 9px;
    border-radius: 5px;
}
.tag.neutral {
    color: #6c7770;
    background: #eef0ed;
}
.tag.warning {
    color: #8f6a23;
    background: #fbf0d5;
}
.record-name {
    display: flex;
    align-items: center;
    gap: 12px;
}
.record-symbol {
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff3e9;
    color: #739268;
    border-radius: 9px;
}
.record-symbol .icon {
    width: 17px;
}
.notice {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.notice.error {
    color: #9c4037;
    background: #fff0ed;
    border: 1px solid #f0d7d0;
}
.notice.success {
    color: #306c4e;
    background: #eaf5e9;
    border: 1px solid #cde4ca;
}
.notice.info {
    color: #466456;
    background: #eef3eb;
    border: 1px solid #dfe8d9;
}
.empty-state {
    text-align: center;
    padding: 45px 20px;
    max-width: 620px;
    margin: auto;
}
.empty-state h2 {
    font-size: 19px;
    margin-bottom: 9px;
}
.empty-state p {
    color: #829080;
    font-size: 12px;
    max-width: 420px;
    margin: 0 auto 20px;
}
.empty-icon {
    width: 55px;
    height: 55px;
    background: #edf2e7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #638357;
    margin: 0 auto 17px;
}
.empty-icon .icon {
    width: 26px;
    height: 26px;
}
.loading-state {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    color: #70806d;
    font-size: 12px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.field>label,.field-label {
    font-size: 11px;
    color: #52654e;
    font-weight: 650;
}
.field.full {
    grid-column: 1/-1;
}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dce4d7;
    border-radius: 8px;
    background: #fff;
    color: #294431;
    font-size: 12px;
    min-height: 42px;
}
textarea {
    min-height: 100px;
    resize: vertical;
}
input:disabled,textarea:disabled,select:disabled {
    background: #f5f7f2;
    color: #788574;
}
input[type=checkbox],input[type=radio] {
    accent-color: #2c6e53;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
input[type=file] {
    padding: 10px;
    background: #f7f9f4;
}
.field-help {
    font-size: 10px;
    color: #8a9684;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.form-actions .left {
    margin-right: auto;
}
.editor-panel {
    border-color: #cdddc4;
}
.editor-panel h2 {
    margin-bottom: 22px;
}
.validation-message {
    font-size: 11px;
    color: #a64636;
}
.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    cursor: pointer;
}
.check-row input {
    margin: 0;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.metric {
    padding: 23px 25px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.metric-label {
    font-size: 11px;
    color: #7d8d76;
    margin-bottom: 9px;
}
.metric-number {
    font-size: 32px;
    font-weight: 650;
    letter-spacing: -1px;
    color: #28422e;
}
.metric-icon {
    width: 48px;
    height: 48px;
    background: #edf3e6;
    color: #789868;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
}
.metric-icon .icon {
    width: 22px;
    height: 22px;
}
.hero-panel {
    padding: 30px;
    background: #e9efdf;
    border: 1px solid #dce6ce;
    border-radius: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-bottom: 24px;
}
.hero-panel h2 {
    font-size: 23px;
    margin-bottom: 10px;
}
.hero-panel p {
    font-size: 12px;
    color: #6e8063;
    max-width: 500px;
    margin-bottom: 0;
}
.hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #dbe8ca;
    color: #668559;
    flex-shrink: 0;
}
.hero-icon .icon {
    width: 43px;
    height: 43px;
}
.split-grid {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
    gap: 24px;
}
.shortcut {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0e8;
    color: #405738;
}
.shortcut:last-child {
    border: 0;
}
.shortcut>span:first-child {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: #f1f4eb;
    border-radius: 9px;
}
.shortcut .icon {
    width: 17px;
}
.shortcut strong {
    font-size: 12px;
    display: block;
}
.shortcut small {
    display: block;
    font-size: 10px;
    color: #8b9685;
    margin-top: 3px;
}
.shortcut>.icon {
    margin-left: auto;
    color: #96a58d;
}
.record-cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}
.record-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.record-card h2 {
    font-size: 16px;
    margin-bottom: 3px;
}
.assigned-store h3 {
    margin: 0;
    overflow-wrap: anywhere;
}
.assigned-stores .panel-heading p,.today-inspections .panel-heading p {
    margin: 8px 0 0;
    font-size: 12px;
}
.assigned-stores .panel-heading,.today-inspections .panel-heading {
    align-items: flex-start;
}
.assigned-store .card-actions .button {
    min-height: 44px;
}
.record-card p {
    font-size: 12px;
    color: #819076;
    margin-bottom: 0;
}
.card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 10px;
    flex-wrap: wrap;
}
.card-actions .button {
    font-size: 11px;
    min-height: 36px;
    padding: 7px 12px;
}
.tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
    overflow-x: auto;
}
.tab {
    border: 0;
    background: none;
    padding: 13px 2px;
    color: #85907c;
    font-size: 12px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.tab.active {
    color: #2b5e3d;
    border-bottom-color: #2b5e3d;
    font-weight: 650;
}
.keypoint-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}
.keypoint-row input {
    flex: 1;
}
.keypoint-number {
    width: 25px;
    font-size: 11px;
    color: #819174;
}
.keypoint-row .icon-button {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}
.detail-item small {
    display: block;
    color: #8b9784;
    font-size: 10px;
    margin-bottom: 5px;
}
.detail-item span {
    font-size: 13px;
    overflow-wrap: anywhere;
}
.question-card {
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 16px;
}
.question-card h3 {
    margin-bottom: 17px;
}
.question-number {
    color: #799367;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.choice-list {
    display: grid;
    gap: 9px;
}
.choice-label {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #e1e8d9;
    border-radius: 9px;
    padding: 12px;
    font-size: 12px;
}
.inspection-toolbar {
    position: sticky;
    bottom: 12px;
    background: #fffefa;
    box-shadow: 0 8px 35px #203b2820;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 10;
}
.inspection-toolbar p {
    font-size: 11px;
    margin: 0;
}
.inspection-toolbar>div {
    display: flex;
    gap: 9px;
}
.folder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    gap: 10px;
}
.folder-row>a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #405c36;
    font-size: 13px;
    font-weight: 600;
}
.file-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.file-row:last-child {
    border: 0;
}
.file-info {
    flex: 1;
    min-width: 0;
}
.file-info strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 12px;
}
.file-info small {
    font-size: 10px;
    color: #8a9680;
}
.permission-grid {
    display: grid;
    gap: 9px;
}
.permission-row {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.permission-row strong {
    display: block;
    font-size: 11px;
}
.permission-row code {
    display: block;
    font-size: 9px;
    color: #87907d;
    overflow-wrap: anywhere;
}
.permission-row small {
    font-size: 10px;
    color: #aa7338;
}
.subsection {
    padding-top: 22px;
    margin-top: 23px;
    border-top: 1px solid var(--line);
}
.subsection h3 {
    font-size: 14px;
}
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff1db;
    padding: 15px;
    text-align: center;
    color: #715d30;
}
.auth-page {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    background: #fbfcf8;
}
.auth-story {
    background: var(--ink);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 50px 65px;
    min-height: 760px;
}
.auth-story .brand {
    margin: 0;
}
.auth-story-copy {
    position: relative;
    z-index: 2;
    margin-top: 100px;
    max-width: 470px;
}
.auth-story-copy .eyebrow {
    color: #b7cfad;
    font-size: 10px;
}
.auth-story h1 {
    font-size: 46px;
    letter-spacing: -1.6px;
    line-height: 1.2;
    margin: 20px 0;
}
.auth-story-copy p {
    font-size: 14px;
    color: #aec4b6;
    max-width: 370px;
    line-height: 1.9;
}
.auth-footnote {
    font-size: 10px;
    color: #93b1a0;
    margin-top: auto;
    position: relative;
    z-index: 2;
    padding-top: 25px;
}
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 45px;
}
.auth-form-wrap {
    width: 100%;
    max-width: 360px;
}
.auth-form-wrap h2 {
    font-size: 28px;
    letter-spacing: -.8px;
    margin-bottom: 12px;
}
.auth-form-wrap>.muted {
    font-size: 12px;
    margin-bottom: 32px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-form label {
    font-size: 11px;
    font-weight: 650;
    margin-top: 8px;
}
.auth-form input:not([type="hidden"]) {
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 49px!important;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #84988c;
    border-radius: 8px;
    background-color: #fff;
    color: #233b32;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}
.auth-form input:not([type="hidden"]):focus {
    border-color: var(--teal);
    outline: 3px solid #9cc89b;
    outline-offset: 2px;
}
.auth-form .button {
    margin-top: 20px;
    height: 49px;
    justify-content: space-between;
}
.auth-help {
    font-size: 11px;
    color: #89947e;
    line-height: 1.9;
    margin-top: 25px;
}
.secure-caption {
    border-top: 1px solid #e2e8da;
    margin-top: 35px;
    padding-top: 21px;
    font-size: 10px;
    color: #8c9883;
    display: flex;
    gap: 8px;
    align-items: center;
}
.secure-caption .icon {
    width: 14px;
}
.auth-illustration {
    position: relative;
    height: 210px;
    max-width: 430px;
    margin-top: 20px;
}
.illustration-grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,transparent 96%,#ffffff08 96%),linear-gradient(90deg,transparent 96%,#ffffff08 96%);
    background-size: 40px 40px;
    transform: perspective(450px) rotateX(40deg);
}
.illustration-store {
    position: absolute;
    top: 60px;
    left: 80px;
    width: 220px;
    height: 150px;
    background: #ecf2df;
    border-radius: 12px;
    border: 8px solid #75967c;
    transform: rotate(-5deg);
    box-shadow: 20px 20px 0 #0d302c66;
}
.illustration-awning {
    position: absolute;
    left: -17px;
    right: -17px;
    top: -20px;
    height: 45px;
    background: repeating-linear-gradient(90deg,#c3d99f 0 32px,#96b77e 32px 64px);
    border-radius: 10px 10px 12px 12px;
    border-bottom: 5px solid #74945d;
}
.illustration-window {
    position: absolute;
    left: 20px;
    top: 48px;
    width: 78px;
    height: 63px;
    border: 6px solid #527d64;
    background: linear-gradient(135deg,#c2dbcc,#91b69e);
}
.illustration-door {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: 62px;
    height: 94px;
    border: 6px solid #527d64;
    background: #c4d8b7;
}
.illustration-check {
    position: absolute;
    right: 20px;
    bottom: 0;
    background: #cbe3a8;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 7px solid var(--ink);
    color: #315a38;
}
.illustration-check .icon {
    width: 35px;
    height: 35px;
}
@media(max-width:1180px) {
    .page-content {
        padding: 28px;
    }
    .topbar {
        padding: 0 28px;
    }
    .metric-grid {
        gap: 12px;
    }
    .metric {
        padding: 20px;
    }
    .split-grid {
        grid-template-columns: 1fr;
    }
    .record-cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .auth-story {
        padding: 40px;
    }
    .auth-story h1 {
        font-size: 38px;
    }
    .auth-story-copy {
        margin-top: 80px;
    }
    .auth-illustration {
        transform: scale(.85);
        transform-origin: left top;
    }
    .auth-form-panel {
        padding: 40px;
    }
}
@media(max-width:900px) {
    .sidebar {
        width: 225px;
        padding: 25px 12px;
    }
    .workspace-main {
        margin-left: 225px;
        width: calc(100% - 225px);
    }
    .brand img {
        width: 172px;
    }
    .page-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    h1 {
        font-size: 27px;
    }
    .account-link span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .metric-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .form-grid {
        gap: 15px;
    }
    .auth-story h1 {
        font-size: 34px;
    }
    .auth-form-panel {
        padding: 30px;
    }
    .auth-form-wrap h2 {
        font-size: 24px;
    }
}
@media(max-width:720px) {
    .sidebar {
        left: auto;
        right: 0;
        transform: translateX(100%);
        transition: transform .2s;
        width: 265px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .workspace-main {
        margin: 0;
        width: 100%;
    }
    .topbar {
        height: 64px;
        padding: 0 18px;
        gap: 10px;
        flex-direction: row-reverse;
    }
    .topbar-label {
        margin-left: auto;
        font-size: 9px;
    }
    .topbar-label>span {
        padding: 0 7px;
    }
    .topbar-actions {
        gap: 10px;
        order: 2;
    }
    .account-link {
        display: none;
    }
    .mobile-menu {
        display: inline-flex;
        order: -1;
        flex-shrink: 0;
    }
    .page-content {
        padding: 25px 18px 35px;
    }
    .page-heading {
        margin-bottom: 23px;
        gap: 15px;
    }
    .page-heading h1 {
        font-size: 26px;
    }
    .page-heading p {
        font-size: 11px;
    }
    .panel {
        padding: 19px 16px;
        border-radius: 13px;
    }
    .page-actions {
        width: 100%;
    }
    .page-actions .button {
        flex: 1;
    }
    .toolbar {
        gap: 12px;
    }
    .search-box {
        min-width: 100%;
        max-width: none;
    }
    .toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field.full {
        grid-column: auto;
    }
    .metric-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }
    .metric {
        padding: 17px 14px;
        gap: 8px;
        border-radius: 13px;
    }
    .metric-label {
        font-size: 10px;
    }
    .metric-number {
        font-size: 26px;
    }
    .metric-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .metric-icon .icon {
        width: 18px;
    }
    .hero-panel {
        padding: 24px 20px;
        border-radius: 13px;
    }
    .hero-panel h2 {
        font-size: 21px;
    }
    .hero-panel p {
        font-size: 11px;
    }
    .hero-icon {
        width: 65px;
        height: 65px;
    }
    .hero-icon .icon {
        width: 28px;
    }
    .record-cards {
        grid-template-columns: 1fr;
    }
    .data-table.responsive thead {
        display: none;
    }
    .data-table.responsive,.data-table.responsive tbody,.data-table.responsive tr,.data-table.responsive td {
        display: block;
    }
    .data-table.responsive tr {
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 9px 13px;
        margin-bottom: 10px;
    }
    .data-table.responsive td {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 7px 0;
        border: 0;
        text-align: right;
        font-size: 12px;
    }
    .data-table.responsive td::before {
        content: attr(data-label);
        color: #8a9783;
        font-size: 10px;
        text-align: left;
        flex-shrink: 0;
        max-width: 42%;
    }
    .data-table.responsive td:first-child {
        padding-bottom: 12px;
        border-bottom: 1px solid #eef1e9;
        margin-bottom: 5px;
    }
    .tabs {
        gap: 22px;
    }
    .tab {
        font-size: 11px;
    }
    .inspection-toolbar {
        bottom: 8px;
        flex-direction: column;
        align-items: stretch;
        padding: 13px;
    }
    .inspection-toolbar>div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .inspection-toolbar .button {
        padding: 9px;
        font-size: 11px;
    }
    .form-actions {
        flex-wrap: wrap;
    }
    .form-actions .button {
        flex: 1;
    }
    .workspace-footer {
        padding: 18px;
        font-size: 9px;
    }
    .file-row {
        gap: 10px;
        flex-wrap: wrap;
    }
    .file-row .row-actions {
        margin-left: auto;
    }
    .auth-page {
        display: block;
        min-height: 100svh;
    }
    .auth-story {
        min-height: 0;
        padding: 20px max(20px, env(safe-area-inset-right)) 22px max(20px, env(safe-area-inset-left));
    }
    .auth-story .brand img {
        width: 132px;
        height: auto;
    }
    .auth-story-copy {
        margin-top: 16px;
        max-width: 440px;
    }
    .auth-story h1 {
        font-size: clamp(24px, 6vw, 30px);
        letter-spacing: -.8px;
        margin: 0;
    }
    .auth-story-copy p,.auth-story .eyebrow {
        display: none;
    }
    .auth-illustration,.auth-footnote {
        display: none;
    }
    .auth-form-panel {
        padding: 26px max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    }
    .auth-form-wrap {
        max-width: 440px;
    }
    .auth-form-wrap h2 {
        font-size: clamp(23px, 5.7vw, 28px);
        line-height: 1.25;
    }
    .auth-form-wrap>.muted {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .auth-form label {
        font-size: 14px;
    }
    .auth-form input {
        width: 100%;
        min-width: 0;
        min-height: 50px!important;
        font-size: 16px;
    }
    .auth-form .button {
        height: auto;
        min-height: 50px;
        font-size: 16px;
        margin-top: 14px;
    }
    .auth-help {
        font-size: 12px;
        margin-top: 20px;
    }
    .secure-caption {
        font-size: 11px;
        margin-top: 20px;
        padding-top: 16px;
    }
    .question-card {
        padding: 20px 16px;
    }
    .icon-button,.topbar .icon-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    .check-row {
        min-height: 40px;
    }
}
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation-duration: .01ms!important;
        transition-duration: .01ms!important;
    }
}
.permission-warning {
    color: #99652b!important;
    font-weight: 650;
}

/* Folder workspaces stay readable inside a agreement and on narrow screens. */
.planogram-workspace { display: grid; gap: 16px; margin-block: 24px; min-width: 0; }
.document-heading { flex-wrap: wrap; align-items: flex-start; }
.document-heading > div:first-child { flex: 1 1 220px; min-width: 0; }
.document-heading .row-actions, .folder-acl-row .row-actions { flex-wrap: wrap; }
.folder-acl-row { flex-wrap: wrap; }
.folder-acl-row > span { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }

/* Labelled Brand/Store actions must wrap inside narrow record cards. */
.record-actions { min-width: 0; flex-wrap: wrap; }

.folder-acl-row .row-actions { justify-content: flex-start; gap: 12px 18px; }
@media (max-width: 600px) {
    .folder-acl-row .row-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .folder-acl-row .check-row { justify-content: flex-start; min-height: 44px; }
    .folder-acl-row .icon-button { align-self: flex-end; }
}

/* Restore is presentation-locked across the whole shell; server authorization remains authoritative. */
.workspace-shell.restore-locked { user-select: none; }
.workspace-shell.restore-locked :is(button, a, input, select, textarea, [role="button"]) { filter: blur(2px); opacity: .45; pointer-events: none; }
.restore-overlay { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 24px; background: #edf3ef99; cursor: wait; overflow-y: auto; }
