:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f4f6fa;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: #f4f6fa;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.button-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .7rem 1rem;
    border: 1px solid #2457d6;
    border-radius: .65rem;
    color: #fff;
    background: #2457d6;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button-link:hover {
    background: #1847bd;
}

button:focus-visible,
.button-link:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(36, 87, 214, .3);
    outline-offset: 2px;
}

select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(36, 87, 214, .3);
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

button:disabled:hover {
    background: #2457d6;
}

.button-secondary:disabled:hover {
    background: #fff;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.auth-shell {
    width: min(100%, 30rem);
}

.auth-card,
.panel {
    border: 1px solid #dce2ed;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(31, 46, 82, .08);
}

.auth-card {
    position: relative;
    padding: clamp(1.4rem, 5vw, 2.25rem);
}

.language-switch {
    color: #2457d6;
    font-size: .9rem;
    font-weight: 700;
}

.auth-card > .language-switch {
    display: block;
    margin: 0 0 1rem auto;
    text-align: right;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    color: #10182a;
    line-height: 1.15;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
}

h2 {
    font-size: 1.35rem;
}

h3 {
    font-size: 1.05rem;
}

.eyebrow {
    margin: 0 0 .55rem;
    color: #2457d6;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.lead {
    margin: .85rem 0 1.5rem;
    color: #59647a;
    line-height: 1.55;
}

.form-stack {
    display: grid;
    gap: .65rem;
}

.form-stack label {
    margin-top: .35rem;
    font-weight: 700;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
    width: 100%;
    min-height: 46px;
    padding: .7rem .8rem;
    border: 1px solid #b9c2d2;
    border-radius: .55rem;
    color: #10182a;
    background: #fff;
}

.form-stack textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-stack button {
    width: 100%;
    margin-top: .7rem;
}

.compact-lead {
    margin-bottom: 1rem;
}

.email-settings-form,
.email-test-form {
    max-width: 42rem;
}

.form-fieldset {
    display: grid;
    gap: .65rem;
    min-width: 0;
    margin: 1rem 0 0;
    padding: 1rem;
    border: 1px solid #d5dbe6;
    border-radius: .7rem;
}

.form-fieldset legend {
    padding: 0 .35rem;
    font-weight: 800;
}

.form-fieldset label {
    margin-top: .35rem;
    font-weight: 700;
}

.form-fieldset input,
.form-fieldset select {
    width: 100%;
    min-height: 46px;
    padding: .7rem .8rem;
    border: 1px solid #b9c2d2;
    border-radius: .55rem;
    color: #10182a;
    background: #fff;
}

.field-help,
.support-note {
    margin: 0;
    color: #687389;
    font-size: .88rem;
    line-height: 1.45;
}

.support-note {
    margin-top: 1rem;
}

.alert {
    margin: 1rem 0;
    padding: .8rem .9rem;
    border-radius: .55rem;
    line-height: 1.45;
}

.alert-error {
    border: 1px solid #e7a5a7;
    color: #7d1e24;
    background: #fff1f1;
}

.alert-info {
    border: 1px solid #9bb8e8;
    color: #173d78;
    background: #eef5ff;
}

.alert-success {
    border: 1px solid #81b79a;
    color: #17603c;
    background: #f2fbf6;
}

.alert-warning {
    border: 1px solid #e2bd62;
    color: #684600;
    background: #fff7df;
}

.secondary-form {
    margin-top: 1rem;
}

.button-secondary {
    border-color: #b9c2d2;
    color: #273248;
    background: #fff;
}

.button-secondary:hover {
    background: #eef1f6;
}

.site-header {
    border-bottom: 1px solid #dce2ed;
    background: #fff;
}

.site-header-inner,
.content-shell {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
}

.site-header-inner h1 {
    font-size: 1.45rem;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-icon-link {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid #b9c2d2;
    border-radius: .65rem;
    color: #273248;
    background: #fff;
}

.header-icon-link:hover {
    color: #1847bd;
    background: #eef1f6;
}

.header-icon-link:focus-visible {
    outline: 3px solid rgba(36, 87, 214, .3);
    outline-offset: 2px;
}

.header-icon-link svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.content-shell {
    padding-block: 2rem;
}

.content-shell > * + * {
    margin-top: 1.25rem;
}

.panel {
    padding: 1.5rem;
}

.narrow-panel {
    width: min(100%, 48rem);
}

.panel > p:last-child {
    margin-bottom: 0;
    color: #59647a;
    line-height: 1.55;
}

.content-stack {
    display: grid;
    gap: 1.25rem;
}

.tracking-shop-section {
    margin-top: 1.25rem;
    border: 1px solid #dce2ed;
    border-radius: .75rem;
    background: #fff;
    overflow: hidden;
}

.tracking-shop-summary {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    cursor: pointer;
    list-style: none;
    background: #f8f9fc;
}

.tracking-shop-summary::-webkit-details-marker {
    display: none;
}

.tracking-shop-summary::before {
    content: "›";
    color: #59647a;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    transition: transform .15s ease;
}

.tracking-shop-section[open] > .tracking-shop-summary::before {
    transform: rotate(90deg);
}

.tracking-shop-summary > span:first-of-type {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem .65rem;
}

.tracking-shop-name {
    color: #687389;
    font-size: .84rem;
}

.tracking-shop-section table {
    min-width: 66rem;
}

.button-row,
.tracking-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: 1.25rem;
}

.detail-grid .panel {
    min-width: 0;
}

.tracking-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1rem;
}

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

.notification-rules-form fieldset {
    display: grid;
    min-width: 0;
    gap: .75rem;
    margin: .35rem 0;
    padding: 1rem;
    border: 1px solid #d5dbe6;
    border-radius: .7rem;
}

.notification-rules-form legend {
    padding: 0 .35rem;
    font-weight: 800;
}

.notification-rules-form .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0;
    line-height: 1.4;
}

.notification-rules-form .checkbox-row input,
.notification-threshold-table input[type="checkbox"] {
    width: 1.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    min-height: 1.15rem;
    margin: .12rem 0 0;
    padding: 0;
}

.notification-threshold-table .amount-input {
    display: flex;
    min-width: 10rem;
    align-items: center;
    gap: .5rem;
}

.notification-threshold-table .amount-input input {
    width: 8rem;
    min-height: 40px;
    padding: .55rem .65rem;
}

.notification-threshold-table .amount-input span {
    color: #566177;
    font-weight: 700;
}

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

.archive-control {
    padding-top: .85rem;
    border-top: 1px solid #e3e7ef;
}

.archive-control summary {
    color: #8d242b;
    font-weight: 700;
    cursor: pointer;
}

.archive-control p {
    color: #687389;
    line-height: 1.45;
}

.inline-create-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.field-group {
    display: grid;
    gap: .45rem;
}

.grow-field {
    flex: 1 1 18rem;
}

.field-group input,
.activation-result input,
.delete-form input {
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid #b9c2d2;
    border-radius: .55rem;
    background: #fff;
}

.check-control {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}

.check-control input {
    width: 1.1rem;
    min-height: 1.1rem;
    height: 1.1rem;
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.account-summary > div {
    padding: .8rem .9rem;
    border: 1px solid #dce2ed;
    border-radius: .65rem;
    background: #f8f9fc;
}

.account-summary dt {
    color: #687389;
    font-size: .82rem;
    font-weight: 700;
}

.account-summary dd {
    margin: .3rem 0 0;
    color: #172033;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.settings-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.standalone-settings {
    padding: 0;
}

.settings-lead {
    margin-bottom: 0;
}

.compact-summary {
    margin-bottom: 0;
}

.settings-sections > section {
    align-self: start;
    padding: 1.1rem;
    border: 1px solid #e3e7ef;
    border-radius: .75rem;
}

.settings-sections h2 {
    margin-bottom: 1rem;
}

.settings-wide {
    grid-column: 1 / -1;
}

.settings-form {
    display: grid;
    gap: .6rem;
}

.settings-form label {
    margin-top: .25rem;
    font-weight: 700;
}

.settings-form input,
.settings-form select {
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid #b9c2d2;
    border-radius: .55rem;
    color: #10182a;
    background: #fff;
}

.settings-form button {
    margin-top: .5rem;
}

.notification-address-form {
    display: flex;
    align-items: end;
    gap: .75rem;
    margin: 1rem 0;
}

.notification-address-form > div {
    display: grid;
    flex: 1 1 24rem;
    gap: .35rem;
}

.notification-address-form label {
    font-weight: 700;
}

.notification-address-form input {
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid #b9c2d2;
    border-radius: .55rem;
    color: #10182a;
    background: #fff;
}

.notification-address-list {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification-address-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem .9rem;
    border: 1px solid #e3e7ef;
    border-radius: .65rem;
    background: #f8f9fc;
}

.notification-address-identity,
.notification-address-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
}

.notification-address-identity strong {
    overflow-wrap: anywhere;
}

.shop-order-list {
    display: grid;
    gap: .75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.shop-order-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem;
    border: 1px solid #e3e7ef;
    border-radius: .65rem;
    background: #f8f9fc;
}

.shop-order-actions {
    display: flex;
    flex: 0 0 auto;
    gap: .45rem;
}

.compact-shop-list .shop-order-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) auto auto;
    align-items: center;
    gap: .75rem 1rem;
    padding: .85rem 3.75rem .85rem .95rem;
}

.shop-domain {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.shop-information {
    min-width: 0;
    grid-column: 1 / -1;
}

.shop-information > summary {
    position: absolute;
    top: .72rem;
    right: .85rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid #9bb8e8;
    border-radius: 50%;
    color: #2457d6;
    background: #eef5ff;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.shop-information > summary::-webkit-details-marker {
    display: none;
}

.shop-information > summary:hover {
    border-color: #2457d6;
    background: #e2edff;
}

.shop-information-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem 1rem;
    margin: .15rem 0 0;
    padding: .85rem 0 0;
    border-top: 1px solid #dce2ed;
}

.shop-information-content dt {
    color: #687389;
    font-size: .78rem;
    font-weight: 700;
}

.shop-information-content dd {
    margin: .25rem 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.activation-result {
    border-color: #81b79a;
    background: #f2fbf6;
}

.activation-result label {
    display: block;
    margin: 1rem 0 .45rem;
    font-weight: 700;
}

.activation-result input {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.adapter-package-heading {
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.adapter-package-heading > div {
    min-width: 0;
}

.adapter-package-heading p {
    margin: .45rem 0 0;
    color: #59647a;
    line-height: 1.5;
}

code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    overflow-wrap: anywhere;
}

.count-badge,
.status-badge {
    display: inline-flex;
    padding: .28rem .55rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
}

.count-badge,
.status-muted {
    color: #566177;
    background: #edf0f5;
}

.status-good {
    color: #17603c;
    background: #e5f6ec;
}

.status-warning {
    color: #744b00;
    background: #fff1c7;
}

.operations-url {
    display: block;
    max-width: 28rem;
    overflow-wrap: anywhere;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

th,
td {
    padding: .8rem .7rem;
    border-bottom: 1px solid #e3e7ef;
    text-align: left;
    vertical-align: top;
}

th {
    color: #566177;
    font-size: .78rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.cell-note {
    display: block;
    margin-top: .3rem;
    color: #6a7487;
    font-size: .78rem;
}

.cell-warning {
    color: #805300;
    font-weight: 700;
}

.tracking-row-attention {
    background: #fffdf6;
}

.row-actions {
    display: flex;
    min-width: 15rem;
    flex-wrap: wrap;
    gap: .45rem;
}

.button-small {
    min-height: 34px;
    padding: .42rem .62rem;
    font-size: .82rem;
}

.button-danger {
    border-color: #a6252d;
    background: #a6252d;
}

.button-danger:hover {
    background: #831b22;
}

.delete-control {
    flex-basis: 100%;
    padding-top: .2rem;
}

.delete-control summary {
    color: #8d242b;
    font-weight: 700;
    cursor: pointer;
}

.delete-control p {
    max-width: 24rem;
    margin: .6rem 0;
    color: #687389;
    line-height: 1.4;
}

.delete-form {
    display: grid;
    max-width: 24rem;
    gap: .6rem;
}

.delete-form label {
    display: grid;
    gap: .35rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.25rem;
}

.tracking-shop-pagination {
    padding: 1rem;
    border-top: 1px solid #e3e7ef;
}

.dashboard-filter-panel h2 {
    margin-bottom: 1rem;
}

.dashboard-filter-form {
    display: grid;
    grid-template-columns: minmax(15rem, 2fr) minmax(11rem, 1fr) minmax(13rem, 1fr) auto;
    align-items: end;
    gap: 1rem;
}

.operations-filter-form {
    grid-template-columns: minmax(15rem, 2fr) repeat(3, minmax(10rem, 1fr)) auto;
}

.dashboard-filter-form input,
.dashboard-filter-form select {
    width: 100%;
    min-height: 44px;
    padding: .65rem .75rem;
    border: 1px solid #b9c2d2;
    border-radius: .55rem;
    color: #10182a;
    background: #fff;
}

.dashboard-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem;
}

.dashboard-result-count {
    margin: .9rem 0 0;
    color: #687389;
    font-size: .88rem;
}

.operations-history-table {
    min-width: 78rem;
}

.operations-url-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.operations-url-list p {
    display: grid;
    gap: .3rem;
    margin: 0;
}

.operations-url-list a,
.operations-diagnostics {
    overflow-wrap: anywhere;
}

.operations-diagnostics {
    max-height: 32rem;
    overflow: auto;
    padding: 1rem;
    border-radius: .65rem;
    color: #eff4ff;
    background: #162033;
}

.operations-diagnostics code {
    color: inherit;
}

.term-analytics-filter-form {
    grid-template-columns: repeat(2, minmax(11rem, 1fr)) auto;
}

.term-analytics-table {
    min-width: 92rem;
}

.analytics-minimum-badge {
    display: table;
    margin-top: .45rem;
}

.chart-intro {
    margin-bottom: 1rem;
}

.chart-range-control {
    min-width: 0;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #dce2ed;
    border-radius: .75rem;
    background: #f8f9fc;
}

.chart-range-control legend {
    margin-bottom: .55rem;
    font-weight: 800;
}

.chart-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .9rem;
}

.chart-option-list label {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: .4rem;
    padding: .35rem .55rem;
    border: 1px solid #d5dbe6;
    border-radius: .5rem;
    background: #fff;
    font-size: .88rem;
    cursor: pointer;
}

.chart-option-list input {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.chart-status {
    margin: 1rem 0;
    color: #687389;
}

.chart-canvas-shell {
    position: relative;
    width: 100%;
    height: 26rem;
    margin-top: 1rem;
    padding: .75rem;
    border: 1px solid #e3e7ef;
    border-radius: .75rem;
    background: #fff;
}

.chart-canvas-shell canvas {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.chart-series-picker {
    margin-top: 1rem;
    border: 1px solid #dce2ed;
    border-radius: .75rem;
    background: #f8f9fc;
}

.chart-series-picker summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.chart-series-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0 1rem .75rem;
}

.chart-series-options {
    display: grid;
    gap: .45rem;
    max-height: 20rem;
    padding: 0 1rem 1rem;
    overflow-y: auto;
}

.chart-series-options label {
    display: grid;
    grid-template-columns: 1rem .8rem minmax(0, 1fr);
    align-items: center;
    gap: .55rem;
    min-height: 38px;
    padding: .45rem .55rem;
    border: 1px solid #d5dbe6;
    border-radius: .5rem;
    background: #fff;
    color: #33405a;
    font-size: .88rem;
    cursor: pointer;
}

.chart-series-options input {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.chart-series-swatch {
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
}

.chart-color-0 { background: #2457d6; }
.chart-color-1 { background: #b42318; }
.chart-color-2 { background: #16845b; }
.chart-color-3 { background: #8b3ec2; }
.chart-color-4 { background: #d46b08; }
.chart-color-5 { background: #087f8c; }
.chart-color-6 { background: #c23773; }
.chart-color-7 { background: #526d16; }
.chart-color-8 { background: #6b5dd3; }
.chart-color-9 { background: #a45111; }
.chart-color-10 { background: #0072a3; }
.chart-color-11 { background: #9c2f2f; }
.chart-color-12 { background: #347a3d; }
.chart-color-13 { background: #7040a0; }
.chart-color-14 { background: #b77700; }
.chart-color-15 { background: #126e65; }
.chart-color-16 { background: #a43b64; }
.chart-color-17 { background: #64750c; }
.chart-color-18 { background: #4856a8; }
.chart-color-19 { background: #84522a; }

.readonly-value {
    display: grid;
    gap: .25rem;
    padding: .8rem .9rem;
    border: 1px solid #d5dbe6;
    border-radius: .55rem;
    background: #f8f9fc;
}

.readonly-value span {
    color: #687389;
    font-size: .82rem;
}

.spaced-help {
    margin: .65rem 0 1.1rem;
}

@media (max-width: 70rem) {
    .operations-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 36rem) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }


    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .inline-create-form {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-create-form button {
        width: 100%;
    }

    .notification-address-form,
    .notification-address-list > li {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-address-form button,
    .notification-address-actions,
    .notification-address-actions form,
    .notification-address-actions button {
        width: 100%;
    }

    .settings-sections {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-filter-actions,
    .dashboard-filter-actions button,
    .dashboard-filter-actions a {
        width: 100%;
    }

    .settings-wide {
        grid-column: auto;
    }

    .shop-order-list li {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-order-actions form,
    .shop-order-actions button {
        width: 100%;
    }

    .compact-shop-list .shop-order-item {
        grid-template-columns: 1fr;
        padding-right: 3.75rem;
    }

    .compact-shop-list .status-badge {
        justify-self: start;
    }

    .compact-shop-list .shop-order-actions {
        width: 100%;
    }

    .shop-information-content {
        grid-template-columns: 1fr;
    }

    .chart-canvas-shell {
        height: 20rem;
        padding: .35rem;
    }

    .chart-series-actions button {
        flex: 1 1 auto;
    }
}

/* Apartment attributes: full-width cards on preview/detail, compact history disclosure. */
.property-card { margin-top: 1.5rem; padding: 1.25rem; background: #f5f8fc; border: 1px solid #dbe3ef; border-radius: 12px; }
.property-card h3 { margin: 0 0 1rem; }
.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.property-field { min-width: 0; }
.property-field dt { color: #526174; font-size: .85rem; margin-bottom: .25rem; }
.property-field dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.property-field-wide { grid-column: span 2; }
.property-card > p, .property-history > p { color: #526174; font-size: .85rem; margin: 1rem 0 0; }
.property-history { margin-top: .5rem; font-size: .9rem; }
.property-history summary { cursor: pointer; }
.property-history .property-grid { grid-template-columns: minmax(140px, 1fr); margin-top: .75rem; }
.property-history .property-field-wide { grid-column: auto; }
@media (max-width: 420px) { .property-card { padding: 1rem; } .property-grid { grid-template-columns: 1fr; } .property-field-wide { grid-column: auto; } }
