@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap");

:root {
    --bg: #e7ece9;
    --bg-deep: #d3dbd7;
    --surface: rgba(245, 248, 246, 0.88);
    --surface-strong: rgba(255, 255, 255, 0.78);
    --surface-dark: #23312a;
    --line: rgba(59, 76, 68, 0.16);
    --line-strong: rgba(88, 112, 100, 0.25);
    --text: #18201d;
    --muted: #66746d;
    --accent: #295845;
    --accent-2: #3d735b;
    --accent-dark: #1f4335;
    --danger: #9a5b56;
    --warning: #8b7441;
    --shadow: 0 30px 80px rgba(34, 46, 40, 0.12);
    --shadow-soft: 0 14px 40px rgba(34, 46, 40, 0.08);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Jost", "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(79, 128, 105, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(126, 143, 136, 0.22), transparent 30%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.app-shell {
    display: grid;
    min-height: calc(100vh - 2rem);
    grid-template-columns: 280px 1fr;
    align-items: start;
    width: min(1920px, calc(100vw - 2rem));
    max-width: none;
    margin: 1rem auto;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 36px;
    overflow: visible;
    background: rgba(241, 245, 242, 0.55);
    box-shadow: 0 40px 120px rgba(25, 33, 30, 0.18);
    backdrop-filter: blur(18px);
}

.app-frame {
    padding: 1rem;
}

.app-frame--guest {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.app-shell--guest {
    grid-template-columns: 1fr;
    max-width: 1200px;
    width: 100%;
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.15rem;
    height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.35rem;
    border-radius: 36px 0 0 36px;
    background: linear-gradient(180deg, rgba(246, 249, 247, 0.94), rgba(239, 244, 240, 0.84));
    color: var(--text);
    border-right: 1px solid rgba(59, 76, 68, 0.08);
}

.sidebar__intro {
    display: grid;
    gap: 1rem;
}

.brand-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    padding: 0.95rem 1rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(102, 170, 126, 0.22), transparent 26%),
        linear-gradient(180deg, rgba(26, 38, 33, 0.98), rgba(31, 46, 39, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand-hero:hover,
.brand-hero:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 34px rgba(23, 33, 29, 0.16);
}

.brand-hero:focus-visible {
    outline: 2px solid rgba(163, 196, 182, 0.78);
    outline-offset: 3px;
}

.brand-hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 238px);
    opacity: 0.98;
}

.brand-hero__media img {
    display: block;
    width: 100%;
    height: auto;
}

.menu {
    display: grid;
    gap: 0.75rem;
}

.menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    padding: 0.82rem 0.92rem;
    border-radius: 18px;
    color: #eef3ef;
    background: linear-gradient(180deg, rgba(29, 44, 37, 0.96), rgba(38, 58, 48, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 30px rgba(28, 39, 34, 0.16);
    transition: 180ms ease;
}

.menu a.is-active {
    background: linear-gradient(135deg, rgba(54, 105, 82, 0.98), rgba(37, 83, 64, 0.95));
    border-color: rgba(212, 232, 221, 0.22);
    box-shadow:
        0 16px 34px rgba(35, 54, 45, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.menu a:hover {
    transform: translateX(2px);
    background: linear-gradient(180deg, rgba(35, 53, 44, 0.96), rgba(44, 66, 55, 0.94));
}

.sidebar-footer {
    display: grid;
    gap: 0.8rem;
    margin-top: auto;
}

.user-chip {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border-radius: 20px;
    color: #eef3ef;
    background: linear-gradient(180deg, rgba(29, 44, 37, 0.94), rgba(38, 58, 48, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 30px rgba(28, 39, 34, 0.14);
}

.content {
    padding: 1.5rem;
    background:
        linear-gradient(180deg, rgba(253, 255, 253, 0.35), rgba(243, 247, 244, 0.15));
    min-width: 0;
    border-radius: 0 36px 36px 0;
    overflow: visible;
}

.content--guest {
    max-width: none;
    margin: 0;
    width: 100%;
    padding: 2rem;
    background: transparent;
}

.hero-card,
.panel,
.stat-card,
.flash {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.panel {
    position: relative;
}

.panel::after,
.hero-card::after,
.stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-card {
    padding: 1.7rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto 60%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 126, 101, 0.18), transparent 64%);
    pointer-events: none;
}

.hero-card--center {
    max-width: 680px;
    margin-inline: auto;
}

.auth-hero {
    width: 100%;
    max-width: none;
    min-height: 760px;
}

.auth-hero--simple {
    display: grid;
    place-items: center;
    min-height: min(760px, calc(100vh - 8rem));
    padding: clamp(1rem, 4vw, 3rem);
}

.page-login {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(6, 28, 20, 0.56), rgba(21, 43, 30, 0.26) 42%, rgba(255, 249, 231, 0.18)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(11, 35, 24, 0.42)),
        url("bg-ecocard.jpg") center / cover fixed no-repeat;
}

.page-login .app-frame--guest {
    align-items: stretch;
    padding: 0;
    background: transparent;
}

.page-login .app-shell--guest {
    min-height: 100vh;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.page-login .content--guest {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: clamp(1.2rem, 4vw, 3rem);
    background: transparent;
}

.auth-hero--premium-login {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 7rem);
    padding: clamp(1rem, 4vw, 3rem);
}

.auth-panel--glass-login {
    width: min(100%, 410px);
    gap: 1.15rem;
    padding: clamp(1.35rem, 4vw, 2rem);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.16));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 28px 70px rgba(7, 24, 17, 0.26);
    backdrop-filter: blur(24px) saturate(126%);
}

.auth-panel__head--center {
    text-align: center;
}

.auth-panel__head--center h3 {
    margin: 0;
    color: #f8fff8;
    font-size: clamp(1.9rem, 5vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    text-shadow: 0 12px 30px rgba(5, 26, 17, 0.28);
}

.login-card-logo {
    display: block;
    width: min(190px, 58vw);
    height: auto;
    margin: 0 auto 0.15rem;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}

.auth-panel--glass-login label {
    color: rgba(248, 255, 248, 0.92);
    font-size: 0.88rem;
    font-weight: 650;
}

.auth-panel--glass-login input {
    min-height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.18);
    color: #f8fff8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 12px 28px rgba(6, 25, 17, 0.12);
}

.auth-panel--glass-login input:focus {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 0 0 4px rgba(255, 255, 255, 0.14);
}

.auth-panel--glass-login .button {
    min-height: 56px;
    border-radius: 999px;
    color: #1f4335;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 244, 0.9));
    border-color: rgba(255, 255, 255, 0.52);
    box-shadow: 0 18px 38px rgba(7, 30, 20, 0.2);
}

.page-login .site-footer {
    align-self: end;
    margin: 0;
    padding: 0 0 0.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-login .site-footer__link {
    color: rgba(255, 255, 255, 0.84);
}

.page-login .site-footer__brand {
    color: rgba(255, 255, 255, 0.96);
}

.page-login .site-footer__note {
    display: none;
}

.eyebrow {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(41, 88, 69, 0.09);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    font-weight: 650;
    letter-spacing: -0.045em;
}

p,
li,
td,
th,
label,
input,
select,
button,
a {
    letter-spacing: -0.01em;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.92rem;
}

.stats-grid,
.panel-grid,
.three-col,
.two-col,
.hint-grid,
.form-grid {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid .stat-card {
    border-color: rgba(103, 151, 119, 0.2);
    background:
        radial-gradient(circle at 92% 8%, rgba(151, 204, 164, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(245, 251, 246, 0.96) 0%, rgba(232, 244, 235, 0.92) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 18px 46px rgba(43, 78, 58, 0.08);
}

.stats-grid .stat-card:nth-child(2n) {
    background:
        radial-gradient(circle at 90% 10%, rgba(183, 220, 181, 0.25), transparent 36%),
        linear-gradient(180deg, rgba(247, 252, 245, 0.96) 0%, rgba(235, 247, 232, 0.92) 100%);
}

.stats-grid .stat-card:nth-child(3n) {
    background:
        radial-gradient(circle at 90% 10%, rgba(141, 194, 151, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(246, 252, 248, 0.96) 0%, rgba(229, 243, 235, 0.92) 100%);
}

.stats-grid--review .stat-card {
    min-height: 164px;
}

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

.panel-grid--account {
    max-width: 920px;
    align-items: start;
}

.user-list {
    gap: 0.75rem;
}

.user-list__item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    min-height: 72px;
    padding: 0.9rem 1rem !important;
}

.user-list__info {
    display: grid;
    gap: 0.24rem;
    min-width: 0;
}

.user-list__info strong,
.user-list__info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-list__action {
    flex: 0 0 auto;
}

.account-security-panel {
    min-height: 100%;
}

.account-security-panel--hint {
    background:
        radial-gradient(circle at 100% 0%, rgba(115, 165, 126, 0.14), transparent 34%),
        rgba(255, 255, 255, 0.72);
}

.panel-grid--review {
    align-items: start;
}

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

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hint-grid,
.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--wide {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
}

.customer-picker {
    position: relative;
}

.customer-picker__hint {
    margin-top: 0.45rem;
    font-size: 0.84rem;
}

.customer-picker__dropdown {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0;
    right: 0;
    z-index: 15;
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(26, 38, 33, 0.14);
    backdrop-filter: blur(18px);
}

.customer-picker__dropdown[hidden] {
    display: none;
}

.customer-picker__option,
.customer-picker__empty {
    display: grid;
    gap: 0.15rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 0;
    border-radius: 14px;
    background: rgba(244, 247, 245, 0.9);
    color: var(--text);
    text-align: left;
}

.customer-picker__option {
    cursor: pointer;
    transition: 160ms ease;
}

.customer-picker__option:hover {
    background: rgba(41, 88, 69, 0.08);
}

.customer-picker__option strong {
    font-size: 0.96rem;
}

.customer-picker__option span,
.customer-picker__empty {
    color: var(--muted);
    font-size: 0.84rem;
}

.product-picker__dropdown {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0;
    right: 0;
    z-index: 18;
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(41, 88, 69, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(31, 45, 38, 0.12);
}

.product-picker__dropdown[hidden] {
    display: none;
}

.product-picker__option,
.product-picker__empty {
    display: grid;
    gap: 0.1rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    text-align: left;
    border: 0;
    background: transparent;
}

.product-picker__option {
    cursor: pointer;
    transition: 160ms ease;
}

.product-picker__option:hover {
    background: rgba(41, 88, 69, 0.08);
}

.product-picker__option strong {
    font-size: 0.94rem;
}

.product-picker__option span,
.product-picker__option small,
.product-picker__empty {
    color: var(--muted);
    font-size: 0.82rem;
}

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

.panel,
.stat-card {
    padding: 1.15rem;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(245, 248, 246, 0.88));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

.topbar__label {
    margin: 0 0 0.3rem;
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topbar__title {
    margin: 0;
    font-size: 1.95rem;
    letter-spacing: -0.055em;
}

.topbar__desc {
    margin: 0.35rem 0 0;
}

.topbar__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(41, 88, 69, 0.12), rgba(61, 115, 91, 0.18));
    border: 1px solid rgba(41, 88, 69, 0.12);
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.status-pill__icon,
.menu__icon,
.icon-inline,
.stat-card__icon,
.button__icon,
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-pill__icon,
.menu__icon,
.icon-inline,
.stat-card__icon,
.button__icon,
.icon svg {
    width: 16px;
    height: 16px;
}

.icon svg,
.menu__icon svg,
.status-pill__icon svg,
.icon-inline svg,
.stat-card__icon svg,
.button__icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu__icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(239, 245, 241, 0.92);
}

.menu a.is-active .menu__icon {
    background: rgba(255, 255, 255, 0.12);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0;
    margin-bottom: 0.1rem;
    font-size: 1.05rem;
}

.icon-inline {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(41, 88, 69, 0.08);
    color: var(--accent);
    flex: 0 0 auto;
}

.button__icon {
    margin-right: 0.45rem;
}

.stat-card__icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.65rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(126, 178, 138, 0.2), rgba(126, 178, 138, 0.1));
    color: var(--accent);
}

.status-pill--soft {
    background: rgba(66, 84, 75, 0.08);
    border-color: rgba(66, 84, 75, 0.08);
    color: var(--muted);
}

.stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.04em;
}

.overview-dashboard {
    display: grid;
    gap: 0.9rem;
}

.overview-dashboard .stats-grid {
    gap: 0.85rem;
    margin-bottom: 0.1rem;
}

.overview-dashboard .stat-card {
    padding: 0.95rem 1rem;
    min-height: 136px;
}

.overview-dashboard .stat-card__icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0.5rem;
    border-radius: 11px;
}

.overview-dashboard .stat-value {
    font-size: 1.55rem;
    line-height: 1.02;
    margin-bottom: 0.15rem;
}

.overview-dashboard .muted {
    font-size: 0.92rem;
    line-height: 1.35;
}

.overview-dashboard .panel-grid {
    gap: 0.9rem;
}

.overview-dashboard .panel {
    padding: 1rem 1.05rem;
}

.overview-dashboard .panel-title {
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    font-size: 1.02rem;
}

.overview-dashboard .icon-inline {
    width: 28px;
    height: 28px;
    border-radius: 9px;
}

.overview-dashboard .clean-list {
    gap: 0.65rem;
}

.overview-dashboard .clean-list li {
    gap: 0.12rem;
    padding: 0.78rem 0.9rem;
}

.overview-dashboard .clean-list strong {
    font-size: 0.98rem;
}

.overview-dashboard .table-wrap {
    margin-top: 0.2rem;
}

.overview-dashboard .mobile-card-table th {
    padding: 0.8rem 0.7rem;
    font-size: 0.78rem;
}

.overview-dashboard .mobile-card-table td {
    padding: 0.78rem 0.7rem;
    font-size: 0.94rem;
}

.stack,
.stack-lg {
    display: grid;
    gap: 1rem;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(320px, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    min-height: 100%;
}

.auth-layout--refined {
    grid-template-columns: minmax(420px, 1.1fr) minmax(360px, 440px);
    gap: 1.5rem;
}

.auth-panel {
    display: grid;
    gap: 1.15rem;
}

.auth-panel--card {
    align-content: start;
    padding: 1.6rem;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 246, 244, 0.82));
    box-shadow: 0 24px 60px rgba(27, 36, 32, 0.08);
}

.auth-panel--simple {
    width: min(100%, 440px);
    gap: 1.25rem;
    padding: clamp(1.35rem, 4vw, 2rem);
}

.auth-panel__head h3 {
    margin: 0.5rem 0 0.35rem;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.auth-panel__head p {
    margin: 0;
}

.auth-logo {
    width: 132px;
    margin-bottom: 0.4rem;
}

.auth-logo--center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 230px);
    min-height: 96px;
    margin: 0 auto 0.4rem;
    padding: 1rem 1.25rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(116, 166, 139, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(28, 45, 37, 0.98), rgba(34, 54, 44, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 36px rgba(23, 34, 29, 0.14);
}

.auth-logo--center img {
    width: 100%;
    max-width: 178px;
}

.auth-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.auth-showcase {
    position: relative;
    display: grid;
    gap: 1rem;
    min-height: 100%;
    padding: 1.4rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(88, 136, 112, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(31, 49, 41, 0.96), rgba(43, 65, 55, 0.92));
    color: #eff5f1;
    overflow: hidden;
}

.auth-showcase--refined {
    align-content: space-between;
    padding: 2rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(111, 162, 137, 0.26), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 20%),
        linear-gradient(160deg, rgba(29, 46, 39, 0.98), rgba(46, 69, 58, 0.96));
}

.showcase-orb {
    position: absolute;
    right: -48px;
    top: -48px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(154, 210, 180, 0.2), rgba(154, 210, 180, 0.02) 70%);
    pointer-events: none;
}

.showcase-card {
    max-width: 34rem;
}

.showcase-kicker {
    margin: 0 0 0.5rem;
    color: rgba(226, 239, 232, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 700;
}

.auth-showcase h3 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.auth-showcase h2 {
    position: relative;
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.auth-showcase .muted {
    color: rgba(232, 241, 236, 0.76);
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.showcase-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: auto;
}

.showcase-metric,
.showcase-strip div {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
}

.showcase-metric span {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.showcase-metric small {
    color: rgba(232, 241, 236, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.68rem;
}

.showcase-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.showcase-strip strong {
    display: block;
    margin-bottom: 0.35rem;
}

.showcase-strip span {
    color: rgba(232, 241, 236, 0.72);
    font-size: 0.92rem;
    line-height: 1.5;
}

label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
}

input,
select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    resize: vertical;
    min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(41, 88, 69, 0.34);
    box-shadow: 0 0 0 4px rgba(41, 88, 69, 0.08);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 6px;
    box-shadow: none;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(41, 88, 69, 0.22);
    text-wrap: nowrap;
}

.button:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.42);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button.danger-button {
    color: var(--danger);
    border-color: rgba(154, 91, 86, 0.22);
    background: rgba(154, 91, 86, 0.07);
}

.button.compact-button {
    min-height: 38px;
    padding: 0.55rem 0.82rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.button.block {
    width: 100%;
}

.section-head--tight {
    align-items: end;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 0.85rem;
    min-width: min(100%, 360px);
}

.filter-form label {
    gap: 0.45rem;
    font-size: 0.92rem;
}

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

.section-head h3 {
    margin: 0;
}

.section-head p {
    margin: 0.35rem 0 0;
}

.sale-builder {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.42);
}

.sale-builder--page {
    padding: 1.15rem;
}

.sale-builder__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sale-builder__head h4 {
    margin: 0;
}

.sale-items {
    display: grid;
    gap: 0.85rem;
}

.sale-item-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) 110px 130px 92px 190px auto;
    gap: 0.85rem;
    align-items: end;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
}

.sale-item-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 20px;
    border: 1px solid rgba(59, 76, 68, 0.08);
    background: rgba(246, 249, 247, 0.92);
    overflow: hidden;
}

.sale-item-preview__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(244, 247, 245, 0.78)),
        linear-gradient(180deg, rgba(237, 242, 239, 0.9), rgba(246, 249, 247, 0.92));
}

.sale-item-preview__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(41, 88, 69, 0.08);
    color: rgba(74, 95, 85, 0.78);
}

.sale-item-preview__icon svg {
    width: 26px;
    height: 26px;
}

.sale-item-preview img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sale-item-preview img[hidden] {
    display: none;
}

.sale-item-meta {
    display: grid;
    gap: 0.55rem;
}

.sale-item-meta div {
    display: grid;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    background: rgba(41, 88, 69, 0.06);
}

.sale-item-meta span {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.sale-summary-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.sale-summary-card div {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(41, 88, 69, 0.12);
    background: linear-gradient(180deg, rgba(41, 88, 69, 0.08), rgba(255, 255, 255, 0.65));
}

.sale-summary-card span {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sale-summary-card strong {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
}

.toggle-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.table-wrap {
    overflow-x: auto;
    border-top: 1px solid rgba(59, 76, 68, 0.08);
    min-width: 0;
}

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

th,
td {
    padding: 0.85rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(50, 95, 51, 0.12);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.badge--pending {
    background: rgba(155, 106, 39, 0.14);
    color: var(--warning);
}

.badge--approved {
    background: rgba(50, 95, 51, 0.12);
    color: var(--accent);
}

.badge--rejected {
    background: rgba(143, 71, 63, 0.12);
    color: var(--danger);
}

.action-stack {
    display: grid;
    gap: 0.75rem;
}

.clean-list {
    display: grid;
    gap: 0.85rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.clean-list li,
.hint-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(241, 245, 243, 0.55));
}

.empty-state-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
}

.active-followup-list {
    display: grid;
    gap: 0.75rem;
}

.engineer-side-panel {
    align-content: start;
}

.engineer-side-panel__section {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.engineer-side-panel__section h4 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 1rem;
}

.engineer-customer-list {
    display: grid;
    gap: 0.75rem;
    max-height: 560px;
    overflow: auto;
    padding-right: 0.15rem;
}

.engineer-customer-card {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.45rem 0.8rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(103, 151, 119, 0.2);
    border-radius: 18px;
    color: var(--text);
    background:
        radial-gradient(circle at 96% 8%, rgba(151, 204, 164, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(247, 252, 248, 0.94), rgba(232, 244, 235, 0.86));
}

.engineer-customer-card.is-overdue {
    border-color: rgba(154, 91, 86, 0.34);
    background:
        radial-gradient(circle at 96% 8%, rgba(210, 116, 104, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 247, 245, 0.96), rgba(248, 231, 228, 0.9));
}

.engineer-customer-card__avatar {
    grid-row: span 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: var(--accent-dark);
    background: rgba(41, 88, 69, 0.1);
    font-weight: 850;
}

.active-followup-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(103, 151, 119, 0.2);
    border-radius: 18px;
    color: var(--text);
    background:
        radial-gradient(circle at 96% 8%, rgba(151, 204, 164, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(247, 252, 248, 0.94), rgba(232, 244, 235, 0.86));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 12px 30px rgba(43, 78, 58, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.active-followup-card:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 88, 69, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 16px 38px rgba(43, 78, 58, 0.1);
}

.active-followup-card.is-overdue {
    border-color: rgba(154, 91, 86, 0.34);
    background:
        radial-gradient(circle at 96% 8%, rgba(210, 116, 104, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 247, 245, 0.96), rgba(248, 231, 228, 0.9));
}

.active-followup-card__head,
.active-followup-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.active-followup-card__head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-followup-card__head span {
    flex: 0 0 auto;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    color: var(--accent-dark);
    background: rgba(41, 88, 69, 0.1);
    font-size: 0.72rem;
    font-weight: 800;
}

.active-followup-card.is-overdue .active-followup-card__head span {
    color: var(--danger);
    background: rgba(154, 91, 86, 0.13);
}

.active-followup-card__meta {
    color: var(--muted);
    font-size: 0.86rem;
}

.active-followup-card p {
    margin: 0;
    color: rgba(32, 42, 38, 0.78);
    font-size: 0.9rem;
    line-height: 1.45;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.product-grid--catalog {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.product-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(241, 245, 243, 0.58));
}

.product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 24px;
    background: rgba(246, 249, 247, 0.96);
    border: 1px solid rgba(59, 76, 68, 0.08);
    overflow: hidden;
}

.product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card__placeholder {
    color: var(--accent);
}

.product-card__body {
    display: grid;
    gap: 0.3rem;
    text-align: center;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.product-card__meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(41, 88, 69, 0.08);
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.product-card--catalog {
    align-content: start;
    min-width: 0;
}

.catalog-summary-card {
    display: grid;
    gap: 0.9rem;
}

.panel--catalog {
    padding-top: 1.35rem;
}

.section-head--catalog {
    align-items: end;
    gap: 1rem;
}

.section-head__copy {
    display: grid;
    gap: 0.25rem;
}

.catalog-search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    margin: 1rem 0 1.2rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(78, 101, 90, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
}

.catalog-search-bar--compact {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.catalog-search-bar__field {
    display: grid;
    gap: 0.38rem;
}

.catalog-search-bar__field span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.catalog-search-bar__actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.empty-state-card {
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(78, 101, 90, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.product-manager-panel {
    margin-bottom: 1rem;
}

.product-manager-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.25fr);
    gap: 1rem;
}

.product-manager-card {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(78, 101, 90, 0.12);
    background: rgba(255, 255, 255, 0.74);
}

.product-manager-list {
    display: grid;
    gap: 0.65rem;
    max-height: 520px;
    overflow: auto;
}

.empty-state-card--inline {
    min-height: 180px;
    justify-content: center;
}

.product-manager-item {
    display: grid;
    gap: 0.18rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(78, 101, 90, 0.12);
    border-radius: 16px;
    background: rgba(248, 251, 249, 0.96);
    transition: 160ms ease;
}

.product-manager-item:hover,
.product-manager-item.is-active {
    border-color: rgba(41, 88, 69, 0.24);
    background: rgba(233, 244, 237, 0.96);
    transform: translateY(-1px);
}

.product-card__actions {
    display: flex;
    justify-content: center;
    margin-top: 0.8rem;
}

.product-manager-item strong {
    font-size: 0.95rem;
}

.product-manager-item span {
    color: var(--muted);
    font-size: 0.84rem;
}

.checkbox-row {
    display: inline-flex !important;
    align-items: center;
    gap: 0.65rem;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.catalog-pagination--top {
    margin-top: 0;
}

.catalog-pagination__status {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.catalog-pagination__pages {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.catalog-page-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    transition: 160ms ease;
}

.catalog-page-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
}

.catalog-page-chip.is-active {
    background: linear-gradient(135deg, rgba(54, 105, 82, 0.98), rgba(37, 83, 64, 0.95));
    color: #eef3ef;
    border-color: rgba(212, 232, 221, 0.22);
}

.flash {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.68);
}

.flash--success {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(135deg, rgba(137, 196, 155, 0.96), rgba(92, 168, 121, 0.94));
    box-shadow: 0 18px 40px rgba(86, 142, 105, 0.22);
}

.flash__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    color: #5ca879;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.flash__icon svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flash--error {
    border-color: rgba(143, 71, 63, 0.24);
}

.chart-card {
    padding: 1rem 0 0.25rem;
}

.chart {
    min-height: 300px;
}

.chart-shell {
    display: grid;
    gap: 0.8rem;
}

.chart-shell__meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chart-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart-grid-line {
    stroke: rgba(41, 88, 69, 0.09);
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: url(#chart-gradient);
    opacity: 0.2;
}

.chart-dot circle {
    fill: #fff;
    stroke: var(--accent);
    stroke-width: 2;
}

.chart-axis-label {
    fill: var(--muted);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.report-micro-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.report-micro-stats div {
    display: grid;
    gap: 0.2rem;
    min-width: 110px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(41, 88, 69, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

.report-micro-stats strong {
    font-size: 1.15rem;
}

.report-micro-stats span {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.panel--analytics .section-head {
    align-items: flex-start;
}

.spotlight-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(41, 88, 69, 0.12);
    background:
        radial-gradient(circle at top right, rgba(97, 150, 124, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 246, 243, 0.78));
}

.spotlight-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.spotlight-card__head strong {
    display: block;
    font-size: 1.3rem;
}

.spotlight-card__head span {
    color: var(--muted);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.spotlight-grid div,
.progress-row {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
}

.spotlight-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.3rem;
}

.spotlight-grid strong {
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.progress-list {
    display: grid;
    gap: 0.8rem;
}

.progress-row {
    display: grid;
    gap: 0.7rem;
}

.progress-row__head,
.progress-row__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.progress-row__head span,
.progress-row__meta span {
    color: var(--muted);
    font-size: 0.9rem;
}

.progress-row__bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(41, 88, 69, 0.08);
}

.progress-row__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), rgba(96, 155, 125, 0.95));
}

.customer-hero {
    padding: 0;
}

.customer-hero__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1.4rem;
}

.customer-hero__identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
}

.customer-hero__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f6fbf7;
    background:
        radial-gradient(circle at top left, rgba(111, 174, 136, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(33, 56, 46, 0.98), rgba(43, 70, 57, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 36px rgba(26, 39, 33, 0.16);
}

.customer-hero__copy {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.customer-hero__copy h2 {
    margin: 0;
    font-size: clamp(2rem, 2.8vw, 2.55rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.customer-hero__chips,
.customer-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.customer-meta-card {
    display: grid;
    gap: 0.25rem;
    min-width: 152px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 76, 68, 0.11);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.customer-meta-card span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-meta-card strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.customer-hero__aside {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(59, 76, 68, 0.12);
    background:
        radial-gradient(circle at top right, rgba(85, 135, 109, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(37, 58, 48, 0.96), rgba(29, 46, 39, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 36px rgba(27, 38, 33, 0.16);
}

.customer-hero__stat {
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(245, 249, 246, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef4f0;
}

.customer-hero__stat--soft {
    background: rgba(255, 255, 255, 0.06);
}

.customer-hero__stat span,
.customer-hero__stat small {
    color: rgba(235, 243, 238, 0.78);
}

.customer-hero__stat span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-hero__stat strong {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.customer-hero__stat small {
    font-size: 0.86rem;
    line-height: 1.35;
}

.customer-hero__action {
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}

.customer-hero__transfer {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(245, 249, 246, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-hero__transfer-field {
    display: grid;
    gap: 0.45rem;
}

.customer-hero__transfer-field span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(235, 243, 238, 0.78);
}

.customer-hero__transfer-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.customer-hero__transfer-field select:focus {
    outline: none;
    border-color: rgba(124, 185, 153, 0.45);
    box-shadow: 0 0 0 4px rgba(151, 204, 164, 0.14);
}

.customer-hero__transfer-button {
    justify-content: center;
}

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

.field textarea {
    width: 100%;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 76, 68, 0.15);
    background: rgba(255, 255, 255, 0.86);
    resize: vertical;
    min-height: 120px;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.field textarea:focus {
    outline: none;
    border-color: rgba(58, 108, 82, 0.35);
    box-shadow: 0 0 0 4px rgba(66, 118, 91, 0.08);
}

.followup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.95rem;
}

.followup-summary-card,
.followup-note-card,
.followup-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.followup-summary-card {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
}

.followup-summary-card span,
.followup-note-card span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.followup-summary-card strong,
.followup-note-card strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.3;
}

.followup-summary-card small {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.followup-note-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.permission-note-card {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    border: 1px solid rgba(154, 91, 86, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(154, 91, 86, 0.1), transparent 34%),
        rgba(255, 255, 255, 0.62);
}

.permission-note-card strong {
    color: var(--text);
    font-size: 1rem;
}

.permission-note-card p {
    margin: 0;
}

.followup-list {
    display: grid;
    gap: 0.85rem;
}

.followup-item {
    padding: 1rem;
}

.followup-item p {
    margin: 0.75rem 0;
    color: var(--text);
    line-height: 1.55;
}

.followup-item__head,
.followup-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.followup-item__meta {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
 }

.inquiry-shell {
    display: grid;
    gap: 1.15rem;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

.inquiry-hero {
    padding: 2rem;
    border-radius: 36px;
    background:
        radial-gradient(circle at top right, rgba(209, 239, 222, 0.6), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 249, 0.92));
    border: 1px solid rgba(59, 76, 68, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 24px 60px rgba(33, 55, 45, 0.12);
    text-align: center;
}

.inquiry-hero__copy {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.05rem;
}

.inquiry-hero__copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--text);
    text-shadow: none;
}

.inquiry-hero__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.inquiry-search {
    display: grid;
    gap: 0.95rem;
}

.inquiry-search__field {
    display: grid;
    gap: 0.5rem;
}

.inquiry-search__field span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    padding-left: 0.35rem;
}

.inquiry-search__field input {
    width: 100%;
    min-height: 60px;
    padding: 0 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 76, 68, 0.12);
    background: rgba(246, 250, 247, 0.95);
    font-size: 1.02rem;
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 10px 22px rgba(33, 55, 45, 0.05);
}

.inquiry-search__field input:focus {
    outline: none;
    border-color: rgba(41, 88, 69, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 0 0 4px rgba(41, 88, 69, 0.08);
}

.inquiry-search__button {
    min-height: 56px;
    min-width: min(100%, 320px);
    margin: 0 auto;
    justify-content: center;
    border-radius: 999px;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f7fffb;
    background: linear-gradient(180deg, rgba(41, 88, 69, 0.98), rgba(33, 73, 57, 0.96));
    box-shadow: 0 16px 30px rgba(39, 95, 84, 0.18);
}

.inquiry-empty {
    display: grid;
    gap: 0.35rem;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
}

.inquiry-empty strong {
    font-size: 1rem;
}

.inquiry-empty p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.inquiry-result {
    display: grid;
    gap: 1rem;
}

.inquiry-result__hero {
    padding: 1.45rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
}

.inquiry-result__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inquiry-result__head h2 {
    margin: 0.3rem 0 0.2rem;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

.inquiry-points {
    display: grid;
    gap: 0.15rem;
    min-width: 170px;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(161, 224, 186, 0.28), transparent 34%),
        linear-gradient(180deg, rgba(34, 101, 82, 0.96), rgba(43, 130, 105, 0.94));
    color: #eef4f0;
    box-shadow: 0 18px 34px rgba(26, 39, 33, 0.16);
}

.inquiry-points span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(235, 243, 238, 0.8);
}

.inquiry-points strong {
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.inquiry-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.inquiry-fact {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.inquiry-fact span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inquiry-fact strong {
    font-size: 1rem;
    color: var(--text);
}

.inquiry-history {
    padding: 1.25rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
}

.inquiry-history__list {
    display: grid;
    gap: 0.75rem;
}

.inquiry-history__item {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.inquiry-history__item p {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

.inquiry-history__row,
.inquiry-history__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.inquiry-history__meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.inquiry-referral,
.inquiry-referral-list {
    padding: 1.25rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
}

.inquiry-referral__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

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

.referral-prefill-banner {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(82, 135, 108, 0.18);
    background: linear-gradient(180deg, rgba(235, 248, 239, 0.94), rgba(229, 244, 235, 0.9));
}

.referral-prefill-banner p {
    margin: 0;
    color: rgba(32, 42, 38, 0.76);
    font-size: 0.92rem;
    line-height: 1.5;
}

.active-followup-card--referral {
    border-color: rgba(100, 92, 167, 0.16);
    background:
        radial-gradient(circle at top right, rgba(185, 174, 245, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 255, 0.92));
}

.table-actions--compact {
    margin-top: 0.2rem;
}

.table-actions--compact .button {
    min-height: 38px;
    padding: 0.72rem 1rem;
    font-size: 0.84rem;
}

.crm-row-actions {
    justify-content: flex-start;
}

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

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
}

.detail-list div {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.site-footer {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    padding: 0.7rem 0 0.45rem;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    font-weight: 500;
    transition: 160ms ease;
}

.site-footer__link:hover {
    color: var(--accent-dark);
    transform: translateY(-1px);
}

.site-footer__brand {
    display: inline-flex;
    align-items: baseline;
    letter-spacing: 0.06em;
}

.site-footer__brand-light {
    font-weight: 300;
}

.site-footer__brand-bold {
    font-weight: 800;
}

.site-footer__note {
    margin: 0;
    color: rgba(102, 116, 109, 0.9);
    font-size: 0.6rem;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.35;
}

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(66, 98, 83, 0.14);
    border-radius: 999px;
    background: rgba(34, 67, 53, 0.94);
    color: #f6fbf8;
    box-shadow: 0 18px 34px rgba(24, 45, 36, 0.18);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: background 0.2s ease, transform 0.2s ease;
}

.scroll-top-button--global {
    right: 22px;
    left: auto;
}

.content > .scroll-top-button {
    display: none !important;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover {
    background: rgba(41, 88, 69, 0.98);
    transform: translateY(-1px);
}

.scroll-top-button__icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.auth-panel input,
.auth-panel select,
.sale-builder input,
.sale-builder select {
    min-height: 52px;
}

.showcase-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.showcase-feature {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.showcase-feature strong {
    font-size: 0.98rem;
}

.showcase-feature span {
    color: rgba(232, 241, 236, 0.76);
    line-height: 1.55;
    font-size: 0.92rem;
}

.auth-credentials {
    display: grid;
    gap: 0.9rem;
}

.auth-credentials__label {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credential-list {
    display: grid;
    gap: 0.75rem;
}

.credential-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.56);
}

.credential-item strong {
    font-size: 0.96rem;
}

.credential-item span {
    color: var(--muted);
    text-align: right;
}

@media (max-width: 1024px) {
    .app-frame {
        padding: 0;
    }

    .app-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .content {
        border-radius: 0;
    }

    .sidebar {
        position: relative;
        top: auto;
        border-radius: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 1rem 1rem 0.9rem;
        gap: 0.9rem;
        height: auto;
        max-height: none;
        overflow-y: visible;
    }

    .sidebar__intro {
        gap: 0.7rem;
    }

    .brand-mark {
        margin-bottom: 0;
    }

    .brand-hero {
        min-height: auto;
        padding: 0.85rem 0.95rem;
        border-radius: 22px;
    }

    .brand-hero__media {
        width: min(100%, 208px);
    }

    .menu {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.2rem;
        margin-inline: -0.1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu::-webkit-scrollbar {
        display: none;
    }

    .menu a {
        min-height: 78px;
        min-width: 110px;
        padding: 0.8rem 0.8rem 0.75rem;
        border-radius: 18px;
        white-space: normal;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        scroll-snap-align: start;
        text-align: center;
    }

    .menu a > span:last-child {
        display: block;
        max-width: none;
        font-size: 0.74rem;
        font-weight: 800;
        line-height: 1.16;
        letter-spacing: 0.01em;
        overflow-wrap: normal;
        word-break: keep-all;
        text-wrap: pretty;
    }

    .menu a:hover {
        transform: none;
    }

    .sidebar-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .sidebar-footer .button.block {
        width: auto;
        min-width: 132px;
    }

    .user-chip {
        flex: 1 1 auto;
        padding: 0.85rem 1rem;
        border-radius: 18px;
    }

    .user-chip strong {
        font-size: 0.96rem;
    }

    .user-chip span {
        font-size: 0.84rem;
    }

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

    .panel-grid,
    .three-col,
    .two-col {
        grid-template-columns: 1fr;
    }

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

    .customer-hero__main,
    .customer-hero__identity {
        grid-template-columns: 1fr;
    }

    .customer-hero__avatar {
        width: 68px;
        height: 68px;
        border-radius: 22px;
    }

    .customer-meta-card {
        min-width: 0;
        flex: 1 1 180px;
    }

    .inquiry-result__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .inquiry-hero__logo {
        width: 156px;
    }

    .inquiry-facts {
        grid-template-columns: 1fr;
    }

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

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

    .auth-layout,
    .auth-layout--refined {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        min-height: auto;
    }

    .sale-item-row,
    .sale-summary-card,
    .crm-inline-sale__meta {
        grid-template-columns: 1fr;
    }

    .section-head,
    .sale-builder__head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .app-frame {
        padding: 0;
        min-height: 100vh;
    }

    .app-shell {
        display: block;
        width: 100%;
        max-width: none;
        min-height: 100vh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        overflow: visible;
    }

    body {
        overflow-x: hidden;
    }

    .sidebar {
        position: sticky;
        top: 0;
        z-index: 30;
        padding: calc(0.75rem + env(safe-area-inset-top)) 0.85rem 0.7rem;
        background: linear-gradient(180deg, rgba(28, 43, 36, 0.98), rgba(35, 55, 45, 0.94));
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #eef3ef;
        gap: 0.75rem;
    }

    .sidebar__intro,
    .brand-hero,
    .brand-hero__media,
    .sidebar-footer,
    .user-chip,
    .sidebar-footer .button.block {
        display: none;
    }

    .content--guest {
        padding: 1rem;
    }

    .menu {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(76px, 80px);
        gap: 0.35rem;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.05rem 0 0.1rem;
        margin: 0;
        background: transparent;
        border-top: 0;
        box-shadow: none;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu a {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.28rem;
        min-height: 62px;
        min-width: 76px;
        padding: 0.5rem 0.3rem 0.45rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.76);
        border: 1px solid rgba(59, 76, 68, 0.08);
        color: var(--text);
        scroll-snap-align: start;
        box-shadow: 0 8px 18px rgba(24, 38, 31, 0.1);
    }

    .menu a > span:last-child {
        display: block;
        max-width: none;
        font-size: 0.58rem;
        font-weight: 600;
        line-height: 1.08;
        text-align: center;
        letter-spacing: 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: keep-all;
        text-wrap: pretty;
        color: var(--text);
        text-shadow: none;
    }

    .menu__icon {
        width: 22px;
        height: 22px;
        border-radius: 8px;
        background: rgba(41, 88, 69, 0.08);
        color: var(--accent);
    }

    .menu__icon svg {
        width: 14px;
        height: 14px;
    }

    .menu a.is-active {
        background: linear-gradient(180deg, rgba(41, 88, 69, 0.12), rgba(255, 255, 255, 0.9));
        border-color: rgba(41, 88, 69, 0.14);
        color: var(--accent-dark);
    }

    .menu a.is-active .menu__icon {
        background: rgba(41, 88, 69, 0.16);
    }

    .topbar {
        display: none;
    }

      .hint-grid,
      .form-grid,
      .form-grid--wide,
      .showcase-feature-list,
      .showcase-metrics,
      .showcase-strip {
          grid-template-columns: 1fr;
      }

      .stats-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 0.75rem;
      }

    .progress-row__head,
    .progress-row__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .content {
        padding: 0.85rem;
        min-width: 0;
        overflow-x: clip;
    }

      .panel-grid,
      .panel-grid--review {
          gap: 0.85rem;
          margin-bottom: 0.85rem;
      }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .product-grid--catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

      .product-card {
          padding: 0.9rem;
      }

      .product-card__image {
          width: 100%;
          max-width: 150px;
          height: 150px;
      }

      .product-card__meta {
          flex-direction: column;
          gap: 0.45rem;
      }

    .panel-grid > *,
    .stats-grid > *,
    .three-col > *,
    .two-col > * {
        min-width: 0;
    }

    .user-list__item {
        min-height: 66px;
        padding: 0.78rem 0.85rem !important;
        gap: 0.65rem;
    }

    .button.compact-button {
        min-height: 34px;
        padding: 0.48rem 0.68rem;
        font-size: 0.78rem;
    }

    .stats-grid--review {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

      .stats-grid--review .stat-card {
          min-height: 0;
          padding: 0.95rem;
      }

    .stats-grid--review .stat-card__icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.65rem;
        border-radius: 12px;
    }

    .stats-grid--review .stat-value {
        font-size: 1.35rem;
        margin-bottom: 0.25rem;
    }

      .stats-grid--review .muted {
          font-size: 0.8rem;
          line-height: 1.4;
      }

      .stats-grid:not(.stats-grid--review) .stat-card {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          text-align: center;
          min-height: 160px;
          padding: 1rem 0.9rem;
      }

      .stats-grid:not(.stats-grid--review) .stat-card__icon {
          width: auto;
          height: auto;
          margin-bottom: 0.7rem;
          border-radius: 0;
          background: transparent;
          color: var(--accent);
          box-shadow: none;
      }

      .stats-grid:not(.stats-grid--review) .stat-card__icon svg {
          width: 20px;
          height: 20px;
      }

      .stats-grid:not(.stats-grid--review) .stat-value {
          font-size: 1.85rem;
          margin-bottom: 0.3rem;
          line-height: 1.05;
      }

      .stats-grid:not(.stats-grid--review) .muted {
          max-width: 12ch;
          margin-inline: auto;
          font-size: 0.92rem;
          line-height: 1.4;
      }

      .customer-hero__main {
          padding: 1rem;
          gap: 0.85rem;
      }

      .customer-hero__copy {
          gap: 0.75rem;
      }

      .customer-hero__copy h2 {
          font-size: 1.7rem;
      }

      .customer-hero__chips,
      .customer-hero__meta {
          gap: 0.55rem;
      }

      .customer-hero__chips .status-pill {
          width: 100%;
          justify-content: flex-start;
      }

      .customer-meta-card {
          width: 100%;
      }

      .customer-hero__aside {
          padding: 0.9rem;
      }

      .customer-hero__stat {
          padding: 0.9rem;
      }

      .customer-hero__stat strong {
          font-size: 1.75rem;
      }

      .inquiry-shell {
          gap: 0.85rem;
          max-width: 100%;
      }

      .inquiry-hero {
          padding: 1.25rem 1rem 1.05rem;
          border-radius: 28px;
      }

      .inquiry-hero__copy {
          margin-bottom: 0.9rem;
      }

      .inquiry-hero__copy h1 {
          font-size: 1.82rem;
      }

      .inquiry-hero__copy p {
          font-size: 0.9rem;
      }

      .inquiry-search__field input {
          min-height: 56px;
          font-size: 0.98rem;
      }

      .inquiry-search__button {
          width: 100%;
      }

      .inquiry-result__hero,
      .inquiry-history {
          padding: 1rem;
      }

      .inquiry-points {
          width: 100%;
          min-width: 0;
      }

      .inquiry-points strong {
          font-size: 2.15rem;
      }

      .inquiry-history__row,
      .inquiry-history__meta {
          align-items: flex-start;
      }

      .followup-item__head,
      .followup-item__meta {
          flex-direction: column;
      }

    .panel--analytics {
        padding: 1rem;
    }

    .panel--analytics .section-head {
        gap: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .panel--analytics .panel-title {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
    }

    .panel--analytics .section-head p {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .report-micro-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0.55rem;
    }

    .report-micro-stats div {
        min-width: 0;
        padding: 0.8rem 0.7rem;
        border-radius: 16px;
    }

    .report-micro-stats strong {
        font-size: 1.25rem;
        line-height: 1;
    }

    .report-micro-stats span {
        font-size: 0.62rem;
        line-height: 1.35;
    }

    .chart-card {
        padding-top: 0.35rem;
    }

    .chart {
        min-height: 220px;
    }

    .chart-shell {
        gap: 0.45rem;
    }

    .chart-shell__meta {
        font-size: 0.72rem;
    }

    .chart-axis-label {
        font-size: 10px;
    }

    .spotlight-card {
        padding: 1rem;
        gap: 0.8rem;
    }

    .spotlight-card__head {
        gap: 0.75rem;
    }

    .spotlight-card__head strong {
        font-size: 1.1rem;
    }

    .spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .spotlight-grid div {
        padding: 0.8rem 0.75rem;
    }

    .spotlight-grid strong {
        font-size: 1rem;
    }

    .progress-list {
        gap: 0.65rem;
    }

    .progress-row {
        padding: 0.8rem 0.85rem;
        gap: 0.55rem;
    }

    .progress-row__head {
        flex-direction: row;
        align-items: flex-start;
    }

    .progress-row__head strong {
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .progress-row__head span,
    .progress-row__meta span {
        font-size: 0.78rem;
    }

    .progress-row__meta {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .panel--performance-table {
        display: none;
    }

    .hero-card,
    .panel,
    .stat-card {
        border-radius: 20px;
    }

    .hero-card,
    .panel,
    .stat-card,
    .flash {
        padding: 1.05rem;
    }

    .section-head {
        gap: 0.75rem;
    }

    .section-head .button,
    .table-actions .button,
    .table-actions form,
    .table-actions form .button {
        width: 100%;
    }

    .table-actions {
        width: 100%;
        flex-direction: column;
    }

    .table-wrap {
        margin-inline: 0;
        padding-inline: 0;
        overflow: visible;
        border-top: 0;
    }

    .filter-form {
        grid-template-columns: 1fr;
        min-width: 100%;
    }

    .mobile-card-table,
    .mobile-card-table thead,
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table th,
    .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tbody {
        display: grid;
        gap: 0.75rem;
    }

    .mobile-card-table tr {
        padding: 0.9rem;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.64);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
    }

    .mobile-card-table td {
        display: block;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(59, 76, 68, 0.08);
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .mobile-card-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .mobile-card-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.35rem;
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .mobile-card-table td > .muted {
        margin-top: 0.2rem;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .mobile-card-table td .badge {
        max-width: max-content;
    }

    .mobile-card-table .table-actions {
        margin-top: 0.1rem;
    }

.stat-value {
    font-size: 1.6rem;
}
}

.crm-dashboard {
    display: grid;
    gap: 1rem;
}

.crm-toolbar,
.crm-filter-panel,
.crm-table-panel {
    padding: 1.2rem;
}

.crm-toolbar {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.6fr) auto;
    align-items: end;
}

.crm-toolbar__intro h2 {
    margin: 0.15rem 0 0.55rem;
    font-size: clamp(1.55rem, 2vw, 2.2rem);
    line-height: 1.08;
}

.crm-toolbar__intro p,
.crm-table-panel__subtext {
    margin: 0;
    max-width: 78ch;
    color: var(--muted);
    line-height: 1.5;
}

.crm-toolbar__actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.crm-owner-switcher {
    display: grid;
    gap: 0.9rem;
}

.crm-owner-switcher__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.crm-owner-switcher__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.crm-owner-pill {
    display: grid;
    gap: 0.2rem;
    min-width: 180px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(78, 101, 90, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.crm-owner-pill strong {
    font-size: 0.95rem;
}

.crm-owner-pill span {
    color: var(--muted);
    font-size: 0.82rem;
}

.crm-owner-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(39, 63, 51, 0.08);
    border-color: rgba(53, 106, 82, 0.22);
}

.crm-owner-pill.is-active {
    border-color: rgba(53, 106, 82, 0.32);
    background: linear-gradient(180deg, rgba(232, 245, 236, 0.95), rgba(247, 251, 248, 0.88));
    box-shadow: inset 0 0 0 1px rgba(53, 106, 82, 0.06);
}

.crm-kpi-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.9rem;
}

.crm-kpi {
    min-width: 0;
    padding: 1rem;
}

.crm-kpi .stat-value {
    font-size: 1.95rem;
}

.crm-filter-form {
    display: grid;
    gap: 1rem;
}

.crm-filter-form__ranges {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.crm-range-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(72, 103, 88, 0.1);
    cursor: pointer;
}

.crm-range-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.crm-range-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.crm-range-pill.is-active span {
    color: #edf5ef;
    background: linear-gradient(135deg, rgba(53, 106, 82, 0.98), rgba(37, 83, 64, 0.96));
    box-shadow: 0 14px 24px rgba(39, 63, 51, 0.16);
}

.crm-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.crm-filter-grid label {
    display: grid;
    gap: 0.42rem;
}

.crm-filter-grid span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.crm-filter-grid input,
.crm-filter-grid select {
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(78, 101, 90, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
}

.crm-filter-form__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.crm-filter-form__meta {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.88rem;
}

.seasonal-alert-panel {
    padding: 1.2rem;
}

.seasonal-alert-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seasonal-alert-list {
    display: grid;
    gap: 1rem;
}

.seasonal-alert-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid rgba(96, 140, 116, 0.16);
    background:
        radial-gradient(circle at top right, rgba(147, 203, 163, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(246, 252, 247, 0.96), rgba(236, 246, 238, 0.92));
}

.seasonal-alert-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.seasonal-alert-card__head h4 {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
}

.seasonal-alert-card__count {
    flex-shrink: 0;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(41, 88, 69, 0.1);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease;
}

.seasonal-alert-card__count:hover {
    transform: translateY(-1px);
    background: rgba(41, 88, 69, 0.16);
}

.seasonal-alert-card__message {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.seasonal-alert-card__products {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.seasonal-product-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(41, 88, 69, 0.12);
    color: var(--accent-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.seasonal-alert-customers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.seasonal-alert-customer {
    display: grid;
    gap: 0.28rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 76, 68, 0.12);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.seasonal-alert-customer:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(43, 78, 58, 0.08);
}

.seasonal-alert-customer strong {
    font-size: 0.97rem;
}

.seasonal-alert-customer span,
.seasonal-alert-customer small {
    color: var(--muted);
}

.seasonal-alert-card__footer {
    display: flex;
    justify-content: flex-end;
}

.crm-table-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.crm-table-panel__summary {
    display: inline-flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.crm-table-panel__summary span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(235, 243, 238, 0.84);
    border: 1px solid rgba(78, 101, 90, 0.12);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.crm-table-wrap {
    overflow: auto;
    border: 1px solid rgba(78, 101, 90, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
}

.crm-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.crm-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.72rem 0.62rem;
    background: rgba(236, 243, 239, 0.97);
    border-bottom: 1px solid rgba(78, 101, 90, 0.12);
    color: var(--accent-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.crm-table tbody td {
    padding: 0.48rem 0.44rem;
    border-bottom: 1px solid rgba(78, 101, 90, 0.08);
    color: var(--text);
    vertical-align: top;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    font-size: 0.72rem;
    line-height: 1.34;
}

.crm-table__row {
    cursor: pointer;
}

.crm-table__date,
.crm-table thead th:first-child {
    min-width: 94px;
    white-space: nowrap;
}

.crm-table tbody tr:nth-child(2n) td {
    background: rgba(246, 250, 247, 0.58);
}

.crm-table tbody tr:hover td {
    background: rgba(230, 240, 234, 0.62);
}

.crm-table__name {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 0.8rem;
    line-height: 1.3;
}

.crm-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 104, 92, 0.1);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.crm-table td[data-crm-field="city"],
.crm-table td[data-crm-field="phone"],
.crm-table td[data-crm-field="customer_kind"],
.crm-table td[data-crm-field="payment_method"],
.crm-table td[data-crm-field="source_context"] {
    font-size: 0.7rem;
    line-height: 1.36;
}

.crm-table td[data-crm-field="customer_kind"] {
    min-width: 60px;
}

.crm-table td[data-crm-field="display_amount"] {
    min-width: 84px;
    white-space: nowrap;
    font-weight: 600;
}

.crm-table td[data-crm-field="source_context"] {
    min-width: 88px;
    color: var(--muted);
}

.crm-table td[data-crm-field="discussion_topic"] {
    min-width: 132px;
    max-width: 165px;
    font-size: 0.68rem;
    line-height: 1.3;
}

.crm-table td[data-crm-field="note"] {
    min-width: 138px;
    max-width: 178px;
    font-size: 0.64rem;
    line-height: 1.28;
    color: #31403a;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.crm-table td[data-crm-field="crop_area_info"] {
    min-width: 88px;
    max-width: 124px;
    font-size: 0.63rem;
    line-height: 1.24;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.crm-table__actions {
    min-width: 94px;
}

.crm-table td[data-crm-field="note"],
.crm-table td[data-crm-field="crop_area_info"] {
    color: #415047;
}

.crm-row-actions {
    gap: 0.45rem;
}

.crm-row-actions .button,
.crm-row-actions form .button {
    min-height: 30px;
    padding: 0.34rem 0.6rem;
    font-size: 0.69rem;
    font-weight: 700;
}

.crm-tag--plain {
    background: rgba(239, 244, 241, 0.92);
    color: #446154;
}

.crm-tag--mint {
    background: rgba(220, 244, 232, 0.96);
    color: #246248;
    border-color: rgba(59, 132, 90, 0.14);
}

.crm-tag--slate {
    background: rgba(230, 235, 239, 0.96);
    color: #475a67;
    border-color: rgba(90, 108, 120, 0.14);
}

.crm-tag--green {
    background: rgba(220, 247, 224, 0.98);
    color: #1f6b3f;
    border-color: rgba(56, 144, 87, 0.16);
}

.crm-tag--green-strong {
    background: linear-gradient(135deg, rgba(49, 138, 84, 0.98), rgba(35, 112, 68, 0.98));
    color: #ffffff;
    border-color: rgba(35, 112, 68, 0.28);
    box-shadow: 0 8px 16px rgba(35, 112, 68, 0.14);
}

.crm-tag--green-soft {
    background: rgba(229, 244, 226, 0.98);
    color: #43693f;
    border-color: rgba(97, 138, 86, 0.14);
}

.crm-tag--amber {
    background: rgba(250, 239, 206, 0.98);
    color: #876114;
    border-color: rgba(184, 139, 39, 0.16);
}

.crm-tag--rose {
    background: rgba(250, 226, 228, 0.98);
    color: #8f4150;
    border-color: rgba(176, 86, 104, 0.16);
}

.crm-tag--blue {
    background: rgba(225, 239, 248, 0.98);
    color: #2d6078;
    border-color: rgba(77, 137, 170, 0.16);
}

.crm-tag--blue-soft {
    background: rgba(231, 242, 248, 0.98);
    color: #476878;
    border-color: rgba(105, 144, 166, 0.15);
}

.crm-tag--violet {
    background: rgba(236, 229, 248, 0.98);
    color: #5b4781;
    border-color: rgba(122, 102, 168, 0.15);
}

.crm-edit-toggle {
    min-width: 92px;
    padding-inline: 0.85rem;
    white-space: nowrap;
}

.crm-edit-row td {
    padding: 0 !important;
    background: rgba(237, 244, 240, 0.88) !important;
}

.crm-edit-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.crm-edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.crm-edit-grid label {
    display: grid;
    gap: 0.38rem;
}

.crm-edit-grid label span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.crm-edit-grid input,
.crm-edit-grid select,
.crm-edit-grid textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.82rem;
    border-radius: 14px;
    border: 1px solid rgba(78, 101, 90, 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
}

.crm-edit-grid textarea {
    min-height: 94px;
    resize: vertical;
}

.crm-edit-grid__wide {
    grid-column: span 2;
}

.crm-edit-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

.crm-inline-sale {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(78, 101, 90, 0.18);
    display: grid;
    gap: 0.9rem;
}

.crm-inline-sale__head h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.crm-inline-sale__head p {
    margin: 0;
}

.crm-inline-sale__form {
    padding: 0;
}

.crm-inline-sale__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px)) auto;
    gap: 0.9rem;
    align-items: end;
}

.crm-inline-sale__meta label {
    display: grid;
    gap: 0.38rem;
}

.crm-inline-sale__meta span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.crm-inline-sale__checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
}

.crm-inline-sale__checkbox input {
    width: 18px;
    height: 18px;
}

.crm-inline-sale__checkbox span {
    font-size: 0.88rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}

.crm-inline-sale__address {
    display: grid;
    gap: 0.38rem;
}

.crm-inline-sale__address span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.crm-inline-sale__address textarea {
    min-height: 78px;
}

.crm-inline-sale__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.crm-edit-meta {
    margin-right: auto;
    font-size: 0.82rem;
    color: var(--muted);
}

.crm-edit-feedback {
    margin-right: auto;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--muted);
}

.crm-edit-feedback.is-success {
    color: var(--accent);
}

.crm-edit-feedback.is-error {
    color: var(--danger);
}

@media (max-width: 1360px) {
    .crm-kpi-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .crm-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-inline-sale__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid--catalog {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-manager-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .crm-toolbar {
        grid-template-columns: 1fr;
    }

    .crm-toolbar__actions {
        justify-content: flex-start;
    }

    .crm-kpi-strip,
    .crm-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-edit-grid__wide {
        grid-column: span 2;
    }

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

    .catalog-search-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .crm-kpi-strip,
    .crm-filter-grid {
        grid-template-columns: 1fr;
    }

    .crm-edit-grid {
        grid-template-columns: 1fr;
    }

    .crm-edit-grid__wide {
        grid-column: span 1;
    }

    .crm-filter-form__actions {
        align-items: stretch;
    }

    .crm-filter-form__meta {
        margin-left: 0;
    }

    .seasonal-alert-card__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .seasonal-alert-customers {
        grid-template-columns: 1fr;
    }

    .crm-toolbar__actions .button,
    .crm-filter-form__actions .button,
    .crm-edit-actions .button {
        width: 100%;
    }

    .crm-edit-actions {
        flex-direction: column;
    }

    .catalog-search-bar__actions {
        width: 100%;
    }

    .catalog-search-bar__actions .button {
        width: 100%;
    }
}

body.has-open-modal {
    overflow: hidden;
}

.crm-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 24px;
}

.crm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 33, 27, 0.46);
    backdrop-filter: blur(8px);
}

.crm-modal__panel {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100vw - 32px));
    max-height: min(calc(100dvh - 64px), 920px);
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: 28px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,246,242,0.96));
    border: 1px solid rgba(73, 109, 92, 0.18);
    box-shadow: 0 28px 60px rgba(21, 43, 35, 0.22);
}

.reminder-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.reminder-stack {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.reminder-card {
    border-radius: 22px;
    padding: 18px 20px;
    background: rgba(231, 242, 235, 0.82);
    border: 1px solid rgba(88, 128, 109, 0.18);
}

.reminder-card.is-active,
.reminder-card--info {
    background: rgba(223, 240, 233, 0.92);
}

.reminder-card--warning {
    background: rgba(245, 239, 210, 0.92);
    border-color: rgba(176, 149, 58, 0.22);
}

.reminder-card--danger {
    background: rgba(252, 226, 226, 0.94);
    border-color: rgba(189, 87, 87, 0.22);
}

.reminder-card strong,
.reminder-product-card strong {
    display: block;
    margin-bottom: 6px;
}

.reminder-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.reminder-product-block {
    margin-top: 18px;
}

.reminder-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.reminder-product-card {
    border-radius: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(91, 129, 111, 0.14);
    box-shadow: 0 10px 24px rgba(25, 49, 40, 0.06);
}

.reminder-product-card span,
.reminder-product-card small {
    display: block;
    color: var(--muted);
}

@media (max-width: 720px) {
    .crm-modal {
        padding: 14px;
    }

    .crm-modal__panel {
        width: min(100vw - 12px, 100%);
        max-height: calc(100dvh - 28px);
        padding: 18px;
        border-radius: 24px;
    }

    .reminder-modal__head {
        flex-direction: column;
        align-items: stretch;
    }

    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }
}

.shipping-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(241, 248, 244, 0.94), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(76, 112, 95, 0.14);
}

.shipping-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.shipping-card__track-no {
    font-weight: 700;
    color: var(--text);
}

.shipping-stats-grid {
    margin-top: 1.25rem;
}

.shipping-stat-card {
    background: linear-gradient(180deg, rgba(239, 247, 242, 0.95), rgba(255, 255, 255, 0.98));
}

.shipping-panel {
    display: grid;
    gap: 1rem;
}

.shipping-provider-note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.shipping-provider-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.shipping-provider-pill.is-live {
    background: rgba(73, 143, 95, 0.12);
    color: #2f6a48;
    border-color: rgba(73, 143, 95, 0.18);
}

.shipping-provider-pill.is-pending {
    background: rgba(173, 137, 63, 0.12);
    color: #8a6a28;
    border-color: rgba(173, 137, 63, 0.18);
}

.shipping-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(180px, 1fr)) auto;
    gap: 1rem;
    align-items: end;
}

.shipping-filter-form__actions {
    display: flex;
    gap: 0.65rem;
}

.shipping-list {
    display: grid;
    gap: 1rem;
}

.shipping-entry {
    display: grid;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(87, 122, 104, 0.14);
    box-shadow: 0 14px 28px rgba(28, 54, 44, 0.06);
}

.shipping-entry__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.shipping-entry__head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.shipping-entry__head p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.shipping-entry__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.shipping-entry__label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.shipping-entry__note {
    margin: 0;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(238, 245, 240, 0.88);
    color: var(--text);
    line-height: 1.6;
}

.shipping-entry__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.shipping-events {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.shipping-event {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(46, 83, 66, 0.12);
    border-radius: 18px;
    background: rgba(246, 250, 247, 0.95);
}

.shipping-event strong {
    font-size: 0.96rem;
    color: var(--text-strong);
}

.shipping-event span,
.shipping-event small,
.shipping-event time {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.shipping-entry__editor {
    display: grid;
    gap: 0.75rem;
}

.shipping-entry__editor > summary {
    list-style: none;
}

.shipping-entry__editor > summary::-webkit-details-marker {
    display: none;
}

.shipping-editor-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    min-width: min(760px, 100%);
    padding: 1rem;
    border-radius: 20px;
    background: rgba(241, 248, 244, 0.9);
    border: 1px solid rgba(84, 119, 101, 0.16);
}

.shipping-editor-form__wide {
    grid-column: span 2;
}

.shipping-editor-form__actions {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
}

.badge--shipment-draft {
    background: rgba(116, 132, 124, 0.14);
    color: #53685e;
}

.badge--shipment-waiting {
    background: rgba(203, 172, 72, 0.16);
    color: #8d6b1e;
}

.badge--shipment-progress {
    background: rgba(77, 146, 188, 0.14);
    color: #2c6889;
}

.badge--shipment-delivered {
    background: #3e775d;
    color: #fff;
}

.badge--shipment-problem {
    background: rgba(191, 88, 88, 0.15);
    color: #9a3f3f;
}

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

    .shipping-filter-form__actions {
        grid-column: span 2;
    }

    .shipping-entry__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shipping-filter-form,
    .shipping-entry__grid,
    .shipping-editor-form {
        grid-template-columns: 1fr;
    }

    .shipping-filter-form__actions,
    .shipping-editor-form__wide,
    .shipping-editor-form__actions {
        grid-column: span 1;
    }

    .shipping-entry__head {
        flex-direction: column;
        align-items: stretch;
    }

    .shipping-entry__actions,
    .shipping-filter-form__actions {
        flex-direction: column;
    }

.shipping-entry__actions .button,
    .shipping-filter-form__actions .button,
    .shipping-entry__editor {
        width: 100%;
    }
}

.notification-center {
    position: relative;
    z-index: 20;
}

.engineer-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.engineer-notifications {
    position: relative;
}

.engineer-notifications > summary {
    list-style: none;
}

.engineer-notifications > summary::-webkit-details-marker {
    display: none;
}

.engineer-notifications__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.82rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(79, 117, 98, 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: var(--accent-dark);
    box-shadow: 0 16px 30px rgba(27, 50, 41, 0.08);
    cursor: pointer;
    user-select: none;
}

.engineer-notifications[open] .engineer-notifications__trigger,
.engineer-notifications__trigger:hover {
    border-color: rgba(56, 106, 79, 0.28);
    box-shadow: 0 20px 34px rgba(27, 50, 41, 0.14);
}

.engineer-notifications__icon {
    font-size: 1rem;
    line-height: 1;
}

.engineer-notifications__label {
    font-weight: 700;
    font-size: 0.95rem;
}

.engineer-notifications__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #2f6c4c;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.engineer-notifications__count--panel {
    min-width: 34px;
    height: 34px;
}

.engineer-notifications__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(380px, calc(100vw - 48px));
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(79, 117, 98, 0.14);
    box-shadow: 0 26px 50px rgba(18, 42, 31, 0.18);
    z-index: 30;
}

.engineer-notifications__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.engineer-notifications__head strong {
    display: block;
    font-size: 0.98rem;
}

.engineer-notifications__head small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
}

.engineer-notifications__list {
    display: grid;
    gap: 0.7rem;
    max-height: min(62dvh, 460px);
    overflow: auto;
}

.notification-center--card {
    display: inline-block;
}

.notification-center--card > summary {
    list-style: none;
}

.notification-center--card > summary::-webkit-details-marker {
    display: none;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(79, 117, 98, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--accent-dark);
    box-shadow: 0 16px 30px rgba(27, 50, 41, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.notification-bell__glyph {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
}

.notification-bell:hover,
.notification-bell.is-open {
    transform: translateY(-1px);
    border-color: rgba(56, 106, 79, 0.28);
    box-shadow: 0 20px 34px rgba(27, 50, 41, 0.14);
}

.notification-bell__icon {
    width: 20px;
    height: 20px;
    opacity: 0;
}

.notification-bell__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-bell__count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2f6c4c;
    color: #fff;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px rgba(47, 108, 76, 0.28);
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 36px));
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(79, 117, 98, 0.14);
    box-shadow: 0 26px 50px rgba(18, 42, 31, 0.18);
}

.notification-center--card[open] .notification-panel {
    display: block;
}

.notification-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.notification-panel__head strong {
    display: block;
    font-size: 0.98rem;
}

.notification-panel__head small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
}

.notification-panel__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(58, 113, 81, 0.1);
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.notification-list {
    display: grid;
    gap: 0.7rem;
    max-height: min(62dvh, 460px);
    overflow: auto;
}

.notification-empty {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(244, 249, 246, 0.92);
    border: 1px solid rgba(85, 124, 104, 0.12);
}

.notification-empty strong {
    font-size: 0.92rem;
}

.notification-empty span {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.notification-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.88rem 0.95rem;
    border-radius: 18px;
    background: rgba(244, 249, 246, 0.92);
    border: 1px solid rgba(85, 124, 104, 0.12);
    color: inherit;
    text-decoration: none;
}

.notification-item:hover {
    border-color: rgba(54, 103, 75, 0.2);
    background: rgba(248, 252, 249, 0.98);
}

.notification-item.is-overdue {
    background: rgba(252, 241, 241, 0.95);
    border-color: rgba(197, 109, 109, 0.18);
}

.notification-item.is-upcoming {
    background: rgba(242, 247, 252, 0.96);
    border-color: rgba(93, 144, 196, 0.16);
}

.notification-item.is-crop {
    background: rgba(242, 249, 241, 0.97);
    border-color: rgba(92, 152, 92, 0.16);
}

.notification-item__meta {
    display: grid;
    gap: 0.16rem;
}

.notification-item__meta strong {
    font-size: 0.94rem;
    color: var(--text);
}

.notification-item__meta span {
    font-size: 0.8rem;
    color: var(--muted);
}

.notification-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.notification-item__status {
    font-weight: 700;
    color: var(--accent-dark);
}

.notification-item time {
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .notification-bell {
        width: 48px;
        height: 48px;
    }

    .notification-panel {
        width: min(340px, calc(100vw - 28px));
        right: -4px;
    }

    .engineer-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .engineer-notifications__panel {
        right: auto;
        left: 0;
        width: min(340px, calc(100vw - 28px));
    }
}
