:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eef5fc;
  background: #080f1c;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #080f1c; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #45d9ef;
  outline-offset: 3px;
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, p { margin: 0; }
p { color: #97a8bd; line-height: 1.55; }
h1 { color: #f5f8fc; font-size: clamp(29px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.15; }
h2 { color: #f5f8fc; font-size: 19px; letter-spacing: -.02em; }
.layout { display: flex; min-height: 100vh; }
.mobile-header, .sidebar-backdrop, .menu-close { display: none; }
.sidebar { display: flex; flex: 0 0 244px; flex-direction: column; min-height: 100vh; padding: 27px 16px 18px; background: #0c1627; border-right: 1px solid #202f43; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 0 10px; }
.brand img { display: block; width: 172px; max-width: 100%; height: auto; }
.brand span { color: #73869e; font-size: 9px; font-weight: 750; letter-spacing: .17em; }
.navigation { display: flex; flex-direction: column; gap: 4px; margin-top: 54px; }
.nav-label { padding: 0 12px 10px; color: #657b95; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.navigation a { display: flex; align-items: center; gap: 13px; min-height: 45px; padding: 10px 12px; border-radius: 6px; color: #a9bace; font-size: 13px; font-weight: 600; }
.navigation a:hover, .navigation a:focus-visible { background: #17283e; color: #fff; }
.navigation a:hover svg, .navigation a:focus-visible svg { color: #24d1e8; }
.navigation svg { flex: 0 0 19px; width: 19px; height: 19px; }
.sidebar-bottom { margin-top: auto; padding: 22px 4px 0; }
.sidebar-status { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 14px 8px; border-top: 1px solid #223147; color: #8296ad; font-size: 12px; }
.status-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #22d3e6; }
.sidebar-bottom form { margin: 0; }
.workspace { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 0 clamp(24px, 4vw, 56px); border-bottom: 1px solid #1b2b3f; color: #d3deeb; font-size: 13px; }
.topbar-label { color: #72859c; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.topbar-divider { padding: 0 12px; color: #465a72; }
.topbar-badge { color: #82a2b9; font-size: 10px; font-weight: 750; letter-spacing: .11em; white-space: nowrap; }
.content { flex: 1; width: min(100%, 1500px); margin: 0 auto; padding: 44px clamp(24px, 4vw, 56px) 60px; }
.overview { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; scroll-margin-top: 24px; }
.overview h1, .auth-card h1, .confirm-card h1 { margin: 9px 0 10px; }
.overview > div > p:last-child { font-size: 14px; }
.eyebrow { color: #24d2e8; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 750; line-height: 1.25; text-align: center; }
.button-primary { background: #1bcce3; color: #061827; }
.button-primary:hover { background: #66e4f2; }
.button-plus { font-size: 20px; font-weight: 400; line-height: .8; }
.button-signout { justify-content: flex-start; width: 100%; border-color: #30455d; background: #16263a; color: #d3e2ef; }
.button-signout svg { width: 18px; height: 18px; }
.button-signout:hover { border-color: #49657e; background: #20354c; color: #fff; }
.button-secondary { border-color: #31455d; background: #17253a; color: #dae6f3; }
.button-secondary:hover { background: #23364e; }
.button-danger { background: #d75c70; color: #fff; }
.button-danger:hover { background: #eb7386; }
.button-full { width: 100%; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 31px 0 28px; }
.summary-card { display: flex; align-items: flex-start; gap: 15px; min-height: 111px; padding: 19px; border: 1px solid #203249; border-radius: 8px; background: #101c2e; }
.summary-icon, .auth-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 6px; background: #123849; color: #28d3e9; }
.summary-card > div { display: flex; flex-direction: column; min-width: 0; }
.summary-label { color: #8297ae; font-size: 10px; font-weight: 750; letter-spacing: .09em; }
.summary-card strong { margin-top: 5px; font-size: 22px; line-height: 1.2; }
.summary-detail { margin-top: 5px; color: #8da1b7; font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: 18px; }
.panel { min-width: 0; border: 1px solid #203249; border-radius: 8px; background: #101c2e; }
.publish-panel, .releases-panel { padding: 25px; scroll-margin-top: 20px; }
.section-heading h2 { margin: 7px 0; }
.section-heading > div > p:last-child { font-size: 13px; }
.section-heading-row { display: flex; justify-content: space-between; gap: 14px; }
.count-badge { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid #2a4057; border-radius: 6px; background: #16283d; color: #c4d7e8; font-size: 12px; font-weight: 700; }
.publish-form { margin-top: 24px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); gap: 14px; }
.field { min-width: 0; margin-bottom: 17px; }
label { display: block; margin-bottom: 8px; color: #dce7f3; font-size: 12px; font-weight: 700; }
.optional { margin-left: 4px; color: #7d92a9; font-size: 11px; font-weight: 400; }
input:not([type="hidden"]), textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #2b3e55; border-radius: 6px; background: #0b1524; color: #f5f9fc; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #677e97; opacity: 1; }
input:focus, textarea:focus { border-color: #21cde5; }
input[type="file"] { padding: 7px; color: #9db0c5; font-size: 12px; }
input[type="file"]::file-selector-button { min-height: 28px; margin-right: 10px; padding: 5px 10px; border: 0; border-radius: 4px; background: #23354b; color: #e6f0fa; font: inherit; font-weight: 650; cursor: pointer; }
textarea { resize: vertical; }
.field-help { margin-top: 7px; color: #8296ac; font-size: 11px; }
.publish-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 5px; }
.publish-footer p { max-width: 220px; font-size: 11px; }
.publish-footer .button { flex-shrink: 0; }
.app-list { margin-top: 20px; }
.app { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; border-top: 1px solid #26364a; }
.app-icon { flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #2c4059; border-radius: 8px; object-fit: cover; background: #091626; }
.app-info { flex: 1; min-width: 0; }
.app-info strong, .app-info > span { display: block; overflow-wrap: anywhere; }
.app-info strong { color: #ecf4fc; font-size: 13px; }
.app-info > span { margin-top: 5px; color: #8ca2b9; font-size: 11px; }
.app-info p { margin-top: 7px; color: #93a6ba; font-size: 12px; overflow-wrap: anywhere; }
.app > form, .app-actions { flex: none; margin: 0; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-actions form { margin: 0; }
.app-package { font-family: monospace; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-style: normal; padding: 2px 8px; border: 1px solid #31455d; border-radius: 99px; background: #17253a; color: #cfe0f1; font-size: 10px; }
.badge-hidden { border-color: #8a6a2f; background: #3a2f17; color: #ffd98a; }
.badge-featured { border-color: #2d6aa8; background: #12304d; color: #9fd0ff; }
.check-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid #2b3e55; border-radius: 6px; background: #0b1524; font-size: 12px; line-height: 1.35; font-weight: 500; color: #c8d3df; cursor: pointer; }
.check:hover { border-color: #3a5573; }
.check input[type="checkbox"] { flex: 0 0 18px; width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: #21cde5; }
@media (max-width: 600px) { .check-row { grid-template-columns: 1fr; gap: 10px; } }
input::placeholder { text-overflow: ellipsis; }
@media (max-width: 900px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.shot-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.shot { display: flex; flex-direction: column; gap: 6px; width: 90px; }
.shot img { width: 90px; height: 120px; object-fit: cover; border: 1px solid #2c4059; border-radius: 6px; }
.history { margin-top: 24px; padding-top: 18px; border-top: 1px solid #26364a; }
.history h3 { font-size: 14px; color: #ecf4fc; }
.history-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-top: 1px solid #26364a; color: #93a6ba; font-size: 12px; }
.history-row > span { flex: 1; min-width: 160px; }
.history-row form { margin: 0; }
.button-edit { min-height: 44px; padding: 8px 11px; font-size: 11px; }
.app-order { flex: 0 0 34px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.app-order form { margin: 0; }
.order-button { width: 34px; height: 26px; border: 1px solid #31455d; border-radius: 6px; background: #17253a; color: #dae6f3; font-size: 10px; cursor: pointer; }
.order-button:hover:not(:disabled) { background: #23364e; }
.order-button:disabled { opacity: .3; cursor: default; }
.order-number { color: #8ca2b9; font-size: 12px; font-weight: 700; cursor: grab; padding: 2px 0; user-select: none; }
.order-help { margin-top: 12px; color: #8ca2b9; font-size: 12px; }
.app.dragging { opacity: .4; }
.app.drop-target { border-top-color: #3fa9ff; }
.button-remove { min-height: 44px; padding: 8px 11px; border-color: #3c4656; background: transparent; color: #c8d3df; font-size: 11px; }
.button-remove:hover { border-color: #a94c60; background: #39212c; color: #ffd1d8; }
.empty { display: flex; align-items: center; flex-direction: column; padding: 50px 16px 28px; text-align: center; }
.empty-icon { display: grid; width: 42px; height: 42px; margin-bottom: 16px; place-items: center; border: 1px solid #29475e; border-radius: 8px; color: #36d1e6; font-size: 25px; }
.empty strong { color: #dae6f3; font-size: 14px; }
.empty p { margin-top: 6px; font-size: 12px; }
.empty a { margin-top: 14px; color: #48d8ed; font-size: 12px; font-weight: 700; }
.notice { margin-bottom: 22px; padding: 13px 15px; border: 1px solid; border-radius: 6px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.success { border-color: #286d60; background: #11352f; color: #b6f5dd; }
.error { border-color: #864459; background: #391e2a; color: #ffd1db; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(24px, 4vw, 56px); border-top: 1px solid #1c2b3e; }
.footer > div { display: flex; align-items: center; gap: 10px; }
.footer img { width: 30px; height: 30px; border-radius: 6px; }
.footer strong, .footer div span span { display: block; }
.footer strong { color: #cbd9e7; font-size: 11px; }
.footer div span span, .footer p { color: #71859b; font-size: 10px; }
.footer p { text-align: right; }
.auth-layout { display: flex; min-height: 100vh; flex-direction: column; }
.auth-header { padding: 30px clamp(24px, 5vw, 64px); border-bottom: 1px solid #1c2b3e; }
.auth-header .brand { display: inline-flex; padding: 0; }
.auth-main { display: flex; flex: 1; flex-direction: column; justify-content: center; width: min(100% - 40px, 440px); margin: 0 auto; padding: 60px 0; }
.auth-card { padding: 36px; border: 1px solid #203249; border-radius: 8px; background: #101c2e; }
.auth-icon { margin-bottom: 25px; }
.auth-card > p:last-of-type { font-size: 13px; }
.auth-form { margin-top: 25px; }
.auth-form .button { margin-top: 18px; }
.confirm-card { max-width: 620px; padding: 32px; }
.confirm-card > p:not(.eyebrow) { font-size: 14px; }
.confirm-card strong { color: #e8f4ff; overflow-wrap: anywhere; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.confirm-actions form { margin: 0; }
@media (min-width: 761px) {
  .layout { height: 100vh; height: 100dvh; min-height: 0; }
  .sidebar { height: 100%; min-height: 0; overflow-y: auto; }
  .workspace { height: 100%; min-height: 0; }
  .topbar, .workspace .footer { flex-shrink: 0; }
  .content { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
}
@media (min-width: 1101px) and (max-height: 900px) {
  .topbar { min-height: 60px; }
  .content { padding-top: 24px; padding-bottom: 32px; }
  .summary-grid { margin: 20px 0; }
  .summary-card { min-height: 90px; padding: 14px; }
  .publish-panel, .releases-panel { padding: 20px; }
  .publish-form { margin-top: 16px; }
  .field { margin-bottom: 12px; }
  .app-list { margin-top: 14px; }
  .app { padding: 12px 0; }
  .workspace .footer { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar { flex: none; min-height: 0; padding: 18px 20px 10px; border-right: 0; border-bottom: 1px solid #202f43; }
  .brand { padding: 0; }
  .brand img { width: 150px; }
  .navigation { flex-direction: row; gap: 4px; margin-top: 18px; overflow-x: auto; }
  .nav-label, .sidebar-status { display: none; }
  .navigation a { flex: 0 0 auto; gap: 7px; padding: 9px 10px; font-size: 12px; }
  .navigation svg { width: 17px; height: 17px; }
  .sidebar-bottom { margin: 0; padding: 4px 0 0; }
  .sidebar-bottom .button { min-height: 36px; }
  .topbar { min-height: 54px; padding: 0 20px; }
  .topbar-badge { display: none; }
  .content { padding: 30px 20px 45px; }
  .overview { align-items: flex-start; flex-direction: column; }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 24px 0; }
  .summary-card { flex-direction: column; gap: 10px; padding: 13px; }
  .summary-card strong { font-size: 18px; }
  .summary-label { font-size: 9px; }
  .summary-detail { font-size: 11px; }
  .footer { padding: 20px; }
  .js .mobile-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 12px 20px; border-bottom: 1px solid #202f43; background: #0c1627; }
  .js .mobile-brand img { display: block; width: 145px; max-width: 100%; height: auto; }
  .js .menu-toggle, .js .menu-close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid #2a4057; border-radius: 6px; background: #15253a; color: #e6f4fb; font-size: 12px; font-weight: 700; }
  .js .sidebar-backdrop { position: fixed; z-index: 40; inset: 0; display: block; width: 100%; border: 0; background: #020814b8; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .js .sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; width: min(290px, 85vw); height: 100vh; height: 100dvh; min-height: 0; padding: 27px 16px 18px; border-right: 1px solid #202f43; border-bottom: 0; overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .2s; }
  .js .menu-close { position: absolute; top: 17px; right: 12px; }
  .js .sidebar .brand { padding: 0 45px 0 10px; }
  .js .sidebar .brand img { width: 172px; }
  .js .navigation { flex-direction: column; gap: 4px; margin-top: 54px; overflow: visible; }
  .js .navigation a { flex: initial; gap: 13px; padding: 10px 12px; font-size: 13px; }
  .js .nav-label, .js .sidebar-status { display: flex; }
  .js .sidebar-bottom { margin-top: auto; padding: 22px 4px 0; }
  .js .sidebar-bottom .button { min-height: 44px; }
  .js .nav-open { overflow: hidden; }
  .js .nav-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .js .nav-open .sidebar { transform: translateX(0); visibility: visible; }
}
@media (max-width: 460px) {
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { flex-direction: row; min-height: 0; }
  .publish-panel, .releases-panel, .auth-card, .confirm-card { padding: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .publish-footer { align-items: stretch; flex-direction: column; }
  .publish-footer p { max-width: none; }
  .app { flex-wrap: wrap; }
  .app > .app-actions { flex-basis: calc(100% - 95px); margin-left: 95px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .footer p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .js .sidebar, .js .sidebar-backdrop { transition: none; }
}
