/* layout.css */
html, body {
    min-height: 100%;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Malgun Gothic", Arial, sans-serif;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
}

.brand-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.page-wrap {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 24px 56px;
    flex: 1;
}

.page-title-wrap {
    margin-bottom: 24px;
}

.page-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.page-desc {
    margin-top: 10px;
    color: var(--color-muted);
    line-height: 1.7;
    font-size: 15px;
}

.content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.content-grid-main {
    display: grid;
    grid-template-columns: 240px 1fr 140px;
    min-height: 620px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.sidebar {
    background: #fff;
    border-right: 1px solid var(--color-border);
    padding: 20px;
}

.content-stage {
    background: #f8fafc;
    padding: 24px;
}

.right-tools {
    background: #fff;
    border-left: 1px solid var(--color-border);
    padding: 20px;
}

.content-placeholder {
    width: 100%;
    min-height: 520px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
    font-weight: 600;
}

.section-block + .section-block {
    margin-top: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.section-tools {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sticky-bottom-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 16px 20px;
}

.center-wrap {
    max-width: 1000px;
    margin: 0 auto;
}


.app-footer {
    border-top: 1px solid var(--color-border);
    background: #fff;
    padding: 16px 24px;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-company {
    font-weight: 700;
    font-size: 14px;
}

.footer-copy {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

.footer-right {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 13px;
    color: var(--color-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.menu-btn.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}