:root {
    --bg: #f5f8ff;
    --surface: #ffffff;
    --ink: #061b3f;
    --muted: #5d6b85;
    --line: #d9e3f5;
    --primary: #005bff;
    --primary-dark: #001e4d;
    --accent: #2f80ff;
    --blue: #005bff;
    --navy: #001e4d;
    --clay: #52627a;
    --tint: #eaf2ff;
    --tint-strong: #d8e7ff;
    --shadow: 0 24px 70px rgba(0, 30, 77, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 91, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
    font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

button {
    font: inherit;
}

.home-header {
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 0 clamp(20px, 4vw, 60px);
    border-bottom: 1px solid rgba(217, 227, 245, 0.9);
    background: rgba(251, 253, 255, 0.92);
    backdrop-filter: blur(18px);
}

.brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    font-weight: 900;
}

.brand-logo {
    display: block;
    width: clamp(132px, 15vw, 184px);
    height: auto;
}

.home-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.home-nav a:hover,
.home-nav a.active {
    color: var(--primary-dark);
}

.home-nav a.active {
    font-weight: 900;
}

.header-action,
.primary-btn,
.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    white-space: nowrap;
}

.header-user {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.header-user-info {
    display: grid;
    gap: 4px;
    width: 230px;
    min-width: 0;
}

.header-user-info strong {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-info strong span:not(.user-icon) {
    overflow: hidden;
    max-width: 76px;
    text-overflow: ellipsis;
    color: var(--primary);
}

.user-icon {
    color: var(--ink);
    font-size: 12px;
    line-height: 1;
}

.header-user-info p {
    display: grid;
    gap: 2px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.header-user-info .user-company-row {
    display: block;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.header-logout {
    margin: 0;
}

.header-logout button,
.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #596779;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-link {
    color: #596779;
    background: #fff;
}

.admin-link:hover,
.header-logout button:hover {
    color: var(--primary-dark);
    border-color: #b8ceff;
    background: #f8fbff;
}

.header-action,
.primary-btn {
    position: relative;
    z-index: 2;
    color: #fff;
    background: var(--primary);
}

.header-action:hover,
.primary-btn:hover {
    background: var(--primary-dark);
}

.outline-btn {
    border: 1px solid #b8ceff;
    color: var(--primary-dark);
    background: #fff;
}

.outline-btn.light {
    border-color: rgba(255, 255, 255, 0.46);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.outline-btn.light:hover {
    background: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 68vh, 720px);
    padding: clamp(42px, 5vw, 72px) 0 clamp(38px, 5vw, 64px);
    color: #fff;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(10, 20, 35, 0.9) 0%, rgba(10, 20, 35, 0.72) 44%, rgba(10, 20, 35, 0.32) 100%),
        linear-gradient(180deg, rgba(10, 20, 35, 0.22), rgba(10, 20, 35, 0.64));
}

.hero-inner,
.hero-copy,
.hero-panel {
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
    width: 60%;
    min-height: calc(clamp(520px, 68vh, 720px) - clamp(42px, 5vw, 72px) - clamp(38px, 5vw, 64px));
    margin: 0 auto;
}

.hero-copy {
    width: min(100%, 720px);
}

.section-label {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .section-label {
    color: #d8e7ff;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(42px, 5.6vw, 78px);
    line-height: 1.06;
    letter-spacing: 0;
}

h2 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
}

.hero-description {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(238, 246, 244, 0.86);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 0;
}

.hero-actions .primary-btn,
.hero-actions .outline-btn {
    width: 168px;
    min-height: 126px;
    padding: 18px;
    border-radius: 8px;
    font-size: 20px;
}

.hero-panel {
    overflow: hidden;
    align-self: center;
    justify-self: end;
    width: min(100%, 460px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 20px;
    color: #e7f2ef;
    background: rgba(18, 34, 56, 0.76);
}

.panel-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 20px 0 0 #005bff, 40px 0 0 #8aa7d9;
}

.panel-header strong {
    margin-left: 42px;
    font-size: 14px;
}

.panel-body {
    padding: 24px;
}

.status-card,
.mini-grid div,
.service-grid article,
.strength-list article,
.process-list div,
.contact-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.status-card {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.status-card.main {
    padding: 24px;
}

.status-card span,
.contact-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.status-card strong {
    display: block;
    margin-top: 6px;
    font-size: 34px;
    line-height: 1.1;
}

.status-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

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

.mini-grid div {
    padding: 18px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}

.mini-grid strong,
.mini-grid span {
    display: block;
}

.mini-grid strong {
    font-size: 22px;
}

.mini-grid span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.intro-band {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.intro-band div {
    padding: 28px 0;
}

.intro-band div + div {
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

.intro-band small {
    display: block;
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.intro-band strong,
.intro-band span {
    display: block;
}

.intro-band strong {
    font-size: 21px;
}

.intro-band span {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}

.company-message {
    display: block;
    padding: 0;
    background: transparent;
}

.message-kicker {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.message-copy {
    max-width: 1060px;
}

.message-copy h2 {
    margin: 0;
    font-size: clamp(30px, 3.8vw, 52px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
}

.message-copy p {
    max-width: 860px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 800;
    line-height: 1.55;
}

.section,
.split-section,
.contact-section {
    padding: clamp(70px, 8vw, 118px) clamp(20px, 4vw, 60px);
}

.section-heading {
    margin-bottom: 34px;
}

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

.service-grid article {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 26px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-grid article::after {
    position: absolute;
    right: -32px;
    bottom: -32px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(0, 91, 255, 0.1);
    content: "";
}

.service-grid article:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 91, 255, 0.36);
    box-shadow: 0 18px 46px rgba(0, 30, 77, 0.1);
}

.number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 32px;
    margin-bottom: 28px;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.service-grid p,
.strength-list p,
.split-copy p,
.process-list p,
.contact-section p {
    margin: 12px 0 0;
    color: var(--muted);
}

.proposal-section {
    background: transparent;
}

.proposal-lead {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
}

.proposal-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.proposal-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(300px, 1.55fr) minmax(130px, 0.55fr) minmax(120px, 0.5fr);
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
}

.proposal-row + .proposal-row {
    border-top: 1px solid var(--line);
}

.proposal-head {
    min-height: 54px;
    padding-top: 15px;
    padding-bottom: 15px;
    color: var(--primary-dark);
    background: var(--tint-strong);
    font-size: 13px;
    font-weight: 900;
}

.proposal-row strong,
.proposal-row p,
.proposal-row em,
.proposal-row span {
    display: block;
}

.proposal-row strong {
    font-size: 18px;
    line-height: 1.35;
}

.proposal-row p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.proposal-row em {
    color: var(--primary-dark);
    font-size: 19px;
    font-style: normal;
    font-weight: 900;
}

.proposal-row span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.proposal-row.featured {
    background: transparent;
}

.proposal-note {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #b8ceff;
    border-radius: 8px;
    background: rgba(232, 241, 255, 0.72);
}

.proposal-note strong {
    flex: 0 0 auto;
    color: var(--primary-dark);
    font-weight: 900;
}

.proposal-note span {
    color: var(--muted);
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(220px, 0.28fr) minmax(360px, 1fr);
    gap: 44px;
    align-items: start;
    padding-right: 0;
    padding-left: 0;
    color: var(--ink);
    background: transparent;
}

.split-section .section-label {
    color: var(--primary);
}

.split-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}

.proof-strip {
    display: grid;
    gap: 14px;
}

.proof-strip div {
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
}

.proof-strip strong,
.proof-strip span {
    display: block;
}

.proof-strip strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.15;
}

.proof-strip span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.strength-list article {
    padding: 24px;
    border-color: var(--line);
    background: transparent;
}

.strength-list article:first-child {
    border-color: var(--line);
    background: transparent;
}

.strength-list p {
    color: var(--muted);
}

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

.process-list div {
    min-height: 224px;
    padding: 24px;
}

.process-list span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-weight: 900;
}

.process-list strong {
    display: block;
    font-size: 20px;
}

.support-flow .section-heading {
    max-width: 900px;
}

.support-flow-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.support-flow-card div {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.support-flow-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    margin-bottom: 24px;
    border-radius: 8px;
    color: var(--primary);
    background: var(--tint);
    font-size: 13px;
    font-weight: 900;
}

.support-flow-card strong {
    display: block;
    color: var(--ink);
    font-size: 20px;
}

.support-flow-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr);
    gap: 32px;
    align-items: center;
    border-top: 0;
    background: transparent;
}

.contact-box {
    padding: 28px;
    box-shadow: none;
}

.contact-box a {
    display: block;
    margin: 5px 0 22px;
    color: var(--primary-dark);
    font-size: 26px;
    font-weight: 900;
}

.contact-box .use-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 7px 0 24px;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-size: 18px;
}

.contact-box .use-link:hover {
    background: var(--primary-dark);
}

.contact-box strong {
    display: block;
    margin-top: 6px;
    font-size: 17px;
}

.sub-main {
    min-height: calc(100vh - 76px);
}

.sub-hero {
    padding: clamp(72px, 8vw, 118px) clamp(20px, 4vw, 60px) clamp(54px, 6vw, 84px);
    color: #fff;
    background:
        linear-gradient(90deg, rgba(10, 20, 35, 0.9), rgba(10, 20, 35, 0.64)),
        url("/resources/images/smart-factory-hero.png") center / cover;
}

.sub-hero h1 {
    max-width: 900px;
    font-size: clamp(38px, 5vw, 68px);
}

.sub-hero p:not(.section-label) {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(238, 246, 244, 0.86);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 700;
}

.sub-hero .outline-btn {
    border-color: rgba(255, 255, 255, 0.46);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.compact-section {
    background: #fff;
}

.content-narrow {
    width: 60%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    background: transparent;
}

.main-narrow {
    width: 60%;
    margin-right: auto;
    margin-left: auto;
}

.main-narrow + .main-narrow {
    margin-top: clamp(58px, 7vw, 92px);
    padding-top: clamp(48px, 6vw, 78px);
    border-top: 1px solid var(--line);
}

.section.main-narrow,
.contact-section.main-narrow,
.contact-section.content-narrow {
    padding-right: 0;
    padding-left: 0;
}

.login-intro {
    width: min(100% - 40px, 720px);
    margin: clamp(60px, 8vw, 96px) auto 0;
    text-align: center;
}

.login-intro h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 44px);
}

.login-intro p:not(.section-label) {
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.login-section {
    padding-top: 34px;
    background: transparent;
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(232, 241, 255, 0.96), rgba(245, 249, 255, 0.9)),
        #eaf2fb;
}

.login-shell {
    display: grid;
    min-height: calc(100vh - 100px);
    place-items: center;
    padding: clamp(18px, 4.2vw, 46px) 20px;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.96fr) minmax(330px, 1fr);
    overflow: hidden;
    width: min(100%, 720px);
    min-height: 306px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 35, 65, 0.18);
}

.login-promo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 30px;
    color: #fff;
    background:
        linear-gradient(140deg, rgba(0, 91, 255, 0.12), transparent 42%),
        #101828;
}

.login-promo strong {
    display: block;
    margin-bottom: 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.login-promo h1 {
    max-width: 300px;
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.3;
}

.login-promo p {
    max-width: 310px;
    margin: 12px 0 0;
    color: #d8e7ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}

.login-mes-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    margin-top: 16px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 6px;
    color: #fff;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
}

.login-mes-link:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.login-promo ul {
    display: grid;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.login-promo li {
    position: relative;
    padding-left: 15px;
    color: #f2f7ff;
    font-size: 12px;
    font-weight: 900;
}

.login-promo li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    content: "";
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 34px;
}

.login-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.login-form-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
}

.login-form-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.login-form-head a {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    display: grid;
    gap: 6px;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
}

.login-form input {
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d7dfea;
    border-radius: 6px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 800;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-form input:focus {
    border-color: #9bbcff;
    box-shadow: 0 0 0 4px rgba(0, 91, 255, 0.1);
}

.login-form button {
    min-height: 36px;
    margin-top: 1px;
    border: 1px solid #d7dfea;
    border-radius: 6px;
    color: var(--primary);
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.login-form button:hover {
    border-color: #b8ceff;
    background: #f8fbff;
}

.login-form-panel small {
    margin-top: 16px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.feature-list,
.schedule-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-list article,
.schedule-list article {
    min-height: 230px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 30, 77, 0.07);
}

.feature-list p,
.schedule-list p,
.schedule-list span,
.timeline-list p {
    color: var(--muted);
    font-weight: 700;
}

.schedule-list strong {
    display: block;
    color: var(--primary-dark);
    font-size: 22px;
}

.schedule-list p {
    margin: 12px 0 0;
    font-size: 18px;
}

.schedule-list span {
    display: block;
    margin-top: 16px;
}

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

.timeline-list article {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.timeline-list time {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
}

.timeline-list h3,
.timeline-list p {
    margin: 0;
}

.timeline-list p {
    margin-top: 8px;
}

.board-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.board-tabs button,
.board-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #b8ceff;
    border-radius: 8px;
    color: var(--primary-dark);
    background: #fff;
    cursor: pointer;
    font-weight: 900;
}

.board-tabs button:hover,
.board-tabs button.active,
.board-tabs a:hover,
.board-tabs a.active {
    color: #fff;
    background: var(--primary);
}

.board-section + .board-section {
    margin-top: 56px;
}

.board-section.hidden {
    display: none;
}

.board-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.board-heading h2 {
    font-size: clamp(25px, 3vw, 36px);
}

.board-heading span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 800;
}

.board-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.board-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 140px 100px;
    gap: 16px;
    align-items: center;
    min-height: 60px;
    padding: 0 20px;
}

.support-row {
    grid-template-columns: 64px 92px minmax(0, 1fr) 120px 92px 110px 70px 92px;
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.title-lock {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: var(--muted);
    font-size: 14px;
}

.title-count {
    margin-left: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.board-row + .board-row {
    border-top: 1px solid var(--line);
}

.board-head {
    min-height: 48px;
    color: var(--primary-dark);
    background: var(--tint-strong);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.board-head [role="columnheader"],
.board-head span,
.board-head strong,
.board-head time,
.board-head em {
    justify-content: center;
    text-align: center;
}

a.board-row:hover {
    border-color: rgba(0, 91, 255, 0.36);
    background: #fbfdff;
}

a.board-row.locked-row {
    cursor: default;
}

.board-row strong {
    font-size: 18px;
    line-height: 1.35;
}

.board-row span,
.board-row time {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.board-row:not(.support-row) > span,
.board-row:not(.support-row) > time,
.board-row:not(.support-row) > em {
    text-align: center;
}

.board-row .board-title-cell {
    text-align: left;
}

.support-row > span:nth-child(1),
.support-row > span:nth-child(2),
.support-row > span:nth-child(4),
.support-row > span:nth-child(5),
.support-row > time,
.support-row > span:nth-child(7) {
    text-align: center;
}

.board-row em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 8px;
    color: var(--primary-dark);
    background: var(--tint);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.status-pill {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
}

.status-pill.status-received,
.board-row .status-pill.status-received,
.document-meta .status-pill.status-received {
    color: #174a7c;
    border-color: #9ec5fe;
    background: #dbeafe;
}

.status-pill.status-checking,
.board-row .status-pill.status-checking,
.document-meta .status-pill.status-checking {
    color: #7c2d12;
    border-color: #fdba74;
    background: #ffedd5;
}

.status-pill.status-hold,
.board-row .status-pill.status-hold,
.document-meta .status-pill.status-hold {
    color: #374151;
    border-color: #cbd5e1;
    background: #e5e7eb;
}

.status-pill.status-done,
.board-row .status-pill.status-done,
.document-meta .status-pill.status-done {
    color: #065f46;
    border-color: #86efac;
    background: #dcfce7;
}

.board-empty {
    padding: 26px 20px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.board-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.board-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    font-size: 13px;
    font-weight: 900;
}

.board-pagination a:hover,
.board-pagination a.active {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
}

.board-pagination a.disabled {
    pointer-events: none;
    opacity: 0.42;
}

.detail-view {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(0, 30, 77, 0.08);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: #fbfdff;
}

.detail-meta span,
.detail-meta em {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--primary-dark);
    background: var(--tint-strong);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.detail-meta time {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.board-document-section {
    padding-top: clamp(46px, 6vw, 76px);
}

.document-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-bottom: 8px;
    padding-right: 86px;
}

.document-top h1 {
    margin: 0;
    color: var(--primary-dark);
    font-size: clamp(22px, 2.4vw, 34px);
    text-align: center;
}

.document-top .primary-btn {
    position: absolute;
    right: 0;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 6px;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 0 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.document-meta span,
.document-meta em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    color: #fff;
    background: var(--primary);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.document-meta time,
.document-meta b {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.board-document {
    overflow: hidden;
    border: 1px solid #dbe6ff;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(0, 30, 77, 0.08);
}

.document-brand {
    padding: 20px 24px;
    border-bottom: 1px solid #dbe6ff;
    color: var(--ink);
    background: #f0f4ff;
    font-size: 19px;
    font-weight: 900;
}

.document-box {
    margin: 24px;
    padding: 28px 24px 20px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 91, 255, 0.16);
}

.support-document-box {
    margin: 18px 0 0;
}

.document-title {
    padding-bottom: 24px;
}

.document-title strong {
    display: block;
    color: var(--primary);
    font-size: clamp(20px, 2.5vw, 30px);
    line-height: 1.35;
}

.document-title p,
.document-block p {
    margin: 10px 0 0;
    color: var(--ink);
    font-weight: 800;
}

.document-block {
    padding: 22px 0;
    border-top: 1px solid #a9a9a9;
}

.document-block h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 19px;
}

.document-files {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.document-files li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.document-files a,
.document-files span {
    color: var(--primary-dark);
    font-weight: 900;
}

.document-files small {
    color: var(--muted);
    font-weight: 800;
}

.document-footer {
    padding: 0 24px 24px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.document-actions {
    border-top: 1px solid var(--line);
}

.support-status-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 32px;
    border-bottom: 1px solid #c9d9ff;
    background:
        linear-gradient(135deg, rgba(0, 91, 255, 0.12), rgba(0, 36, 92, 0.04)),
        #f8fbff;
}

.support-status-hero div {
    display: grid;
    gap: 8px;
}

.status-label {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
}

.support-status-hero strong {
    color: var(--ink);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
}

.support-status-hero em {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #a9c4ff;
    border-radius: 8px;
    color: var(--primary-dark);
    background: #fff;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.support-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.support-info-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
    font-weight: 900;
}

.support-info-grid b {
    color: var(--muted);
    font-size: 13px;
}

.detail-title,
.detail-content,
.detail-files,
.detail-actions {
    padding: 28px 32px;
}

.detail-title,
.detail-content,
.detail-files {
    border-bottom: 1px solid var(--line);
}

.detail-title h2 {
    font-size: clamp(26px, 3vw, 40px);
}

.detail-title p,
.detail-content p,
.detail-files p {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.detail-content h3,
.detail-files h3 {
    font-size: 20px;
}

.detail-content p {
    max-width: 980px;
}

.inquiry-content {
    min-height: 240px;
}

.support-comments {
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.comment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.comment-heading p {
    margin-top: 8px;
}

.comment-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.comment-item {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.comment-item.admin-comment {
    border-color: #b8ceff;
    background:
        linear-gradient(135deg, rgba(0, 91, 255, 0.08), transparent 66%),
        #fff;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 10px;
}

.comment-meta strong {
    color: var(--ink);
}

.comment-meta span,
.comment-meta time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.comment-item p {
    margin: 8px 0 0;
    color: var(--ink);
    font-weight: 700;
}

.reply-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-left: 22px;
    border-left: 3px solid #dbe6ff;
}

.reply-item {
    background: #fbfdff;
}

.reply-form,
.comment-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.comment-form {
    padding: 20px;
    border: 1px solid #c9d9ff;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 91, 255, 0.08), transparent 68%),
        #f8fbff;
    box-shadow: 0 16px 34px rgba(0, 30, 77, 0.08);
}

.comment-form label {
    display: grid;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 900;
}

.reply-form textarea,
.comment-form textarea {
    width: 100%;
    min-height: 92px;
    padding: 14px 16px;
    border: 1px solid #c9d9ff;
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 700;
    resize: vertical;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.reply-form textarea:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 91, 255, 0.12);
}

.reply-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.reply-form textarea {
    min-height: 76px;
}

.reply-form button {
    justify-self: end;
}

.comment-empty {
    padding: 22px;
    border: 1px dashed #c9d9ff;
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    font-weight: 800;
}

.support-status-form {
    border: 1px solid #c9d9ff;
    background: #f8fbff;
}

.admin-form-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dbe6ff;
}

.admin-form-head strong {
    color: var(--primary-dark);
    font-size: 20px;
}

.admin-form-head span {
    color: var(--muted);
    font-weight: 800;
}

.detail-files ul {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.detail-files li {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf8;
}

.detail-files a {
    color: var(--primary-dark);
    font-weight: 900;
}

.detail-files span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-actions form {
    margin: 0;
}

.danger-btn {
    border-color: #ffc4c4;
    color: #9d1c1c;
}

.admin-form {
    display: grid;
    gap: 18px;
    max-width: 860px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(0, 30, 77, 0.08);
}

.board-write-form {
    width: min(100%, 860px);
    margin: 0 auto;
}

.inline-admin-form {
    max-width: none;
    margin: 0 32px 28px;
    box-shadow: none;
}

.auth-form {
    width: min(100%, 520px);
    max-width: 520px;
    margin: 0 auto;
}

.auth-form .form-actions {
    justify-content: flex-end;
}

.admin-form label {
    display: grid;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 900;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.admin-form textarea {
    resize: vertical;
}

.form-alert {
    padding: 14px 16px;
    border: 1px solid #ffc4c4;
    border-radius: 8px;
    color: #9d1c1c;
    background: #fff5f5;
    font-weight: 800;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 6px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.standalone-contact {
    border-top: 0;
}

.home-footer {
    position: relative;
    overflow: hidden;
    margin-top: clamp(40px, 6vw, 80px);
    padding: 58px clamp(20px, 4vw, 60px);
    color: rgba(226, 235, 255, 0.82);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 64% 18%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 55%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
        linear-gradient(135deg, #0a1224 0%, #162345 54%, #102b58 100%);
    font-size: 14px;
}

.footer-inner {
    display: grid;
    justify-items: center;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    cursor: default;
}

.footer-logo img {
    width: 260px;
    max-width: 58vw;
    height: auto;
}

.home-footer p,
.home-footer strong,
.home-footer b,
.home-footer span {
    display: block;
}

.home-footer p {
    margin: 0 0 8px;
    font-weight: 900;
}

.home-footer strong {
    color: #eaf1ff;
    font-weight: 900;
}

.footer-line {
    width: min(100%, 700px);
    height: 1px;
    margin: 20px 0 24px;
    background: rgba(191, 210, 255, 0.22);
}

.home-footer b {
    margin-bottom: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.home-footer span + span {
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
}

.footer-links a {
    color: #9fc0ff;
    font-weight: 900;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 1120px) {
    .service-grid,
    .feature-list,
    .schedule-list,
    .process-list,
    .support-flow-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-section {
        grid-template-columns: 1fr 1fr;
    }

    .split-copy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 920px) {
    .home-nav,
    .header-action,
    .header-user {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .home-header.nav-open .home-nav {
        position: absolute;
        top: 76px;
        right: 20px;
        left: 20px;
        transform: none;
        display: grid;
        gap: 4px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .home-header.nav-open .home-nav a {
        padding: 12px;
    }

    .login-card {
        grid-template-columns: 1fr;
        width: min(100%, 620px);
    }

    .login-promo {
        min-height: 320px;
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        width: calc(100% - 40px);
    }

    .hero-panel {
        justify-self: start;
    }

    .intro-band,
    .company-message,
    .split-section {
        grid-template-columns: 1fr;
    }

    .intro-band div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding-left: 0;
    }

    .content-narrow {
        width: calc(100% - 40px);
    }

    .main-narrow {
        width: calc(100% - 40px);
    }
}

@media (max-width: 640px) {
    .home-header {
        min-height: 68px;
    }

    .login-shell {
        padding: 20px;
    }

    .login-card {
        min-height: auto;
    }

    .login-promo,
    .login-form-panel {
        padding: 28px 22px;
    }

    .login-promo strong {
        margin-bottom: 16px;
        font-size: 24px;
    }

    .login-promo ul {
        margin-top: 28px;
    }

    .login-form-head {
        flex-direction: column;
        margin-bottom: 24px;
    }

    .hero {
        min-height: auto;
        padding-top: 54px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(10, 20, 35, 0.88), rgba(10, 20, 35, 0.72));
    }

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

    .hero-actions .primary-btn,
    .hero-actions .outline-btn {
        width: 100%;
        min-height: 72px;
        font-size: 18px;
    }

    .primary-btn,
    .outline-btn {
        width: 100%;
    }

    .mini-grid,
    .service-grid,
    .feature-list,
    .schedule-list,
    .process-list,
    .support-flow-card {
        grid-template-columns: 1fr;
    }

    .timeline-list article,
    .board-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .board-row {
        align-items: start;
        padding: 16px;
    }

    .board-head {
        display: none;
    }

    .board-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-row em {
        justify-content: flex-start;
        width: fit-content;
        padding: 0 12px;
    }

    .detail-title,
    .detail-content,
    .detail-files,
    .detail-actions {
        padding: 22px;
    }

    .document-top {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding-right: 0;
    }

    .document-top .primary-btn {
        position: static;
        align-self: flex-end;
        width: auto;
    }

    .document-box {
        margin: 16px;
        padding: 22px 16px 16px;
    }

    .support-status-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

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

    .admin-form-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .reply-list {
        padding-left: 14px;
    }

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

    .detail-actions {
        justify-content: stretch;
    }

    .proposal-row,
    .proposal-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .proposal-head {
        display: none;
    }

    .proposal-row {
        align-items: start;
        padding: 22px;
    }

    .proposal-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-body {
        padding: 16px;
    }

    .contact-box a {
        font-size: 22px;
    }

    .home-footer {
        padding-top: 42px;
        padding-bottom: 42px;
    }
}
