:root {
    --as-bg-base: #f8f9fb;
    --as-bg-midnight: #f1f3f8;
    --as-bg-gradient: none;
    --as-bg-mesh: none;
    --as-chrome-bg: #ffffff;
    --as-surface: #ffffff;
    --as-bg-elevated: #f3f4f6;
    --as-input-bg: #f9fafb;
    --as-input-focus-bg: #ffffff;
    --as-primary: #6366f1;
    --as-primary-dark: #4f46e5;
    --as-accent-cyan: #0ea5e9;
    --as-neon-cyan: #0ea5e9;
    --as-neon-blue: #3b82f6;
    --as-neon-violet: #8b5cf6;
    --as-gradient-text: linear-gradient(115deg, #1e293b 0%, #334155 50%, #475569 100%);
    --as-gradient-text-strong: linear-gradient(120deg, #0f172a 0%, #1e293b 40%, #334155 85%);
    --as-text: #1e293b;
    --as-muted: #64748b;
    --as-border: #e2e8f0;
    --as-border-soft: #f1f5f9;
    --as-glass-blur: 0px;
    --as-glass-blur-strong: 0px;
    --as-success: #16a34a;
    --as-danger: #dc2626;
    --as-warning: #d97706;
    --as-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --as-shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    --as-glow-primary: none;
    --as-glow-cyan: none;
    --as-glow-btn: 0 1px 3px rgba(99,102,241,0.2);
    --as-font-sans: "Pretendard", "Inter", "Segoe UI", "Malgun Gothic", sans-serif;
    --as-topbar-height: 64px;
    --as-sidebar-width: 250px;
    --as-sidebar-gap: 0px;
    --as-edge-gap: 0px;
    --as-radius: 12px;
    --as-radius-sm: 8px;
    --as-radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--as-bg-base);
    color: var(--as-text);
    font-family: var(--as-font-sans);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    display: none;
}

body > header,
body > aside,
body > footer {
    position: relative;
    z-index: 1;
}

body > main {
    position: relative;
}

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

.as-shell {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
}


.as-main {
    padding: 28px 0 48px;
    flex: 1 0 auto;
}

.as-main--student,
.as-main--admin {
    min-width: 0;
    width: auto;
    max-width: none;
    margin-left: calc(var(--as-sidebar-width) + var(--as-sidebar-gap));
    margin-right: var(--as-edge-gap);
    padding-left: 16px;
    padding-right: 16px;
}


.as-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 24px 28px;
    border-radius: var(--as-radius);
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    box-shadow: var(--as-shadow-card);
    flex-wrap: wrap;
}

.as-page-head__inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 1 auto;
}

.as-page-head__icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--as-bg-elevated);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--as-primary);
    font-size: 1.5rem;
}

.as-page-head__content {
    flex: 1;
    min-width: 0;
}

.as-page-head__title {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    background: var(--as-gradient-text-strong);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.as-page-head__desc {
    margin: 0;
    color: var(--as-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 52rem;
}

.as-page-head__actions {
    flex-shrink: 0;
    align-self: center;
}

.as-filter-bar {
    padding: 0 0 12px;
    margin: 0 0 8px;
    background: transparent;
}

.as-filter-bar .input-group-text {
    background-color: var(--as-surface);
    font-size: 13px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.as-filter-bar .form-control,
.as-filter-bar .form-select {
    background-color: var(--as-surface);
    border: 1px solid var(--as-border);
    font-size: 13px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    min-height: 0;
    line-height: 1.4;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.as-filter-bar .form-control:focus,
.as-filter-bar .form-select:focus {
    border-color: var(--as-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.as-filter-bar .btn {
    font-size: 13px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.as-class-editor--modal {
    min-width: min(100%, 640px);
    overflow-x: auto;
    padding-bottom: 4px;
}

.as-gradient-text {
    background: var(--as-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.as-grid {
    display: grid;
    gap: 16px;
}

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

.as-grid--align-start {
    align-items: start;
}

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

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

.as-card {
    background: var(--as-surface);
    backdrop-filter: blur(var(--as-glass-blur));
    -webkit-backdrop-filter: blur(var(--as-glass-blur));
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    box-shadow: var(--as-shadow-card);
    padding: 16px 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.as-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.as-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--as-text);
}

.as-card__subtitle {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--as-muted);
}

.as-site-stepper {
    position: relative;
    padding-left: 36px;
}

.as-site-stepper::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--as-border);
    border-radius: 1px;
}

.as-site-stepper__step {
    position: relative;
    padding-bottom: 28px;
}

.as-site-stepper__step:last-child {
    padding-bottom: 0;
}

.as-site-stepper__marker {
    position: absolute;
    left: -36px;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--as-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.as-site-stepper__step:last-child .as-site-stepper__marker {
    background: var(--as-primary);
}

.as-site-stepper__step:not(:last-child) .as-site-stepper__marker {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.as-site-stepper__label {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--as-text);
}

.as-site-stepper__content {
    margin-top: 0;
}

.as-site-stepper__step:first-child .as-site-stepper__content {
    margin-top: 0;
}

.as-site-stepper__step .as-tab-nav {
    margin-top: 8px;
}

.as-design-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.as-design-flow--sections {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--as-border);
}

.as-sections-accordions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 24px;
}

.as-sections-accordions > .as-design-block--accordion {
    border: 1px solid var(--as-border);
    border-radius: 8px;
}

.as-design-block {
    background: var(--as-bg-elevated);
    border: 1px solid var(--as-border);
    border-radius: 8px;
    padding: 10px 12px;
}

.as-design-block__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--as-text);
}

.as-design-block__desc {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--as-muted);
    line-height: 1.4;
}

.as-design-block--accordion summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--as-text);
    padding: 2px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.as-design-block--accordion summary::-webkit-details-marker {
    display: none;
}

.as-design-block--accordion summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--as-muted);
    transition: transform 0.2s;
}

.as-design-block--accordion[open] summary::before {
    transform: rotate(180deg);
}

.as-design-block--accordion .as-design-block__desc {
    margin-top: 6px;
}

.as-design-block--accordion[open] .as-palette-grid {
    margin-top: 8px;
}

.as-design-block .as-palette-grid {
    margin-top: 0;
    gap: 6px;
}

.as-design-block .as-choice-grid {
    margin-top: 0;
    gap: 6px;
}

.as-design-block--compact {
    padding: 8px 12px;
}

.as-design-block--compact .as-form__row {
    margin: 0;
}

.as-form__rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as-form__rows .as-form__row {
    gap: 12px;
}

.as-site-stepper__step .as-tab-panel {
    margin-top: 0;
}

.as-metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-metric__label {
    color: var(--as-muted);
    font-size: 14px;
}

.as-metric__value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.as-list {
    display: grid;
    gap: 8px;
}

.as-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--as-radius-sm);
    border: 1px solid var(--as-border);
    background: var(--as-input-bg);
}

.as-list__item--block {
    flex-direction: column;
    align-items: stretch;
}

.as-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.as-badge--success {
    background: rgba(21, 128, 61, 0.12);
    color: var(--as-success);
}

.as-badge--danger {
    background: rgba(220, 38, 38, 0.12);
    color: var(--as-danger);
}

.as-badge--warning {
    background: rgba(180, 83, 9, 0.12);
    color: var(--as-warning);
}

.as-badge--muted {
    background: rgba(148, 163, 184, 0.18);
    color: var(--as-muted);
}

.as-auth {
    min-height: calc(100vh - 102px);
    display: grid;
    place-items: center;
}

.as-auth__panel {
    width: min(520px, 100%);
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    border-radius: 20px;
    box-shadow: var(--as-shadow);
    padding: 28px;
}

.as-auth__title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
}

.as-auth__desc {
    margin: 0 0 20px;
    color: var(--as-muted);
}

.as-login-page {
    background:
        radial-gradient(ellipse 130% 90% at 50% -15%, rgba(199, 210, 254, 0.42) 0%, transparent 52%),
        radial-gradient(ellipse 70% 50% at 100% 10%, rgba(224, 231, 255, 0.35) 0%, transparent 48%),
        #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

.as-login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.as-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.28;
    will-change: transform;
}

.as-login-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    animation: as-orb-drift 16s ease-in-out infinite;
}

.as-login-orb--2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation: as-orb-drift 20s ease-in-out infinite reverse;
}

.as-login-orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: as-orb-pulse 12s ease-in-out infinite;
}

@keyframes as-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -25px) scale(1.05); }
    50% { transform: translate(-15px, 20px) scale(0.98); }
    75% { transform: translate(20px, 10px) scale(1.03); }
}

@keyframes as-orb-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.5; }
}

.as-login-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, black 18%, transparent);
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, black 18%, transparent);
}

.as-login-split {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: stretch;
}

.as-login-split__form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px 40px 56px;
    min-height: 100vh;
    min-width: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0) 42%);
}

.as-login-split__form-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.as-login-split__form-inner--wide {
    max-width: 480px;
}

.as-login-split__visual {
    position: relative;
    min-height: 100vh;
    min-width: 0;
    background: linear-gradient(165deg, #f1f5f9 0%, #e8eef4 45%, #f8fafc 100%);
    overflow: hidden;
}

.as-login-hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.as-login-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.85s ease, transform 8s ease-out;
    will-change: opacity, transform;
    transform: scale(1.06);
}

.as-login-hero__slide.is-active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.as-login-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.48) 100%);
    pointer-events: none;
}

.as-login-hero__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    max-width: 420px;
    text-align: center;
    color: #fff;
    pointer-events: none;
}

.as-login-hero__text {
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(18px);
}

.as-login-hero__text.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.as-login-hero__text h2 {
    font-size: clamp(1.35rem, 3.6vw, 1.95rem);
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.35;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.as-login-hero__text p {
    font-size: clamp(0.92rem, 2.1vw, 1.08rem);
    font-weight: 500;
    margin: 0;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

.as-login-hero__indicators {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 3;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.as-login-hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.as-login-hero__dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .as-login-hero__slide {
        transition: none;
    }
}

.as-login-hero--empty {
    background: linear-gradient(165deg, #e0e7ff 0%, #c7d2fe 38%, #ddd6fe 72%, #f1f5f9 100%);
}

.as-login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(36px) saturate(1.25);
    -webkit-backdrop-filter: blur(36px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.98);
    border-radius: 22px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 28px 56px -28px rgba(30, 41, 59, 0.1),
        0 14px 32px -18px rgba(99, 102, 241, 0.08);
    padding: 44px 38px 34px;
    position: relative;
    overflow: hidden;
}

.as-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(199, 210, 254, 0.75), transparent);
}

.as-login-card--wide {
    max-width: 480px;
}

.as-login-card .as-form {
    width: 100%;
    margin: 0 auto;
}

.as-login-title {
    margin: 0 0 22px;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e293b;
}

.as-auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.as-auth-brand img,
.as-auth-brand svg.as-auth-brand-svg {
    width: min(360px, 100%);
    height: auto;
    display: block;
}

.as-login-subtitle {
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
}

.as-field--compact {
    padding-bottom: 6px;
    gap: 6px;
}

.as-login-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 7px;
    display: block;
    letter-spacing: 0.01em;
}

.as-login-page .as-input.as-login-input {
    width: 100%;
    max-width: none;
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    caret-color: #4f46e5;
    font-size: 15px;
    line-height: 1.5;
    padding: 13px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.as-login-page .as-input.as-login-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.as-login-page .as-input.as-login-input:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: #fff;
}

.as-login-page .as-input.as-login-input:focus {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
    outline: none;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    caret-color: #4f46e5;
}

.as-login-page .as-input.as-login-input:-webkit-autofill,
.as-login-page .as-input.as-login-input:-webkit-autofill:hover,
.as-login-page .as-input.as-login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    caret-color: #4f46e5;
    box-shadow: 0 0 0 1000px #fff inset;
    border: 1px solid rgba(99, 102, 241, 0.45);
    transition: background-color 99999s ease-out 0s;
}

.as-login-page select.as-login-input {
    appearance: none;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
    background-color: rgba(255, 255, 255, 0.92);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.as-login-page select.as-login-input:focus {
    background-color: #fff;
    color: #0f172a;
    -webkit-text-fill-color: #0f172a;
}

.as-login-page select.as-login-input option {
    background: #fff;
    color: #0f172a;
}

.as-login-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.as-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin: 0;
    cursor: pointer;
}

.as-login-remember input {
    width: 36px;
    height: 20px;
    appearance: none;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #e2e8f0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.as-login-remember input::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.as-login-remember input:checked {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.as-login-remember input:checked::after {
    left: 18px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.as-login-submit-wrap {
    margin-top: 20px;
}

.as-login-submit-wrap .as-login-submit {
    width: 100%;
}

.as-login-submit {
    width: auto;
    min-width: 120px;
    min-height: 54px;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--as-font-sans);
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #7c3aed 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 28px -10px rgba(79, 70, 229, 0.45),
        0 4px 12px -4px rgba(30, 41, 59, 0.12);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.as-login-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%);
    pointer-events: none;
}

.as-login-submit span,
.as-login-submit svg {
    position: relative;
    z-index: 1;
}

.as-login-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 16px 36px -12px rgba(79, 70, 229, 0.5),
        0 8px 16px -6px rgba(30, 41, 59, 0.14);
}

.as-login-submit:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.as-login-links {
    margin: 24px 0 0;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.as-login-links a {
    color: #4f46e5;
    font-weight: 700;
    transition: color 0.2s ease;
}

.as-login-links a:hover {
    color: #3730a3;
}

@media (max-width: 991px) {
    .as-login-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .as-login-split__visual {
        order: -1;
        min-height: min(42vh, 380px);
        max-height: 48vh;
    }

    .as-login-split__form {
        min-height: auto;
        padding: 32px 24px 40px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .as-login-card {
        padding: 36px 24px 28px;
        border-radius: 20px;
    }
    .as-login-orb--1 { width: 300px; height: 300px; }
    .as-login-orb--2 { width: 250px; height: 250px; }
    .as-login-orb--3 { width: 200px; height: 200px; }
}

.as-form {
    display: grid;
    gap: 10px;
}

.as-form__row {
    display: grid;
    gap: 10px;
    max-width: 960px;
}

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

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

.as-form__row--gemini-line {
    grid-template-columns: minmax(0, 1fr) 100px 90px;
}

.as-form__row--class-line {
    grid-template-columns: 120px 100px 90px minmax(0, 1fr);
}

.as-form__actions {
    margin-top: 4px;
}

.as-card--settings {
    padding: 14px 16px;
}

.as-card--settings .as-card__title {
    margin-bottom: 8px;
}

.as-form--horizontal .as-form__row {
    max-width: 100%;
}

.as-form--horizontal .as-field {
    padding-bottom: 8px;
}

.as-form--horizontal .as-form__actions {
    margin-top: 8px;
    padding-top: 4px;
}

.as-grid--settings {
    gap: 12px;
}

.as-grid--presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
}

.as-grid--presets .as-list__item {
    margin: 0;
}

.mt-4 {
    margin-top: 10px !important;
}

.mb-4 {
    margin-bottom: 10px !important;
}

.as-list--settings {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--as-border);
}

.as-settings-hub {
    margin-bottom: 24px;
}

.as-settings-hub__section {
    margin-bottom: 22px;
}

.as-settings-hub__section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--as-muted);
    margin-bottom: 10px;
}

.as-settings-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.as-settings-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    background: var(--as-surface);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--as-shadow-card);
}

.as-settings-tile:hover {
    border-color: rgba(13, 110, 253, 0.45);
}

.as-settings-tile:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.55);
    outline-offset: 2px;
}

.as-settings-tile__icon {
    font-size: 1.35rem;
    color: var(--as-muted);
    line-height: 1;
}

.as-settings-tile__title {
    font-weight: 700;
    font-size: 15px;
    margin: 0;
    color: var(--as-text, inherit);
}

.as-settings-tile__desc {
    font-size: 13px;
    color: var(--as-muted);
    margin: 0;
    line-height: 1.45;
}

.as-settings-modal .modal-body {
    padding-top: 16px;
}

.as-settings-modal-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--as-border);
}

.as-settings-modal-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.as-settings-modal-presets .as-list__item {
    margin: 0;
}

@media (max-width: 767px) {
    .as-settings-modal-presets {
        grid-template-columns: 1fr;
    }
}

.as-gemini-key-edit__fields {
    display: grid;
    grid-template-columns: 1fr 2fr minmax(80px, 1fr);
    gap: 8px 12px;
    align-items: end;
    margin-bottom: 6px;
}

.as-gemini-key-edit__fields .as-field {
    padding-bottom: 0;
}

.as-gemini-key-edit__actions {
    display: flex;
    gap: 8px;
}

.as-gemini-key-row .as-gemini-key-edit .as-input,
.as-gemini-key-row .as-gemini-key-edit .as-select {
    width: 100%;
}

.as-textarea--compact {
    min-height: 64px;
}

.as-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
}

.as-label {
    font-size: 13px;
    font-weight: 700;
}

.as-label--section {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--as-text);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--as-border);
}

.as-input,
.as-select,
.as-textarea {
    width: 100%;
    max-width: 480px;
    min-height: 36px;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    background: var(--as-input-bg);
    color: var(--as-text);
    transition: all 0.2s ease;
}

.as-textarea {
    max-width: 100%;
    min-height: 72px;
}

.as-input:focus,
.as-select:focus,
.as-textarea:focus {
    outline: none;
    border-color: var(--as-primary);
    background: var(--as-input-focus-bg);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

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

.as-help {
    margin: 0;
    color: var(--as-muted);
    font-size: 13px;
}

.as-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.as-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.as-btn-block {
    width: 100%;
}

.as-table-wrap {
    overflow-x: auto;
}

.as-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.as-table th,
.as-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--as-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.as-table th {
    color: var(--as-muted);
    font-weight: 700;
}

.as-table-wrap--admin .as-table--admin th,
.as-table-wrap--admin .as-table--admin td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--as-border);
    font-size: 13px;
}

.as-table-wrap--admin .as-table--admin thead th {
    background: #f8f9fb;
    color: var(--as-muted);
    font-weight: 700;
    border-bottom: 2px solid var(--as-border);
    white-space: nowrap;
}

.as-table-wrap--admin .as-table--admin tbody tr:hover {
    background: #f1f5f9;
}

.as-table-wrap--admin .as-table--admin .as-table__th--date,
.as-table-wrap--admin .as-table--admin .as-table__td--date {
    text-align: center;
    width: 172px;
    min-width: 172px;
    white-space: nowrap;
}

.as-table-wrap--admin .as-table--admin .as-table__th--actions,
.as-table-wrap--admin .as-table--admin .as-table__td--actions {
    text-align: left;
    white-space: nowrap;
    min-width: 320px;
}

.as-table-wrap--admin .as-table--admin.as-table--cron-sites .as-table__th--actions,
.as-table-wrap--admin .as-table--admin.as-table--cron-sites .as-table__td--actions {
    min-width: 120px;
}

.as-table-wrap--admin {
    width: 100%;
    max-width: 100%;
}

.as-table-wrap--admin .as-table--students {
    width: 100%;
    table-layout: fixed;
}

.as-table-wrap--admin .as-table--students thead th {
    white-space: normal;
    word-break: keep-all;
}

.as-table-wrap--admin .as-table--students .as-table__th--date,
.as-table-wrap--admin .as-table--students .as-table__td--date {
    width: 14%;
    min-width: 0;
    white-space: nowrap;
}

.as-table-wrap--admin .as-table--students .as-table__th--actions,
.as-table-wrap--admin .as-table--students .as-table__td--actions {
    width: 22%;
    min-width: 0;
    white-space: normal;
}

.as-table-wrap--admin .as-table--students .as-table__td--actions .as-btn-group--table {
    flex-wrap: wrap;
}
.as-page-head__crumb {
    font-size: 13px;
}

dl.row.as-student-detail-dl > dt,
dl.row.as-student-detail-dl > dd {
    border-bottom: 1px solid var(--as-border);
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 0;
}

dl.row.as-student-detail-dl > dt:first-of-type,
dl.row.as-student-detail-dl > dd:first-of-type {
    padding-top: 0;
}

dl.row.as-student-detail-dl > dt:last-of-type,
dl.row.as-student-detail-dl > dd:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

dl.row.as-student-detail-dl > dt:has(+ dd + .as-student-detail-dl__split),
dl.row.as-student-detail-dl > dd:has(+ .as-student-detail-dl__split) {
    border-bottom: none;
    padding-bottom: 0;
}

.as-student-detail-dl__split {
    height: 0;
    margin: 8px 0 12px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--as-border);
}

.as-student-detail-dl dt {
    color: var(--as-muted);
    font-weight: 600;
    margin-bottom: 0;
    padding-right: 0;
    font-size: 14px;
}

.as-student-detail-dl dd {
    margin-bottom: 0;
    font-size: 14px;
}

.as-student-detail-dl .col-sm-4 {
    display: flex;
    align-items: flex-start;
}

.as-student-detail-dl .col-sm-4 i {
    width: 24px;
    text-align: center;
    display: inline-block;
    flex-shrink: 0;
}

.as-student-detail-dl .col-sm-8 {
    display: flex;
    align-items: flex-start;
}

.as-student-detail-json {
    max-height: 280px;
    overflow: auto;
}

.as-student-overview__panel-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--as-muted);
    margin-bottom: 12px;
}

.as-student-overview .as-info-box {
    padding: 16px 18px 14px;
}

.as-student-status-menu {
    min-width: 12rem;
}

.as-student-status-menu .btn {
    justify-content: center;
}

.as-info-box {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 20px 24px 16px;
    border: 1px solid var(--as-border);
    height: 100%;
}

.as-table-wrap--admin .as-table--admin .as-table__th--domain,
.as-table-wrap--admin .as-table--admin .as-table__td--domain {
    min-width: 90px;
}

.as-table-wrap--admin .as-table--admin .as-table__th--site-created,
.as-table-wrap--admin .as-table--admin .as-table__td--site-created {
    min-width: 120px;
    white-space: nowrap;
}

.as-table-wrap--admin .as-table--admin .as-table__th--site-expires,
.as-table-wrap--admin .as-table--admin .as-table__td--site-expires {
    min-width: 128px;
}

.as-table-wrap--admin .as-table--admin .as-table__th--domain-reg,
.as-table-wrap--admin .as-table--admin .as-table__td--domain-reg {
    min-width: 120px;
}

.as-table-wrap--admin .as-table--admin .as-table__th--domain-expires,
.as-table-wrap--admin .as-table--admin .as-table__td--domain-expires {
    min-width: 120px;
}

.as-table-wrap--admin .as-table--admin .as-site-meta-form {
    margin: 0;
}

.as-table-wrap--admin .as-table--admin .as-site-meta-form .as-input {
    width: 100%;
    max-width: 140px;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 12px;
}

.as-table-wrap--admin .as-table--admin .as-site-expires-effective {
    font-size: 12px;
    margin-bottom: 6px;
}

.as-table-wrap--admin .as-table--admin .as-table__th--site-name,
.as-table-wrap--admin .as-table--admin .as-table__td--site-name {
    min-width: 100px;
}

.as-table-wrap--admin .as-table--admin .as-table__th--topic,
.as-table-wrap--admin .as-table--admin .as-table__td--topic {
    min-width: 0;
}

.as-table-wrap--admin .as-table--admin .as-table__th--action,
.as-table-wrap--admin .as-table--admin .as-table__td--action {
    min-width: 100px;
}

.as-table-wrap--admin .as-table--admin .as-table__th--retry,
.as-table-wrap--admin .as-table--admin .as-table__td--retry {
    width: 56px;
    min-width: 56px;
    text-align: center;
}

.as-table-wrap--admin .as-table--admin .as-table__th--message,
.as-table-wrap--admin .as-table--admin .as-table__td--message {
    min-width: 0;
}

.as-table-wrap--admin .as-table--admin .as-table__td--actions .as-btn-group--table {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    align-items: center;
}

.as-table-wrap--admin .as-table--admin .as-table__td--actions .as-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.as-table-wrap--admin .as-table--admin .as-table__td--actions .as-input {
    width: 100px;
    min-width: 100px;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 12px;
}

.as-table__empty {
    text-align: center;
    color: var(--as-muted);
    padding: 32px 18px !important;
}

.as-class-editor {
    --as-class-col-name: 160px;
    --as-class-col-slug: 100px;
    --as-class-col-desc: 180px;
    --as-class-col-active: 88px;
    --as-class-col-actions: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.as-class-editor__head {
    display: grid;
    grid-template-columns: var(--as-class-col-name) var(--as-class-col-slug) var(--as-class-col-desc) var(--as-class-col-active) var(--as-class-col-actions);
    gap: 0 14px;
    align-items: center;
    padding: 10px 0 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--as-muted);
    border-bottom: 2px solid var(--as-border);
}

.as-class-editor__row {
    display: grid;
    grid-template-columns: var(--as-class-col-name) var(--as-class-col-slug) var(--as-class-col-desc) var(--as-class-col-active) var(--as-class-col-actions);
    gap: 0 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--as-border);
}

.as-class-editor__form {
    grid-column: 1 / 5;
    display: grid;
    grid-template-columns: var(--as-class-col-name) var(--as-class-col-slug) var(--as-class-col-desc) var(--as-class-col-active);
    gap: 0 14px;
    align-items: center;
}

.as-class-editor__cell {
    min-width: 0;
    display: flex;
    align-items: center;
}

.as-class-editor__row .as-class-editor__cell--actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
}

.as-class-editor__row .as-class-editor__cell--actions .btn {
    flex-shrink: 0;
}

.as-class-editor__delete-form {
    display: inline-flex;
}

.as-class-editor__input,
.as-class-editor__select {
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-sm);
    background: var(--as-input-bg);
    color: var(--as-text);
}

.as-class-editor__input:focus,
.as-class-editor__select:focus {
    outline: none;
    border-color: var(--as-primary);
    background: var(--as-bg-elevated);
}

.as-class-editor__row--new {
    display: grid;
    grid-template-columns: var(--as-class-col-name) var(--as-class-col-slug) var(--as-class-col-desc) var(--as-class-col-active) var(--as-class-col-actions);
    gap: 0 14px;
    align-items: center;
    margin-top: 8px;
    padding: 12px 0;
    border-bottom: none;
    background: #f8fafc;
    border-radius: var(--as-radius-sm);
}

.as-class-editor__row--new .as-class-editor__cell--actions {
    justify-content: flex-start;
}

.as-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 16px;
}

.as-dashboard-summary__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--as-radius-sm);
    border: 1px solid var(--as-border);
    background: var(--as-surface);
}

.as-dashboard-summary__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--as-muted);
    font-weight: 600;
}

.as-dashboard-summary__icon {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1;
}

.as-dashboard-summary__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--as-text);
    margin: 0;
}

.as-dashboard-summary__value a {
    color: var(--as-primary);
}

.as-kv {
    display: grid;
    gap: 10px;
}

.as-kv__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--as-border);
}

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

.as-kv--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 16px;
}

@media (max-width: 900px) {
    .as-kv--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .as-kv--grid {
        grid-template-columns: 1fr;
    }
}

.as-kv--grid .as-kv__row {
    display: flex;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: none;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-sm);
    background: var(--as-surface);
}

.as-kv--grid .as-kv__key {
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 82px;
}

.as-kv--grid .as-kv__row strong {
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
}

.as-kv--editable .as-kv__row--editable .as-kv__cell {
    flex: 1;
    min-width: 0;
}

.as-kv--editable .as-kv__display--multiline {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.4;
}

.as-kv--editable .as-kv__edit .as-input--sm,
.as-kv--editable .as-kv__edit .as-select.as-input--sm {
    font-size: 13px;
    padding: 6px 10px;
    min-height: 32px;
}

.as-kv--editable .as-kv__edit .as-textarea.as-input--sm {
    font-size: 13px;
    padding: 6px 10px;
    min-height: 48px;
}

.as-kv--editable .as-kv__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.as-kv--editable .as-kv__row--readonly .as-kv__key {
    flex: 0 0 auto;
}

.as-kv--editable .as-kv__row--readonly strong {
    flex: 1;
    min-width: 0;
}

.as-kv--editable .mt-1 {
    margin-top: 6px;
}

.as-site-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 12px;
    font-size: 13px;
}

.as-site-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.as-site-meta__key {
    color: var(--as-muted);
    font-weight: 600;
}

.as-site-meta__item strong {
    font-weight: 700;
    color: var(--as-text);
}

.as-stepper {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.as-stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    border: 0;
    color: #94a3b8;
    gap: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.as-stepper__label {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.as-stepper__item.is-active {
    color: var(--as-text);
}

.as-stepper__item.is-current .as-stepper__label {
    font-weight: 800;
    color: var(--as-primary);
}

.as-stepper--line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
}

.as-stepper--line::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 16px;
    height: 2px;
    background: rgba(203, 213, 225, 0.5);
    z-index: 0;
}

.as-stepper__num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    border: 4px solid var(--as-surface); /* 선이 관통하는 걸 가리기 위한 배경색 보더 */
    box-sizing: content-box;
    transition: all 0.2s ease;
}

.as-stepper__item.is-active .as-stepper__num {
    background: rgba(99, 102, 241, 0.15);
    color: var(--as-primary);
}

.as-stepper__item.is-current .as-stepper__num {
    background: var(--as-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    border-color: var(--as-surface);
}

.as-apply-nav {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.as-apply-step {
    display: grid;
    gap: 16px;
}

.as-apply-step[hidden] {
    display: none !important;
}

.as-apply-summary {
    margin-top: 4px;
}

#asApplyForm .as-input,
#asApplyForm .as-select,
#asApplyForm .as-textarea {
    max-width: 560px;
}

#asApplyForm .as-form__row {
    max-width: 1140px;
}

#asApplyForm .as-apply-step {
    gap: 14px;
}

#asApplyForm .as-apply-step[data-step="0"] {
    grid-template-columns: repeat(2, minmax(300px, 520px));
    justify-content: start;
    align-items: start;
}

#asApplyForm .as-apply-step[data-step="0"] .as-field {
    padding-bottom: 0;
}

#asApplyForm .as-actions .as-input {
    flex: 1 1 360px;
    max-width: 460px;
}

#asApplyForm .as-apply-nav {
    justify-content: flex-end;
}

.as-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-sm);
    overflow: hidden;
}

.as-accordion__item {
    border-bottom: 1px solid var(--as-border);
}

.as-accordion__item:last-child {
    border-bottom: 0;
}

.as-accordion__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border: 0;
    background: var(--as-bg-elevated);
    color: var(--as-text);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.as-accordion__head:hover {
    background: var(--as-input-bg);
}

.as-accordion__item.is-open .as-accordion__head {
    background: #f1f5f9;
    border-bottom: 1px solid var(--as-border);
}

.as-accordion__icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--as-muted);
    border-bottom: 2px solid var(--as-muted);
    transform: rotate(45deg);
    margin-left: auto;
    transition: transform 0.2s ease;
}

.as-accordion__item.is-open .as-accordion__icon {
    transform: rotate(-135deg);
}

.as-accordion__body {
    padding: 14px 16px;
    background: var(--as-bg-elevated);
}

.as-accordion__body[hidden] {
    display: none;
}

.as-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.as-palette-grid--fixed {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.as-palette-card {
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-sm);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.as-palette-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.35);
}

.as-palette-card.is-selected {
    border-color: var(--as-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.as-palette-card__swatch {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    min-height: 44px;
    padding: 5px 6px;
    gap: 6px;
    background: linear-gradient(180deg, #e2e8f0, #f1f5f9);
}

.as-palette-card__swatch span {
    display: block;
    border-radius: 8px;
}

.as-palette-card__meta {
    padding: 6px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.as-palette-card__codes {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    color: var(--as-muted);
    font-size: 13px;
}

.as-palette-card__meta strong,
.as-palette-card strong {
    font-size: 12px;
    color: var(--as-text);
}

.as-palette-card__tag {
    display: none;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--as-primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.as-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.as-tab-nav--style .as-tab-nav__btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.as-tab-nav__btn {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--as-border);
    border-radius: 999px;
    background: var(--as-input-bg);
    color: var(--as-muted);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.as-tab-nav__btn.is-active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.32);
}

.as-tab-nav--style {
    margin-bottom: 10px;
}

.as-label--inline {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--as-muted);
}

.as-choice-grid--compact {
    gap: 8px;
}

.as-choice-grid--fit {
    max-width: 360px;
}

.as-choice-card--compact {
    padding: 10px 12px;
}

.as-choice-card--compact .as-choice-card__thumb {
    height: 52px;
    padding: 6px;
}

.as-choice-card--compact .as-choice-card__thumb span {
    border-radius: 6px;
}

.as-choice-card--compact strong {
    font-size: 13px;
}

.as-choice-card--compact .as-choice-card__desc {
    display: none;
}

.as-choice-card--font.as-choice-card--compact {
    min-height: 48px;
}

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

.as-choice-card--font {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-choice-card__font-sample {
    font-size: 15px;
    font-weight: 600;
}

.as-tab-panel {
    display: grid;
    gap: 16px;
}

.as-tab-panel[hidden] {
    display: none !important;
}

.as-ai-settings {
    display: grid;
    gap: 18px;
}

.as-ai-settings__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px;
    border: 0;
    border-radius: 14px;
    background: transparent;
}

.as-ai-settings__tab-btn {
    flex: 1 1 220px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 10px;
    background: var(--as-bg-elevated);
    color: var(--as-text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.18s ease;
}

.as-ai-settings__tab-btn:hover {
    border-color: rgba(79, 70, 229, 0.55);
    color: var(--as-primary);
}

.as-ai-settings__tab-btn.is-active {
    border-color: rgba(79, 70, 229, 0.7);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.18), rgba(79, 70, 229, 0.12));
    color: #eef2ff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.as-ai-settings__panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 14px;
    background: var(--as-bg-elevated);
}

.as-ai-settings__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.as-ai-settings__panel-head .as-card__title {
    margin: 0;
}

.as-ai-settings__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.as-ai-settings__field {
    padding: 12px 14px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 12px;
    background: var(--as-surface);
    height: 100%;
}

.as-ai-settings .as-api-key-row {
    gap: 6px;
}

.as-ai-settings .as-api-key-row .js-api-key-input {
    min-height: 38px;
}

.as-ai-settings .as-api-key-row .btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 8px;
}

.as-ai-settings__icon-btn {
    width: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
}

.as-ai-settings__icon-btn svg {
    width: 16px;
    height: 16px;
}

.as-ai-settings__test-btn {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.as-ai-settings__test-btn svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 767px) {
    .as-ai-settings__form {
        grid-template-columns: 1fr;
    }

    .as-ai-settings__tab-btn {
        flex-basis: 100%;
    }

    .as-ai-settings__panel {
        padding: 14px;
    }

    .as-ai-settings__field {
        padding: 10px 12px;
    }
}

.as-textarea--compact {
    min-height: 120px;
}

.as-choice-grid {
    display: grid;
    gap: 12px;
}

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

.as-choice-card {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--as-border);
    border-radius: 16px;
    background: var(--as-bg-elevated);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.as-choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.4);
}

.as-choice-card.is-selected {
    border-color: var(--as-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16);
}

.as-choice-card__thumb {
    display: grid;
    gap: 8px;
    height: 92px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #e2e8f0, #f1f5f9);
    border: 1px solid rgba(203, 213, 225, 0.8);
}

.as-choice-card__thumb span {
    display: block;
    border-radius: 10px;
    background: #cbd5e1;
}

.as-choice-card__thumb--blog {
    grid-template-rows: 24px 1fr 1fr;
}

.as-choice-card__thumb--magazine {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.as-choice-card__thumb--magazine span:first-child {
    grid-row: 1 / span 2;
}

.as-choice-card strong {
    color: var(--as-text);
}

.as-choice-card__desc {
    color: var(--as-muted);
    font-size: 13px;
    line-height: 1.5;
}

.as-name-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.as-name-chip {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--as-border);
    background: var(--as-bg-elevated);
    cursor: pointer;
}

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

.as-highlight {
    border: 1px dashed rgba(29, 78, 216, 0.35);
    background: rgba(29, 78, 216, 0.06);
    border-radius: 16px;
    padding: 18px;
}

.as-editor {
    display: grid;
    gap: 16px;
}

.as-editor__preview {
    border: 1px solid var(--as-border);
    border-radius: 16px;
    padding: 18px;
    background: var(--as-bg-elevated);
}

.as-mysite-layout {
    overflow: hidden;
    height: calc(100vh - 180px);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.as-mysite-layout#asMysiteFullscreenTarget.is-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.as-mysite-layout#asMysiteFullscreenTarget.is-fullscreen .as-mysite-layout__form {
    flex: 1 1 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: grid !important;
    grid-template-rows: 1fr !important;
    align-items: stretch !important;
}

.as-mysite-layout#asMysiteFullscreenTarget.is-fullscreen .as-mysite-sidebar {
    position: relative !important;
    z-index: 50 !important;
    overflow: visible !important;
}

.as-mysite-layout#asMysiteFullscreenTarget.is-fullscreen .as-mysite-sidebar__toggle {
    z-index: 60 !important;
}

.as-mysite-layout#asMysiteFullscreenTarget.is-fullscreen .as-mysite-main {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.as-mysite-layout#asMysiteFullscreenTarget.is-fullscreen .as-site-preview--center {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.as-mysite-layout#asMysiteFullscreenTarget.is-fullscreen .as-site-preview--center iframe {
    flex: 1 1 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
}

.js-mysite-fullscreen.is-fullscreen {
    background: var(--as-primary);
    border-color: var(--as-primary);
    color: #fff;
}

.as-mysite-layout__form {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    transition: grid-template-columns 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.as-mysite-layout__form.as-mysite-layout--sidebar-collapsed {
    grid-template-columns: 1fr 44px;
}

.as-mysite-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--as-bg-elevated);
    padding: 16px;
}

.as-mysite-preview-head {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.as-mysite-preview-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--as-text);
}

.as-mysite-preview-desc {
    margin: 0;
    font-size: 13px;
    color: var(--as-muted);
    line-height: 1.45;
}

.as-page-builder-preview-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid var(--as-border);
    flex-wrap: wrap;
}

.as-page-builder-preview-tab {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--as-border);
    border-radius: 999px;
    background: var(--as-input-bg);
    color: var(--as-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.as-page-builder-preview-tab:hover {
    background: var(--as-bg-elevated);
    color: var(--as-text);
}

.as-page-builder-preview-tab.is-active {
    background: var(--as-primary);
    border-color: var(--as-primary);
    color: #fff;
}

.as-page-builder-preview-tab--primary {
    background: var(--as-primary);
    color: #fff;
    border-color: var(--as-primary);
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.as-page-builder-preview-tab--primary:hover {
    background: var(--as-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.as-page-builder-drag-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    min-height: 36px;
    border: 1px solid var(--as-border);
    border-radius: 999px;
    background: var(--as-input-bg);
    color: var(--as-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.as-page-builder-drag-toggle input {
    margin: 0;
    width: 14px;
    height: 14px;
}

.as-page-builder-drag-toggle:has(input:checked) {
    border-color: var(--as-primary);
    color: var(--as-primary);
}

.as-mysite-main .as-site-preview {
    flex: 1;
    min-height: 0;
}

.as-mysite-sidebar {
    position: relative;
    width: 380px;
    min-width: 380px;
    min-height: 0;
    border-left: 1px solid var(--as-border);
    background: var(--as-bg-elevated);
    display: flex;
    flex-direction: column;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.as-mysite-sidebar.is-collapsed {
    min-width: 44px;
    width: 44px;
}

.as-mysite-sidebar__toggle {
    position: absolute;
    top: 50%;
    left: -28px;
    transform: translateY(-50%);
    width: 28px;
    height: 56px;
    border: 1px solid var(--as-border);
    background: var(--as-bg-elevated);
    border-radius: 8px 0 0 8px;
    border-right: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: -2px 0 8px rgba(0,0,0,0.04);
}

.as-mysite-sidebar__toggle-icon {
    font-size: 10px;
    color: var(--as-muted);
    transition: transform 0.3s ease;
}

.as-mysite-sidebar.is-collapsed .as-mysite-sidebar__toggle-icon {
    transform: rotate(180deg);
}

.as-mysite-sidebar__inner {
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}


.as-mysite-sidebar.is-collapsed .as-mysite-sidebar__inner {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.as-mysite-sidebar__title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--as-border);
    font-size: 14px;
    font-weight: 700;
    color: var(--as-text);
}

.as-mysite-sidebar__title + .as-kv {
    margin-top: 0;
}

.as-mysite-sidebar__title:not(:first-child) {
    margin-top: 20px;
}

.as-tab-nav--sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 20px;
    background: var(--as-input-bg);
    border-radius: var(--as-radius-sm);
    padding: 4px;
    border: 1px solid var(--as-border);
}

.as-tab-nav--sidebar .as-tab-nav__btn {
    min-height: 32px;
    padding: 0 4px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--as-muted);
}

.as-tab-nav--sidebar .as-tab-nav__btn.is-active {
    background: rgba(99, 102, 241, 0.14);
    color: var(--as-primary-dark);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* 사이드바 내부 폼 최적화 */
.as-mysite-sidebar .as-kv--grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.as-mysite-sidebar .as-kv__row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 10px 12px;
    background: var(--as-bg-elevated);
    border: 1px solid var(--as-border);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.as-mysite-sidebar .as-kv__row .as-kv__key {
    grid-column: 1;
    grid-row: 1;
}

.as-mysite-sidebar .as-kv__row .as-kv__cell {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.as-mysite-sidebar .as-kv__row .as-kv__actions {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.as-mysite-sidebar .as-kv__key {
    font-size: 12px;
    font-weight: 600;
    color: var(--as-muted);
}

.as-mysite-sidebar .as-kv__display {
    font-size: 13px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.as-mysite-sidebar .as-kv__edit {
    width: 100%;
    margin-top: 4px;
}

.as-mysite-sidebar .as-kv__edit[hidden] {
    display: none !important;
}

.as-mysite-sidebar .as-kv__edit .as-input,
.as-mysite-sidebar .as-kv__edit .as-select,
.as-mysite-sidebar .as-kv__edit .as-textarea {
    width: 100%;
}

.as-mysite-sidebar .as-kv__actions .btn {
    padding: 4px 10px;
    font-size: 12px;
    min-height: 28px;
}

.as-mysite-sidebar .as-tab-panel {
    margin-top: 0;
    flex: 1 1 0px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.as-builder-workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.as-builder-topbar__meta,
.as-builder-overview__meta,
.as-page-builder__inspector-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.as-builder-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--as-input-bg);
    border: 1px solid var(--as-border);
    color: var(--as-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.as-builder-badge--primary {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
    color: #1d4ed8;
}

.as-builder-badge--soft {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(148, 163, 184, 0.22);
    color: var(--as-text);
}

.as-builder-overview {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--as-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.as-builder-overview__head {
    display: grid;
    gap: 12px;
}

.as-builder-overview__head > div:first-child {
    display: grid;
    gap: 6px;
}

.as-builder-overview__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--as-primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.as-builder-overview__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--as-text);
    letter-spacing: -0.02em;
}

.as-builder-overview__desc {
    margin: 0;
    color: var(--as-muted);
    font-size: 13px;
    line-height: 1.6;
}

.as-builder-overview__stats,
.as-design-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.as-builder-stat,
.as-design-overview__item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: var(--as-bg-elevated);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.as-builder-stat__label,
.as-design-overview__label {
    color: var(--as-muted);
    font-size: 12px;
    font-weight: 600;
}

.as-builder-stat__value,
.as-design-overview__value {
    color: var(--as-text);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.as-builder-legacy-note {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(124, 45, 18, 0.28), rgba(67, 20, 7, 0.36));
    color: #fed7aa;
}

.as-builder-legacy-note strong {
    font-size: 13px;
}

.as-builder-legacy-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

.as-tab-panel--design,
.as-tab-panel--sections {
    gap: 14px;
}

.as-tab-panel--design .as-design-flow {
    gap: 12px;
}

.as-tab-panel--design .as-design-block,
.as-page-builder__spacing-accordion,
.as-page-builder__widgets-accordion,
.as-page-builder__templates-accordion,
.as-page-builder__layers-accordion,
.as-page-builder__inspector-accordion {
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.as-tab-panel--design .as-design-block {
    padding: 12px 14px;
}

.as-tab-panel--design .as-input,
.as-tab-panel--design .as-select,
.as-tab-panel--design .as-textarea,
.as-page-builder__inspector-shell .as-input,
.as-page-builder__inspector-shell .as-select,
.as-page-builder__inspector-shell .as-textarea {
    max-width: 100%;
}

.as-design-system-block .as-design-block__summary,
.as-page-builder__widgets-accordion .as-design-block__summary,
.as-page-builder__templates-accordion .as-design-block__summary,
.as-page-builder__layers-accordion .as-design-block__summary,
.as-page-builder__inspector-accordion .as-design-block__summary,
.as-page-builder__spacing-accordion .as-design-block__summary {
    min-height: 30px;
    font-size: 13px;
    font-weight: 700;
}

.as-design-system-grid .as-field {
    padding-bottom: 0;
}

.as-page-builder__layer-list {
    display: grid;
    gap: 10px;
    padding-top: 8px;
}

.as-page-builder__layer-list:empty::before {
    content: "아직 구성된 섹션이 없습니다.";
    padding: 14px 16px;
    border: 1px dashed rgba(148, 163, 184, 0.42);
    border-radius: 12px;
    background: var(--as-input-bg);
    color: var(--as-muted);
    font-size: 12px;
}

.as-page-builder__inspector-shell {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--as-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

.as-page-builder__inspector-meta {
    padding-bottom: 2px;
}

.as-page-builder__inspector-shell .as-tab-nav {
    margin-bottom: 0;
}

.as-page-builder__inspector-shell .as-tab-nav--style {
    gap: 8px;
}

.as-page-builder__inspector-shell .as-tab-nav__btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.as-page-builder__inspector-shell .as-design-block {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: var(--as-bg-elevated);
    box-shadow: none;
}

.as-page-builder__inspector-shell .as-form__rows {
    gap: 10px;
}

.as-page-builder__inspector-shell .as-field {
    padding-bottom: 8px;
}

.as-page-builder__empty {
    padding: 14px 16px;
    border: 1px dashed rgba(148, 163, 184, 0.38);
    border-radius: 12px;
    background: var(--as-input-bg);
    color: var(--as-muted);
    font-size: 12px;
    line-height: 1.55;
}

.as-template-library-grid--widgets,
.as-page-builder__template-library .as-template-library-grid {
    grid-template-columns: 1fr;
}

.as-template-card {
    grid-template-columns: 74px 1fr auto;
    gap: 12px;
    min-height: 86px;
    padding: 12px;
    border-radius: 14px;
    border-color: rgba(203, 213, 225, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.as-template-card__thumb {
    min-height: 62px;
    border-radius: 10px;
    font-size: 11px;
}

.as-template-card__title {
    font-size: 13px;
    font-weight: 800;
}

.as-template-card__description {
    line-height: 1.55;
}

.as-template-card__action {
    align-self: center;
}

.as-mysite-sidebar .as-kv__row--readonly .as-kv__cell {
    grid-column: 1;
    grid-row: 2;
}

.as-mysite-sidebar .as-palette-grid--fixed {
    grid-template-columns: repeat(4, 1fr);
}

.as-mysite-sidebar .as-choice-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.as-mysite-sidebar .as-choice-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.as-site-preview--center {
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--as-bg-elevated);
    position: relative;
}

.as-site-preview--center iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 70vh;
    border: 0;
    position: relative;
    z-index: 0;
}

.as-page-builder-overlay {
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.as-page-builder-overlay.is-hidden {
    display: none !important;
}

.as-page-builder-overlay.is-inline-editing .as-page-builder-overlay__box.is-active {
    pointer-events: none;
    opacity: 0.25;
}

.as-page-builder-overlay__box {
    position: absolute;
    padding: 0;
    border: 2px solid rgba(37, 99, 235, 0.65);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    pointer-events: auto;
    cursor: default;
    touch-action: none;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    will-change: top, left, width, height;
}

.as-page-builder-overlay__box.is-active {
    border-color: rgba(234, 88, 12, 0.95);
    background: rgba(234, 88, 12, 0.12);
    pointer-events: auto;
    cursor: grab;
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.18), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.as-page-builder-overlay__box.is-editing {
    pointer-events: none;
}

.as-page-builder-overlay__box.is-active:active {
    cursor: grabbing;
}

.as-page-builder-overlay__box.is-active .as-page-builder-overlay__label,
.as-page-builder-overlay__box.is-active .as-page-builder-overlay__handle {
    pointer-events: auto;
}

.as-page-builder-overlay__label {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--as-surface);
    color: var(--as-text);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--as-border);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.as-page-builder-overlay__handle {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--as-bg-elevated);
    color: var(--as-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    pointer-events: auto;
}

.as-page-builder-overlay__handle--move {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -1px;
    cursor: grab;
}

.as-page-builder-overlay__handle--span {
    top: 50%;
    right: 4px;
    width: 14px;
    height: 56px;
    margin-top: -28px;
    border-radius: 999px;
    cursor: ew-resize;
}

.as-page-builder-overlay__handle--height {
    left: 50%;
    bottom: 4px;
    width: 56px;
    height: 14px;
    margin-left: -28px;
    border-radius: 999px;
    cursor: ns-resize;
}

.as-page-builder-overlay__handle--size {
    right: -2px;
    bottom: -2px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    cursor: nwse-resize;
}

.as-page-builder-overlay__drop-guide {
    position: absolute;
    height: 4px;
    margin-top: -2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.95), rgba(249, 115, 22, 0.95));
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(234, 88, 12, 0.35);
    pointer-events: none;
}

.as-page-builder {
    display: grid;
    gap: 12px;
}

.as-page-builder__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.as-page-builder__tabs {
    margin-bottom: 0;
}

.as-page-builder__modes {
    margin-bottom: 0;
}

.as-page-builder__add {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.as-page-builder__add .as-select {
    flex: 1;
    min-width: 0;
}

.as-page-builder__toolbar-accordion .as-page-builder__toolbar {
    margin-bottom: 0;
}

.as-page-builder__toolbar-accordion .as-page-builder__hint {
    margin-top: 10px;
}

.as-page-builder__hint {
    margin: 0;
    font-size: 12px;
    color: var(--as-muted);
    line-height: 1.45;
}

.as-page-builder__body {
    display: grid;
    gap: 12px;
}


.as-page-builder__layers-accordion .as-page-builder__layer-list {
    margin-top: 8px;
}

.as-page-builder__layers,
.as-page-builder__inspector {
    border: 1px solid var(--as-border);
    border-radius: 10px;
    background: var(--as-bg-elevated);
    padding: 10px;
}

.as-page-builder__section-title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--as-text);
}

.as-page-builder__layer-list {
    display: grid;
    gap: 8px;
}

.as-page-builder__layer-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--as-border);
    border-radius: 8px;
    background: var(--as-bg-elevated);
    text-align: left;
    cursor: pointer;
}

.as-page-builder__layer-remove {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--as-border);
    border-radius: 6px;
    background: var(--as-bg-elevated);
    color: var(--as-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.as-page-builder__layer-remove:hover {
    border-color: var(--as-danger);
    color: var(--as-danger);
    background: rgba(239, 68, 68, 0.06);
}

.as-page-builder__layer-item.is-active {
    border-color: var(--as-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.as-page-builder__layer-item.is-dragging {
    opacity: 0.45;
}

.as-page-builder__layer-item.is-drop-before {
    box-shadow: inset 0 2px 0 var(--as-primary);
}

.as-page-builder__layer-item.is-drop-after {
    box-shadow: inset 0 -2px 0 var(--as-primary);
}

.as-page-builder__layer-item.is-disabled {
    opacity: 0.55;
}

.as-page-builder__layer-grip {
    color: var(--as-muted);
    font-size: 12px;
    letter-spacing: -1px;
}

.as-page-builder__layer-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.as-page-builder__layer-text strong {
    font-size: 13px;
    color: var(--as-text);
}

.as-page-builder__layer-text small {
    font-size: 11px;
    color: var(--as-muted);
}

.as-page-builder__layer-state {
    font-size: 11px;
    font-weight: 700;
    color: var(--as-muted);
}

.as-page-builder__empty {
    font-size: 12px;
    color: var(--as-muted);
    line-height: 1.45;
}

.as-page-builder__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.as-page-builder__grid .as-field--full {
    grid-column: 1 / -1;
}

.as-page-builder__actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.as-page-builder__custom-items {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.as-page-builder__custom-item {
    border: 1px solid var(--as-border);
    border-radius: 10px;
    padding: 10px;
    background: #fafcff;
}

.as-page-builder__custom-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.as-page-builder__custom-item-actions {
    display: flex;
    gap: 6px;
}

.as-page-builder__template-library {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.as-template-library-grid {
    display: grid;
    gap: 10px;
}

.as-template-card {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--as-border);
    border-radius: 10px;
    background: var(--as-bg-elevated);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.as-template-card:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 102, 241, 0.35);
}

.as-template-card.is-selected {
    border-color: var(--as-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16);
}

.as-template-card__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, #e2e8f0, #f8fafc);
    border: 1px solid rgba(203, 213, 225, 0.8);
    color: var(--as-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.as-template-card__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.as-template-card__category {
    font-size: 11px;
    color: var(--as-primary);
    font-weight: 700;
}

.as-template-card__title {
    font-size: 13px;
    color: var(--as-text);
}

.as-template-card__description {
    font-size: 12px;
    color: var(--as-muted);
    line-height: 1.45;
}

.as-template-card__action {
    font-size: 12px;
    font-weight: 700;
    color: var(--as-primary);
    white-space: nowrap;
}

.as-template-library-empty {
    padding: 14px;
    border: 1px dashed var(--as-border);
    border-radius: 10px;
    background: var(--as-bg-elevated);
    color: var(--as-muted);
    font-size: 12px;
}

.as-layer-tree {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.as-layer-node {
    display: grid;
    gap: 8px;
}

.as-layer-node__row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.as-layer-node__children {
    display: grid;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px dashed rgba(148, 163, 184, 0.45);
    margin-left: 12px;
}

.as-layer-node__toggle {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    color: var(--as-muted);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.as-layer-node__toggle--empty {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.as-layer-node__label {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: var(--as-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.as-layer-node--section > .as-layer-node__row .as-layer-node__label {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.14), #ffffff);
}

.as-layer-node--row > .as-layer-node__row .as-layer-node__label {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), #ffffff);
}

.as-layer-node--column > .as-layer-node__row .as-layer-node__label {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), #ffffff);
}

.as-layer-node--widget > .as-layer-node__row .as-layer-node__label {
    background: linear-gradient(180deg, #f1f5f9, #ffffff);
}

.as-layer-node.is-active > .as-layer-node__row .as-layer-node__label {
    border-color: var(--as-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16), 0 12px 24px rgba(99, 102, 241, 0.12);
    color: var(--as-primary-dark);
}

.as-layer-node.is-dragging > .as-layer-node__row .as-layer-node__label {
    opacity: 0.5;
}

.as-layer-node.is-drop-before > .as-layer-node__row .as-layer-node__label {
    box-shadow: inset 0 2px 0 var(--as-primary);
}

.as-layer-node.is-drop-after > .as-layer-node__row .as-layer-node__label {
    box-shadow: inset 0 -2px 0 var(--as-primary);
}

.as-site-preview {
    width: 100%;
    border: 1px solid var(--as-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--as-bg-elevated);
}

.as-site-preview iframe {
    display: block;
    width: 100%;
    min-height: 640px;
    border: 0;
    background: var(--as-bg-elevated);
}

.as-site-preview--large iframe {
    min-height: 920px;
    height: 78vh;
}

.as-site-preview--sticky iframe {
    min-height: 560px;
    height: 75vh;
    max-height: min(75vh, 900px);
}

.as-builder-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.as-builder-toolbar .as-select {
    max-width: 320px;
}

.as-builder-list {
    display: grid;
    gap: 14px;
}

.as-builder-item {
    border: 1px solid var(--as-border);
    border-radius: 16px;
    background: var(--as-bg-elevated);
    padding: 16px;
}

.as-builder-item__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.as-builder-item__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ql-toolbar.ql-snow {
    border-color: rgba(203, 213, 225, 0.95);
    border-radius: 12px 12px 0 0;
    background: var(--as-bg-elevated);
}

.ql-container.ql-snow {
    border-color: rgba(203, 213, 225, 0.95);
    border-radius: 0 0 12px 12px;
    background: var(--as-bg-elevated);
    min-height: 220px;
}

.ql-editor {
    min-height: 180px;
    font-size: 14px;
    color: var(--as-text);
    line-height: 1.7;
    font-family: "Pretendard", "Segoe UI", "Malgun Gothic", sans-serif;
}

.ql-snow .ql-picker {
    color: var(--as-text);
}

.ql-snow .ql-stroke {
    stroke: var(--as-muted);
}

.ql-snow .ql-fill {
    fill: var(--as-muted);
}

.ql-snow .ql-picker-options,
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
    background: var(--as-bg-elevated);
    border-color: var(--as-border);
    color: var(--as-text);
}

#asBuilderHomeLayoutModes,
.js-builder-layout-trigger[data-layout-mode="freeform"],
#asDragEditMode,
[for="asDragEditMode"] {
    display: none !important;
}

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

.as-upload-card {
    background: var(--as-bg-elevated);
    border: 1px solid var(--as-border);
    border-radius: 16px;
    padding: 16px;
}

.as-file-input {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    background: var(--as-input-bg);
    color: var(--as-text);
}

.as-file-input::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--as-primary-dark), var(--as-primary));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.as-file-input::file-selector-button:hover {
    opacity: 0.92;
}

.as-file-input::file-selector-button:active {
    transform: translateY(1px);
}

.as-upload-card__preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px dashed var(--as-border);
    border-radius: 12px;
    background: var(--as-input-bg);
    margin-bottom: 12px;
}

.as-chart-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 220px;
}

.as-chart-col {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.as-chart-bar {
    width: 100%;
    max-width: 44px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.as-chart-label {
    color: var(--as-muted);
    font-size: 12px;
}

.as-toast-stack {
    position: fixed;
    right: 20px;
    top: 92px;
    z-index: 10050;
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.as-toast-stack .as-toast {
    pointer-events: auto;
}

@keyframes as-toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes as-toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(24px);
    }
}

.as-toast {
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #fff;
    box-shadow: var(--as-shadow);
    animation: as-toast-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.as-toast.as-toast--out {
    animation: as-toast-out 0.22s ease-in forwards;
}

.as-toast--success {
    background: var(--as-success);
}

.as-toast--error {
    background: var(--as-danger);
}

.as-toast--info {
    background: var(--as-primary);
}

.as-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10060;
    display: grid;
    place-items: center;
    padding: 24px;
}

.as-modal-backdrop:not([hidden]) {
    animation: as-modal-backdrop-in 0.28s ease-out forwards;
}

.as-modal-backdrop:not([hidden]) .as-modal-card {
    animation: as-modal-slide-in 0.32s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes as-modal-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes as-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.as-modal-card {
    width: min(420px, 100%);
    background: var(--as-surface);
    backdrop-filter: blur(var(--as-glass-blur));
    -webkit-backdrop-filter: blur(var(--as-glass-blur));
    border-radius: var(--as-radius);
    box-shadow: var(--as-shadow-card), 0 24px 56px rgba(0, 0, 0, 0.35);
    padding: 28px 26px;
    border: 1px solid var(--as-border);
}

.as-modal-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-family: var(--as-font-sans);
    background: var(--as-gradient-text-strong);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.as-modal-message {
    margin: 0 0 22px;
    color: var(--as-muted);
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.as-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.as-modal-actions .btn {
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--as-radius-sm);
    font-weight: 600;
}

.as-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(220, 38, 38, 0.09);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #7f1d1d;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.as-timeline {
    position: relative;
    padding-left: 24px !important;
}

.as-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 24px;
    width: 2px;
    background: rgba(203, 213, 225, 0.5);
    border-radius: 2px;
}

.as-timeline-item {
    position: relative;
    padding-left: 24px;
}

.as-timeline-marker {
    position: absolute;
    left: -20px;
    top: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
}

.as-timeline-item:last-child .as-timeline-content {
    margin-bottom: 0 !important;
}

.as-status-panel {
    display: grid;
    gap: 14px;
}

.as-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.as-api-key-row {
    flex-wrap: nowrap;
}

.as-api-key-row .js-api-key-input {
    flex: 0 1 360px;
    max-width: 360px;
    min-width: 220px;
}

.as-api-key-row .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

.as-model-row {
    flex-wrap: nowrap;
}

.as-model-row .as-select {
    flex: 0 1 360px;
    max-width: 360px;
    min-width: 220px;
}

.as-model-row .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 992px) {
    #asApplyForm .as-apply-step[data-step="0"] {
        grid-template-columns: 1fr;
    }

    .as-stepper--line {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 10px;
    }

    .as-stepper--line::before {
        display: none;
    }

    .as-main--student,
    .as-main--admin {
        margin-left: auto;
        margin-right: auto;
        width: min(1560px, calc(100% - 24px));
        max-width: 100%;
    }

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

    .as-grid--presets {
        grid-template-columns: 1fr;
    }

    .as-grid--4,
    .as-grid--3,
    .as-grid--2,
    .as-form__row--2,
    .as-form__row--gemini-line,
    .as-form__row--class-line,
    .as-choice-grid--2,
    .as-choice-grid--3,
    .as-page-builder__grid {
        grid-template-columns: 1fr;
    }

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

    .as-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .as-page-head__actions {
        align-self: stretch;
    }

    .as-page-head__actions .btn {
        width: 100%;
    }

    .as-builder-overview__stats,
    .as-design-overview {
        grid-template-columns: 1fr;
    }

    .as-mysite-layout {
        height: auto;
        min-height: 0;
    }

    .as-mysite-layout__form {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .as-mysite-sidebar {
        min-width: 100%;
        width: 100%;
    }

    .as-mysite-sidebar.is-collapsed .as-mysite-sidebar__inner {
        display: block;
    }

    .as-mysite-sidebar__toggle {
        display: none;
    }

    .as-page-builder__toolbar,
    .as-page-builder__add {
        flex-direction: column;
        align-items: stretch;
    }

    .as-page-builder-preview-tab--primary {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .as-mysite-preview-head {
        padding: 12px;
    }

    .as-page-builder-preview-tabs {
        align-items: stretch;
    }

    .as-page-builder-preview-tab,
    .as-page-builder-drag-toggle {
        width: 100%;
        justify-content: center;
    }

    .as-template-card {
        grid-template-columns: 1fr;
    }

    .as-template-card__action {
        justify-self: start;
    }
}

.btn-outline-secondary {
    color: var(--as-muted);
    border-color: var(--as-border);
    background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--as-text);
    background: var(--as-input-bg);
    border-color: var(--as-border);
}

.btn-light {
    color: var(--as-text);
    background: var(--as-input-bg);
    border-color: var(--as-border);
}

.btn-light:hover {
    background: #e2e8f0;
    color: var(--as-text);
    border-color: var(--as-border);
}

.text-muted {
    color: var(--as-muted) !important;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--as-text);
    --bs-table-border-color: var(--as-border);
}

.form-control,
.form-select {
    background-color: var(--as-input-bg);
    color: var(--as-text);
    border-color: var(--as-border);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--as-input-focus-bg);
    color: var(--as-text);
    border-color: var(--as-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.card {
    background-color: var(--as-bg-elevated);
    border-color: var(--as-border);
    color: var(--as-text);
}

.list-group-item {
    background-color: var(--as-bg-elevated);
    border-color: var(--as-border);
    color: var(--as-text);
}

.btn-outline-primary {
    color: var(--as-primary);
    border-color: var(--as-primary);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background: var(--as-primary);
    border-color: var(--as-primary);
}

.btn-outline-danger {
    color: var(--as-danger);
    border-color: var(--as-danger);
    background: transparent;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #fff;
    background: var(--as-danger);
    border-color: var(--as-danger);
}

.btn-outline-warning {
    color: var(--as-warning);
    border-color: var(--as-warning);
    background: transparent;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
    color: #fff;
    background: var(--as-warning);
    border-color: var(--as-warning);
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--as-primary-dark);
    border-color: var(--as-primary-dark);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--as-muted);
    border-color: var(--as-border);
    background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--as-text);
    background: #f1f5f9;
    border-color: #cbd5e1;
}

@keyframes as-skeleton-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.as-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 800px 100%;
    animation: as-skeleton-shimmer 1.6s ease infinite;
    border-radius: var(--as-radius-sm);
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.as-skeleton--text {
    height: 14px;
    width: 60%;
    margin-bottom: 8px;
}

.as-skeleton--title {
    height: 22px;
    width: 40%;
    margin-bottom: 12px;
}

.as-skeleton--card {
    height: 120px;
    width: 100%;
}

.as-skeleton--circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

body.as-overlay-open {
    overflow: hidden;
}

.as-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.as-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.as-overlay__scrim {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.as-overlay__panel {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-width: 100%;
    padding: 28px 26px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.as-overlay__skeleton {
    margin-bottom: 22px;
}

.as-overlay__sk-head {
    margin-bottom: 18px;
}

.as-overlay__sk-title {
    height: 22px;
    width: 48%;
    margin-bottom: 14px;
    border-radius: 8px;
}

.as-overlay__sk-line {
    height: 12px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 6px;
}

.as-overlay__sk-line--w70 {
    width: 70%;
}

.as-overlay__sk-line--w90 {
    width: 90%;
}

.as-overlay__sk-line--w40 {
    width: 40%;
}

.as-overlay__sk-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.as-overlay__sk-card {
    height: 72px;
    border-radius: 12px;
}

.as-overlay__sk-foot {
    padding-top: 4px;
}

.as-overlay__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 4px;
}

.as-overlay__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--as-muted);
}

.as-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--as-primary);
    border-radius: 50%;
    animation: as-spin 0.65s linear infinite;
}

.as-spinner--orbit {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99, 102, 241, 0.14);
    border-top-color: var(--as-primary);
    border-right-color: rgba(99, 102, 241, 0.55);
    border-radius: 50%;
    animation: as-spin 0.88s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.06), 0 10px 32px rgba(99, 102, 241, 0.16);
}

@keyframes as-spin {
    to { transform: rotate(360deg); }
}
