html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Noto Sans", sans-serif;
    color: #1f2933;
}

a {
    color: #0f6270;
}

a:hover {
    color: #0b4e58;
}

.auth-card {
    max-width: 700px;
    margin: 0 auto;
}

.field-group {
    margin-bottom: 1rem;
}

.field-group.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-field {
    width: 100%;
    border: 1px solid #cdd3d9;
    border-radius: 0.3rem;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
}

.validation-message {
    display: block;
    margin-top: 0.3rem;
    color: #9f1d35;
    font-size: 0.9rem;
}

.auth-link,
.auth-links {
    margin-top: 1rem;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-panel {
    max-width: 820px;
}

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

.requests-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.request-items {
    margin-top: 1rem;
}

.pagination-row {
    margin-top: 1rem;
}

.request-textarea {
    min-height: 160px;
}

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

.detail-meta {
    margin-bottom: 1rem;
}

.detail-action-note {
    margin-top: 1rem;
}

.preview-image {
    margin-top: 0.75rem;
}

@media (max-width: 760px) {
    .field-group.two-col {
        grid-template-columns: 1fr;
    }

    .requests-filter-grid,
    .tags-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   MainLayout — topbar, navigation, footer
   ═══════════════════════════════════════════ */

.ms-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Topbar ── */
.ms-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e6e8f4;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.ms-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}

.ms-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ms-brand img {
    height: 34px;
    width: auto;
}

/* ── Desktop nav ── */
.ms-nav-desktop {
    display: flex;
    align-items: center;
    gap: 0;
}

.ms-nav-desktop a,
.ms-nav-desktop :deep(a) {
    color: #5d648d;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 16px 14px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.ms-nav-desktop a:hover,
.ms-nav-desktop :deep(a:hover) {
    color: #4E5BC1;
    background: #f5f6fb;
}

.ms-nav-desktop :deep(a.active) {
    color: #4E5BC1;
    border-bottom: 2px solid #4E5BC1;
}

.ms-admin-link,
.ms-nav-desktop :deep(.ms-admin-link) {
    color: #e07c3a !important;
    font-weight: 700 !important;
}

/* ── Hamburger (mobile) ── */
.ms-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #5d648d;
    cursor: pointer;
    padding: 8px;
}

/* ── Mobile menu ── */
.ms-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 1001;
}

.ms-mobile-menu {
    position: fixed;
    top: 54px;
    right: 0;
    width: 260px;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,.1);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    max-height: calc(100vh - 54px);
    overflow-y: auto;
}

.ms-mobile-menu a,
.ms-mobile-menu :deep(a) {
    padding: 12px 20px;
    color: #2f3568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f1f7;
    transition: background .15s;
}

.ms-mobile-menu a:hover,
.ms-mobile-menu :deep(a:hover) {
    background: #f5f6fb;
}

.ms-mobile-menu :deep(a.active) {
    color: #4E5BC1;
    font-weight: 700;
    background: #f0f1ff;
}

/* ── Main content ── */
.ms-main {
    flex: 1;
    margin-top: 54px;
}

/* ── Footer ── */
.ms-footer {
    background: #fafafa;
    border-top: 1px solid #ececec;
    padding: 28px 0 0;
    font-family: Inter, system-ui, sans-serif;
}

.ms-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 26px;
}

.ms-footer-col h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #4e4e4e;
    text-transform: none;
}

.ms-footer-col a {
    display: block;
    color: #6666c9;
    text-decoration: none;
    line-height: 1.9;
    font-size: 0.9rem;
}

.ms-footer-col a:hover {
    text-decoration: underline;
}

.ms-footer-col p {
    color: #5b5b5b;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 4px;
}

.ms-footer-copy {
    max-width: 1180px;
    margin: 20px auto 0;
    padding: 14px 16px;
    border-top: 1px solid #e8e8e8;
    color: #888;
    font-size: 0.8rem;
    text-align: center;
}

/* ── Hero grid ── */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 24px;
    padding: 48px 0 36px;
}

.hero-text h1 {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #5d6497;
}

.hero-text p {
    margin: 0 0 22px;
    color: #5f6791;
    font-size: 1.15rem;
    max-width: 640px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ms-nav-desktop {
        display: none;
    }

    .ms-hamburger {
        display: block;
    }

    .ms-footer-inner {
        grid-template-columns: 1fr;
    }

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

    .hero-visual {
        display: none;
    }
}
