/* Mahoubae desktop: shared theme tokens, then responsive glass windows. */
body[data-theme] {
    --ink: #163562;
    --muted-ink: #37547c;
    --accent: #397bc8;
    --glass: rgba(231, 244, 255, .64);
    --glass-line: rgba(237, 251, 255, .88);
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-family: "Segoe UI", Arial, sans-serif;
}
#app { background: linear-gradient(160deg, rgba(67, 126, 192, .16), rgba(7, 23, 44, .1)); }
.site-shell { max-width: 1920px; padding: 20px 24px; }
.site-shell .site-frame { width: 100%; max-width: 100%; flex-basis: 100%; }
.site-header-image, #headerNav, .site-mobile-header { width: 100%; margin-left: 0; }
.site-header-image { border-radius: 18px 18px 0 0; height: clamp(150px, 16vw, 255px); min-height: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
#headerNav { border: 1px solid var(--glass-line); border-radius: 0 0 14px 14px; background: linear-gradient(180deg, rgba(182, 222, 255, .62), rgba(53, 104, 177, .68)) !important; backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 white, 0 6px 24px #04112b55; }
#headerNav > .container { max-width: none; padding: 0 18px; }
#headerNav .nav-link, #headerNav .navbar-brand { color: #fff !important; text-shadow: 0 1px 3px #17345d; }
#headerNav .dropdown-menu { background: rgba(235, 246, 255, .96) !important; border: 1px solid white; max-width: calc(100vw - 32px); }
#headerNav .dropdown-menu .dropdown-item { color: var(--ink) !important; text-shadow: none !important; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; }
#headerNav .dropdown-menu .dropdown-item:hover, #headerNav .dropdown-menu .dropdown-item:focus { background: #c8dfff !important; color: #102d5c !important; }
#headerNav .dropdown-menu .dropdown-item.active, #headerNav .dropdown-menu .dropdown-item:active { background: #346baa !important; color: white !important; }
#headerNav .dropdown-header { color: var(--muted-ink) !important; }
#headerNav .dropdown-divider { border-color: #a8c2db; }
.site-main-area { max-width: 1600px; margin: 20px auto 0; }
.site-main-area.no-sidebar { max-width: 1440px; }
.desktop-home .site-main-area.no-sidebar { max-width: none; }
.site-main-area .sidebar.col-lg-2 { margin: 0; flex: 0 0 180px; max-width: 180px; padding-right: 16px; font-size: 13px; }
.sidebar ul li { text-align: left; }
.sidebar ul li a { font-size: 13px; }
.sidebar .sidebar-header { padding: 9px 12px; }
.sidebar .sidebar-header a { font-size: 14px; }
.sidebar ul li { background: rgba(229, 240, 253, .96) !important; }
.sidebar .sidebar-header, .sidebar .sidebar-section .sidebar-section-header { background: linear-gradient(180deg, #7196c7, #527aac) !important; }
.site-main-area .main-content.col-lg-10 { flex: 1 1 0; max-width: none; min-width: 0; }
.main-content { background: var(--glass) !important; backdrop-filter: blur(16px); border: 1px solid var(--glass-line); border-radius: 16px; color: var(--ink) !important; }
.main-content a, .sidebar a { color: #1e4c89; }
.main-content .text-muted { color: var(--muted-ink) !important; }
.card, .card:hover, .modal-content, .spoiler { background: linear-gradient(135deg, rgba(238, 249, 255, .66), rgba(197, 222, 249, .38)) !important; backdrop-filter: blur(14px) saturate(125%); color: var(--ink) !important; border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: inset 0 0 0 3px #ffffff26, inset 0 1px 0 #fff, 0 9px 28px #03132942, 0 0 0 1px #5b9ddb70; }
.card > .card-header:first-child, .modal-content > .modal-header { border-radius: 15px 15px 0 0; }
.card > .card-body:last-child, .card > .card-footer:last-child { border-radius: 0 0 15px 15px; }
#userDropdown { display: flex; align-items: center; gap: 7px; }
.nav-user-avatar { width: 28px; height: 28px; object-fit: cover; border: 1px solid #f5fbff; border-radius: 50%; }
@media (min-width: 992px) {
    /* Equal space on both sides keeps the content panel centered, with navigation in the left gutter. */
    .site-main-area.has-sidebar { max-width: 1800px; }
    .site-main-area.has-sidebar > .row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px; }
    .site-main-area.has-sidebar .main-content.col-lg-10 { width: 100%; }
}
.modal-content { background: rgba(230, 243, 255, .92) !important; backdrop-filter: blur(24px); }
.card-header, .modal-header { background: linear-gradient(180deg, #e9f7ff9e, #74b4ee57) !important; color: var(--ink) !important; border-bottom: 1px solid #f5fcffb3; }
.desktop-home:has(.desktop-dashboard) .site-mobile-header, .desktop-home .sidebar:empty { display: none !important; }
.desktop-home:has(.desktop-dashboard) .sidebar { display: none; }
.desktop-home:has(.desktop-dashboard) .site-main-area .main-content { flex-basis: 100%; background: rgba(177, 215, 246, .14) !important; padding: 18px !important; }
.desktop-dashboard { display: grid; grid-template-columns: 1.05fr 1fr 1fr 2.6fr; gap: 18px; grid-template-areas: "weather welcome welcome advert" "weather welcome welcome tasks" "featured currency links tasks" "reserved account account community"; align-items: stretch; }
.desktop-dashboard > * { min-width: 0; margin: 0; }
.dashboard-toolbar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dashboard-toolbar [hidden] { display: none !important; }
.dashboard-toolbar:not(:has(button:not([hidden]))):not(:has(#dashboardLayoutStatus:not(:empty))) { display: none; }
.desktop-notice-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.desktop-notice-heading > strong { flex: 1; }
.dashboard-notice-edit { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; padding: 6px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; font-size: 13px; cursor: pointer; }
.dashboard-notice-edit[hidden] { display: none !important; }
.dashboard-notice-edit:hover, .dashboard-notice-edit:focus { background: #e2effc !important; color: var(--ink) !important; }
#dashboardLayoutStatus { margin-right: auto; font-size: 13px; }
.dashboard-move-controls { display: none; align-items: center; justify-content: flex-end; gap: 8px; padding: 7px 12px; background: #d7eaffc9; border-bottom: 1px solid #fff9; }
.is-editing .dashboard-move-controls { display: flex; }
.dashboard-drag-handle { cursor: grab; touch-action: none; user-select: none; padding: 4px 12px; font-size: 22px; line-height: 1; }
.dashboard-move-controls button { border: 1px solid #fff; border-radius: 6px; background: #eff8ff; color: #163562; min-width: 44px; min-height: 36px; }
.dashboard-move-controls button:disabled { opacity: .4; }
.desktop-dashboard.is-saving .dashboard-move-controls { pointer-events: none; opacity: .5; }
.desktop-dashboard .is-dragging { opacity: .5; }
.desktop-dashboard .is-drop-target { outline: 3px solid #ffb9df; outline-offset: 3px; }
.is-editing .dashboard-advert { flex-direction: column; }
.is-editing .dashboard-advert .dashboard-move-controls { width: 100%; }
.dashboard-weather { grid-area: weather; }
.dashboard-welcome { grid-area: welcome; }
.dashboard-advert { grid-area: advert; }
.dashboard-featured { grid-area: featured; }
.dashboard-reserved { grid-area: reserved; }
.dashboard-empty-space { min-height: 130px; }
.dashboard-currency { grid-area: currency; }
.dashboard-links { grid-area: links; }
.dashboard-tasks { grid-area: tasks; display: flex; flex-direction: column; }
.dashboard-tasks .aero-window-body { display: flex; flex: 1; }
.dashboard-tasks .desktop-tasks { flex: 1; }
.dashboard-tasks .desktop-task { display: flex; flex-direction: column; justify-content: center; }
.dashboard-account { grid-area: account; }
.dashboard-community { grid-area: community; }
.aero-window, .aero-window:hover { background: linear-gradient(135deg, rgba(238, 249, 255, .66), rgba(197, 222, 249, .38)) !important; backdrop-filter: blur(14px) saturate(125%); border: 1px solid #e9f9ffeb; border-radius: 16px; box-shadow: inset 0 0 0 3px #ffffff26, inset 0 1px 0 #fff, 0 9px 28px #03132942, 0 0 0 1px #5b9ddb70; overflow: hidden; }
.card, .aero-window { transition: none; }
.aero-window h2, .aero-window h3, .aero-window p, .aero-window a, .aero-window .desktop-eyebrow, .aero-window .employee-details { color: var(--ink) !important; }
.aero-window h2, .aero-window h3, #headerNav { font-family: "Segoe UI", Arial, sans-serif; }
.aero-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; min-height: 48px; }
.aero-titlebar h2 { font-size: 15px; text-transform: none; font-weight: 700; margin: 0; line-height: 1.35; }
.aero-titlebar h2 > i { margin-right: 7px; color: #265799; filter: drop-shadow(0 1px 0 white); }
.aero-window-controls { display: flex; gap: 5px; flex-shrink: 0; color: #376696; }
.aero-window-controls span { width: 17px; height: 15px; display: grid; place-items: center; border: 1px solid #f1fbffb3; background: #a4cfff55; font-size: 13px; line-height: 1; border-radius: 4px; }
.aero-window-controls span:last-child { background: #efaed055; }
.aero-window-body { padding: 18px; }
.aero-window h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.desktop-eyebrow { display: block; font-size: 12px; margin-bottom: 4px; color: var(--muted-ink); }
.weather-current { display: flex; align-items: center; gap: 16px; }
.weather-current h3 { text-transform: uppercase; font-size: clamp(17px, 1.3vw, 23px); overflow-wrap: anywhere; }
.weather-art { flex: 0 0 40%; min-height: 90px; display: grid; place-items: center; border: 1px solid #ffffffba; background: linear-gradient(135deg, #ffffff80, #91c4f940); border-radius: 12px; }
.weather-art > i { font-size: 54px; color: #edf8ff; text-shadow: 0 2px 0 #5386bf, 0 0 15px #f2b6d5; }
.weather-art img { width: 100%; height: 100px; object-fit: contain; }
.weather-summary { margin: 10px 0; font-size: 13px; }
.season-current { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 88px; border-top: 1px solid #fff9; margin-top: 14px; padding-top: 14px; gap: 8px; }
.season-copy { position: relative; z-index: 1; }
.season-copy h3 { margin: 0; text-transform: uppercase; }
.season-copy p { margin: 5px 0 0; font-size: 12px; max-width: 28ch; }
.season-symbol { color: #e4accf; font-size: 38px; padding-right: 5px; filter: drop-shadow(0 1px 0 #fff); }
.season-art { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; opacity: .8; border-radius: 10px; }
.has-season-art .season-copy { padding: 10px; background: #f0f7ffcc; border-radius: 8px; }
.employee-overview { display: flex; align-items: center; gap: 22px; }
.employee-avatar { width: 104px; height: 104px; object-fit: cover; border: 3px solid #f5fbff; border-radius: 14px; box-shadow: 0 2px 12px #35619226; }
.employee-details { min-width: 0; overflow-wrap: anywhere; }
.employee-details p { margin-bottom: 15px; }
.employee-details i { margin-right: 7px; }
.desktop-notice { border-top: 1px solid #fffb; margin-top: 18px; padding-top: 12px; text-align: center; font-size: 12px; }
.desktop-notice p { margin: 5px 0 0; }
.dashboard-advert { display: flex; padding: 0; align-items: center; align-self: start; background: #acc8f44d !important; }
.dashboard-advert .carousel { width: 100%; }
.dashboard-tasks .desktop-task > .btn { align-self: center; }
.dashboard-advert .carousel-inner { border-radius: 11px; }
.dashboard-advert img { display: block; width: 100%; height: auto; object-fit: contain; }
.dashboard-advert, .dashboard-advert:hover, .dashboard-advert a, .dashboard-advert a:hover, .dashboard-advert img, .dashboard-advert img:hover { transform: none !important; filter: none !important; opacity: 1 !important; transition: none !important; }
.dashboard-advert .carousel-inner { border-radius: inherit; }
.dashboard-advert .carousel-control-prev, .dashboard-advert .carousel-control-next { min-width: 44px; }
.dashboard-advert .carousel-control-prev, .dashboard-advert .carousel-control-prev:hover, .dashboard-advert .carousel-control-next, .dashboard-advert .carousel-control-next:hover { background: transparent !important; box-shadow: none !important; text-decoration: none !important; }
.dashboard-advert .carousel-item > a, .dashboard-advert .carousel-item > a:hover { background: transparent !important; box-shadow: none !important; }
.dashboard-advert.aero-window, .dashboard-advert.aero-window:hover { background: #acc8f44d !important; }
body[data-theme="default"] .badge-warning, body[data-theme="default"] .bg-warning, body[data-theme="default"] .alert-warning { background: #f4ddeb !important; color: #63455f !important; border-color: #d7b8d1 !important; }
/* Terminal details stay in window chrome and controls; content retains its readable UI font. */
.aero-titlebar h2, .account-settings h3, .profile-hero .desktop-eyebrow { font-family: Consolas, "Cascadia Mono", monospace; font-size: 14px; font-weight: 600; letter-spacing: .025em; }
.aero-titlebar, .card-header { border-bottom: 1px solid #edf8ffb3; }
.account-settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 1100px; margin-inline: auto; }
.account-settings > .card { margin: 0 !important; padding: clamp(16px, 3vw, 28px) !important; border-radius: 10px; background: rgba(222, 237, 250, .94) !important; }
.account-settings h3 { padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #6688ac55; color: var(--ink); }
.account-settings label, .account-settings p { color: var(--ink); }
.account-settings .form-control { min-height: 42px; background: #f4faff !important; color: #193955 !important; border: 1px solid #8faecc; border-radius: 5px; }
.account-settings .text-right { margin-top: 14px; }
.account-settings .btn { min-height: 40px; }
.account-settings .custom-file { height: auto; }
.account-settings .custom-file-label { display: none; }
.account-settings .custom-file-input { position: static; opacity: 1; height: auto; width: 100%; padding: 8px; background: #f4faff; border: 1px solid #8faecc; border-radius: 5px; }
.account-settings .alert { font-size: 13px; }
.dashboard-featured { text-align: center; }
.dashboard-featured .aero-window-body { padding: 12px; }
.featured-portrait { display: inline-block; position: relative; margin-bottom: 8px; }
.featured-portrait img { max-width: 100%; width: 200px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 2px solid #f7fbff; }
.featured-star { position: absolute; right: -8px; bottom: -5px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #fff; background: #d9eafa; color: #e4b565 !important; text-shadow: 0 1px 1px #866737; font-size: 20px; }
.aero-window .featured-star, .aero-window .featured-star i { color: #e4b565 !important; }
.dashboard-reserved .aero-window-body { text-align: center; padding: 12px; }
.dashboard-art-image { display: block; }
.dashboard-art-image img { width: 100%; height: 160px; object-fit: contain; border-radius: 6px; }
.dashboard-art-caption { margin: 8px 0 12px; font-size: 12px; overflow-wrap: anywhere; }
.dashboard-art-empty { padding: 18px 0 8px; font-size: 12px; }
.dashboard-art-empty > i { font-size: 28px; color: #537dab; margin-bottom: 10px; }
.dashboard-art-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.dashboard-art-option { padding: 12px; border: 1px solid #e5f2ff; border-radius: 10px; background: #e3f0fb70; }
.dashboard-art-option img { width: 100%; height: 180px; object-fit: contain; }
.dashboard-art-option h3 { font-size: 15px; margin-top: 10px; }
.dashboard-art-option p { font-size: 12px; }
.dashboard-featured h3 { font-size: 14px; overflow-wrap: anywhere; margin-bottom: 4px; }
.dashboard-featured p { margin-bottom: 3px; font-size: 11px; }
.dashboard-featured .aero-window-body > div { font-size: 12px; }
.desktop-currencies { display: grid; gap: 10px; }
.desktop-currency { display: flex; align-items: center; font-size: 18px; font-weight: 700; gap: 12px; }
.desktop-currency .display-currency { display: flex; align-items: center; gap: 12px; }
.aero-window a.btn-primary { color: #244568 !important; }
.desktop-currency img { width: auto !important; height: auto !important; max-width: 20px; max-height: 20px; object-fit: contain; order: -1; }
.desktop-quick-links { display: grid; gap: 4px; }
.desktop-quick-links a { display: flex; align-items: center; min-height: 35px; gap: 12px; }
.desktop-quick-links i { width: 20px; text-align: center; }
.desktop-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.desktop-task { background: linear-gradient(140deg, #f7fcff85, #c5def249); border: 1px solid #fff9; border-radius: 12px; padding: 16px 8px; text-align: center; font-size: 12px; overflow-wrap: anywhere; }
.desktop-task i { font-size: 30px; margin-bottom: 15px; color: #3567ad; }
.desktop-task h3 { font-size: 14px; text-transform: uppercase; margin-bottom: 12px; }
.desktop-task p { margin: 8px 0 0; }
.desktop-icon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.desktop-icon-grid > * { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 5px; text-align: center; background: #eef8ff2e; border: 1px solid #ffffff85; border-radius: 13px; font-size: 13px; font-weight: 700; }
.desktop-icon-grid img { max-width: 100%; width: 85px; height: 78px; object-fit: contain; }
.desktop-icon-grid a:hover { background: #ffffff78; text-decoration: none; }
.desktop-icon-grid small { display: block; font-size: 10px; font-weight: 400; }
.desktop-icon-disabled { opacity: .7; }
.btn-primary { background: linear-gradient(#d0e7fb, #a5caeb) !important; color: #244568 !important; border-color: #8db4d6 !important; box-shadow: inset 0 1px 0 #ffffff99; }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(#deeffe, #b8d9f5) !important; color: #16395d !important; border-color: #749fc5 !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ffb9df; outline-offset: 3px; }
.site-footer { margin-top: 20px; }
.site-footer .navbar-nav { flex-wrap: wrap; justify-content: center; max-width: 100%; }
.site-footer a { color: #e8f4ff !important; text-shadow: 0 1px 3px #112b50; }
.pagination .page-link { background: #e5f2ff; border-color: #afcce8; color: #234d83 !important; }
.pagination .page-item.active .page-link { background: linear-gradient(#8ebcea, #5687bf); border-color: #5b8abc; color: white !important; box-shadow: inset 0 1px 0 #fff9; }
.pagination .page-item.disabled .page-link { background: #dce9f6; color: #617c9d !important; }
.pagination .page-link:hover { background: #c7e1fa; }
.breadcrumb { font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 600; text-transform: none; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: #234d83 !important; text-decoration: underline; text-decoration-color: #547ca780; text-underline-offset: 3px; }
.breadcrumb a:hover { color: #12335b !important; }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: #37547c !important; }
.profile-workspace-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 12px 0 16px; margin: 0 0 20px; border-bottom: 1px solid #d9eafb; }
.profile-kicker { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #37547c; }
.profile-page h1, .profile-page h3, .profile-page h4, .profile-page h5 { font-family: "Segoe UI", Arial, sans-serif; text-transform: none; color: var(--ink) !important; }
.profile-workspace-banner h1 { font-size: 24px; font-weight: 600; margin: 4px 0 0; overflow-wrap: anywhere; }
.profile-workspace-banner p { margin: 0; font-size: 13px; }
.profile-columns { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.4fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.profile-columns > * { min-width: 0; }
.profile-identity { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
.profile-avatar { width: 90px; height: 90px; object-fit: cover; border: 3px solid #f5fbff; border-radius: 12px; box-shadow: 0 3px 12px #2b53882b; }
.profile-facts { font-size: 13px; overflow-wrap: anywhere; }
.profile-facts h4 { font-size: 18px; }
.profile-photo a, .profile-photo span[data-toggle] { display: inline-block; padding: 5px 2px; }
.profile-page .aero-titlebar h5 { font-size: 15px; font-weight: 700; }
.profile-page .card-footer { font-size: 13px; border-top-color: #ffffff90; }
.profile-page .aero-window, .profile-page .aero-window:hover { background: rgba(213, 230, 245, .8) !important; border-color: #dcecf9; border-radius: 10px; box-shadow: inset 0 1px 0 #ffffffa3, 0 4px 12px #18334e1a; backdrop-filter: blur(12px); }
.profile-page .aero-titlebar { background: linear-gradient(180deg, #dbeaf7d9, #acc9e4ad) !important; border-bottom-color: #dcecf9; min-height: 44px; padding: 10px 14px; }
.profile-page .aero-titlebar h2, .profile-page .aero-titlebar h5 { font-weight: 600; }
.profile-page .aero-window-controls span { background: #c1d8eb80; color: #436181; border-color: #e6f2fc; }
.profile-page .profile-contact-links a { background: #d8e8f780; border-color: #bfd5e8; border-radius: 5px; font-weight: 500; }
.profile-page .profile-avatar { border-radius: 6px; box-shadow: none; }
.profile-about { display: grid; gap: 20px; }
.profile-bio { overflow-wrap: anywhere; }
.profile-bio img { max-width: 100%; height: auto; }
.profile-bio table { max-width: 100%; }
.profile-empty-bio { min-height: 175px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px; }
.profile-empty-bio > i { font-size: 32px; color: #587bad; }
.profile-empty-bio h3 { margin: 0; font-size: 15px; font-weight: 400; }
.profile-empty-bio p { margin: 0; font-size: 13px; }
.profile-contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-contact-links a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 1px solid #ffffffa6; border-radius: 8px; background: #eff8ff50; font-weight: 600; font-size: 13px; }
.profile-contact-links i { color: #3e69a6; }
.profile-characters, .profile-guestbook { margin-bottom: 20px; }
.profile-sublist-link { display: inline-block; font-size: 12px; font-weight: 600; border: 1px solid #fff9; border-radius: 6px; padding: 4px 7px; margin: 4px; background: #eef8ff60; }
.employee-profile-page .sidebar a { font-family: "Segoe UI", Arial, sans-serif; text-transform: none; line-height: 1.5; padding-top: 5px; padding-bottom: 5px; color: #234d83 !important; }
.employee-profile-page .sidebar .sidebar-header a, .employee-profile-page .sidebar a.active { color: white !important; }
@media (max-width: 1199px) { .profile-columns { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) { .profile-workspace-banner { padding: 8px 0 14px; } .profile-identity { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; } .profile-avatar { width: 72px; height: 72px; } }
@media (max-width: 1399px) {
    .desktop-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "weather welcome welcome" "featured advert advert" "featured tasks tasks" "reserved currency links" "account account account" "community community community"; }
    .dashboard-advert img { max-height: none; }
    .desktop-icon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    #headerNav { font-size: 13px; }
}
@media (max-width: 991px) {
    .site-shell { padding: 12px; }
    .site-header-image { display: block; height: 145px; }
    .site-main-area { margin-top: 14px !important; }
    .site-main-area .main-content.col-lg-10 { flex-basis: 100%; }
    .site-main-area .sidebar.col-lg-2 { display: none; position: static; max-width: 100%; flex-basis: 100%; overflow: visible; background: none; padding: 0; }
    .site-main-area .sidebar.active { display: block; }
    .site-mobile-header { padding: 10px 0; background: transparent !important; }
    #headerNav .dropdown-menu { position: static !important; width: 100%; }
    #headerNav .nav-link { min-height: 44px; display: flex; align-items: center; }
    #headerNav .navbar-collapse { max-height: 70vh; overflow-y: auto; }
    .desktop-home .site-main-area .main-content { padding: 12px !important; }
}
@media (max-width: 767px) {
    body[data-theme="default"] { background-attachment: fixed; }
    .site-shell { padding: 8px; }
    .site-header-image { height: 110px; }
    .header-clock { font-size: 12px; }
    #headerNav > .container { padding: 0 8px; }
    .desktop-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-template-areas: "welcome welcome" "weather featured" "advert advert" "tasks tasks" "currency links" "reserved reserved" "account account" "community community"; }
    .aero-window-body { padding: 14px; }
    .aero-titlebar { padding: 10px 12px; }
    .aero-titlebar h2 { font-size: 13px; }
    .aero-window-controls { display: none; }
    .weather-current { flex-direction: column; align-items: stretch; gap: 10px; }
    .weather-art { min-height: 70px; }
    .weather-art > i { font-size: 42px; }
    .weather-current h3 { font-size: 18px; }
    .season-symbol { font-size: 24px; }
    .desktop-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .desktop-quick-links a { min-height: 44px; font-size: 13px; gap: 8px; }
    .desktop-notice { text-align: left; }
    .dashboard-featured h3 { font-size: 14px; }
}
@media (max-width: 430px) {
    .desktop-dashboard { grid-template-columns: minmax(0, 1fr); grid-template-areas: "welcome" "weather" "advert" "tasks" "featured" "reserved" "currency" "links" "account" "community"; }
    .weather-current { flex-direction: row; align-items: center; }
    .weather-art { flex-basis: 35%; }
    .employee-overview { gap: 14px; }
    .employee-avatar { width: 80px; height: 80px; }
    .employee-details { font-size: 13px; }
    .desktop-task { padding: 12px 5px; }
    .desktop-task h3 { font-size: 12px; }
    .desktop-task .btn { white-space: normal; }
    .featured-portrait img { width: 200px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }
@supports not (backdrop-filter: blur(1px)) { .aero-window { background: rgba(221, 239, 253, .9) !important; } }

/* Fabrication: an inventory workbench, using the shared desktop palette. */
.fabrication-workspace { --fab-line: #789fc04d; color: var(--ink, #163562); }
.fabrication-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 0 24px; border-bottom: 1px solid var(--fab-line); }
.fabrication-label { font: 11px/1.6 Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: #45678b; }
.fabrication-label i { margin-right: 5px; }
.fabrication-header h1 { font-family: "Segoe UI", Arial, sans-serif; font-size: 32px; font-weight: 600; text-transform: none; letter-spacing: -.03em; color: var(--ink, #163562); margin: 5px 0 8px; }
.fabrication-header p { margin: 0; color: #37547c; font-size: 14px; }
.fabrication-header .btn { flex-shrink: 0; }
.fabrication-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0; }
.fabrication-toolbar label { margin: 0; font-size: 13px; font-weight: 600; }
.fabrication-toolbar .form-control { width: min(100%, 320px); font-size: 14px; background: #eff7ffde; border-color: #9db9d4; }
.fabrication-count { margin-left: auto; font: 12px Consolas, monospace; color: #37547c; }
.fabrication-section { margin-bottom: 28px; }
.fabrication-section-heading { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--fab-line); }
.fabrication-section-heading h2 { margin: 0; font: 600 16px "Segoe UI", Arial, sans-serif; text-transform: none; color: var(--ink, #163562); }
.fabrication-section-heading > span { border: 1px solid #99b6d1; border-radius: 4px; padding: 1px 7px; font: 12px Consolas, monospace; background: #e6f1fc99; }
.fabrication-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.fabrication-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #effaff; border-radius: 10px; background: linear-gradient(140deg, #eaf5ffeb, #c7def3df); box-shadow: inset 0 1px 0 #fff, 0 3px 9px #17345d14; }
.fabrication-card[hidden], .fabrication-workspace [hidden] { display: none !important; }
.fabrication-card-main { display: flex; align-items: center; gap: 14px; padding: 18px; min-height: 114px; border-bottom: 1px solid var(--fab-line); }
.fabrication-preview { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; background: #f2f8ff99; border: 1px solid #fff; border-radius: 8px; }
.fabrication-preview img { max-width: 60px; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.fabrication-preview i { font-size: 24px; color: #6d90b6; }
.fabrication-card-title { min-width: 0; }
.fabrication-card-title h3 { font: 600 16px/1.4 "Segoe UI", Arial, sans-serif; text-transform: none; margin: 3px 0 0; overflow-wrap: anywhere; }
.fabrication-card-title h3 a { color: #234b78; }
.fabrication-restricted { font-size: 11px; color: #516385; }
.fabrication-materials { padding: 14px 18px; flex: 1; font-size: 12px; line-height: 1.6; }
.fabrication-materials h4 { font: 600 11px "Segoe UI", Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #45678b; margin: 0 0 8px; }
.fabrication-materials ul { list-style: none; padding: 0; margin: 0; }
.fabrication-materials li + li { margin-top: 5px; }
.fabrication-materials .small-icon { max-width: 20px; max-height: 20px; width: auto; height: auto; }
.fabrication-materials a { color: #234b78; text-decoration: underline; text-decoration-color: #234b7840; text-underline-offset: 2px; }
.fabrication-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--fab-line); background: #b3cee533; }
.fabrication-card-footer > span { font: 11px Consolas, monospace; color: #45678b; }
.fabrication-card-footer .btn { min-height: 36px; padding: 7px 12px; }
.fabrication-empty { border: 1px dashed #779bbd; border-radius: 8px; padding: 22px; background: #e3effb55; color: #37547c; font-size: 13px; }
@media (max-width: 575px) {
    .fabrication-header { align-items: flex-start; gap: 12px; }
    .fabrication-header h1 { font-size: 26px; }
    .fabrication-header .btn { font-size: 12px; padding: 7px 9px; }
    .fabrication-toolbar { gap: 8px; }
    .fabrication-toolbar label { width: 100%; }
    .fabrication-toolbar .form-control { flex: 1; width: 0; }
    .fabrication-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Theme CSS can override these tokens on :root or body without replacing the clock. */
:root {
    --clock-background: linear-gradient(180deg, rgba(235, 247, 255, .94), rgba(177, 207, 237, .94));
    --clock-color: #234b78;
    --clock-muted-color: #506f94;
    --clock-border-color: #edf8ff;
    --clock-divider-color: #789fc066;
    --clock-shadow: inset 0 1px 0 #fff, 0 2px 8px #17345d33;
    --clock-radius: 7px;
    --clock-font: Consolas, "Lucida Console", monospace;
}
#header > .header-clock {
    position: absolute;
    right: 20px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid var(--clock-border-color);
    border-radius: var(--clock-radius);
    background: var(--clock-background);
    color: var(--clock-color);
    box-shadow: var(--clock-shadow);
    backdrop-filter: blur(12px);
    font: 13px/1.2 var(--clock-font);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.header-clock > i { font-size: 13px; color: var(--clock-muted-color); }
.header-clock time { min-width: 11ch; text-align: center; }
.header-clock-zone { padding-left: 9px; border-left: 1px solid var(--clock-divider-color); color: var(--clock-muted-color); font-size: 10px; letter-spacing: .05em; }
@media (max-width: 767px) {
    #header > .header-clock { right: 10px; bottom: 8px; padding: 6px 8px; gap: 6px; font-size: 12px; }
    .header-clock-zone { padding-left: 6px; }
}

/* Retrieval uses the shared production terminal palette. */
.retrieval-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; margin: 24px 0; }
.retrieval-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #effaff; border-radius: 10px; background: linear-gradient(140deg, #eaf5ffeb, #c7def3df); box-shadow: inset 0 1px 0 #fff, 0 3px 9px #17345d14; }
.retrieval-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--fab-line); background: linear-gradient(#e5f3ff, #c0d9ee); }
.retrieval-panel-heading h2 { margin: 0; font: 600 16px 'Segoe UI', Arial, sans-serif; text-transform: none; color: var(--ink, #163562); }
.retrieval-item { display: flex; align-items: center; gap: 24px; padding: 30px; flex: 1; }
.retrieval-item-image { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 150px; height: 150px; border: 1px solid #fff; border-radius: 8px; background: #f1f8ff9e; }
.retrieval-item-image img { max-width: 128px; max-height: 128px; object-fit: contain; }
.retrieval-item h3 { font: 600 22px/1.4 'Segoe UI', Arial, sans-serif; text-transform: none; margin: 8px 0 16px; }
.retrieval-item h3 a { color: var(--ink, #163562); }
.retrieval-item p, .retrieval-compensation p { font-size: 14px; color: #37547c; }
.retrieval-item p strong { margin-left: 12px; font-family: Consolas, monospace; }
.retrieval-stock { font-size: 13px; color: #37547c; }
.retrieval-stock i { margin-right: 5px; }
.retrieval-panel-footer { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--fab-line); color: #37547c; font-size: 12px; }
.retrieval-compensation { padding: 26px 24px; }
.retrieval-reward { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font: 600 24px Consolas, monospace; }
.retrieval-reward img { max-width: 24px; max-height: 24px; object-fit: contain; }
.retrieval-status { border-top: 1px solid var(--fab-line); padding-top: 18px; margin: 22px 0 18px; font-size: 13px; line-height: 1.6; }
.retrieval-message { padding: 30px; }
@media (max-width: 850px) { .retrieval-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .retrieval-item { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; } .retrieval-workspace .fabrication-header { align-items: flex-start; flex-direction: column; } }
