:root {
    --font-body: "M PLUS 1p", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Orbitron", "M PLUS 1p", sans-serif;
    --wine: #9c86d6;
    --wine-dark: #57477f;
    --ink: #272339;
    --muted: #6f6880;
    --line: #e5ddf4;
    --paper: #fbf8ff;
    --panel: #ffffff;
    --gold: #b99752;
    --sage: #496b5c;
    --danger: #b42333;
    --success: #26724f;
    --shadow: 0 14px 38px rgba(58, 43, 91, .12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(156, 134, 214, .18), rgba(251, 248, 255, 0) 280px),
        var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    font-size: 16px;
}

button {
    cursor: pointer;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

input[type="date"],
input[type="number"],
input[inputmode="numeric"],
input[inputmode="decimal"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    max-width: 100%;
    line-height: 1.35;
}

input[type="date"] {
    min-inline-size: 0;
    width: 100%;
    padding-left: 10px;
    padding-right: 6px;
    overflow: hidden;
}

input[type="date"]::-webkit-date-and-time-value {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 1.35em;
    text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0;
}

input[type="file"] {
    height: auto;
    min-height: 46px;
    padding: 9px 10px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.compact-textarea {
    min-height: 92px;
}

.summary-textarea {
    min-height: 192px;
}

.vinification-textarea {
    min-height: 112px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(156, 134, 214, .16);
}

label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at center top, rgba(255, 255, 255, .62), transparent 330px),
        linear-gradient(145deg, #efe9ff, #d8cdf7 58%, #fbf8ff 58%);
}

.auth-card {
    width: min(440px, 100%);
    padding: 28px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.auth-card h1 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.25;
}

.auth-link {
    margin: 18px 0 0;
    text-align: center;
    color: var(--wine);
    font-weight: 700;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 60px;
    padding: max(8px, env(safe-area-inset-top)) clamp(14px, 4vw, 32px) 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(251, 248, 255, .94);
    border-bottom: 1px solid rgba(156, 134, 214, .18);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 900;
    color: var(--wine-dark);
}

.brand img {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.brand-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    line-height: 1.15;
}

.brand-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-title,
.toolbar h1,
.metric strong,
.panel h2,
.section-title h2,
.primary-btn,
.tabbar a {
    font-family: var(--font-display);
}

.header-version {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border-radius: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-chip {
    max-width: 220px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: var(--wine-dark);
    background: rgba(156, 134, 214, .14);
    border: 1px solid rgba(156, 134, 214, .32);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    color: var(--wine-dark);
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(156, 134, 214, .38);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.account-btn.active,
.account-btn:focus-visible,
.account-btn:hover {
    color: #fff;
    background: var(--wine);
    border-color: var(--wine);
}

.tabbar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 19;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow-x: visible;
    padding: 7px clamp(14px, 4vw, 32px) calc(7px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 255, .92);
    border-top: 1px solid rgba(156, 134, 214, .18);
    border-bottom: 0;
    scrollbar-width: none;
    backdrop-filter: blur(16px);
}

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

.tabbar a {
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    color: var(--muted);
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.tabbar a.active {
    color: var(--ink);
    background: var(--wine);
}

.app-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 16px clamp(14px, 4vw, 32px) calc(92px + env(safe-area-inset-bottom));
}

.app-shell > * + * {
    margin-top: 12px;
}

.hero-panel,
.panel,
.billing-strip,
.form-section,
.paywall {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    padding: clamp(22px, 5vw, 42px);
    color: var(--ink);
    background:
        linear-gradient(120deg, rgba(247, 241, 255, .98), rgba(225, 216, 250, .94)),
        #f7f1ff;
    border-color: rgba(156, 134, 214, .28);
}

.home-hero {
    align-items: center;
    padding: 14px 16px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .96), rgba(238, 230, 255, .92)),
        #fbf8ff;
}

.hero-panel h1 {
    max-width: 760px;
    margin: 0;
    color: var(--wine-dark);
    font-size: 34px;
    line-height: 1.25;
}

.hero-panel.home-hero h1 {
    display: block;
    min-height: 0;
    padding: 0;
    color: #3f3261;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 24px;
}

.hero-panel .home-intro p {
    max-width: 620px;
    margin-top: 4px;
    color: #5f5574;
    font-size: 13px;
    line-height: 1.45;
}

.hero-panel p {
    max-width: 640px;
    margin: 12px 0 0;
    color: var(--muted);
}

.first-wine-onboarding,
.first-wine-complete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(126, 87, 194, .28);
    border-left: 4px solid var(--wine);
    border-radius: 8px;
    background: #f6f0ff;
}

.first-wine-onboarding h1 {
    margin: 3px 0 0;
    color: var(--wine-dark);
    font-size: 25px;
    line-height: 1.2;
}

.first-wine-onboarding p {
    max-width: 620px;
    margin: 6px 0 0;
    color: #5f5574;
    font-size: 14px;
    line-height: 1.5;
}

.onboarding-kicker {
    display: block;
    color: var(--wine);
    font-size: 11px;
    font-weight: 900;
}

.onboarding-start-btn {
    min-width: 150px;
    text-align: center;
}

.quick-start-toolbar {
    max-width: 680px;
}

.quick-start-toolbar .onboarding-kicker {
    margin-bottom: 3px;
}

.quick-wine-form {
    display: grid;
    gap: 12px;
    max-width: 680px;
}

.quick-wine-fields {
    display: grid;
    gap: 16px;
}

.quick-wine-fields label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.quick-wine-fields label small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.quick-start-actions,
.first-wine-complete-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-start-actions .primary-btn,
.quick-start-actions .ghost-btn {
    flex: 1 1 220px;
    text-align: center;
}

.first-wine-complete {
    background: #f8f5ff;
}

.first-wine-complete > div:first-child {
    display: grid;
    gap: 3px;
}

.first-wine-complete strong {
    color: var(--wine-dark);
    font-size: 16px;
}

.first-wine-complete span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.hero-actions,
.detail-actions,
.row-actions,
.photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

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

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

.home-metrics {
    margin: 10px 0 8px;
    gap: 8px;
}

.app-shell .metric-grid.home-count-metrics,
.app-shell .metric-grid.home-money-metrics {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
}

.app-shell .metric-grid.home-count-metrics {
    grid-template-columns: none;
}

.app-shell .metric-grid.home-money-metrics {
    grid-template-columns: none;
    gap: 8px;
    margin: 0 0 10px;
}

.home-metrics .metric {
    padding: 10px;
}

.home-money-metrics .metric {
    padding: 11px 12px;
}

.home-metrics .metric strong,
.home-money-metrics .metric strong {
    font-size: clamp(18px, 2.7vw, 22px);
}

.home-count-metrics .metric {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.home-count-metrics .metric span {
    font-size: 11px;
    line-height: 1.2;
}

.home-count-metrics .metric strong {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin: 4px 0 0;
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.05;
    white-space: nowrap;
}

.home-count-metrics .metric strong small {
    display: inline;
    font-size: .58em;
    line-height: 1;
}

.metric {
    min-width: 0;
    padding: 16px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.home-count-metrics .metric,
.home-money-metrics .metric {
    flex: 1 1 0;
    min-width: 0;
}

.panel > button,
.panel > .primary-btn,
.panel > .gold-btn,
.panel > .ghost-btn,
.panel > .danger-btn,
.panel > .tiny-btn,
.form-section > button,
.form-section > .primary-btn,
.form-section > .gold-btn,
.form-section > .ghost-btn,
.form-section > .danger-btn,
.form-section > .tiny-btn,
form > button,
form > .primary-btn,
form > .gold-btn,
form > .ghost-btn,
form > .danger-btn,
form > .tiny-btn {
    margin-top: 2px;
}

.metric span,
.metric small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.metric strong {
    display: block;
    margin: 6px 0 4px;
    color: var(--wine-dark);
    font-size: 24px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.home-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .9fr);
    gap: 16px;
    margin-top: 16px;
}

.home-type-panel {
    margin-top: 10px;
    margin-bottom: 16px;
}

.home-main-panel .compact-list {
    gap: 8px;
}

.panel,
.form-section,
.paywall {
    padding: 16px;
}

.section-title,
.toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.section-title h2,
.toolbar h1,
.panel h2,
.form-section h2 {
    margin: 0;
    line-height: 1.25;
}

.toolbar p,
.section-title a,
.muted,
.note {
    color: var(--muted);
}

.section-title a {
    font-weight: 800;
}

.small-top {
    margin-top: 16px;
}

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

.wine-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) minmax(76px, auto);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.wine-row strong,
.wine-row small {
    display: block;
}

.wine-row strong {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.wine-row small {
    color: var(--muted);
}

.wine-row em {
    color: var(--wine);
    font-style: normal;
    font-weight: 900;
}

.wine-row-side {
    display: grid;
    gap: 2px;
    justify-items: end;
    text-align: right;
}

.wine-row-side small {
    max-width: 96px;
}

.thumb {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #eee8fb;
    border-radius: 8px;
}

.thumb img,
.wine-photo img,
.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.type-bars a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    background: #f7f2ff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.type-bars a:focus-visible,
.type-bars a:hover {
    border-color: #bda8ef;
    background: #f1e9ff;
}

.toolbar {
    margin: 4px 0 16px;
}

.toolbar h1 {
    font-size: 28px;
}

.toolbar p {
    margin: 4px 0 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, minmax(130px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

.wine-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(58, 43, 91, .08);
}

.wine-photo {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--wine-dark);
    background: linear-gradient(140deg, #8e78d4, #cfc2f4);
    font-size: 46px;
    font-weight: 900;
}

.wine-card-body {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.wine-card-body strong {
    font-size: 18px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.wine-card-body small {
    color: var(--muted);
}

.wine-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--wine);
    font-weight: 900;
}

.wine-card-meta em {
    font-style: normal;
    overflow-wrap: anywhere;
}

.status {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status.stored {
    color: #124733;
    background: #dff4e9;
}

.status.opened {
    color: #57477f;
    background: #ece5ff;
}

.status.empty {
    color: #6f3318;
    background: #f7e5d8;
}

.status.pending {
    color: #5b4a1c;
    background: #f7edc8;
}

.edit-form {
    display: grid;
    gap: 16px;
}

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

.field-row {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    min-width: 0;
}

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

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

.field-row label {
    min-width: 0;
}

.form-section h2,
.edit-form,
.edit-form label {
    color: var(--ink);
}

.form-description {
    margin: 6px 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

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

.sticky-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(251, 248, 255, 0), var(--paper) 34%);
}

.detail-head {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: end;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-photo {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--wine-dark);
    background: linear-gradient(140deg, #8e78d4, #cfc2f4);
    border-radius: 8px;
    font-size: 64px;
    font-weight: 900;
}

.detail-head h1 {
    margin: 8px 0 6px;
    font-size: 32px;
    line-height: 1.25;
}

.detail-head p {
    margin: 0 0 14px;
    color: var(--muted);
}

.detail-info-layout {
    align-items: start;
}

.detail-info-layout .panel {
    min-width: 0;
}

.detail-info-layout .panel:nth-child(3) {
    grid-column: 1 / -1;
}

.detail-field-grid {
    display: grid;
    gap: 10px;
}

.detail-field-row {
    display: grid;
    gap: 10px;
    min-width: 0;
}

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

.detail-field-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-field {
    min-width: 0;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 6px;
}

.detail-field span {
    display: block;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.detail-field strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.detail-subline {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

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

.info-list {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.photo-grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.photo-grid figure > img {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.photo-grid figcaption {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.photo-main-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    color: var(--wine-dark);
    background: #eee6ff;
    border: 1px solid rgba(156, 134, 214, .32);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
}

.photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px 8px;
}

.photo-actions form {
    flex: 1 1 124px;
}

.photo-actions .tiny-btn {
    width: 100%;
}

.photo-manager-panel {
    margin-top: 16px;
}

.photo-direct-actions {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 6px;
    padding: 6px 8px 2px;
    background: #fff;
}

.photo-direct-actions form {
    margin: 0;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.photo-direct-actions .tiny-btn,
.photo-direct-actions .photo-command-badge {
    width: 100%;
    min-height: 40px;
    height: 100%;
    margin-top: 0;
    padding: 5px 6px;
    line-height: 1.18;
    white-space: normal;
}

.photo-direct-actions .tiny-btn.photo-delete-btn {
    color: #7f2b46;
    background: #fff5f7;
    border-color: rgba(190, 89, 118, .24);
}

.photo-direct-actions .tiny-btn.photo-main-btn {
    color: var(--wine);
    background: #fff;
    border-color: var(--line);
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.cellar-list,
.user-table {
    display: grid;
    gap: 10px;
}

.cellar-panel {
    margin-bottom: 28px;
}

.cellar-edit-panel {
    margin-top: 28px;
}

.cellar-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(168px, auto) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cellar-card h3,
.cellar-card p {
    margin: 0;
}

.cellar-card p {
    color: var(--muted);
}

.cellar-card small {
    color: var(--muted);
    font-weight: 800;
}

.cellar-stats {
    display: grid;
    min-width: 120px;
    text-align: right;
}

.cellar-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.cellar-stats strong {
    color: var(--wine);
    font-size: 34px;
    line-height: 1.1;
}

.cellar-stats small {
    color: var(--muted);
    font-weight: 900;
}

.cellar-placement {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(17, 24, 39, .08);
}

.cellar-placement-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.cellar-placement-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.cellar-placement-head strong {
    color: var(--wine);
    font-size: 13px;
}

.cellar-placement-columns,
.cellar-placement-row {
    display: grid;
    grid-template-columns: 44px repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
}

.cellar-placement-columns span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.cellar-row-label {
    align-self: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.cellar-slot {
    display: grid;
    gap: 4px;
    min-height: 76px;
    padding: 4px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: #fff;
}

.cellar-slot.is-empty {
    place-items: center;
    border-style: dashed;
    background: #fafafa;
}

.cellar-thumb {
    display: grid;
    gap: 4px;
    color: var(--ink);
    text-decoration: none;
}

.cellar-thumb-image {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 7px;
    background: #efe9fb;
    color: var(--wine);
    font-size: 18px;
    font-weight: 900;
}

.cellar-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cellar-thumb-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.cellar-thumb-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cellar-thumb-copy small,
.cellar-empty-slot {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.cellar-placement-empty {
    padding: 12px;
    border: 1px dashed rgba(17, 24, 39, .14);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.cellar-placement-summary {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 8px;
    background: #f7f2ff;
}

.cellar-placement-summary span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.cellar-placement-summary strong {
    color: var(--wine);
    font-size: 13px;
}

.settings-user-panel {
    margin-bottom: 24px;
}

.settings-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 16px;
    align-items: end;
    margin-top: 20px;
}

.settings-logout-btn {
    width: fit-content;
    margin-top: 18px;
}

.user-summary {
    margin-bottom: 4px;
}

.settings-temperature-panel {
    margin-top: 24px;
}

.admin-panel {
    margin-top: 24px;
}

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

.admin-db-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-db-meta span {
    padding: 5px 8px;
    background: #f7f4fb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 18px;
}

.admin-stats-grid .stat {
    min-width: 0;
    padding: 10px;
    background: #fbf8ff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-stats-grid span,
.admin-stats-grid em {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
}

.admin-stats-grid strong {
    display: block;
    margin: 2px 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.05;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    min-width: 1300px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.admin-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 32px;
    color: inherit;
    text-decoration: none;
}

.admin-sort-link:hover,
.admin-sort-link:focus-visible,
.admin-sort-link.is-active {
    color: var(--wine-dark);
}

.admin-sort-link span {
    min-width: 8px;
    color: var(--wine-dark);
    font-size: 12px;
    line-height: 1;
}

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

.admin-table td small {
    color: var(--muted);
}

.admin-table .number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.admin-state-label {
    color: var(--ink);
    font-weight: 900;
}

.admin-state-label.is-trial {
    color: var(--wine-dark);
}

.admin-trial-cell {
    min-width: 176px;
}

.admin-trial-cell strong {
    color: var(--ink);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.admin-bulk-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
    padding: 10px;
    background: #fbf8ff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-bulk-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.admin-bulk-form select {
    min-width: 96px;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
}

.admin-bulk-form span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.admin-check-cell {
    text-align: center;
}

.admin-check-cell input {
    width: 18px;
    min-height: 18px;
}

.admin-action-cell {
    min-width: 286px;
}

.admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-user-action-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.admin-user-action-form select {
    width: auto;
    min-height: 34px;
    min-width: 82px;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.2;
}

.admin-user-action-form select[name="billing_status"] {
    min-width: 96px;
}

.admin-user-action-form select[name="status"] {
    min-width: 78px;
}

.admin-user-action-form .tiny-btn {
    min-width: 52px;
    padding-inline: 10px;
}

.admin-fixed-state {
    min-height: 34px;
    min-width: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    color: var(--muted);
    background: #f7f4fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.admin-user-detail-panel {
    margin-top: 24px;
}

.admin-user-metrics {
    margin: 14px 0;
}

.admin-user-wines-title {
    margin-top: 16px;
}

.admin-user-wine-list {
    display: grid;
    gap: 8px;
}

.admin-user-wine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    background: #fbf8ff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-user-wine-row strong,
.admin-user-wine-row small {
    display: block;
}

.admin-user-wine-row em {
    display: block;
    color: var(--wine-dark);
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.admin-detail-link {
    text-align: center;
    text-decoration: none;
}

.settings-temperature-panel {
    margin-bottom: 24px;
}

.date-field {
    min-width: 0;
    overflow: hidden;
}

.date-field input[type="date"] {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.settings-table {
    display: grid;
    gap: 10px;
}

.settings-table label {
    display: grid;
    align-items: end;
}

.settings-table label.temperature-rule-row {
    grid-template-columns: minmax(0, 1fr) 96px auto;
    grid-template-areas:
        "name input unit"
        "guidance input unit";
    gap: 3px 6px;
}

.temperature-rule-name {
    grid-area: name;
    align-self: end;
}

.temperature-rule-input {
    grid-area: input;
    align-self: end;
}

.temperature-unit {
    grid-area: unit;
    align-self: end;
    padding-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.temperature-guidance {
    display: grid;
    gap: 2px;
    grid-area: guidance;
    align-self: end;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.temperature-guidance strong {
    color: var(--muted);
    font-size: 12px;
}

.temperature-guidance em {
    font-style: normal;
}

.billing-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-color: rgba(156, 134, 214, .34);
    background: #f5efff;
}

.billing-strip p,
.paywall p,
.danger-zone p {
    margin: 4px 0 0;
    color: var(--muted);
}

.plan-usage-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    color: var(--ink);
    background: #f6f3fb;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.plan-usage-strip div,
.account-plan-summary div {
    display: grid;
    gap: 2px;
}

.plan-usage-strip span,
.account-plan-summary span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.plan-usage-strip a {
    color: var(--wine-dark);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.plan-usage-strip.is-limit {
    background: #fff8f5;
    border-color: #ead5cc;
}

.paywall-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.account-plan-panel {
    margin-bottom: 16px;
}

.account-plan-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.account-plan-summary strong {
    color: var(--wine-dark);
    font-size: 20px;
}

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

.pricing-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pricing-card.is-current {
    border-color: var(--wine);
    box-shadow: inset 0 0 0 1px var(--wine);
}

.pricing-card.recommended {
    border-color: #8d77cf;
}

.pricing-card h2 {
    margin: 2px 0 8px;
    font-size: 18px;
}

.pricing-kicker {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pricing-price {
    display: block;
    color: var(--wine-dark);
    font-size: 26px;
    line-height: 1.15;
}

.pricing-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.pricing-card ul {
    display: grid;
    align-content: start;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.pricing-card .primary-btn {
    width: 100%;
    white-space: normal;
}

.recommend-label {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    color: #fff;
    background: #765fbd;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
}

.pricing-current-label {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.pricing-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.pricing-warning {
    color: #775a36;
}

.activation-page .app-shell {
    max-width: 720px;
    padding-bottom: 24px;
}

.activation-strip {
    align-items: stretch;
    flex-direction: column;
    margin-top: clamp(24px, 10vh, 88px);
    padding: 22px;
}

.activation-strip strong {
    color: var(--ink);
    font-size: 20px;
}

.activation-strip p {
    line-height: 1.7;
}

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

.stack-form {
    display: grid;
    gap: 14px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.check-row input {
    width: 20px;
    min-height: 20px;
}

.primary-btn,
.gold-btn,
.ghost-btn,
.danger-btn,
.tiny-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.primary-btn {
    color: #fff;
    background: var(--wine);
    border-color: var(--wine);
}

.gold-btn {
    color: #fff;
    background: #7a64bd;
    border-color: #7a64bd;
}

.ghost-btn {
    color: var(--wine);
    background: #fff;
    border-color: var(--line);
}

.ghost-btn.light {
    color: var(--wine-dark);
    background: rgba(255, 255, 255, .72);
    border-color: rgba(156, 134, 214, .36);
}

.danger-btn {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.tiny-btn {
    min-height: 34px;
    padding: 6px 10px;
    background: #fff;
    color: var(--wine);
    border-color: var(--line);
    font-size: 12px;
}

.tiny-btn.danger {
    color: #9a7580;
    background: #fffafb;
    border-color: rgba(180, 35, 51, .14);
}

.danger-small-btn {
    justify-self: start;
    width: fit-content;
    min-height: 28px;
    padding: 4px 8px;
    color: #987985;
    background: #fffafb;
    border-color: rgba(180, 35, 51, .12);
    font-size: 11px;
    font-weight: 700;
}

.wide.primary-btn,
.wide.gold-btn,
.wide.ghost-btn {
    width: 100%;
}

.message {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid;
    font-weight: 700;
}

.message.success {
    color: #15593b;
    background: #e8f7ef;
    border-color: #b9e4cb;
}

.message.error {
    color: #7c1623;
    background: #fdecef;
    border-color: #f4bbc3;
}

.message.notice {
    color: #5b4a1c;
    background: #fff7d8;
    border-color: #ead484;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--wine-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.empty-state {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.app-header,
.panel,
.form-section,
.paywall,
.metric,
.wine-card,
.detail-head,
.cellar-card,
.settings-user-panel {
    color: var(--ink);
}

.app-version {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.brand .header-version {
    display: block;
    margin-top: 0;
    padding: 0;
    font-size: 11px;
}

.note {
    margin: 16px 0 0;
    padding: 12px;
    background: #f7f2ff;
    border-radius: 8px;
}

.danger-zone {
    padding: 8px 10px;
    border-color: rgba(180, 35, 51, .08);
    background: #fffdfd;
    box-shadow: none;
}

.danger-zone h2 {
    color: var(--muted);
    font-size: 13px;
}

.danger-zone p {
    font-size: 12px;
    line-height: 1.35;
}

.danger-zone.stack-form {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.danger-zone.stack-form p {
    margin: 0;
}

@media (max-width: 980px) {
    .metric-grid,
    .metric-grid.compact,
    .admin-stats-grid,
    .wine-grid,
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel,
    .split-layout,
    .home-list-layout,
    .hero-panel,
    .detail-head,
    .form-grid,
    .inline-form,
    .settings-profile-form,
    .cellar-card {
        grid-template-columns: 1fr;
    }

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

    .cellar-stats {
        text-align: left;
    }

    .metric-grid.home-count-metrics {
        display: flex;
        grid-template-columns: none !important;
    }

    .metric-grid.home-money-metrics {
        display: flex;
        grid-template-columns: none !important;
    }
}

@media (max-width: 640px) {
    body {
        background: var(--paper);
    }

    .app-header {
        align-items: flex-start;
    }

    .header-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .user-chip {
        max-width: min(178px, 48vw);
    }

    .account-btn {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .admin-stats-grid {
        gap: 6px;
    }

    .admin-stats-grid .stat {
        padding: 8px;
    }

    .admin-stats-grid strong {
        font-size: 20px;
    }

    .tabbar {
        top: auto;
        bottom: 0;
        gap: 6px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tabbar a {
        min-height: 50px;
        padding: 6px 0;
        font-size: 15px;
    }

    .app-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-panel h1,
    .detail-head h1 {
        font-size: 26px;
    }

    .first-wine-onboarding,
    .first-wine-complete {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px 14px;
    }

    .first-wine-onboarding h1 {
        font-size: 23px;
    }

    .onboarding-start-btn,
    .first-wine-complete-actions .primary-btn,
    .first-wine-complete-actions .ghost-btn {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .quick-wine-fields {
        gap: 14px;
    }

    .quick-start-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .quick-start-actions .primary-btn,
    .quick-start-actions .ghost-btn {
        width: 100%;
        min-width: 0;
    }

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

    .metric-grid,
    .metric-grid.compact,
    .wine-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

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

    .home-metrics {
        gap: 6px;
    }

    .app-shell .metric-grid.home-count-metrics {
        display: flex;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
    }

    .app-shell .metric-grid.home-money-metrics {
        display: flex;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
    }

    .home-metrics .metric {
        padding: 8px 4px;
    }

    .home-metrics .metric span,
    .home-metrics .metric small {
        font-size: 10.5px;
        line-height: 1.25;
    }

    .home-metrics .metric strong {
        margin: 4px 0 2px;
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.05;
    }

    .home-count-metrics .metric strong small {
        font-size: .56em;
    }

    .home-money-metrics .metric {
        padding: 9px 10px;
    }

    .home-money-metrics .metric strong {
        font-size: clamp(16px, 4.6vw, 19px);
    }

    .date-field input[type="date"] {
        padding-left: 9px;
        padding-right: 4px;
    }

    .form-grid {
        gap: 12px;
    }

    .field-row {
        gap: 8px;
    }

    .field-row-3 {
        gap: 6px;
    }

    .field-row label {
        gap: 5px;
        font-size: 12px;
        line-height: 1.25;
    }

    .field-row input,
    .field-row select {
        min-height: 44px;
        padding: 9px 8px;
    }

    .detail-field-grid {
        gap: 8px;
    }

    .detail-field-row {
        gap: 8px;
    }

    .detail-field-row-3 {
        gap: 6px;
    }

    .detail-field {
        padding: 8px 7px;
    }

    .detail-field span {
        font-size: 11.5px;
    }

    .detail-field strong {
        font-size: 13px;
        line-height: 1.35;
    }

    .type-bars {
        grid-template-columns: 1fr;
    }

    .wine-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .wine-row-side {
        grid-column: 2;
        grid-template-columns: auto auto;
        justify-content: start;
        justify-items: start;
        text-align: left;
        column-gap: 10px;
    }

    .wine-row-side small {
        max-width: none;
    }

    .detail-photo {
        width: 100%;
    }

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

    .info-list dt {
        margin-top: 8px;
    }

    .billing-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .activation-actions {
        grid-template-columns: 1fr;
    }

    .primary-btn,
    .gold-btn,
    .ghost-btn,
    .danger-btn {
        width: 100%;
    }

    .danger-small-btn {
        width: fit-content;
    }
}

.photo-command-badge {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    color: var(--wine-dark);
    background: #eee6ff;
    border: 1px solid rgba(156, 134, 214, .32);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 640px) {
    .photo-grid figure {
        overflow: visible;
    }

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

    .plan-usage-strip,
    .account-plan-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .plan-usage-strip a {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }
}
