:root {
    --green: #20CB78;
    --green-deep: #16a34a;
    --green-soft: #E7F8F0;
    --purple: #6C5CE7;
    --ink: #161B2B;
    --muted: #667085;
    --line: #E8EAED;
    --page: #F4F6F9;
    --card: #ffffff;
}

* { box-sizing: border-box; }

html,
body,
button,
input,
select,
textarea,
a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.campus {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 0;
    min-height: 100vh;
    max-width: 100%;
    padding: 0;
    background: var(--page);
}

.campus.is-guest {
    grid-template-columns: minmax(0, 1fr);
}

.campus.is-guest .main {
    grid-column: 1;
}

.rail {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 22px 18px;
    margin: 0;
    background: var(--card);
    border: 0;
    border-right: 1px solid rgba(232, 234, 237, 0.95);
    border-radius: 0;
    box-shadow: none;
    z-index: 20;
    overflow-y: auto;
}

.rail-brand {
    display: grid;
    gap: 4px;
    width: 100%;
    margin: 0 0 14px;
    padding: 0 4px 4px;
    color: var(--ink);
    text-decoration: none;
}

.rail-logo {
    width: min(170px, 100%);
    height: auto;
    display: block;
}

.rail-tagline {
    color: var(--muted);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.3;
}

.rail-sell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 0 0 10px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.rail-sell:hover,
.rail-sell.is-active {
    filter: brightness(0.96);
    color: #fff;
}

.rail-sell .sell-mark {
    background: rgba(255, 255, 255, 0.22);
}

.rail-section {
    margin: 14px 4px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.is-mobile-only {
    display: none !important;
}

.nav-label-short {
    display: none;
}

.campus-blank {
    margin-top: 8px;
    padding: 28px 24px;
    border: 1px solid rgba(232, 234, 237, 0.95);
    border-radius: 18px;
    background: var(--card);
}

.campus-blank h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.campus-blank p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 42ch;
    line-height: 1.5;
}

.mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
}

.rail a.nav-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 650;
    transition: background 0.15s ease, color 0.15s ease;
}

.rail a.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--green);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.rail a.nav-item svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px;
    max-height: 22px;
    flex: none;
}

.rail a.nav-item:hover {
    background: var(--green-soft);
    color: var(--green-deep);
}

.rail a.nav-item:hover::before,
.rail a.nav-item.is-active::before {
    opacity: 1;
}

.rail a.nav-item.is-active {
    color: var(--green-deep);
    background: var(--green-soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
}

.sell-mark {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    background: var(--green);
    color: #fff;
    flex: none;
}

.sell-mark svg {
    width: 14px !important;
    height: 14px !important;
}

.nav-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: none;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
}

.rail a.nav-item .nav-label {
    min-width: 0;
}

.nav-count {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #20CB78;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex: none;
}

.rail a.nav-item.is-active .nav-count {
    background: #16a34a;
}

.main {
    grid-column: 2;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 18px 24px 40px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-x: clip;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.campus-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.campus-brand .brand-logo {
    width: min(150px, 42vw);
    height: auto;
    display: block;
}

.campus-brand .brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.campus-brand .identity {
    display: grid;
    gap: 2px;
}

.campus-brand strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.campus-brand strong::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 99px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2320CB78'/%3E%3Cpath d='M4.8 8.2 6.9 10.2 11.2 5.8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.campus-brand .identity > span,
.campus-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    margin-top: 1px;
    min-width: 0;
    max-width: 100%;
}

.campus-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verified {
    flex: none;
    color: var(--green-deep);
    font-weight: 700;
}

.campus-meta .verified::before {
    content: "·";
    margin-right: 6px;
    color: var(--muted);
    font-weight: 500;
}

.who {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    min-width: 0;
    max-width: 46%;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.sign-in-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    height: auto;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid #20CB78;
    background: transparent;
    color: #20CB78;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
}

.sign-in-btn:hover {
    background: #E7F8F0;
    border-color: #1aad6a;
    color: #1aad6a;
    filter: none;
}

.who-menu {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.who-menu > summary {
    list-style: none;
}

.who-menu > summary::-webkit-details-marker {
    display: none;
}

.who-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 0 8px 0 10px;
    border: 1px solid transparent;
    border-radius: 99px;
    background: transparent;
    cursor: pointer;
    user-select: none;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.who-name:hover,
.who-menu[open] .who-name {
    background: #fff;
    border-color: var(--line);
}

.who-greet {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.who-name svg {
    flex: none;
    color: var(--muted);
    transition: transform 0.15s ease;
}

.who-menu[open] .who-name svg {
    transform: rotate(180deg);
}

.who-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 168px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 27, 43, 0.1);
}

.who-panel button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.who-panel button:hover {
    background: var(--green-soft);
    color: var(--green-deep);
}

.who-panel button svg {
    flex: none;
    color: currentColor;
}

.bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.bell:hover {
    color: var(--ink);
    border-color: #d1d5db;
}

.bell-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
}

.ask {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    margin-top: 16px;
    padding: 0 10px 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(22, 27, 43, 0.05);
}

.ask-search {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    background: var(--green);
    color: #fff;
    flex: none;
    box-shadow: 0 6px 14px rgba(32, 203, 120, 0.28);
}

.ask-search svg {
    width: 18px;
    height: 18px;
}

.ask-mic {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #98A2B3;
    flex: none;
}

.ask-mic svg {
    width: 20px;
    height: 20px;
}

.ask input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}

.ask input::placeholder {
    color: #98A2B3;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chips a,
.chips .chip {
    flex: none;
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: #374151;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 27, 43, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.chips a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(22, 27, 43, 0.06);
}

.chip-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: none;
}

.chip-icon svg {
    width: 18px;
    height: 18px;
}

.chip-electronics .chip-icon { color: #7C3AED; }
.chip-books .chip-icon { color: #3B82F6; }
.chip-fashion .chip-icon { color: #A855F7; }
.chip-hostel .chip-icon { color: #F97316; }
.chip-services .chip-icon { color: #8B5CF6; }
.chip-free .chip-icon { color: #22C55E; }
.chip-swap .chip-icon { color: #0EA5E9; }

.chips a.is-active:not(.chip-browse) {
    background: var(--green-soft);
    border-color: #B7EFD2;
    color: var(--green-deep);
    font-weight: 700;
}

.chip-browse {
    padding: 0 18px;
    background: linear-gradient(135deg, #34D399 0%, #20CB78 55%, #16A34A 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(32, 203, 120, 0.28);
}

.chip-browse.is-active {
    background: linear-gradient(135deg, #34D399 0%, #20CB78 55%, #16A34A 100%);
    border-color: transparent;
    color: #fff;
}

.block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 14px;
}

.block-head h1,
.block-head h2 {
    margin: 0;
    font-family: Manrope, "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.block-head a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--green-deep);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.block-head a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: 1px;
}

.block-head a:hover {
    text-decoration: none;
    opacity: 0.85;
}

.empty {
    padding: 36px 16px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.flash {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.card {
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
}

.card img,
.card-fallback {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f3f4f6;
}

.card-fallback {
    display: grid;
    place-items: center;
    color: #9ca3af;
    font-weight: 700;
}

.card h3,
.card p { margin: 0; }

.card h3 {
    padding: 10px 12px 0;
    font-size: 15px;
}

.card p {
    padding: 4px 12px 0;
    color: #374151;
    font-size: 13px;
}

.card p:last-child {
    padding-bottom: 12px;
    color: var(--muted);
}

.panel {
    padding: 22px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
}

.panel h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

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

.signout {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.notice-wrap { position: relative; }

.notice-drawer[hidden] { display: none; }

.notice-drawer {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

.notice-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(17, 24, 39, 0.45);
    cursor: pointer;
}

.notice-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 440px);
    height: 100%;
    max-height: 100dvh;
    min-height: 0;
    background: #F7F8FA;
    border-left: 1px solid #EEF0F2;
    box-shadow: -16px 0 48px rgba(17, 24, 39, 0.14);
}

.notice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 14px;
    background: #fff;
    border-bottom: 1px solid #F3F4F6;
    flex: none;
}

.notice-head h2 {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--ink);
}

.notice-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 99px;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.notice-close:hover {
    background: #E5E7EB;
}

.notice-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 16px;
}

.notice-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #EEF0F2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(22, 27, 43, 0.03);
}

.notice-card:last-child {
    margin-bottom: 0;
}

.notice-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    background: #ECFDF3;
    color: #16A34A;
    flex: none;
}

.notice-card.is-message .notice-icon {
    background: #F5F3FF;
    color: #7C3AED;
}

.notice-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.notice-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.notice-card h3 {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.notice-card time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    color: #9CA3AF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
}

.notice-card time svg {
    color: currentColor;
}

.notice-card.is-new time {
    color: var(--green);
}

.notice-card p {
    margin: 6px 0 8px;
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
}

.notice-card a {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 4px;
    margin-top: 2px;
    color: #16A34A;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.notice-card a:hover {
    text-decoration: underline;
}

.notice-empty {
    padding: 28px 12px;
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.mark-read {
    flex: none;
    margin: 12px 16px calc(16px + env(safe-area-inset-bottom));
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: var(--purple);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mark-read:hover {
    filter: brightness(1.03);
}

@media (max-width: 900px) {
    .notice-panel {
        width: 100%;
        max-width: 100%;
    }

    .notice-head {
        padding: 18px 16px 12px;
    }

    .notice-head h2 {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }

    .notice-scroll {
        padding: 12px 14px;
    }

    .notice-card {
        padding: 16px;
        border: 1px solid #E5E7EB;
        border-radius: 14px;
        background: #fff;
        box-shadow: none;
    }

    .notice-body {
        display: flex;
        flex-direction: column;
        min-width: 0;
        gap: 0;
    }

    .notice-card header {
        align-items: baseline;
        gap: 8px;
    }

    .notice-card h3 {
        flex: 1 1 auto;
        min-width: 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
        color: #111827;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .notice-card p {
        margin: 8px 0 10px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.45;
        color: #616161;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .notice-card a {
        align-self: flex-end;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #16A34A;
        text-decoration: none;
    }

    .notice-card a svg {
        display: none;
    }

    .notice-card time {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 12px;
        font-weight: 400;
        color: #757575;
    }

    .notice-card time svg {
        display: none;
    }

    .notice-card.is-new time {
        color: #16A34A;
    }

    .mark-read {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 14px;
        font-weight: 600;
    }
}

.heart {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.95);
    color: #9ca3af;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
    transition: color 0.15s ease, transform 0.15s ease;
}

.heart:hover { transform: scale(1.05); }
.heart.is-on { color: #ef4444; }

@media (max-width: 1200px) {
    .campus {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .rail {
        width: 220px;
        padding: 18px 14px;
    }

    .rail-logo {
        width: min(148px, 100%);
    }

    .main {
        padding: 14px 16px 32px;
    }

    .campus-brand .identity {
        min-width: 0;
    }

    .campus-name {
        max-width: 220px;
    }
}

@media (max-width: 1100px) {
    .campus {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .rail {
        width: 200px;
    }

    .campus-name {
        max-width: 180px;
    }
}

@media (max-width: 900px) {
    .campus {
        display: block;
        width: 100%;
        max-width: 100%;
        gap: 0;
        padding: 10px 12px calc(88px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .campus.is-guest {
        padding-bottom: 16px;
    }

    .rail {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        top: auto;
        width: auto;
        height: 64px;
        max-height: 72px;
        max-width: none;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        margin: 0;
        padding: 6px;
        border-radius: 20px;
        border-right: 0;
        box-shadow: 0 10px 28px rgba(22, 27, 43, 0.16);
        z-index: 100;
        overflow: visible;
    }

    .rail-brand,
    .rail-sell,
    .rail-section,
    .rail .is-desktop-only {
        display: none !important;
    }

    .rail .is-mobile-only {
        display: flex !important;
    }

    .rail .nav-label-full {
        display: none;
    }

    .rail .nav-label-short {
        display: inline;
    }

    .rail a.nav-item {
        width: auto;
        min-width: 0;
        max-width: none;
        flex: 1 1 0;
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 4px 2px;
        font-size: 11px;
        line-height: 1.1;
        border-radius: 12px;
        overflow: visible;
    }

    .rail a.nav-item svg,
    .rail a.nav-item .sell-mark svg,
    .rail a.nav-item .nav-icon svg {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px;
        max-height: 22px;
        flex: 0 0 22px;
    }

    .rail a.nav-item .sell-mark,
    .rail a.nav-item .nav-icon {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .rail a.nav-item::before {
        display: none;
    }

    .rail a.nav-item .nav-label {
        display: block;
    }

    .nav-count {
        position: absolute;
        top: 2px;
        right: calc(50% - 18px);
        margin-left: 0;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 9px;
        z-index: 2;
    }

    .main {
        display: block;
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 4px 0 16px;
        overflow-x: hidden;
    }

    .top {
        gap: 8px;
        align-items: center;
        min-width: 0;
    }

    .campus-brand {
        min-width: 0;
        flex: 1 1 auto;
        gap: 8px;
        max-width: calc(100% - 118px);
    }

    .campus-brand .brand-logo {
        width: min(128px, 40vw);
        flex: none;
    }

    .campus-brand .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 12px;
        flex: none;
    }

    .campus-brand .identity {
        display: none;
    }

    .campus-brand strong {
        font-size: 18px;
    }

    .who {
        gap: 6px;
        flex: 0 0 auto;
        max-width: none;
        padding-top: 0;
        align-items: center;
    }

    .who-name {
        min-height: 34px;
        max-width: 110px;
        padding: 0 6px 0 8px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 12px;
        font-weight: 650;
    }

    .who-greet {
        max-width: 84px;
    }

    .bell {
        flex: none;
        width: 36px;
        height: 36px;
    }

    .ask {
        height: 48px;
        margin-top: 12px;
        padding: 0 8px;
        gap: 8px;
    }

    .ask-search,
    .ask-mic {
        width: 34px;
        height: 34px;
    }

    .ask input {
        font-size: 14px;
    }

    .chips {
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 14px;
        margin-left: 0;
        margin-right: 0;
        padding: 2px 0 6px;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .chips::-webkit-scrollbar {
        display: none;
    }

    .chips a,
    .chips .chip {
        height: 40px;
        padding: 0 16px 0 12px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: #111827;
        scroll-snap-align: start;
    }

    .chip-browse {
        padding: 0 16px;
        font-size: 14px;
        font-weight: 700;
    }

    .block-head {
        align-items: flex-start;
        margin: 22px 0 12px;
    }

    .block-head h1,
    .block-head h2 {
        flex: 1 1 auto;
        min-width: 0;
        font-family: Manrope, "DM Sans", sans-serif;
        font-size: 18px;
        font-weight: 650;
        letter-spacing: -0.8px;
        line-height: 1.18;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .block-head a {
        flex: none;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 12px;
        font-weight: 650;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .campus-brand {
        max-width: calc(100% - 108px);
    }

    .campus-brand .brand-logo {
        width: min(112px, 36vw);
    }

    .who {
        gap: 4px;
        max-width: none;
    }

    .who-name {
        min-height: 32px;
        max-width: 96px;
        padding: 0 4px 0 8px;
        font-size: 11px;
        font-weight: 650;
    }

    .who-greet {
        max-width: 72px;
    }

    .who-name svg {
        width: 12px;
        height: 12px;
    }

    .campus-brand strong {
        font-size: 17px;
    }

    .ask input::placeholder {
        font-size: 13px;
    }
}
