:root {
  --navy: #173b58;
  --navy-dark: #143149;
  --teal: #498d8c;
  --green: #27846c;
  --text: #243e55;
  --muted: #758ba0;
  --border: #dce6ee;
  --surface: #fff;
  --canvas: #f4f7fa;
  font-family: system-ui, -apple-system, 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
p { line-height: 1.55; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #75c5ec; outline-offset: 2px; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: #fff; border-bottom: 1px solid var(--border);
}
.public-brand, .mobile-brand, .side-brand { font-weight: 900; letter-spacing: -.9px; white-space: nowrap; }
.public-brand { font-size: 20px; }
.public-brand span, .mobile-brand span, .side-brand span { color: #f5a17d; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; margin-left: auto; white-space: nowrap; }
.visitor-label { font-size: 11px; color: #8295a5; letter-spacing: 1px; }
.login-link, .top-admin { background: var(--navy); color: white; border-radius: 9px; font-weight: 800; font-size: 12px; padding: 9px 14px; }
.login-link:hover, .action-primary:hover { filter: brightness(1.1); }
.top-location { font-size: 12px; display: flex; align-items: center; gap: 9px; color: #607b92; }
.top-location strong { color: var(--navy); font-size: 13px; letter-spacing: -.4px; }
.separator { color: #b5c3cf; }
.top-status { font-size: 12px; color: #4d697e; display: inline-flex; align-items: center; gap: 6px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; background: #2d9b7b; }
.logout-form { display: flex; margin: 0; }
.logout-button { border: 1px solid var(--border); color: #61778d; background: #fff; font-size: 12px; border-radius: 8px; padding: 8px 11px; }
.logout-button:hover, .mini-button:hover { background: #edf4f8; }
.mobile-brand, .mobile-nav { display: none; }

.sidebar { width: 190px; position: fixed; inset: 0 auto 0 0; background: var(--navy-dark); color: #e0ecf4; padding: 18px 11px 15px; display: flex; flex-direction: column; z-index: 30; }
.side-brand { font-size: 18px; color: white; margin: 1px 10px 23px; }
.side-caption { font-size: 10px; letter-spacing: 1.3px; font-weight: 800; color: #8caec6; margin: 0 11px 7px; }
.projects-caption { margin-top: 22px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link { height: 36px; padding: 0 10px; display: flex; align-items: center; border-radius: 8px; color: #d5e4ee; font-size: 12px; font-weight: 640; white-space: nowrap; }
.side-link:hover, .side-link.selected { color: white; background: #2a5472; }
.side-ico { width: 20px; flex: none; font-size: 15px; display: inline-flex; justify-content: center; align-items: center; margin-right: 6px; }
.side-project { height: 32px; font-weight: 520; }
.external-caption { margin-top: 14px; }
.side-suffix { margin-left: auto; color: #b7d2e2; font-size: 9px; border: 1px solid #50718b; border-radius: 4px; padding: 2px 3px; }
.side-bottom { margin-top: auto; border-top: 1px solid #365874; padding: 13px 9px 0; font-size: 11px; color: #d0e1ec; }
.side-bottom .live-dot { margin-right: 5px; }
.side-bottom small { display: block; font-size: 10px; color: #8facbe; letter-spacing: .5px; margin-top: 6px; }
.admin .topbar { margin-left: 190px; padding: 0 25px; }
.workspace-main { margin: 0 0 0 190px; padding: 22px 27px 46px; max-width: 1710px; }
.admin .footer { margin-left: 190px; }

.eyebrow { display: inline-block; color: #5a97a0; font-size: 10px; font-weight: 850; letter-spacing: 1.65px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.page-heading h1 { font-size: 25px; letter-spacing: -1px; margin: 3px 0 2px; color: #17344d; }
.page-heading p { color: #8599ac; font-size: 12px; margin: 0; }
.session-badge { border: 1px solid var(--border); background: white; padding: 8px 12px; border-radius: 20px; font-size: 11px; color: #54748a; white-space: nowrap; }
.session-badge .live-dot { margin-right: 4px; }
.badge-divider { color: #bdc9d2; padding: 0 5px; }
.overview-banner { min-height: 124px; border-radius: 14px; background: linear-gradient(110deg, #19415e, #286778); display: flex; align-items: center; justify-content: space-between; padding: 21px 28px; color: white; overflow: hidden; }
.overview-banner > div > span { font-size: 10px; color: #9fced4; letter-spacing: 1.5px; font-weight: 800; }
.overview-banner h2 { font-size: 21px; letter-spacing: -.6px; margin: 8px 0 4px; }
.overview-banner p { font-size: 12px; color: #cce1e8; margin: 0; }
.overview-art { font-size: 66px; line-height: 1; font-weight: 300; color: #80c5be; padding: 0 18px; }
.summary-strip { display: flex; align-items: stretch; background: white; border: 1px solid var(--border); border-radius: 12px; margin: 11px 0 23px; overflow: hidden; }
.summary-strip > div { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 13px 19px; min-width: 0; }
.summary-strip > div + div { border-left: 1px solid #e7edf3; }
.summary-strip small { font-size: 11px; color: #8799a8; }
.summary-strip strong { font-size: 14px; color: #243b50; white-space: nowrap; }
.state-ok { font-size: 11px; font-weight: 700; color: #2a9273; margin-left: 4px; }
.state-muted { font-size: 11px; color: #91a1ae; font-weight: 500; margin-left: 4px; }
.summary-link { display: flex; align-items: center; justify-content: center; gap: 8px; border-left: 1px solid #e7edf3; font-size: 12px; font-weight: 750; color: #2c6079; background: #fafdff; padding: 0 17px; white-space: nowrap; }
.summary-link:hover, .toolbar-link:hover { background: #edf6fb; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 23px 0 11px; }
.section-apps { margin-top: 7px; }
.section-head h2 { font-size: 19px; letter-spacing: -.6px; color: #1c3a51; margin: 3px 0 0; }
.section-head > p { margin: 0; color: #8b9dad; font-size: 11px; }
.count-chip { font-size: 11px; background: #eaf1f6; color: #5b7388; border-radius: 14px; padding: 3px 7px; vertical-align: middle; font-weight: 700; }
.search-toolbar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); padding: 8px 10px 8px 13px; background: white; border-radius: 11px; margin-bottom: 11px; }
.search-toolbar label { font-weight: 750; font-size: 11px; color: #536e85; white-space: nowrap; }
.search-toolbar input { flex: 1; min-width: 60px; border: 1px solid #e0e8ef; border-radius: 7px; padding: 9px 10px; color: #213b51; font-size: 12px; }
.search-toolbar > span { font-size: 11px; color: #97a5b1; white-space: nowrap; }
.toolbar-link { border-left: 1px solid #e5edf3; padding: 9px 9px 9px 15px; font-size: 11px; color: #3b7391; font-weight: 780; white-space: nowrap; }
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.app-row, .public-app { background: white; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 15px; }
.app-row { min-height: 79px; }
.app-row:hover { border-color: #9bbecf; background: #fcfeff; box-shadow: 0 3px 11px #173b580d; }
.app-arrow { color: #86a1b3; font-size: 13px; margin-left: -4px; }
.app-icon { display: grid; place-items: center; height: 39px; width: 39px; background: #edf4ff; color: #31648a; font-size: 23px; border-radius: 12px; flex: none; }
.app-row:nth-child(3n + 2) .app-icon, .public-app:nth-child(3n + 2) .app-icon { background: #f0ecff; }
.app-row:nth-child(3n + 3) .app-icon, .public-app:nth-child(3n + 3) .app-icon { background: #e7f5ed; }
.app-copy { min-width: 0; flex: 1; }
.app-copy strong, .public-app strong { font-size: 13px; color: #1d3950; display: block; margin-bottom: 4px; }
.app-copy p, .public-app p { color: #8799ac; font-size: 11px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { flex: none; color: #7b90a3; background: #f1f5f8; border-radius: 15px; padding: 4px 7px; font-size: 10px; white-space: nowrap; }
.search-empty { background: white; border: 1px solid var(--border); border-radius: 9px; padding: 26px; text-align: center; font-size: 12px; color: #8c9cad; }
.app-detail-panel { max-width: 820px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.app-detail-top { display: flex; align-items: center; justify-content: space-between; }
.app-detail-panel h2 { margin: 14px 0 5px; font-size: 25px; }
.app-detail-panel > p { color: #7690a2; font-size: 13px; }
.app-detail-next { display: flex; flex-direction: column; gap: 7px; padding: 15px; border-radius: 9px; background: #f3f8fb; color: #567286; font-size: 12px; }
.app-detail-next strong { color: #315a73; }
.app-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 17px; }
.app-detail-actions > span { font-size: 11px; color: #8598a8; }
.bottom-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--border); background: #fff; border-radius: 11px; margin-top: 12px; padding: 12px 17px; }
.bottom-note strong { font-size: 12px; color: #2f526c; white-space: nowrap; }
.bottom-note span { font-size: 11px; color: #879bb0; }

.security-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); background: #fff; border-radius: 12px; margin-bottom: 13px; overflow: hidden; }
.security-overview > div { padding: 15px 20px; }
.security-overview > div + div { border-left: 1px solid #e8eef3; }
.security-overview small { color: #8297aa; font-size: 11px; display: block; margin-bottom: 7px; }
.security-overview strong { font-size: 17px; color: #24445b; }
.security-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 13px; }
.panel { border: 1px solid var(--border); border-radius: 12px; padding: 17px 20px; background: #fff; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; gap: 14px; }
.panel-heading h2 { margin: 0; font-size: 15px; }
.state-indicator { font-size: 11px; color: #3a806c; }
.detail-list { display: grid; grid-template-columns: 100px 1fr; gap: 13px; font-size: 12px; margin: 0; }
.detail-list dt { color: #8595a4; }
.detail-list dd { margin: 0; color: #335169; font-weight: 720; overflow-wrap: anywhere; }
.panel-footnote { font-size: 11px; color: #879aab; background: #f6fafc; padding: 11px; border-radius: 8px; margin: 17px 0 0; }
.panel-intro { font-size: 11px; color: #8597a8; margin: -5px 0 11px; }
.device-row { border-top: 1px solid #e8eef3; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.device-desc { min-width: 0; }
.device-desc strong { font-size: 12px; display: block; }
.device-desc span { display: block; font-size: 11px; color: #8b9cae; margin-top: 4px; }
.device-row form { margin: 0; }
.mini-button { background: #f2f6f9; color: #3e6780; font-size: 11px; font-weight: 750; border-radius: 8px; border: 1px solid #d8e3ec; padding: 8px 10px; white-space: nowrap; }
.self-label { font-size: 11px; color: #2b9b78; white-space: nowrap; }
.empty-devices { font-size: 12px; color: #96a7b4; }
.notice { border-radius: 9px; padding: 11px 13px; font-size: 12px; margin: 0 0 12px; }
.notice.error { background: #fff1ee; color: #a84936; }
.notice.success { background: #eaf9f1; color: #327554; }

.public-main { max-width: 1120px; margin: 0 auto; padding: 32px 22px 48px; }
.public-hero { background: linear-gradient(114deg, #eaf4ff, #f2faf8); border: 1px solid #dceaf2; border-radius: 18px; min-height: 260px; padding: 37px 45px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.public-hero h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -1.9px; line-height: 1.31; margin: 11px 0 10px; color: #163c57; }
.public-hero h1 em { font-style: normal; color: #3a8084; }
.public-hero p { font-size: 13px; color: #6e8298; margin: 0 0 18px; }
.action-primary { display: inline-flex; justify-content: center; align-items: center; gap: 14px; border: 0; color: #fff; background: var(--navy); border-radius: 9px; font-size: 12px; font-weight: 820; padding: 12px 17px; white-space: nowrap; }
.public-symbol { position: relative; width: 172px; height: 166px; display: grid; place-items: center; flex: none; }
.public-symbol span:first-child { border-radius: 22px; transform: rotate(-12deg); background: #d3edf0; color: #3b92a0; width: 144px; height: 144px; display: grid; place-items: center; font-size: 84px; }
.public-symbol span:last-child { position: absolute; bottom: -7px; left: -25px; background: #ffe8d6; color: #e6a17a; width: 65px; height: 65px; display: grid; place-items: center; font-size: 38px; transform: rotate(10deg); border-radius: 17px; }
.public-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.public-app { min-height: 95px; }
.public-app > div { min-width: 0; flex: 1; }

.login-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 15px; }
.modal-backdrop { background: #112b41b0; backdrop-filter: blur(5px); position: absolute; inset: 0; }
.login-dialog { position: relative; width: min(385px, 100%); padding: 24px 25px; background: white; border-radius: 18px; box-shadow: 0 20px 65px #001b3460; max-height: calc(100vh - 30px); overflow-y: auto; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog-heading h2 { font-size: 21px; letter-spacing: -.7px; margin: 6px 0 11px; }
.close-dialog { width: 30px; height: 30px; display: grid; place-items: center; background: #f8fafc; border: 1px solid #e0e8ef; border-radius: 8px; font-size: 20px; color: #5c7487; }
.login-form { display: flex; flex-direction: column; }
.login-form label { color: #5a7188; font-size: 12px; font-weight: 750; margin: 10px 0 5px; }
.login-form input { border: 1px solid #d5e1e9; color: #254258; border-radius: 8px; padding: 10px 11px; font-size: 14px; min-height: 41px; }
.login-form .action-primary { margin-top: 16px; min-height: 40px; }
.login-hint { font-size: 11px; color: #8c9eb0; margin: 12px 0 0; }
.footer { text-align: center; color: #9aabb7; font-size: 10px; padding: 14px 20px 19px; }
.sidebar-overlay, .mobile-menu-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.link-manager { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 18px 20px; }
.link-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.link-manager-heading h2 { font-size: 18px; margin: 4px 0 5px; }
.link-manager-heading p { font-size: 12px; color: #8499aa; margin: 0; }
.link-manager-fixed, .link-manager-row { display: flex; align-items: center; gap: 15px; min-height: 60px; padding: 10px 11px; border-top: 1px solid #e7eef3; }
.link-manager-fixed { color: #42647a; font-size: 12px; }
.link-manager-fixed strong { min-width: 115px; color: #23465e; }
.link-manager-fixed > span:nth-child(2) { flex: 1; color: #90a0ae; }
.link-manager-name { width: 115px; flex: none; display: flex; flex-direction: column; gap: 3px; }
.link-manager-name strong { font-size: 12px; }
.link-manager-name small { color: #8e9fb0; font-size: 10px; }
.link-manager-row input[type=url] { flex: 1; width: 100%; min-width: 90px; padding: 10px 11px; border-radius: 8px; border: 1px solid #d8e5ec; color: #294b60; font-size: 12px; }
.link-manager-row .mini-button { padding: 9px 14px; }
.link-manager-row .mini-button:disabled { opacity: .5; cursor: not-allowed; }
.link-manager-footnote { font-size: 11px; color: #889da9; background: #f4f8fb; padding: 11px 13px; border-radius: 8px; margin: 12px 0 0; }
.private-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.private-app { background: #fff; border: 1px solid #d6e4eb; border-radius: 11px; display: flex; align-items: center; min-height: 73px; padding: 12px 15px; gap: 13px; }
.private-app:hover { border-color: #86b9c4; background: #f9fdfd; }
.private-app > span:nth-child(2) { flex: 1; min-width: 0; }
.private-app strong { font-size: 13px; display: block; color: #264b61; margin-bottom: 5px; }
.private-app small { color: #7c94a4; font-size: 11px; }
.studio-lead { border: 1px solid #d7e7ec; background: linear-gradient(110deg,#e6f4f6,#f7fbff); border-radius: 12px; min-height: 116px; padding: 21px 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.studio-lead h2 { font-size: 20px; margin: 6px 0 6px; color: #18435b; }
.studio-lead p { color: #67859a; margin: 0; font-size: 12px; }
.studio-mark { font-size: 53px; padding: 0 18px; }
.studio-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; }
.studio-tab { border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: transparent; color: #70889b; font-size: 12px; font-weight: 750; padding: 12px 18px; white-space: nowrap; }
.studio-tab.active { border-color: var(--border); background: white; color: #1a5770; }
.studio-panel { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 19px 21px; min-height: 240px; }
.studio-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-panel-top h3 { font-size: 17px; margin: 0 0 5px; color: #24445c; }
.studio-panel-top p { margin: 0; color: #889dad; font-size: 11px; }
.studio-filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0 13px; }
.studio-filter input { padding: 10px 12px; min-width: 170px; flex: 1; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.studio-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.studio-chip { border: 1px solid var(--border); background: #f8fafc; color: #657f92; border-radius: 15px; padding: 7px 12px; font-size: 11px; }
.studio-chip.active { background: #1b5871; color: white; border-color: #1b5871; }
.emoji-grid { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 8px; }
.emoji-tile { border: 1px solid #e1eaf1; background: #fafcfe; border-radius: 9px; padding: 10px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 78px; min-width: 0; }
.emoji-tile:hover { background: #eef8fb; border-color: #92c4d1; }
.emoji-symbol { font-size: 26px; line-height: 1.2; }
.emoji-name { font-size: 10px; color: #647d90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.studio-feedback { margin: 12px 0 0; font-size: 11px; color: #62849a; }
.studio-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin: 18px 0; }
.studio-steps > div { border: 1px solid var(--border); border-radius: 10px; background: #fbfdff; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.studio-steps b { font-size: 12px; color: #4a9bab; }
.studio-steps strong { color: #28506b; font-size: 13px; }
.studio-steps span { color: #8899a8; font-size: 11px; }
.studio-note { background: #f4f8fb; border-radius: 9px; padding: 13px 15px; font-size: 12px; }
.studio-note strong { color: #28516b; }
.studio-note p { color: #7b93a5; margin: 7px 0 0; font-size: 11px; }
.template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.template-grid article { border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; }
.template-grid article > span { font-size: 10px; letter-spacing: .8px; color: #6795a8; }
.template-grid h4 { font-size: 14px; color: #294e66; margin: 7px 0; }
.template-grid p { font-size: 11px; color: #8197a9; margin: 0; }
.lotto-body { background: var(--canvas); }
.lotto-header { height: 57px; display: flex; align-items: center; gap: 18px; padding: 0 max(22px,calc((100vw - 1050px)/2)); background: white; border-bottom: 1px solid var(--border); }
.lotto-header > a:first-child { font-weight: 900; color: var(--navy); font-size: 17px; }
.lotto-header > a:first-child span { color: #efac80; }
.lotto-header > span { font-size: 10px; font-weight: 700; color: #7892a5; letter-spacing: .8px; }
.lotto-header > a:last-child { margin-left: auto; color: #32617a; font-size: 12px; }
.lotto-main { max-width: 1050px; margin: 25px auto; padding: 0 22px; }
.lotto-hero { padding: 28px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.lotto-hero h1 { font-size: 26px; margin: 9px 0; }
.lotto-hero p { font-size: 12px; color: #768ea0; }
.lotto-module-list { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.lotto-module-list > div { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 17px; display: flex; flex-direction: column; gap: 8px; }
.lotto-module-list b { color: #6596a9; font-size: 11px; }
.lotto-module-list strong { color: #294e66; font-size: 14px; }
.lotto-module-list small, .lotto-footnote { font-size: 11px; color: #8399aa; }
.lotto-footnote { padding-top: 13px; }

@media (max-width: 1100px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-muted { display: block; margin: 3px 0 0; }
  .public-apps { grid-template-columns: 1fr 1fr; }
  .emoji-grid { grid-template-columns: repeat(7,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sidebar { width: 160px; }
  .side-brand { font-size: 16px; }
  .admin .topbar, .admin .footer, .workspace-main { margin-left: 160px; }
  .workspace-main { padding: 19px 16px 40px; }
  .admin .topbar { padding: 0 16px; }
  .security-grid { grid-template-columns: 1fr; }
  .overview-art { display: none; }
  .summary-strip { flex-wrap: wrap; }
  .summary-strip > div { flex: 1 1 30%; }
  .summary-link { flex: 1 1 100%; border-left: 0; border-top: 1px solid #e7edf3; padding: 9px; }
  .public-symbol { width: 100px; }
  .public-symbol span:first-child { width: 110px; height: 110px; font-size: 62px; }
  .studio-steps { grid-template-columns: repeat(2,1fr); }
  .lotto-module-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
  .sidebar { display: flex; width: 245px; transform: translateX(-105%); transition: transform .18s ease; box-shadow: 0 18px 45px #09223833; }
  .menu-open .sidebar { transform: translateX(0); }
  .menu-open .sidebar-overlay:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 29; border: 0; width: 100%; height: 100%; background: #102d438a; }
  .mobile-menu-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 7px; align-items: center; justify-content: center; background: #fff; color: #21465e; width: 32px; height: 32px; flex: none; font-size: 16px; }
  .admin .topbar, .admin .footer, .workspace-main { margin-left: 0; }
  .topbar, .admin .topbar { padding: 0 13px; height: 54px; }
  .top-location { display: none; }
  .mobile-brand, .mobile-nav { display: flex; }
  .mobile-brand { font-size: 17px; }
  .mobile-nav { gap: 11px; }
  .mobile-nav a { font-size: 12px; font-weight: 700; color: #617b90; }
  .top-actions { gap: 7px; }
  .top-status, .top-admin { display: none; }
  .logout-button { padding: 8px; font-size: 11px; }
  .workspace-main, .public-main { padding: 17px 12px 32px; }
  .page-heading h1 { font-size: 22px; }
  .page-heading p { font-size: 11px; }
  .session-badge { display: none; }
  .overview-banner { min-height: 107px; padding: 17px 18px; }
  .overview-banner h2 { font-size: 17px; }
  .overview-banner p { font-size: 11px; }
  .summary-strip > div { flex: 1 1 33.33%; padding: 11px 9px; }
  .summary-strip strong { font-size: 12px; }
  .state-muted, .state-ok { font-size: 10px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-head > p { font-size: 10px; }
  .search-toolbar { flex-wrap: wrap; gap: 7px; padding: 9px; }
  .search-toolbar label { display: none; }
  .search-toolbar input { flex: 1; }
  .toolbar-link { border: 0; padding: 7px; }
  .apps-grid, .public-apps { grid-template-columns: 1fr; gap: 8px; }
  .app-row { min-height: 72px; }
  .bottom-note { flex-direction: column; align-items: flex-start; gap: 5px; }
  .bottom-note span { font-size: 10px; }
  .security-overview { grid-template-columns: repeat(2, 1fr); }
  .security-overview > div { padding: 11px 13px; }
  .security-overview > div:nth-child(3) { border-left: 0; border-top: 1px solid #e8eef3; }
  .security-overview > div:nth-child(4) { border-top: 1px solid #e8eef3; }
  .public-hero { padding: 27px 24px; min-height: 0; }
  .public-symbol, .only-desktop, .visitor-label { display: none; }
  .public-hero h1 { font-size: 30px; }
  .public-hero p { font-size: 12px; }
  .login-dialog { padding: 22px; }
  .app-detail-panel { padding: 19px; }
  .link-manager { padding: 15px 12px; }
  .link-manager-heading { align-items: flex-start; }
  .link-manager-heading h2 { font-size: 16px; }
  .link-manager-fixed { flex-wrap: wrap; gap: 6px; }
  .link-manager-fixed strong { min-width: 0; }
  .link-manager-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
  .link-manager-name { grid-column: 1 / -1; width: auto; flex-direction: row; justify-content: space-between; }
  .link-manager-row input[type=url] { grid-column: 1; }
  .link-manager-row button { grid-column: 2; }
  .private-strip, .template-grid { grid-template-columns: 1fr; }
  .emoji-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .studio-panel { padding: 14px; }
  .studio-lead { padding: 17px; }
  .studio-lead h2 { font-size: 17px; }
  .studio-mark { display: none; }
  .studio-filter input { flex-basis: 100%; }
  .lotto-hero { padding: 20px; }
  .lotto-hero h1 { font-size: 21px; }
  .lotto-header > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}
