:root {
  --navy: #18120d;
  --navy-mid: #261c14;
  --navy-soft: rgba(245, 180, 24, 0.16);
  --yellow: #f5b418;
  --yellow-hover: #ff8a00;
  --gold-gradient: linear-gradient(92deg, #ffc629 0%, #f5a300 52%, #ff7b00 100%);
  --sand: #f1e8d7;
  --ink: #18120d;
  --ink-body: #3d3228;
  --muted: #6e6052;
  --line: rgba(24, 18, 13, 0.11);
  --line-gold: rgba(245, 180, 24, 0.45);
  --paper: #faf5eb;
  --white: #ffffff;
  --danger: #c92a2a;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 4px 20px rgba(24, 18, 13, 0.05);
  --shadow-md: 0 14px 34px rgba(24, 18, 13, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--paper);
  color: var(--ink-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.hidden {
  display: none !important;
}

/* Shell */
.app-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}

.mobile-bar,
.sidebar-backdrop {
  display: none;
}

/* Minimal Executive Sidebar */
.sidebar {
  background: var(--navy);
  color: #ffffff;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  cursor: pointer;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-name {
  font-family: 'Oswald', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.18;
}

.brand-tag {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 2px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.nav-item.active,
.nav-item.active:hover {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.account-summary {
  padding: 4px 6px;
}

.open-access-badge {
  display: inline-block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}

.account-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
}

.account-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1px;
  margin-bottom: 10px;
}

.account-links {
  display: flex;
  gap: 14px;
}

.text-link-light {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link-light:hover {
  color: var(--yellow);
}

/* Main Canvas */
.main-area {
  min-width: 0;
}

.view-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 44px 72px;
}

/* Editorial Page Header */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-eyebrow {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a5b00;
  margin-bottom: 8px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  max-width: 720px;
}

.page-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 680px;
  margin-top: 8px;
}

/* Unified Filter & Search Bar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab-btn {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--line-gold);
  color: var(--ink);
}

.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.search-input {
  width: 290px;
  max-width: 100%;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 13.8px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--navy);
}

/* Buttons */
.btn-yellow, .btn-navy, .btn-outline, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.8px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}
.btn-yellow:hover {
  background: var(--yellow-hover);
}

.btn-navy {
  background: var(--navy);
  color: #ffffff;
}
.btn-navy:hover {
  background: var(--navy-mid);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--navy);
}

.btn-danger {
  background: #fff5f5;
  color: var(--danger);
  border-color: #ffc9c9;
}
.btn-danger:hover {
  background: #ffe3e3;
}

.small {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 9px;
}

.full {
  width: 100%;
}

/* Empty Shelf Card */
.empty-shelf-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  max-width: 760px;
}

.empty-shelf-badge {
  display: inline-block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--navy-soft);
  color: #9a5b00;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.empty-shelf-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.empty-shelf-desc {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 640px;
  margin-bottom: 22px;
}

.empty-shelf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Clean 3-Column E-Commerce Skill Showcase Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-gold);
}

/* Clean Vertical Video Showcase Area */
.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 11.8;
  background: #0a0806;
  overflow: hidden;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.video-stage.is-landscape {
  background: radial-gradient(circle at 50% 50%, #241c15 0%, #0d0a07 100%);
}

.video-stage.is-landscape video {
  object-fit: contain;
  object-position: center;
}

.format-pill-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(24, 18, 13, 0.82);
  color: var(--yellow);
  border: 1px solid rgba(245, 180, 24, 0.4);
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  pointer-events: none;
}

.video-play-trigger {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 18, 13, 0) 55%, rgba(24, 18, 13, 0.58) 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, opacity 0.18s ease;
}

.video-stage.playing .video-play-trigger {
  opacity: 0;
  pointer-events: none;
}

.play-btn-minimal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.16s ease, background 0.16s ease;
}

.play-btn-minimal svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  fill: currentColor;
}

.video-play-trigger:hover .play-btn-minimal {
  transform: scale(1.08);
  background: var(--yellow);
}

.video-pause-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(24, 18, 13, 0.8);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  display: none;
  z-index: 4;
}

.video-stage.playing .video-pause-chip {
  display: inline-block;
}

/* Clean Card Body */
.skill-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.skill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.status-dot {
  color: var(--danger);
}

.skill-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.skill-desc {
  font-size: 13.8px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.skill-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.access-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.access-label.unlocked {
  color: #0f766e;
}

/* Prompts 2-Column Minimal Grid */
.prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.prompt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.prompt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}

.prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.code-pill {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--navy-soft);
  color: #9a5b00;
}

.cat-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.prompt-title {
  font-size: 17.5px;
  font-weight: 700;
  margin-top: 2px;
}

.prompt-sub {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.prompt-action-text {
  font-weight: 700;
  color: var(--navy);
}

/* Guide Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.step-index {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #9a5b00;
  margin-bottom: 10px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.info-table th, .info-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13.8px;
}

.info-table th {
  background: var(--sand);
  font-weight: 700;
  color: var(--ink);
}

/* Modals */
.modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(24, 18, 13, 0.3);
  margin: auto;
  max-height: 92vh;
  overflow: auto;
}

.modal::backdrop {
  background: rgba(24, 18, 13, 0.6);
  backdrop-filter: blur(3px);
}

.modal-wide {
  width: min(1000px, 95vw);
}

.modal-medium {
  width: min(780px, 95vw);
}

.modal-auth {
  width: min(440px, 94vw);
}

.modal-head {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.close-x {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
}
.close-x:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.modal-content {
  padding: 26px 28px 30px;
}

/* Skill Detail Modal */
.skill-detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.skill-detail-layout.is-landscape {
  grid-template-columns: 1fr;
  gap: 24px;
}

.detail-video-wrap {
  background: #0a0806;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  position: sticky;
  top: 90px;
}

.skill-detail-layout.is-landscape .detail-video-wrap {
  aspect-ratio: 16 / 9;
  max-height: 460px;
  width: 100%;
  position: static;
}

.detail-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.clean-list {
  list-style: disc;
  padding-left: 18px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.install-panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.install-step-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 10px;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-body);
  font-weight: 600;
  font-size: 12.8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.platform-tab:hover {
  border-color: var(--line-gold);
  background: var(--white);
  color: var(--ink);
}

.platform-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  font-weight: 700;
}

.platform-tab .plat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(24, 18, 13, 0.22);
  flex-shrink: 0;
}

.platform-tab.active .plat-dot {
  background: var(--yellow);
}

.manual-paths-box {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manual-path-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 12.8px;
  color: var(--muted);
}

.manual-path-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.manual-path-row strong {
  color: var(--ink);
  font-size: 13px;
}

.manual-path-row.is-current strong {
  color: #9a5b00;
}

.lock-gate {
  background: var(--navy);
  color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}

.lock-gate h4 {
  color: #ffffff;
  font-size: 17px;
  margin-bottom: 6px;
}

.lock-gate p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin-bottom: 16px;
}

.code-snippet {
  background: #18120d;
  color: #faf5eb;
  padding: 13px 16px;
  border-radius: 10px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 13.5px;
  line-height: 1.58;
  overflow-x: auto;
  margin: 6px 0 10px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Prompt Modal Form */
.var-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.var-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group.span-2 {
  grid-column: span 2;
}

.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.field-input, .field-textarea, .field-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(24, 18, 13, 0.18);
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: var(--navy);
}

.prompt-editor-area {
  width: 100%;
  min-height: 260px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(24, 18, 13, 0.18);
  background: var(--white);
  color: var(--ink);
  font-size: 13.8px;
  line-height: 1.62;
  resize: vertical;
  outline: none;
}

.prompt-editor-area:focus {
  border-color: var(--navy);
}

/* Studio CMS */
.surface-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
  border-bottom: none;
}

.upload-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: 0 12px 28px rgba(24, 18, 13, 0.25);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1120px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .prompts-grid,
  .steps-grid,
  .skill-detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-video-wrap {
    max-width: 300px;
    margin: 0 auto;
    position: static;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--navy);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 35;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.025em;
    font-size: 15px;
    text-transform: uppercase;
  }
  .mobile-brand img {
    width: 28px;
    height: 28px;
  }
  .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .sidebar {
    position: fixed;
    left: -266px;
    top: 0;
    bottom: 0;
    width: 256px;
    transition: left 0.2s ease;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(24, 18, 13, 0.55);
    z-index: 38;
  }
  .view-container {
    padding: 24px 16px 56px;
  }
  .empty-shelf-card {
    padding: 28px 20px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .var-grid {
    grid-template-columns: 1fr;
  }
  .field-group.span-2 {
    grid-column: span 1;
  }
}

/* Full-Screen Private Portal Login Gate */
.login-gate-screen {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #261c14 0%, var(--navy) 62%, #0e0a07 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-gate-card {
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border-radius: 20px;
  padding: 36px 34px 32px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36);
}

.login-gate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.login-gate-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
}

.login-gate-brand-name {
  font-family: 'Oswald', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.025em;
  color: var(--navy);
  line-height: 1.2;
}

.login-gate-brand-tag {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.login-gate-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.8px;
  color: var(--muted);
  text-align: center;
}

/* Self-Service Concept Workflow Guide inside Studio */
.workflow-guide-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 18px;
}

.workflow-guide-box summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workflow-guide-box summary::-webkit-details-marker {
  display: none;
}

.workflow-steps-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.workflow-step-mini {
  background: var(--paper);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.2px;
  color: var(--muted);
}

.workflow-step-mini > strong:first-child {
  display: block;
  color: var(--ink);
  font-size: 13.8px;
  margin-bottom: 4px;
}

.workflow-step-mini strong {
  color: var(--ink);
}

@media (max-width: 780px) {
  .workflow-steps-mini {
    grid-template-columns: 1fr;
  }
}

/* Offline copy: preserve layout; prevent long installation paths overflowing. */
.info-table code{overflow-wrap:anywhere}.surface-card:has(.info-table){overflow-x:auto}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
