/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 4%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34rem),
    radial-gradient(ellipse at 92% 82%, color-mix(in srgb, var(--accent-strong) 7%, transparent), transparent 38rem),
    var(--canvas);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
:root {
  --canvas: #1c1a18;
  --surface: #24211e;
  --surface-raised: #2d2925;
  --surface-soft: #211e1b;
  --text: #f1ece4;
  --muted: #b7ab9c;
  --border: rgba(239, 222, 200, 0.12);
  --border-hover: rgba(239, 222, 200, 0.23);
  --blue: #c58a5b;
  --blue-soft: rgba(197, 138, 91, 0.12);
  --green: #ddb184;
  --code: #171513;
  --red: #f87171;
  --accent-glow: rgba(197, 138, 91, 0.24);
  --surface-elevated: #332e29;
  --text-strong: #f6f1e9;
  --text-secondary: #d2c6b8;
  --text-dim: #928679;
  --accent: #c58a5b;
  --accent-strong: #ddb184;
  --accent-contrast: #241b14;
  --app-canvas: var(--canvas);
  --app-surface: var(--surface);
  --app-surface-raised: var(--surface-raised);
  --app-surface-elevated: var(--surface-elevated);
  --app-text: var(--text);
  --app-text-secondary: var(--text-secondary);
  --app-muted: var(--muted);
  --app-border: var(--border);
  --app-accent: var(--accent);
  --app-accent-strong: var(--accent-strong);
  --app-accent-contrast: var(--accent-contrast);
}
html[data-theme="light"] {
  color-scheme: light;
  --canvas: #f3eee6;
  --surface: #fffdf9;
  --surface-raised: #eee7dc;
  --surface-soft: #f8f3eb;
  --text: #332c25;
  --muted: #72685d;
  --border: rgba(66, 48, 32, 0.14);
  --border-hover: rgba(66, 48, 32, 0.25);
  --blue: #9b5e37;
  --blue-soft: rgba(155, 94, 55, 0.1);
  --green: #855333;
  --code: #f0e9de;
  --red: #a53e32;
  --accent-glow: rgba(155, 94, 55, 0.18);
  --surface-elevated: #ffffff;
  --text-strong: #28221d;
  --text-secondary: #50473e;
  --text-dim: #887c6f;
  --accent: #9b5e37;
  --accent-strong: #78472c;
  --accent-contrast: #fffaf4;
}
html[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 12% 4%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 34rem),
    radial-gradient(ellipse at 92% 82%, color-mix(in srgb, var(--accent-strong) 6%, transparent), transparent 38rem),
    var(--canvas);
  color: var(--text);
}
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
  color: var(--text-strong);
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #667085;
}
button,
select,
input,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 14px;
}
button {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}
button:hover {
  border-color: var(--border-hover);
  background: var(--surface-raised);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--text-strong);
}
h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.3;
  color: var(--text-strong);
}
h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}
pre {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
}
small {
  font-size: 14px;
}
.subtle {
  color: var(--muted);
}
input::placeholder,
textarea::placeholder {
  color: #718096;
  opacity: 1;
}
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-strong);
}
.brand-icon {
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.6px;
  box-shadow: 0 0 16px var(--accent-glow);
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 16px;
  color: #475569;
}
.milestone {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 36px 40px 20px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.intro .subtle {
  margin-top: 10px;
  font-size: 15px;
}
.session-label {
  font-size: 14px;
  white-space: nowrap;
}
.session-label small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0 14px;
}
.dot {
  display: inline-block;
  background: var(--blue);
  width: 6px;
  height: 6px;
  border-radius: 100%;
  margin-right: 8px;
  box-shadow: 0 0 6px var(--blue);
}
.notice {
  display: flex;
  gap: 16px;
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  background: var(--blue-soft);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 24px;
  color: #cbd5e1;
}
.notice strong {
  white-space: nowrap;
  color: var(--green);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  gap: 20px;
  background: rgba(11, 14, 21, 0.6);
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 16px 4px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button:hover {
  color: #f1f5f9;
  background: transparent;
  transform: none;
}
.tabs button.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}
.tabs span {
  font-weight: normal;
  margin-left: 4px;
}
.problem-content {
  padding: 26px;
}
.problem-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.easy {
  background: var(--blue-soft);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid var(--border-hover);
}
.problem-content > p {
  margin-top: 16px;
  line-height: 1.65;
  color: #cbd5e1;
}
.problem-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}
.problem-content ul {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #cbd5e1;
}
.example {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 14px;
  overflow: hidden;
}
.example-title {
  padding: 8px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  color: #e2e8f0;
}
.io {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--code);
}
.io > div {
  padding: 12px 14px;
}
.io > div + div {
  border-left: 1px solid var(--border);
}
.io span {
  font-size: 10px;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 700;
}
.example > p {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
}
.right-column {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 21, 0.6);
}
.editor-toolbar label {
  font-size: 12px;
  color: var(--muted);
}
.editor-toolbar select {
  font-size: 14px;
  min-height: 36px;
  padding: 4px 24px 4px 10px;
  background: var(--surface-raised);
}
.save-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.editor-loading {
  padding: 24px;
  color: var(--muted);
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(11, 14, 21, 0.4);
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 8px 0;
  font-size: 12px;
}
.actions {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: rgba(11, 14, 21, 0.4);
}
.actions p {
  margin-right: auto;
  font-size: 12px;
  color: var(--muted);
}
.actions strong {
  font-weight: normal;
}
.primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent)) !important;
  border-color: var(--accent) !important;
  color: var(--accent-contrast) !important;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.results {
  padding: 18px 20px;
}
.results-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.results-title span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 12px;
  color: var(--muted);
  font-size: 14px;
}
.empty p {
  max-width: 390px;
  font-size: 12px;
}
.terminal-icon {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 20px;
  color: var(--blue);
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 2px;
}
.empty b {
  color: var(--text);
  font-size: 14px;
}
.error {
  padding: 12px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 14px;
}
.verdict {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 12px;
}
.verdict span {
  font-size: 12px;
  color: var(--muted);
}
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 12px 0;
  font-size: 14px;
}
.case > b {
  text-align: right;
}
.pass {
  color: var(--green);
}
.fail {
  color: var(--red);
}
.case details {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
}
.case summary {
  cursor: pointer;
  padding: 8px 0;
  min-height: 32px;
}
.case-output {
  background: var(--code);
  border-radius: 6px;
  padding: 12px;
  border: 1px solid var(--border);
}
.case-output p {
  margin-top: 8px;
}
.history {
  list-style: none;
  padding: 0 !important;
}
.history li {
  margin: 12px 0;
}
.history button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  text-align: left;
  gap: 12px;
  padding: 12px;
}
.history small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: normal;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.loading {
  padding: 80px 32px;
  max-width: 900px;
  margin: auto;
}
.loading h1 {
  margin: 24px 0 12px;
}
.loading button {
  margin-top: 20px;
}
::selection {
  background: var(--blue-soft);
  color: var(--text-strong);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 900px) {
  .topbar {
    padding: 0 24px;
  }
  .milestone {
    display: none;
  }
  .shell {
    padding: 28px 24px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .intro {
    align-items: flex-start;
  }
  .session-label {
    display: none;
  }
  .notice {
    flex-direction: column;
    gap: 4px;
  }
  .problem-content {
    padding: 24px;
  }
  .page-footer {
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 480px) {
  .topbar {
    height: 68px;
    padding: 0 16px;
    gap: 20px;
  }
  .brand {
    font-size: 19px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .breadcrumb span {
    margin: 0 6px;
  }
  .shell {
    padding: 24px 16px;
  }
  .intro h1 {
    font-size: 28px;
  }
  .editor-toolbar {
    gap: 8px;
    padding: 10px;
  }
  .save-status {
    max-width: 100px;
    font-size: 11px;
    text-align: right;
  }
  .actions {
    flex-wrap: wrap;
    padding: 12px;
  }
  .actions p {
    width: 100%;
    margin-bottom: 4px;
  }
  .actions button {
    flex: 1 1;
  }
  .problem-content {
    padding: 20px;
  }
  .page-footer {
    font-size: 11px;
  }
  .verdict {
    flex-direction: column;
    gap: 4px;
  }
}

html[data-theme="light"] .topbar {
  border-bottom-color: var(--border);
  background: var(--surface);
}
html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .milestone,
html[data-theme="light"] .subtle,
html[data-theme="light"] .problem-meta,
html[data-theme="light"] .editor-toolbar label,
html[data-theme="light"] .save-status,
html[data-theme="light"] .editor-loading,
html[data-theme="light"] .editor-footer,
html[data-theme="light"] .text-button,
html[data-theme="light"] .actions p,
html[data-theme="light"] .results-title span,
html[data-theme="light"] .empty,
html[data-theme="light"] .page-footer,
html[data-theme="light"] .verdict span,
html[data-theme="light"] .case details,
html[data-theme="light"] .history small {
  color: var(--muted);
}
html[data-theme="light"] .notice {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text-secondary);
}
html[data-theme="light"] .tabs,
html[data-theme="light"] .editor-toolbar,
html[data-theme="light"] .editor-footer,
html[data-theme="light"] .actions {
  background: var(--surface-raised);
}
html[data-theme="light"] .tabs button:hover {
  color: var(--text-strong);
}
html[data-theme="light"] .problem-content > p,
html[data-theme="light"] .problem-content ul {
  color: var(--text-secondary);
}
html[data-theme="light"] .example-title {
  background: var(--surface-raised);
  color: var(--text-strong);
}
html[data-theme="light"] .io span {
  color: var(--muted);
}
html[data-theme="light"] .error {
  border-color: #efc6c6;
  background: #fff1f1;
  color: #9b2525;
}
html[data-theme="light"] .primary {
  color: #fff !important;
}
html[data-theme="light"] .panel:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

