:root {
  color-scheme: dark;
  --bg: #05080e;
  --surface: rgba(12, 19, 29, .92);
  --surface-2: rgba(16, 27, 40, .88);
  --line: #202d3d;
  --text: #f6f8fb;
  --muted: #8290a3;
  --blue: #3d7dff;
  --green: #22c98a;
  --amber: #f2ad42;
  --red: #f35d6d;
  --violet: #9c73ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  --font: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.digital-universe { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: radial-gradient(circle at 24% 12%, #0c2c5d 0, transparent 29%), radial-gradient(circle at 86% 79%, #06463e 0, transparent 32%), linear-gradient(145deg, #04070c, #08111f 50%, #03060b); }
.digital-universe::before { content: ""; position: absolute; inset: -25%; opacity: .65; background-image: radial-gradient(circle, #d9ebff 0 1px, transparent 1.6px), radial-gradient(circle, #3c87ff 0 1px, transparent 1.8px), radial-gradient(circle, #2de3a9 0 1px, transparent 1.6px); background-size: 93px 93px, 157px 157px, 211px 211px; animation: stars 65s linear infinite; }
.digital-universe::after { content: ""; position: absolute; inset: -50%; background: repeating-linear-gradient(115deg, transparent 0 54px, rgba(74, 135, 255, .035) 55px 56px); transform: perspective(600px) rotateX(55deg); animation: grid 28s linear infinite; }
.nebula { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(70px); opacity: .25; animation: float 14s ease-in-out infinite alternate; }
.nebula-blue { background: #236be6; top: -18vw; left: 12vw; }
.nebula-green { background: #08a67d; right: -18vw; bottom: -20vw; animation-delay: -7s; }
.orbit { position: absolute; border: 1px solid rgba(102, 158, 255, .18); border-radius: 50%; animation: spin 38s linear infinite; }
.orbit i { position: absolute; width: 7px; height: 7px; background: #5e9bff; box-shadow: 0 0 18px #397dff; border-radius: 50%; left: 10%; top: 20%; }
.orbit-one { width: 46vw; height: 46vw; left: 7vw; top: 7vh; transform: rotate(18deg); }
.orbit-two { width: 58vw; height: 28vw; right: -18vw; bottom: 3vh; animation-direction: reverse; animation-duration: 48s; }
.orbit-two i { background: #36dda9; box-shadow: 0 0 18px #1fc88d; }
.comet { position: absolute; width: 180px; height: 1px; background: linear-gradient(90deg, transparent, #72a7ff); transform: rotate(-24deg); animation: comet 10s linear infinite; opacity: .7; }
.comet-one { left: -20%; top: 23%; }
.comet-two { left: 35%; top: 68%; animation-delay: -5s; }

@keyframes stars { to { transform: translate3d(157px, 93px, 0) rotate(.001deg); } }
@keyframes grid { to { transform: perspective(600px) rotateX(55deg) translateY(110px); } }
@keyframes float { to { transform: translate3d(50px, 32px, 0) scale(1.08); } }
@keyframes spin { to { transform: rotate(378deg); } }
@keyframes comet { 0% { transform: translate(-25vw, 25vh) rotate(-24deg); opacity: 0; } 12%, 70% { opacity: .65; } 100% { transform: translate(110vw, -32vh) rotate(-24deg); opacity: 0; } }

.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .18em; position: relative; z-index: 2; }
.wordmark span, .brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: linear-gradient(145deg, #4484ff, #1a4cc5); border: 1px solid #6ca3ff; border-radius: 12px; box-shadow: 0 10px 30px rgba(48, 111, 255, .32); font-size: 20px; letter-spacing: 0; }
.eyebrow { color: #6fa4ff !important; letter-spacing: .18em; font-size: 11px !important; font-weight: 800; }

.login-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; min-height: 100vh; }
.login-intro { padding: clamp(30px, 6vw, 88px); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; }
.login-intro h1 { margin: 10px 0 3px; max-width: 720px; font: 800 clamp(58px, 8vw, 112px)/.9 Inter, system-ui, sans-serif; letter-spacing: -.07em; background: linear-gradient(115deg, #fff 25%, #73a5ff 72%, #3be4af); color: transparent; background-clip: text; }
.login-subtitle { color: #aebdd1; font-size: clamp(17px, 2vw, 25px); margin: 24px 0 0; letter-spacing: .01em; }
.security-note { color: #98a8bc; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.security-note i, .saved-indicator i, .secure-chip i, .project-status i, .security-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px var(--green); display: inline-block; flex: none; }
.login-card-wrap { display: grid; place-items: center; padding: 28px; border-left: 1px solid rgba(120, 154, 207, .12); background: rgba(3, 7, 13, .34); backdrop-filter: blur(18px); }
.login-card, .settings-card { width: min(100%, 470px); padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(116, 151, 205, .25); border-radius: 25px; background: linear-gradient(145deg, rgba(16, 26, 40, .95), rgba(8, 14, 23, .92)); box-shadow: var(--shadow); }
.login-kicker { color: #7daaff; font-size: 11px; letter-spacing: .18em; font-weight: 800; }
.login-card h2, .settings-card h1 { font-size: 30px; margin: 9px 0 4px; }
.login-card > p, .settings-card > p { color: var(--muted); margin: 0 0 26px; }
.login-card label, .settings-card label, .user-create-card label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; color: #c6d1df; margin: 18px 0; }
input, select { width: 100%; border: 1px solid #29384b; background: #080e17; color: var(--text); border-radius: 11px; padding: 13px 14px; outline: none; }
input:focus, select:focus { border-color: #4b86ff; box-shadow: 0 0 0 3px rgba(61, 125, 255, .14); }
.login-help { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 4px 0 18px; }
.login-help a { color: #7eaaff; }
.primary-button, .secondary-button { border: 0; border-radius: 11px; min-height: 43px; padding: 10px 17px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; font-weight: 800; }
.primary-button { width: 100%; background: linear-gradient(120deg, #3977ff, #245dcc); color: #fff; box-shadow: 0 12px 28px rgba(43, 105, 238, .24); }
.secondary-button { color: #d8e5f7; background: #101a28; border: 1px solid #293a50; }
.login-card small { display: block; color: #647386; text-align: center; margin-top: 18px; }
.form-error, .flash { padding: 11px 13px; border-radius: 10px; margin: 14px 0; font-size: 13px; }
.form-error, .flash.error { border: 1px solid rgba(243, 93, 109, .38); color: #ffb0ba; background: rgba(243, 93, 109, .09); }
.flash.success { border: 1px solid rgba(34, 201, 138, .35); color: #80e9bd; background: rgba(34, 201, 138, .09); }
.flash.warning { border: 1px solid rgba(242, 173, 66, .35); color: #ffd183; background: rgba(242, 173, 66, .09); }

.workspace { position: relative; z-index: 2; display: flex; min-height: 100vh; }
.sidebar { width: 274px; position: fixed; inset: 0 auto 0 0; padding: 24px 16px; border-right: 1px solid rgba(112, 145, 194, .15); background: rgba(5, 9, 15, .89); backdrop-filter: blur(22px); display: flex; flex-direction: column; z-index: 20; }
.brand-block { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.brand-block div { display: grid; }
.brand-block strong { font-size: 14px; }
.brand-block small { color: #6f83a0; font-size: 9px; letter-spacing: .18em; }
.brand-block .icon-button { margin-left: auto; }
.nav-label, .nav-section { color: #526178; font-size: 9px; font-weight: 800; letter-spacing: .17em; margin: 10px 12px; }
.nav-section { display: flex; justify-content: space-between; margin-top: 22px; }
.nav-section span { padding: 1px 7px; border-radius: 20px; background: #142134; color: #84a5d8; }
.main-nav { overflow-y: auto; }
.nav-item { width: 100%; min-height: 43px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: #8b9aae; display: flex; align-items: center; gap: 11px; text-align: left; margin: 3px 0; font-weight: 650; font-size: 13px; }
.nav-item b { width: 21px; text-align: center; color: #667b98; font-size: 17px; }
.nav-item:hover { color: #e7eef8; background: rgba(52, 77, 111, .2); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(49, 111, 240, .28), rgba(35, 69, 123, .12)); box-shadow: inset 3px 0 #3c7cff; }
.nav-item.active b { color: #6fa2ff; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #172232; padding: 17px 7px 0; }
.secure-chip { color: #72dcb5; font-size: 11px; display: flex; align-items: center; gap: 8px; margin: 0 4px 16px; }
.profile-mini { display: flex; gap: 10px; align-items: center; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; background: #152d59; color: #8bb1ff; border-radius: 50%; font-size: 11px; font-weight: 800; }
.profile-mini div { display: grid; flex: 1; }
.profile-mini strong { font-size: 12px; }
.profile-mini small { color: #6e7e93; font-size: 10px; }
.profile-mini a { color: #7789a1; }
.logout-button { width: 100%; margin-top: 13px; padding: 8px; border-radius: 8px; border: 1px solid #253348; background: transparent; color: #8999ae; }
.content-shell { margin-left: 274px; width: calc(100% - 274px); min-height: 100vh; }
.topbar { height: 77px; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(112, 145, 194, .15); background: rgba(6, 11, 18, .79); backdrop-filter: blur(24px); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.top-title { display: flex; align-items: center; gap: 13px; }
.top-title small { color: #5f718a; font-size: 9px; letter-spacing: .16em; font-weight: 800; }
.top-title h1 { margin: 3px 0 0; font-size: 18px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.saved-indicator { font-size: 11px; color: #789083; margin-right: 8px; display: flex; align-items: center; gap: 7px; }
.icon-button { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #243348; border-radius: 9px; color: #a7b6c9; background: #0d1622; font-size: 12px; }
.menu-button, .mobile-only { display: none; }
.page-content { padding: 28px 30px 48px; max-width: 1600px; margin: 0 auto; }
.view-section { display: none; }
.view-section.active { display: block; animation: reveal .22s ease-out; }
@keyframes reveal { from { opacity: .4; transform: translateY(6px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 2px 0 22px; }
.page-heading p { color: var(--muted); margin: 0 0 3px; font-size: 12px; }
.page-heading h2 { margin: 2px 0 3px; font-size: clamp(24px, 3vw, 34px); }
.page-heading.compact h2 { font-size: 25px; }
.domain-chip { border: 1px solid rgba(56, 127, 255, .35); background: rgba(31, 83, 179, .16); color: #84adff; padding: 8px 13px; border-radius: 30px; font: 700 11px monospace; }
.notice-banner, .project-status { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid #1d385f; background: rgba(31, 87, 178, .13); border-radius: 10px; color: #93a7c2; font-size: 12px; margin-bottom: 20px; }
.notice-banner b { background: #2868dc; color: white; border-radius: 5px; padding: 3px 7px; font-size: 9px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.kpi-card, .panel, .users-panel { position: relative; border: 1px solid rgba(102, 132, 176, .18); background: linear-gradient(145deg, rgba(15, 24, 37, .92), rgba(9, 15, 24, .9)); border-radius: 14px; box-shadow: 0 17px 48px rgba(0, 0, 0, .18); }
.kpi-card { padding: 18px; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; }
.kpi-icon { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; }
.kpi-icon.blue { color: #7da9ff; background: #122b59; }
.kpi-icon.green { color: #68e0b3; background: #10372d; }
.kpi-icon.violet { color: #c3aaff; background: #2b1d4e; }
.kpi-icon.amber { color: #ffd17d; background: #422c11; }
.kpi-card small { color: #8a99ac; }
.kpi-card strong { font: 800 25px Inter, system-ui; }
.kpi-card p { color: #65758a; font-size: 10px; margin: 2px 0 0; }
.panel-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.panel { padding: 20px; }
.panel-title { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.panel-title h2, .panel-title h3 { margin: 0 0 2px; font-size: 16px; }
.panel-title p { margin: 0; color: var(--muted); font-size: 11px; }
.project-list { display: grid; gap: 9px; }
.project-list button { width: 100%; border: 1px solid #202e40; border-radius: 11px; background: rgba(15, 25, 38, .62); color: #fff; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.project-list button > span { display: grid; grid-template-columns: 84px 1fr; gap: 3px 10px; }
.project-list b { color: #75a5ff; font: 700 10px monospace; grid-row: 1 / 3; align-self: center; }
.project-list strong { font-size: 13px; }
.project-list small { color: var(--muted); font-size: 10px; }
.project-list em { color: #79a5f8; font-style: normal; font-size: 11px; }
.security-list, .recommend-list { list-style: none; padding: 0; margin: 5px 0 0; display: grid; gap: 15px; color: #a5b2c2; font-size: 12px; }
.security-list li { display: flex; align-items: center; gap: 10px; }
.project-status { justify-content: space-between; background: rgba(19, 109, 82, .12); border-color: rgba(36, 191, 141, .25); }
.project-status span { display: flex; align-items: center; gap: 8px; }
.project-status b { color: #75ddb4; }
.project-frame { height: calc(100vh - 250px); min-height: 620px; border: 1px solid #26384e; border-radius: 15px; overflow: hidden; background: #060b12; box-shadow: var(--shadow); }
.project-frame iframe { width: 100%; height: 100%; border: 0; background: #070b11; }
.empty-state { display: grid; place-items: center; text-align: center; min-height: 280px; }
.empty-state > span { font-size: 44px; color: #79a7ff; }
.empty-state h3 { margin-bottom: 0; }
.empty-state p { color: var(--muted); max-width: 450px; }
.recommend-list { list-style: decimal; padding-left: 18px; line-height: 1.65; }

.centered-shell { position: relative; z-index: 2; min-height: 100vh; padding: 35px; display: flex; flex-direction: column; gap: 45px; align-items: center; }
.centered-shell .wordmark { align-self: flex-start; }
.settings-card { margin: auto; }
.password-rules { color: #8c9bad; border: 1px solid #26364a; border-radius: 9px; background: #0a121e; padding: 11px; font-size: 11px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; margin-top: 23px; }
.form-actions a { color: #8291a5; font-size: 13px; }
.form-actions .primary-button { width: auto; }

.admin-shell { position: relative; z-index: 2; width: min(1480px, 100%); margin: 0 auto; padding: 28px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-header > div { display: flex; gap: 8px; }
.admin-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.user-create-card { width: 100%; padding: 25px; }
.user-create-card h1 { margin-bottom: 4px; }
.user-create-card .primary-button { margin-top: 9px; }
.users-panel { padding: 22px; overflow: hidden; }
.user-table-wrap { overflow: auto; }
.user-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.user-table th { text-align: left; padding: 10px; color: #6e8098; border-bottom: 1px solid #263447; font-size: 10px; letter-spacing: .08em; }
.user-table td { padding: 13px 10px; border-bottom: 1px solid #182334; color: #aebacc; font-size: 11px; }
.user-table td:first-child { display: grid; }
.user-table td:first-child strong { color: #eef3fa; font-size: 12px; }
.user-table td:first-child small { color: #687a91; }
.role-chip, .state-chip { display: inline-flex; padding: 4px 7px; border-radius: 20px; font-size: 9px; font-weight: 800; }
.role-chip.admin { background: #213a70; color: #8eb4ff; }
.role-chip.member { background: #192738; color: #94a7c0; }
.state-chip.active { background: #10352c; color: #66ddb0; }
.state-chip.inactive { background: #3a1b21; color: #ff9fab; }
.row-actions { display: flex; gap: 5px; }
.row-actions button { border: 1px solid #2a3b51; border-radius: 7px; padding: 6px 8px; background: #0c1622; color: #98aac0; font-size: 10px; }
.row-actions button:disabled { opacity: .35; cursor: not-allowed; }
.temporary-password { display: flex; align-items: center; gap: 18px; padding: 15px 17px; background: rgba(33, 121, 91, .18); border: 1px solid rgba(51, 209, 155, .35); border-radius: 12px; margin-bottom: 18px; }
.temporary-password div { display: grid; }
.temporary-password small { color: #6edbb3; }
.temporary-password code { color: #fff; font-size: 15px; background: #07140f; border-radius: 7px; padding: 8px 10px; }
.temporary-password button { margin-left: auto; border: 0; border-radius: 8px; padding: 8px 12px; background: #1d936b; color: white; }
.project-publisher-shell { max-width: 1320px; }
.publisher-grid { display: grid; grid-template-columns: minmax(340px, .75fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.publisher-card { width: 100%; max-width: none; padding: 28px; }
.publisher-card h1 { margin-bottom: 5px; }
.publisher-card > p { max-width: 610px; line-height: 1.7; }
.zip-dropzone { position: relative; min-height: 230px; margin: 24px 0 14px; border: 1px dashed #395378; border-radius: 17px; background: linear-gradient(145deg, rgba(24, 46, 77, .44), rgba(8, 16, 27, .8)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px; transition: border-color .18s ease, background .18s ease, transform .18s ease; cursor: pointer; }
.zip-dropzone:hover, .zip-dropzone.dragging { border-color: #5d92f4; background: rgba(35, 82, 159, .2); transform: translateY(-1px); }
.zip-dropzone.ready { border-style: solid; border-color: rgba(38, 207, 148, .55); background: rgba(22, 115, 84, .13); }
.zip-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.zip-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 17px; color: #8eb4ff; background: #122b59; border: 1px solid #315798; box-shadow: 0 15px 36px rgba(28, 79, 169, .28); font: 900 14px Inter, system-ui; letter-spacing: .08em; }
.zip-dropzone.ready .zip-icon { color: #73e2b7; background: #10372d; border-color: #246e58; }
.zip-dropzone strong { margin-top: 9px; color: #f4f8fd; font-size: 16px; overflow-wrap: anywhere; }
.zip-dropzone small { color: #788ba4; font-size: 11px; }
.publish-button { min-height: 50px; font-size: 15px; }
.publish-guardrails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.publish-guardrails span { padding: 6px 9px; border-radius: 20px; border: 1px solid rgba(50, 200, 147, .2); background: rgba(23, 113, 82, .1); color: #7dd7b6; font-size: 9px; font-weight: 800; }
.publish-success { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 17px 19px; border-radius: 14px; border: 1px solid rgba(49, 209, 153, .35); background: linear-gradient(120deg, rgba(20, 120, 87, .24), rgba(12, 28, 30, .86)); }
.publish-success > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #07241a; background: #52dfa9; font-size: 22px; font-weight: 900; }
.publish-success > div { display: grid; flex: 1; }
.publish-success small { color: #69dcb2; font-size: 9px; letter-spacing: .16em; font-weight: 900; }
.publish-success strong { color: #f1fff9; font-size: 17px; }
.publish-success p { color: #84a99b; margin: 2px 0 0; font-size: 10px; }
.publish-success .primary-button { width: auto; }
.projects-panel { min-height: 440px; }
.project-admin-list { display: grid; gap: 8px; }
.project-admin-list article { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid #1e2d40; border-radius: 10px; background: rgba(10, 18, 29, .68); }
.project-admin-list .project-code { color: #77a4f8; font: 800 10px ui-monospace, monospace; }
.project-admin-list article > div { display: grid; }
.project-admin-list strong { color: #eef4fc; font-size: 12px; }
.project-admin-list small { color: #657990; font-size: 9px; }
.project-admin-list article > a { color: #85aefa; font-size: 10px; font-weight: 800; }
.menu-backdrop { display: none; }

.installer-shell { position: relative; z-index: 2; width: min(760px, 100%); min-height: 100vh; margin: 0 auto; padding: 32px 18px 60px; }
.installer-card { margin-top: 42px; padding: clamp(24px, 5vw, 44px); border: 1px solid rgba(116, 151, 205, .25); border-radius: 24px; background: linear-gradient(145deg, rgba(16, 26, 40, .96), rgba(8, 14, 23, .94)); box-shadow: var(--shadow); }
.installer-card > h1 { margin: 5px 0; font-size: clamp(27px, 5vw, 38px); }
.installer-card > p { color: var(--muted); margin: 0 0 22px; }
.requirement-list { display: grid; gap: 7px; margin: 22px 0; }
.requirement-list > div { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; background: rgba(9, 16, 26, .72); border: 1px solid #202f42; font-size: 12px; }
.requirement-list .ok b, .requirement-list .ok strong { color: #67deb1; }
.requirement-list .fail b, .requirement-list .fail strong { color: #ff929f; }
.requirement-list strong { font-size: 10px; }
.installer-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid #223044; }
.installer-form label { display: grid; gap: 8px; margin: 16px 0; color: #c6d1df; font-size: 13px; font-weight: 700; }
.installer-form .primary-button { margin-top: 18px; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.authorized-chip { color: #73e2b7; border: 1px solid rgba(53, 208, 153, .28); background: rgba(25, 138, 99, .11); padding: 9px 12px; border-radius: 9px; font-size: 12px; }
.install-success { border: 1px solid rgba(53, 208, 153, .32); background: rgba(25, 138, 99, .12); padding: 15px; border-radius: 11px; margin: 22px 0; }
.install-success strong { color: #73e2b7; font-size: 17px; }
.install-success p { color: #9cb0a8; margin: 5px 0 0; font-size: 12px; }
.credential-list { display: grid; gap: 8px; }
.credential-list > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #27384e; border-radius: 9px; background: #080f19; }
.credential-list span { color: #91a4bd; font-weight: 700; }
.credential-list code { color: #fff; overflow-wrap: anywhere; user-select: all; }
.install-next { margin-top: 20px; color: #9aabbe; font-size: 12px; line-height: 1.7; }
.install-next a { color: #78a7ff; text-decoration: underline; }
.install-next code { color: #cbd8e8; }

body.theme-light { --bg: #eef3f9; --text: #101827; --muted: #68778c; color-scheme: light; }
body.theme-light .digital-universe { opacity: .17; }
body.theme-light .sidebar, body.theme-light .topbar { background: rgba(241, 246, 252, .9); }
body.theme-light .kpi-card, body.theme-light .panel { background: rgba(255, 255, 255, .92); }

@media (max-width: 1000px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid, .admin-grid, .publisher-grid { grid-template-columns: 1fr; }
  .user-create-card { max-width: none; }
  .sidebar { transform: translateX(-101%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .content-shell { margin-left: 0; width: 100%; }
  .menu-button, .mobile-only { display: grid; }
  .menu-backdrop.show { display: block; position: fixed; inset: 0; z-index: 15; border: 0; background: rgba(0, 0, 0, .62); }
}

@media (max-width: 760px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-intro { min-height: 42vh; padding: 28px; }
  .login-intro h1 { font-size: 58px; }
  .security-note { display: none; }
  .login-card-wrap { border-left: 0; border-top: 1px solid rgba(120, 154, 207, .12); padding: 20px; }
  .topbar { height: 67px; padding: 0 15px; }
  .saved-indicator { display: none; }
  .page-content { padding: 20px 14px 35px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .kpi-grid { grid-template-columns: 1fr; }
  .notice-banner, .project-status { align-items: flex-start; flex-direction: column; gap: 8px; }
  .project-frame { height: 76vh; min-height: 550px; border-radius: 9px; }
  .admin-shell { padding: 18px 12px; }
  .admin-header { align-items: flex-start; gap: 18px; flex-direction: column; }
  .temporary-password { align-items: stretch; flex-direction: column; }
  .temporary-password button { margin-left: 0; }
  .publish-success { align-items: flex-start; flex-wrap: wrap; }
  .publish-success .primary-button { width: 100%; }
  .project-admin-list article { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .project-admin-list article > a { grid-column: 2 / -1; }
  .centered-shell { padding: 22px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
