@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #18233f;
    --muted: #69718a;
    --blue: #3157e7;
    --blue-dark: #2445c6;
    --cream: #f7f8fb;
    --white: #ffffff;
    --line: #e4e7ef;
    --yellow: #ffd95c;
    --pink: #ff8da4;
    --mint: #88ddc0;
    --shadow: 0 12px 32px rgba(36, 48, 91, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--cream);
    font-family: "Noto Sans KR", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a,
label {
    -webkit-tap-highlight-color: transparent;
}

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

svg {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    width: min(1180px, calc(100% - 48px));
    height: 88px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-family: "DM Sans", "Noto Sans KR", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--blue);
    border-radius: 9px;
}

.brand-mark svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a {
    position: relative;
    color: #81879a;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
    transform: translateX(-50%);
}

.button {
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-small {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 9px;
    font-size: 13px;
}

.button-primary {
    color: white;
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(49, 87, 231, 0.15);
}

.button-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 10px 22px rgba(49, 87, 231, 0.18);
}

.header-upload {
    justify-self: end;
}

.hero {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    min-height: 560px;
    margin: 12px auto 76px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 68px 32px 66px 70px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--blue);
    font-family: "DM Sans", "Noto Sans KR", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.eyebrow > span {
    width: 22px;
    height: 2px;
    background: currentColor;
}

.hero h1,
.upload-intro h1 {
    margin: 0;
    font-size: 58px;
    line-height: 1.18;
    letter-spacing: 0;
    word-break: keep-all;
}

h1 em {
    color: var(--blue);
    font-style: normal;
}

.hero-description {
    margin: 25px 0 31px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.search-box {
    width: min(470px, 100%);
    height: 60px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(24, 35, 63, 0.05);
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 22px rgba(33, 42, 76, 0.06);
}

.search-box > svg {
    width: 21px;
    fill: none;
    stroke: #7d8498;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #9ea3b2;
}

.search-box:focus-within {
    outline: 2px solid rgba(49, 87, 231, 0.2);
}

.search-box kbd {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: #8f95a7;
    border: 1px solid #e5e6eb;
    border-radius: 7px;
    background: #f8f8f8;
    font-family: inherit;
    font-size: 12px;
}

.hero-stats {
    margin-top: 39px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-stats div {
    display: grid;
    gap: 2px;
}

.hero-stats div + div {
    padding-left: 30px;
    border-left: 1px solid #d7d5cf;
}

.hero-stats strong {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
}

.hero-stats span {
    color: #858b9c;
    font-size: 11px;
}

.hero-visual {
    position: relative;
    min-width: 0;
    align-self: stretch;
    min-height: 560px;
    background: var(--blue);
    overflow: hidden;
}

.timetable-card {
    position: absolute;
    z-index: 3;
    top: 82px;
    left: 50%;
    width: min(365px, calc(100% - 90px));
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(10, 25, 91, 0.16);
    transform: translateX(-50%);
}

.timetable-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timetable-head > div {
    display: grid;
    gap: 2px;
}

.timetable-head span {
    color: #9a9fb0;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
}

.timetable-head strong {
    font-size: 20px;
    letter-spacing: 0;
}

.mini-avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: white !important;
    border-radius: 9px;
    background: var(--pink);
    letter-spacing: 0 !important;
}

.week-row {
    margin: 25px 0 18px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.week-row span {
    padding: 7px 0;
    color: #a1a6b5;
    border-radius: 8px;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 700;
}

.week-row .today {
    color: white;
    background: var(--blue);
}

.schedule-list {
    display: grid;
    gap: 11px;
}

.schedule-item {
    min-height: 67px;
    padding: 10px 13px;
    display: grid;
    grid-template-columns: 39px 38px 1fr;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
}

.schedule-item.yellow { background: #fff8dc; }
.schedule-item.blue { background: #edf1ff; }
.schedule-item.pink { background: #fff0f3; }

.schedule-time {
    color: #8e94a4;
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
}

.schedule-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--ink);
    background: white;
}

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

.schedule-item > span:last-child {
    display: grid;
    gap: 2px;
}

.schedule-item strong {
    font-size: 11px;
}

.schedule-item small {
    color: #969baa;
    font-size: 8px;
}

.archive-section {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 110px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.section-heading .eyebrow {
    margin-bottom: 13px;
}

.section-heading h2,
.share-banner h2 {
    margin: 0;
    font-size: 40px;
    letter-spacing: 0;
    word-break: keep-all;
}

.section-heading > p {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.archive-toolbar {
    margin: 38px 0 18px;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.filter-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-list::-webkit-scrollbar {
    display: none;
}

.filter-button {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 16px;
    color: #71778a;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.filter-button:hover {
    color: var(--blue);
    background: #eceffc;
}

.filter-button.active {
    color: white;
    background: var(--blue);
}

.sort-select {
    position: relative;
    flex: 0 0 auto;
}

.sort-select select {
    height: 36px;
    padding: 0 34px 0 14px;
    color: #656c80;
    border: 0;
    outline: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.sort-select svg {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    pointer-events: none;
}

.result-summary {
    min-height: 20px;
    margin: 0 0 16px;
    color: #8a90a0;
    font-size: 12px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.icon-card {
    position: relative;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(24, 35, 63, 0.06);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 6px 18px rgba(33, 42, 76, 0.035);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.icon-card:hover {
    z-index: 1;
    border-color: rgba(49, 87, 231, 0.22);
    box-shadow: 0 10px 26px rgba(36, 48, 91, 0.08);
}

.icon-visual {
    position: relative;
    min-height: 194px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
}

.icon-visual .main-icon,
.icon-visual > img {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.icon-visual .main-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.like-button {
    position: absolute;
    z-index: 2;
    top: 13px;
    right: 13px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: rgba(24, 35, 63, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.like-button svg {
    width: 17px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
}

.like-button.active {
    color: #ec5570;
}

.like-button.active svg {
    fill: currentColor;
}

.icon-info {
    padding: 15px 4px 5px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 9px;
}

.icon-info > div {
    min-width: 0;
}

.icon-info h3 {
    margin: 0 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 0;
}

.icon-info p {
    margin: 0;
    color: #9196a6;
    font-size: 10px;
}

.icon-info p span {
    color: var(--blue);
}

.icon-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.download-button,
.delete-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #73798c;
    border: 1px solid #e8e9ed;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-button:hover,
.delete-button:hover {
    color: white;
    border-color: var(--blue);
    background: var(--blue);
}

.delete-button:hover {
    border-color: #df4c68;
    background: #df4c68;
}

.download-button:disabled,
.delete-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.download-button svg,
.delete-button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state {
    padding: 70px 20px;
    text-align: center;
}

.empty-state > span {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: var(--blue);
    border-radius: 12px;
    background: #e8ecff;
}

.empty-state svg {
    width: 30px;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 13px;
}

.share-banner {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    min-height: 300px;
    margin: 0 auto 70px;
    padding: 58px 70px;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    align-items: center;
    overflow: hidden;
    color: white;
    border-radius: 16px;
    background: var(--blue);
}

.eyebrow-light {
    color: var(--yellow);
}

.share-banner h2 {
    font-size: 46px;
    line-height: 1.28;
    letter-spacing: 0;
}

.share-copy {
    position: relative;
    z-index: 1;
}

.share-copy p {
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.7;
}

.button-light {
    color: var(--blue);
    background: white;
}

.button-light:hover {
    background: #f5f6ff;
}

footer {
    width: min(1120px, calc(100% - 48px));
    min-height: 100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: #8a90a0;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.footer-brand {
    color: var(--ink);
    font-size: 15px;
}

.footer-brand .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 9px;
}

.footer-brand .brand-mark svg {
    width: 17px;
}

footer p:last-child {
    justify-self: end;
}

.toast {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: 25px;
    padding: 12px 18px;
    color: white;
    border-radius: 10px;
    background: var(--ink);
    box-shadow: 0 10px 24px rgba(24, 35, 63, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 15px);
    transition: opacity 200ms ease, transform 200ms ease;
    font-size: 13px;
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Upload page */
.upload-header {
    border-bottom: 1px solid var(--line);
}

.upload-header .brand {
    grid-column: 1;
}

.back-link {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6d7487;
    font-size: 13px;
    font-weight: 600;
}

.back-link:hover {
    color: var(--blue);
}

.back-link svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upload-main {
    width: min(1050px, calc(100% - 48px));
    margin: 0 auto;
    padding: 85px 0 110px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 90px;
    align-items: start;
}

.upload-intro {
    position: sticky;
    top: 50px;
}

.upload-intro h1 {
    font-size: 48px;
    line-height: 1.25;
}

.upload-intro > p:not(.eyebrow) {
    margin: 26px 0 38px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.upload-guide {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.upload-guide > strong {
    font-size: 13px;
}

.upload-guide ul {
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 13px;
    list-style: none;
}

.upload-guide li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #747b8e;
    font-size: 11px;
}

.upload-guide li span {
    color: var(--blue);
    font-family: "DM Sans", sans-serif;
    font-size: 9px;
    font-weight: 700;
}

.upload-warning {
    margin-top: 16px;
    padding: 17px 18px;
    border: 1px solid #f0d5bf;
    border-left: 3px solid #df6d3d;
    border-radius: 10px;
    background: #fff8f3;
}

.upload-warning strong {
    display: block;
    color: #7a351a;
    font-size: 12px;
}

.upload-warning p {
    margin: 7px 0 0;
    color: #8a5f4c;
    font-size: 11px;
    line-height: 1.65;
}

.upload-panel {
    padding: 42px;
    border: 1px solid rgba(24, 35, 63, 0.06);
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 26px rgba(36, 48, 91, 0.07);
}

.form-step + .form-step {
    margin-top: 38px;
    padding-top: 35px;
    border-top: 1px solid #ececf0;
}

.step-title {
    margin-bottom: 21px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-title > span {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: var(--blue);
    border-radius: 8px;
    background: #edf0ff;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.step-title > div {
    display: grid;
    gap: 2px;
}

.step-title strong {
    font-size: 14px;
}

.step-title small {
    color: #9297a7;
    font-size: 10px;
}

.drop-zone {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1.5px dashed #c9cde0;
    border-radius: 12px;
    background: #fafaff;
    cursor: pointer;
    transition: border-color 170ms ease, background 170ms ease;
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: var(--blue);
    background: #f3f5ff;
}

.drop-zone input {
    display: none;
}

.upload-preview {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--blue);
    border-radius: 12px;
    background: #e9edff;
}

.upload-preview svg {
    width: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.drop-zone strong {
    font-size: 13px;
}

.drop-zone small {
    margin-top: 7px;
    color: #999eae;
    font-size: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field > span {
    color: #5e6578;
    font-size: 11px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--ink);
    border: 1px solid #dfe1e8;
    outline: 0;
    border-radius: 8px;
    background: white;
    font-size: 12px;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(49, 87, 231, 0.08);
}

.field input::placeholder {
    color: #aaafbc;
}

.license-check {
    margin: 31px 0 23px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #757c8e;
    cursor: pointer;
    font-size: 10px;
    line-height: 1.6;
}

.license-check input {
    position: absolute;
    opacity: 0;
}

.custom-check {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    color: white;
    border: 1px solid #ccd0da;
    border-radius: 6px;
    background: white;
}

.custom-check svg {
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    opacity: 0;
}

.license-check input:checked + .custom-check {
    border-color: var(--blue);
    background: var(--blue);
}

.license-check input:checked + .custom-check svg {
    opacity: 1;
}

.license-check input:focus-visible + .custom-check {
    outline: 2px solid rgba(49, 87, 231, 0.35);
    outline-offset: 2px;
}

.submit-button {
    width: 100%;
}

.form-message {
    min-height: 18px;
    margin: 11px 0 0;
    color: #df4c68;
    text-align: center;
    font-size: 11px;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr 0.9fr;
    }

    .hero-copy {
        padding-left: 45px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-stats div + div {
        padding-left: 18px;
    }

    .timetable-card {
        width: calc(100% - 50px);
    }

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

    .upload-main {
        gap: 45px;
    }
}

@media (max-width: 760px) {
    .site-header {
        width: min(1180px, calc(100% - 32px));
        height: 74px;
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .header-upload {
        grid-column: 2;
    }

    .hero {
        width: min(1180px, calc(100% - 24px));
        margin-top: 3px;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .hero-copy {
        padding: 58px 28px 50px;
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: 0;
    }

    .hero-visual {
        min-height: auto;
        padding: 50px 28px;
        display: grid;
        place-items: center;
    }

    .timetable-card {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 340px);
        transform: none;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 15px;
    }

    .archive-section {
        width: min(1120px, calc(100% - 32px));
    }

    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }

    .icon-visual {
        min-height: 170px;
    }

    .share-banner {
        width: min(1180px, calc(100% - 24px));
        padding: 50px 35px;
        grid-template-columns: 1fr;
        gap: 28px;
        border-radius: 18px;
    }

    footer {
        padding: 28px 0;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    footer > p:nth-child(2) {
        display: none;
    }

    .upload-header .brand {
        grid-column: 1;
    }

    .back-link {
        grid-column: 2;
    }

    .upload-main {
        width: min(1050px, calc(100% - 32px));
        padding-top: 55px;
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .upload-intro {
        position: static;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 15px;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
    }

    .header-upload {
        min-height: 39px;
        padding: 0 13px;
    }

    .header-upload svg {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .hero-copy {
        padding-left: 23px;
        padding-right: 23px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: 0;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: space-between;
        gap: 0;
    }

    .hero-stats div + div {
        padding-left: 12px;
    }

    .hero-visual {
        padding: 38px 24px;
        justify-items: start;
    }

    .timetable-card {
        width: min(100%, 300px);
        padding: 20px;
    }

    .archive-section {
        padding-bottom: 75px;
    }

    .archive-toolbar {
        align-items: flex-end;
        flex-direction: column;
    }

    .filter-list {
        width: 100%;
    }

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

    .icon-visual {
        min-height: 210px;
    }

    .share-banner h2 {
        font-size: 34px;
    }

    .back-link {
        font-size: 0;
    }

    .back-link svg {
        width: 24px;
    }

    .upload-main {
        padding-top: 40px;
    }

    .upload-panel {
        padding: 27px 21px;
        border-radius: 18px;
    }

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

    .field-wide {
        grid-column: auto;
    }

    .drop-zone {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
