:root {
    --bg-main: #fff8f5;
    --bg-outside: #f2ece8;
    --card-bg: #ffffff;
    --primary: #9b7ede;
    --primary-strong: #8466ce;
    --secondary: #ff8e7e;
    --support: #fff1e8;
    --text-main: #2e2a35;
    --text-soft: #7b7485;
    --border-soft: #f1e8e4;
    --success: #d8f4e4;
    --danger-bg: #ffe8e8;
    --danger-text: #a64545;
    --shadow-soft: 0 10px 24px rgba(46, 42, 53, 0.06);
    --radius-card: 24px;
    --radius-button: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-outside);
    color: var(--text-main);
    letter-spacing: 0;
}

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

p {
    margin: 0;
    line-height: 1.5;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

ul {
    margin: 0;
    padding-left: 1.1rem;
}

.outer-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 18px 12px;
}

.app-container {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background: var(--bg-main);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.screen-padding {
    padding: 20px 18px calc(128px + env(safe-area-inset-bottom));
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.screen-header h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.screen-subtitle {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.screen-greeting {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.small-label {
    color: var(--text-soft);
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.helper-text {
    color: var(--text-soft);
    font-size: 0.86rem;
    margin-top: 10px;
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(155, 126, 222, 0.05);
}

.card h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.primary-button,
.secondary-button,
.text-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.primary-button {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 18px rgba(155, 126, 222, 0.28);
    margin-bottom: 14px;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--primary-strong);
    transform: translateY(-1px);
}

.secondary-button {
    background: var(--support);
    color: var(--text-main);
    border: 1px solid #ffe4d8;
    margin-bottom: 14px;
}

.secondary-button:hover,
.secondary-button:focus-visible {
    background: #ffebdf;
}

.small-button {
    min-height: 42px;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: #6f6680;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.icon-button.small {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.icon-button.small.muted {
    opacity: 0.55;
}

.icon-button:hover,
.icon-button:focus-visible {
    border-color: #d8c8fa;
    color: var(--primary);
    transform: translateY(-1px);
}

.cycle-card {
    background: linear-gradient(145deg, #b79af2 0%, #ffa99b 100%);
    border-radius: 28px;
    padding: 18px;
    min-height: 170px;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 12px 28px rgba(155, 126, 222, 0.28);
}

.cycle-label {
    font-size: 0.88rem;
    opacity: 0.92;
}

.cycle-number {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 3px;
    line-height: 1;
}

.cycle-phase {
    margin-top: 8px;
    font-size: 0.98rem;
}

.cycle-next {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.cycle-next-value {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.progress-track {
    width: 100%;
    height: 10px;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    overflow: hidden;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: #fff;
}

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

.insight-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 13px 12px;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(46, 42, 53, 0.04);
}

.insight-card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.insight-card p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: normal;
}

.premium-card,
.locked-card {
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 14px;
}

.premium-card {
    background: #f2ebff;
    border: 1px solid #eadffd;
}

.locked-card {
    background: #fff8f4;
    border: 1px solid #ffe9db;
}

.premium-card h2,
.locked-card h2 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.simple-list {
    margin-top: 10px;
    color: var(--text-main);
}

.simple-list li {
    margin-bottom: 6px;
}

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

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-main);
    font-size: 0.84rem;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip.selected {
    border-color: #d3c0ff;
    background: #f2ebff;
    color: #6f55c8;
}

.big-chip {
    min-height: 40px;
    font-size: 0.9rem;
}

.chip-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-input .chip {
    position: relative;
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.85rem;
}

.chip-input input:checked + .chip {
    background: #f1eafe;
    border-color: #9b7ede;
    color: #6f55c8;
    font-weight: 700;
    padding-right: 28px;
}

.chip-input input:checked + .chip::after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 0.76rem;
    font-weight: 700;
    color: #6f55c8;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.input,
.textarea,
select.input {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #fff;
    color: var(--text-main);
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
}

.input:focus,
.textarea:focus,
select.input:focus {
    outline: none;
    border-color: #d7c5ff;
    box-shadow: 0 0 0 3px rgba(155, 126, 222, 0.14);
}

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

.content-search-form .form-group {
    margin-bottom: 0;
}

.featured-content h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.featured-content {
    display: grid;
    gap: 4px;
    background: linear-gradient(180deg, #fff 0%, #fdf9ff 100%);
    border-color: #e8ddfb;
    box-shadow: 0 12px 24px rgba(155, 126, 222, 0.12);
}

.featured-content p {
    margin-bottom: 10px;
}

.featured-content .small-button {
    width: auto;
    justify-self: start;
    padding: 0 20px;
}

.recommended-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: #f1eafe;
    color: #6f55c8;
    border: 1px solid #ded2ff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin: 8px 0 12px 0;
}

.content-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.content-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.content-category {
    font-size: 0.78rem;
    color: #6d5aa1;
    background: #f1e9ff;
    border-radius: 999px;
    padding: 5px 9px;
}

.content-time {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.content-actions {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f1eafe;
    color: #6f55c8;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
}

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

.history-item {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
}

.history-date {
    font-weight: 700;
    margin-bottom: 6px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calendar-header h2 {
    font-size: 1.06rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.78rem;
    text-align: center;
}

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

.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid #f1e8e4;
    background: #fff;
    font-size: 15px;
    position: relative;
    box-shadow: none;
}

.calendar-day.empty {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.calendar-day.today {
    border-color: #cab2fa;
    background: #f4efff;
    box-shadow: inset 0 0 0 1px #ceb8fb;
    font-weight: 700;
}

.calendar-day.period {
    background: #fff1ed;
    border-color: #ffdcd3;
}

.calendar-day.predicted {
    background: #f6efff;
    border-color: #e5d8ff;
}

.calendar-day.has-log::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
    position: absolute;
    bottom: 3px;
}

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

.legend-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-today {
    background: #d6c2ff;
}

.legend-period {
    background: #ffd5ca;
}

.legend-predicted {
    background: #e8deff;
}

.legend-log {
    background: var(--secondary);
}

.back-link {
    display: inline-block;
    color: var(--text-soft);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.content-detail h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.content-description {
    color: var(--text-soft);
    margin-bottom: 14px;
}

.content-body {
    display: grid;
    gap: 10px;
}

.content-body p {
    font-size: 0.95rem;
}

.plan-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.plan-option h3 {
    font-size: 1.2rem;
}

.plan-option.highlighted {
    border: 1px solid #e4d4ff;
    background: #f7f1ff;
}

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

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    padding: 16px;
}

.settings-form-item {
    width: 100%;
    margin: 0;
}

.settings-form-item .text-button {
    width: auto;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-main);
}

.settings-item.danger {
    color: #b44b4b;
}

.text-button {
    background: transparent;
    color: inherit;
    justify-content: flex-start;
}

.toast {
    background: var(--success);
    border: 1px solid #c3e9d4;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.toast-error {
    background: var(--danger-bg);
    border-color: #ffd0d0;
    color: var(--danger-text);
}

.empty-state {
    color: var(--text-soft);
}

.disclaimer-text {
    color: var(--text-soft);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 16px;
}

.hidden {
    display: none !important;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 430px;
    height: calc(76px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid var(--border-soft);
    box-shadow: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    z-index: 50;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bottom-nav-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    color: #9a94a3;
}

.bottom-nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.bottom-nav-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #7b7485;
}

.bottom-nav-item.active .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-label {
    color: #9b7ede;
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 700;
}

.bottom-nav-item:active {
    transform: translateY(1px);
}

.home-content-cta {
    margin-top: 6px;
    margin-bottom: 0;
    font-weight: 700;
}

/* Auth */
.auth-shell {
    align-items: center;
}

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

.auth-content {
    padding-bottom: 28px;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e9dffb;
    background: #f4edff;
    color: #6a52a5;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-soft);
    margin-bottom: 18px;
}

.auth-form {
    margin-bottom: 16px;
}

.auth-footer {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.auth-footer a {
    color: var(--primary-strong);
    font-weight: 600;
}

/* Onboarding */
.onboarding-screen {
    padding-top: 22px;
}

.onboarding-progress {
    margin-bottom: 20px;
}

.onboarding-progress-bar {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: #f1e7ff;
    overflow: hidden;
}

.onboarding-progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
}

.onboarding-step h1 {
    font-size: 1.65rem;
    margin-bottom: 10px;
}

.onboarding-step > p {
    color: var(--text-soft);
    margin-bottom: 14px;
}

.onboarding-bullets {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.onboarding-bullets li {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 10px 12px;
    list-style: none;
}

.onboarding-options {
    display: grid;
    gap: 8px;
}

.option-card {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: #fff;
    padding: 13px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.option-card.selected {
    border-color: #d5c0ff;
    background: #f4ecff;
    color: #60499a;
}

.summary-card p + p {
    margin-top: 8px;
}

.onboarding-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.onboarding-actions .primary-button,
.onboarding-actions .secondary-button {
    margin-bottom: 0;
}

.loading-dots {
    display: inline-flex;
    gap: 6px;
    margin-top: 8px;
}

.loading-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes pulse {
    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .outer-shell {
        padding: 0;
    }

    .app-container {
        border-radius: 0;
        box-shadow: none;
    }
}

/* Admin */
.admin-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f1ed;
    color: var(--text-main);
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #241f31;
    color: #f4f0ff;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-brand {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-brand strong {
    font-size: 1rem;
}

.admin-brand span {
    font-size: 0.82rem;
    color: #cfc6e9;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav a {
    color: #e6deff;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(163, 132, 237, 0.28);
}

.admin-sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.admin-sidebar-footer a {
    color: #d8d0ef;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.08);
}

.admin-main {
    padding: 18px;
}

.admin-topbar {
    margin-bottom: 16px;
}

.admin-topbar h1 {
    font-size: 1.55rem;
    margin-bottom: 4px;
}

.admin-topbar p {
    color: var(--text-soft);
    font-size: 0.9rem;
}

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

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

.admin-stat-card p {
    color: var(--text-soft);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.admin-stat-card strong {
    font-size: 1.4rem;
}

.admin-table-card h2 {
    margin-bottom: 10px;
}

.admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-table-header a {
    color: var(--primary-strong);
    font-size: 0.85rem;
    font-weight: 600;
}

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

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

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #f1ece9;
    vertical-align: top;
    font-size: 0.84rem;
}

.admin-table th {
    color: #6c627a;
    font-weight: 700;
}

.admin-table td a {
    color: var(--primary-strong);
    font-weight: 600;
}

.admin-form-card h2 {
    margin-bottom: 10px;
}

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

.admin-inline-form .primary-button,
.admin-inline-form .secondary-button {
    margin-bottom: 0;
}

.admin-inline-form.compact {
    grid-template-columns: 1fr;
}

.admin-inline-form.compact .form-group {
    margin-bottom: 4px;
}

.admin-top-margin {
    margin-top: 12px;
}

.admin-checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.admin-checkbox-line input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.admin-mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ece3ff;
    color: #5f4698;
    font-size: 0.72rem;
    margin-left: 6px;
}

.admin-code-cell {
    max-width: 260px;
    word-break: break-word;
}

.admin-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.admin-pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #faf7f4;
    border: 1px solid #efe8e3;
    border-radius: 12px;
    padding: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    max-height: 420px;
    overflow-y: auto;
}

.admin-login-body {
    margin: 0;
    min-height: 100vh;
    background: #f2ece8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.admin-login-wrap {
    width: 100%;
    max-width: 460px;
}

.admin-login-card h1 {
    margin-bottom: 8px;
}

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

    .admin-sidebar {
        border-radius: 0 0 16px 16px;
    }

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

@media (max-width: 700px) {
    .admin-main {
        padding: 12px;
    }

    .admin-section-grid,
    .metrics-cards {
        grid-template-columns: 1fr;
    }

    .admin-inline-form {
        grid-template-columns: 1fr;
    }
}
