:root {
    --page: #d9d9cf;
    --paper: #ffffff;
    --paper-soft: #f6f6ef;
    --ink: #1b1b1b;
    --muted: #66665f;
    --line: #9f9f94;
    --black: #111111;
    --blue: #2f78a7;
    --blue-dark: #134a73;
    --orange: #fc6204;
    --yellow: #ffcc00;
    --green: #3ba800;
    --red: #e2001a;
    --shadow: rgba(0, 0, 0, .18);
    --wrap: 960px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.18) 230px, rgba(255,255,255,.45)),
        #dce8ee url("../images/habboria-bg-2026.png") center top / cover fixed no-repeat;
}

a {
    color: var(--orange);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

img { max-width: 100%; border: 0; }

h1, h2, h3, p { margin-top: 0; }

h1 {
    margin-bottom: .6rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    margin-bottom: .65rem;
    font-size: 15px;
}

p { margin-bottom: .8rem; }

.site-shell {
    min-height: 100vh;
}

.topbar {
    position: relative;
    z-index: 30;
    width: min(var(--wrap), calc(100vw - 20px));
    min-height: 118px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin: 0 auto;
    padding: 18px 12px 10px;
    background: #bce0ee url("../images/habbophp/topbg.gif") repeat-x bottom;
    border: 1px solid #93bece;
    border-top: 0;
    box-shadow: 0 3px 0 rgba(0,0,0,.12);
}

.topbar.guest-topbar {
    grid-template-columns: 220px minmax(0, 1fr);
}

.guest-topbar .top-actions {
    justify-self: end;
}

.brand {
    align-self: start;
    min-height: 66px;
    display: flex;
    align-items: center;
    color: #111;
}

.brand:hover { text-decoration: none; }

.brand img {
    width: auto;
    max-width: 205px;
    max-height: 70px;
    object-fit: contain;
    image-rendering: auto;
}

.brand > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.brand strong {
    display: block;
    color: #111;
    font: 900 28px/1 Arial, Helvetica, sans-serif;
    text-shadow: 1px 1px 0 #fff;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: #134787;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.main-nav,
.top-actions {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.main-nav {
    min-width: 0;
    flex-wrap: wrap;
}

.top-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-dropdown,
.user-dropdown {
    position: relative;
}

.nav-dropdown summary,
.user-dropdown summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.nav-dropdown summary::-webkit-details-marker,
.user-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after,
.user-dropdown summary::after {
    content: "";
    width: 6px;
    height: 6px;
    display: inline-block;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown[open] summary::after,
.user-dropdown[open] summary::after {
    transform: rotate(225deg) translateY(1px);
}

.main-nav a,
.main-nav summary {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px 5px;
    border: 1px solid #06324f;
    border-bottom-width: 4px;
    border-radius: 5px 5px 3px 3px;
    color: #fff;
    background: linear-gradient(#347fac, #1e5d8a);
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 -1px 0 rgba(0,0,0,.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.main-nav a:hover,
.main-nav summary:hover,
.nav-dropdown[open] > summary {
    color: #000;
    text-decoration: none;
    text-shadow: none;
    background: linear-gradient(#ffd94b, #f4aa00);
    border-color: #8a5a00;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    width: 330px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 7px;
    border: 2px solid #000;
    background: #fff;
    box-shadow: 4px 4px 0 rgba(0,0,0,.22);
    animation: dropdown-in .14s ease-out;
}

.admin-panel,
.user-panel {
    grid-template-columns: 1fr;
    width: 250px;
}

.user-panel {
    left: auto;
    right: 0;
}

.dropdown-panel a,
.dropdown-panel button {
    display: block;
    width: 100%;
    padding: 7px 8px;
    border: 0;
    color: #111;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.dropdown-panel a:hover,
.dropdown-panel button:hover {
    background: #fff0dc;
    color: #000;
    text-decoration: none;
}

.dropdown-panel strong {
    display: block;
    font-size: 11px;
}

.dropdown-panel span {
    display: block;
    margin-top: 1px;
    color: #666;
    font-size: 10px;
}

.dropdown-panel form { margin: 0; }

.user-dropdown summary {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 2px solid #000;
    border-bottom-width: 4px;
    border-radius: 4px;
    color: #000;
    background: linear-gradient(#fff, #dcdcd4);
    font-weight: 700;
}

.user-dropdown summary:hover,
.user-dropdown[open] summary {
    background: linear-gradient(#fff7bd, #ffcc00);
}

.user-chip-avatar {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border: 1px solid #000;
    color: #fff;
    background: var(--orange);
    font-weight: 900;
}

.primary-btn,
.ghost-btn,
button.primary-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 2px solid #000;
    border-bottom-width: 5px;
    border-radius: 5px;
    font: 700 12px/1.15 Verdana, Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(#55c412, #2d8f00);
    border-color: #194800;
    text-shadow: 0 -1px 0 rgba(0,0,0,.45);
}

.primary-btn:hover {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(#63d91c, #35a400);
}

.ghost-btn {
    color: #000;
    background: linear-gradient(#fff, #deded6);
    border-color: #000;
}

.ghost-btn:hover {
    color: #000;
    text-decoration: none;
    background: linear-gradient(#fff7bd, #ffcc00);
}

.page-wrap {
    width: min(var(--wrap), calc(100vw - 20px));
    margin: 0 auto;
    padding: 8px 0 30px;
}

.page-wrap.maintenance-wrap {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.flash {
    width: min(var(--wrap), calc(100vw - 20px));
    margin: 8px auto 0;
    padding: 9px 12px;
    border: 2px solid #000;
    background: #ffcc00;
    font-weight: 700;
}

.flash.success {
    background: #dff8c8;
}

.flash.error {
    color: #fff;
    background: var(--red);
}

.hero,
.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 8px;
}

.grid {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel,
.auth-card,
.hero-copy,
.page-hero,
.hotel-card,
.stat-card,
.photo-tile {
    border: 2px solid #000;
    border-radius: 0;
    background: var(--paper);
    box-shadow: 3px 3px 0 var(--shadow);
}

.panel,
.auth-card,
.hero-copy,
.page-hero > div:first-child {
    padding: 12px;
}

.page-hero.soft,
.hero-copy {
    background: #fff;
}

.hero-copy h1,
.page-hero h1 {
    color: #111;
}

.hero-copy p,
.page-hero p,
.muted {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.home-clean {
    align-items: center;
    min-height: 380px;
}

.home-clean .hero-copy h1 {
    max-width: 620px;
}

.home-clean .hero-copy p {
    max-width: 540px;
}

.compact-hotel-card {
    min-height: 260px;
}

.home-news {
    margin-top: 14px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.section-title-row h2 {
    margin: 0;
}

.small-btn {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
}

.eyebrow,
.badge {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 7px;
    border: 1px solid #000;
    color: #fff;
    background: var(--orange);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.hotel-card {
    min-height: 190px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 10px;
    background: #d7f1ff;
}

.hotel-window {
    grid-column: 1 / -1;
    min-height: 104px;
    border: 2px solid #000;
    background:
        linear-gradient(135deg, rgba(255,255,255,.25) 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(#7ed3ff, #2f78a7);
    position: relative;
    overflow: hidden;
}

.hotel-window::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -4px;
    width: 76px;
    height: 84px;
    background: url("../images/habbophp/hotel-button-hotelopen.gif") no-repeat center bottom;
    image-rendering: pixelated;
}

.hotel-stat,
.hero-side {
    display: grid;
    place-items: center;
    min-height: 58px;
    border: 1px dashed #777;
    background: #fff;
    text-align: center;
}

.hotel-stat strong,
.hero-side strong,
.stat-card strong {
    color: var(--blue-dark);
    font: 900 22px/1 Arial, Helvetica, sans-serif;
}

.hotel-stat span,
.hero-side span,
.stat-card span {
    color: #555;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-card {
    min-height: 82px;
    display: grid;
    place-items: center;
    padding: 10px;
    text-align: center;
}

.feature-list,
.timeline,
.mini-list,
.article-list {
    display: grid;
    gap: 6px;
}

.feature-list p,
.timeline p,
.article-row,
.mini-user {
    margin: 0;
    padding: 7px;
    border: 1px dashed #9d9d93;
    background: var(--paper-soft);
}

.feature-list strong,
.timeline strong,
.article-row strong {
    display: block;
    color: #111;
}

.feature-list span,
.timeline span,
.article-row small {
    display: block;
    color: #666;
    font-size: 10px;
}

.article-row:hover,
.mini-user:hover {
    background: #fff0dc;
    text-decoration: none;
}

.leaderboard,
.rank-list {
    display: grid;
    gap: 6px;
}

.leader-row,
.rank-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    padding: 7px 8px;
    border: 1px dashed #9d9d93;
    color: #111;
    background: var(--paper-soft);
}

.leader-row:hover,
.rank-list a:hover {
    color: #111;
    background: #fff0dc;
    text-decoration: none;
}

.leader-row span,
.rank-list span {
    color: var(--orange);
    font-weight: 900;
}

.leader-row em,
.rank-list em {
    color: #666;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.mini-user-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.mini-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
}

.mini-user img,
.avatar {
    image-rendering: auto;
}

.mini-user img {
    width: 46px;
    height: 54px;
    object-fit: contain;
    flex: 0 0 auto;
}

.mini-user strong {
    display: block;
    color: #111;
}

.mini-user span {
    display: block;
    color: #666;
    font-size: 10px;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill-grid a,
.pill-grid span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #000;
    color: #134787;
    background: #fff;
    font-weight: 700;
}

.pill-grid a:hover {
    color: #000;
    background: #ffcc00;
    text-decoration: none;
}

.profile-card,
.user-hero,
.staff-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-card {
    display: grid;
    gap: 8px;
    align-content: start;
}

.readable {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    font-size: 13px;
    line-height: 1.65;
}

.profile-card .avatar,
.user-hero .avatar,
.staff-card .avatar {
    width: 92px;
    min-height: 120px;
    object-fit: contain;
    background: #d7f1ff;
    border: 2px solid #000;
}

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

.staff-rank-section {
    --rank-color: #2f85c9;
    --rank-soft: #eef8ff;
    padding: 12px;
    border-top: 5px solid var(--rank-color);
}

.staff-rank-section.rank-color-7 {
    --rank-color: #d5332f;
    --rank-soft: #fff0ef;
}

.staff-rank-section.rank-color-6 {
    --rank-color: #e67621;
    --rank-soft: #fff5e8;
}

.staff-rank-section.rank-color-5 {
    --rank-color: #2f85c9;
    --rank-soft: #eef8ff;
}

.staff-rank-section.rank-color-4 {
    --rank-color: #8358c9;
    --rank-soft: #f4efff;
}

.staff-rank-section.rank-color-3 {
    --rank-color: #2aa06a;
    --rank-soft: #ecfbf3;
}

.staff-rank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #d7e1e6;
}

.staff-rank-header h2 {
    margin: 6px 0 0;
    color: var(--rank-color);
}

.staff-rank-badge {
    width: 48px;
    height: 48px;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--rank-color) 45%, #9fb8c5);
    background: var(--rank-soft);
    object-fit: contain;
    image-rendering: auto;
}

.staff-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.staff-member-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2px 10px;
    align-items: center;
    min-height: 104px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--rank-color) 28%, #b9ccd7);
    background: var(--rank-soft);
    color: var(--ink);
    text-decoration: none;
}

.staff-member-card:hover {
    border-color: var(--rank-color);
    background: #fff;
}

.staff-member-card .avatar {
    grid-row: 1 / 4;
    width: 72px;
    height: 92px;
    object-fit: contain;
}

.staff-member-name {
    font-size: 16px;
    font-weight: 900;
    color: var(--rank-color);
}

.staff-member-card small {
    color: #5e6a72;
}

.staff-member-card em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.online {
    color: #188c4c;
}

.offline {
    color: #7c8790;
}

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

label {
    display: grid;
    gap: 4px;
    color: #333;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 30px;
    padding: 6px;
    border: 1px solid #555;
    border-radius: 0;
    color: #111;
    background: #fff;
    font: 12px Verdana, Arial, Helvetica, sans-serif;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--yellow);
    border-color: #000;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-line input {
    width: auto;
    min-height: 0;
}

.captcha-box {
    padding: 9px;
    border: 1px dashed #777;
    background: #fff7d8;
}

.captcha-box span {
    color: #134787;
    font-size: 13px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 2px solid #000;
    background: #fff;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #c9c9bf;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: #fff;
    background: #2767a7;
    font-size: 10px;
    text-transform: uppercase;
}

.data-table td {
    color: #222;
    overflow-wrap: anywhere;
}

.hk-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 8px;
}

.hk-sidebar {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 10px;
    border: 2px solid #000;
    background: #f4f4ec;
    box-shadow: 3px 3px 0 var(--shadow);
}

.hk-sidebar strong {
    display: block;
    margin: -10px -10px 6px;
    padding: 8px 10px;
    color: #fff;
    background: #333;
    text-align: center;
}

.hk-sidebar a {
    padding: 6px 7px;
    color: #134787;
    font-weight: 700;
}

.hk-sidebar a:hover,
.hk-sidebar a.active {
    color: #000;
    background: #ffcc00;
    text-decoration: none;
}

.hk-panel {
    display: grid;
    gap: 14px;
}

.hk-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.hk-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.78)),
        #d7f1ff url("../images/habbophp/topbg.gif") repeat-x bottom;
}

.hk-hero h1 {
    margin-bottom: 6px;
}

.hk-hero-status {
    min-height: 88px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 2px solid #000;
    background: #fff7c4;
    text-align: center;
}

.hk-hero-status strong {
    color: #134787;
    font: 900 26px/1 Arial, Helvetica, sans-serif;
}

.hk-hero-status span {
    color: #6d5520;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.hk-stat-card {
    place-items: start;
    text-align: left;
    background: #fff;
}

.hk-stat-card span {
    order: -1;
    margin-bottom: 8px;
}

.hk-dashboard-block {
    display: grid;
    align-content: start;
    gap: 10px;
}

.hk-action-list,
.hk-readiness-list,
.hk-module-grid {
    display: grid;
    gap: 7px;
}

.hk-action-list a,
.hk-module-grid a,
.hk-readiness-list p {
    margin: 0;
    padding: 9px;
    border: 1px dashed #9d9d93;
    color: #111;
    background: var(--paper-soft);
}

.hk-action-list a:hover,
.hk-module-grid a:hover {
    color: #111;
    background: #fff0dc;
    text-decoration: none;
}

.hk-action-list strong,
.hk-module-grid strong,
.hk-readiness-list strong {
    display: block;
}

.hk-action-list span,
.hk-module-grid span,
.hk-readiness-list span {
    display: block;
    margin-top: 2px;
    color: #666;
    font-size: 10px;
}

.hk-readiness-list p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.hk-readiness-list span {
    margin-top: 0;
    padding: 3px 7px;
    border: 1px solid #000;
    color: #111;
    background: #ffcc00;
    font-weight: 900;
    text-transform: uppercase;
}

.hk-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hk-form {
    padding: 12px;
    border: 1px solid #c9d8e0;
    background: #f8fcff;
}

.hk-form .grid {
    align-items: end;
}

.permission-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #c9d8e0;
    background: #f8fcff;
}

.permission-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d7e1e6;
}

.permission-card header strong {
    color: var(--blue-dark);
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.permission-grid label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px;
    border: 1px solid #d7e1e6;
    background: #fff;
    font-size: 13px;
}

.photo-tile {
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    color: #fff;
    background: linear-gradient(135deg, #7fd1ff, #427dad);
    background-position: center;
    background-size: cover;
    overflow: hidden;
    font-weight: 700;
}

.photo-tile span {
    padding: 5px 7px;
    background: rgba(0,0,0,.72);
}

.maintenance-page {
    min-height: calc(100vh - 170px);
    display: grid;
    place-items: center;
    padding: 18px 0 34px;
}

.maintenance-wrap .maintenance-page {
    min-height: 100vh;
    padding: 18px;
}

.maintenance-shell {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 340px;
    gap: 12px;
    padding: 12px;
    border: 2px solid #000;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86)),
        #d7f1ff;
    box-shadow: 5px 5px 0 rgba(0,0,0,.22);
}

.maintenance-visual,
.maintenance-panel {
    border: 2px solid #000;
    background: #fff;
}

.maintenance-visual {
    overflow: hidden;
}

.maintenance-topline {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 14px;
    border-bottom: 2px solid #000;
    background: #bce0ee url("../images/habbophp/topbg.gif") repeat-x bottom;
}

.maintenance-topline img {
    max-width: 220px;
    max-height: 70px;
    object-fit: contain;
}

.maintenance-topline span {
    padding: 6px 10px;
    border: 2px solid #000;
    background: #fff7c4;
    color: #4d3a12;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.maintenance-scene {
    display: grid;
    place-items: center;
    min-height: 330px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(237,248,255,.78), rgba(255,255,255,.92)),
        repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 22px);
}

.maintenance-scene img {
    display: block;
    width: min(100%, 620px);
    max-height: 360px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 12px 0 rgba(0,0,0,.12));
}

.maintenance-note {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-top: 2px solid #000;
    background: #f6f6ef;
}

.maintenance-note strong {
    color: var(--blue-dark);
    font-size: 18px;
}

.maintenance-note span {
    color: #564b3f;
    font-size: 13px;
}

.maintenance-panel {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 12px;
}

.maintenance-copy {
    padding: 12px;
    border: 1px solid #bfcbd2;
    background: #f8fcff;
}

.maintenance-copy h1 {
    max-width: 100%;
    margin-top: 5px;
    font-size: 25px;
    line-height: 1.05;
}

.maintenance-copy p {
    max-width: 100%;
    font-size: 13px;
}

.maintenance-status {
    display: grid;
    gap: 6px;
}

.maintenance-status span {
    display: block;
    padding: 8px 9px;
    border: 1px dashed #777;
    background: #f6f6ef;
}

.maintenance-status strong {
    display: inline-block;
    min-width: 96px;
    color: var(--blue-dark);
}

.staff-login-box {
    display: grid;
    gap: 9px;
    align-content: start;
    padding: 13px;
    border: 2px solid #000;
    background: #fff7d8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

.staff-login-box h2 {
    margin-bottom: 0;
    color: #4d3a12;
}

.hotel-launcher {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #10283f;
}

.hotel-launcher iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.site-footer {
    width: min(var(--wrap), calc(100vw - 20px));
    margin: 0 auto;
    padding: 14px 0 24px;
    color: #777;
    font-size: 10px;
    text-align: center;
    border-top: 1px solid #b7b7ad;
}

.site-footer span {
    display: inline-block;
    margin: 0 5px;
}

@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover > .dropdown-panel,
    .user-dropdown:hover > .dropdown-panel {
        display: grid;
    }
}

@media (max-width: 900px) {
    .topbar {
        width: calc(100vw - 16px);
        grid-template-columns: 1fr;
        align-items: start;
        min-height: 0;
        margin-top: 0;
        padding: 10px;
    }

    .brand { min-height: auto; }

    .main-nav,
    .top-actions {
        align-items: stretch;
        justify-content: flex-start;
    }

    .main-nav a,
    .main-nav summary,
    .primary-btn,
    .ghost-btn {
        min-height: 32px;
    }

    .dropdown-panel {
        position: fixed;
        top: 126px;
        left: 8px;
        right: 8px;
        width: auto;
        max-height: 65vh;
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .user-panel {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: auto;
        width: min(300px, calc(100vw - 20px));
    }

    .page-wrap,
    .site-footer,
    .flash {
        width: calc(100vw - 16px);
    }

    .hero,
    .page-hero,
    .two,
    .three,
    .four,
    .hk-hero,
    .hk-layout,
    .maintenance-shell {
        grid-template-columns: 1fr;
    }

    .maintenance-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .maintenance-scene {
        min-height: 240px;
        padding: 10px;
    }

    .maintenance-scene img {
        max-height: 260px;
    }

    .maintenance-copy h1 {
        font-size: 22px;
    }

    .hotel-card { grid-template-columns: 1fr 1fr; }
    .profile-card,
    .user-hero,
    .staff-card {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .brand strong { font-size: 24px; }
    .brand-badge { width: 46px; height: 46px; font-size: 24px; }
    .top-actions,
    .hero-actions { width: 100%; }
    .top-actions > *,
    .hero-actions > * { flex: 1 1 auto; }
    .hotel-card { grid-template-columns: 1fr; }
}
