:root {
  color-scheme: dark;
  --background: #07070d;
  --surface: #0d0b16;
  --surface-raised: #12101f;
  --ink: #f3efff;
  --muted: #a7a0bc;
  --line: #6d4aff;
  --line-soft: rgba(166, 132, 255, 0.34);
  --accent: #c084fc;
  --accent-strong: #e9d5ff;
  --terminal-green: #8cffba;
  --terminal-cyan: #67e8f9;
  --tag: #1d1731;
  --shadow: rgba(113, 64, 255, 0.22);
}

/* Base */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(192, 132, 252, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.035) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(109, 74, 255, 0.2), transparent 34rem);
  background-size: 24px 24px, 24px 24px, auto;
  content: "";
}

a {
  color: inherit;
}

/* Terminal Shell */

.terminal {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto;
  border: 1px solid rgba(201, 178, 255, 0.42);
  border-radius: 16px;
  background: rgba(7, 7, 13, 0.88);
  box-shadow:
    0 0 0 1px rgba(109, 74, 255, 0.16),
    18px 18px 0 rgba(113, 64, 255, 0.15);
  backdrop-filter: blur(12px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, rgba(21, 17, 34, 0.96), rgba(12, 10, 21, 0.9));
}

.workspace-tabs {
  display: flex;
  align-self: stretch;
  align-items: center;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  margin-left: 6px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.workspace-tabs::-webkit-scrollbar {
  display: none;
}

.workspace-tab {
  --workspace-tab-bg: #141022;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 9px 9px 6px 6px;
  background: var(--workspace-tab-bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  transform: skewX(-8deg);
  transform-origin: bottom center;
  cursor: pointer;
  white-space: nowrap;
}

.workspace-tab.is-active {
  --workspace-tab-bg: rgba(7, 7, 13, 0.88);
  background: var(--workspace-tab-bg);
  color: var(--accent-strong);
}

.workspace-tab-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  transform: skewX(8deg);
}

.workspace-tab.is-active .workspace-tab-label::before {
  color: var(--terminal-green);
  content: "> ";
}

.terminal-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.terminal-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(16, 13, 26, 0.72);
  color: rgba(233, 213, 255, 0.8);
  opacity: 0.8;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.terminal-control:hover,
.terminal-control:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.terminal-control.is-minimize {
  background: #facc15;
  border-color: #fde68a;
  color: #1f1300;
}

.terminal-control.is-maximize {
  background: #22c55e;
  border-color: #86efac;
  color: #03140a;
}

.terminal-control.is-close {
  background: #fb7185;
  border-color: #fecdd3;
  color: #26040a;
}

.terminal-control span {
  display: block;
}

.terminal-control.is-minimize span {
  width: 7px;
  border-top: 1.5px solid currentColor;
}

.terminal-control.is-maximize span {
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.terminal-control.is-close span {
  position: relative;
  width: 7px;
  height: 7px;
}

.terminal-control.is-close span::before,
.terminal-control.is-close span::after {
  position: absolute;
  top: 3px;
  left: 0;
  width: 7px;
  border-top: 1.5px solid currentColor;
  content: "";
}

.terminal-control.is-close span::before {
  transform: rotate(45deg);
}

.terminal-control.is-close span::after {
  transform: rotate(-45deg);
}

.shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 32px;
  width: 100%;
  margin: 0;
  padding: 32px;
}

.shell::after {
  display: none;
}

.terminal.is-reconnecting .shell {
  position: relative;
  min-height: 360px;
}

.terminal.is-reconnecting .shell > * {
  visibility: hidden;
}

.terminal.is-reconnecting .shell::after {
  position: absolute;
  inset: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #05040a;
  color: var(--terminal-green);
  font-weight: 800;
  content: "session terminated... reconnecting";
}

.terminal.is-minimized .shell {
  min-height: 280px;
}

.terminal.is-minimized .shell > * {
  display: none;
}

.terminal.is-focus-mode .shell {
  grid-template-columns: 1fr;
}

.terminal.is-focus-mode .profile {
  display: none;
}

/* Profile */

.profile {
  align-self: start;
  position: sticky;
  top: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.profile::before {
  display: block;
  margin: -14px -14px 20px;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #05040a;
  color: var(--terminal-green);
  font-size: 0.78rem;
  content: "~/resume $ cat profile";
}

.profile-avatar {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 0 20px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #05040a;
  box-shadow: 5px 5px 0 rgba(192, 132, 252, 0.22);
  object-fit: cover;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  text-transform: lowercase;
}

.title {
  margin-bottom: 24px;
  color: var(--accent-strong);
  font-size: 1.1rem;
  font-weight: 650;
}

.summary {
  color: var(--muted);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Buttons And Links */

.contact,
.command-palette button,
.tab,
.item-link,
.danger-button,
.secondary-button,
.section-actions button,
.admin-form button,
.entry-form button,
.not-found-command button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.contact:hover,
.contact:focus-visible,
.command-palette button:hover,
.command-palette button:focus-visible,
.tab:hover,
.tab:focus-visible,
.item-link:hover,
.item-link:focus-visible,
.section-actions button:hover,
.section-actions button:focus-visible,
.admin-form button:hover,
.admin-form button:focus-visible,
.entry-form button:hover,
.entry-form button:focus-visible,
.not-found-command button:hover,
.not-found-command button:focus-visible {
  background: #171126;
  border-color: var(--accent);
  color: var(--accent-strong);
  outline: none;
  box-shadow:
    4px 4px 0 rgba(192, 132, 252, 0.2),
    0 0 0 3px rgba(192, 132, 252, 0.16);
  transform: translateY(-1px);
}

.contact {
  border: 1px solid var(--accent);
  background: #080611;
  color: var(--accent-strong);
  box-shadow: 4px 4px 0 rgba(192, 132, 252, 0.2);
}

.icon-contact {
  gap: 8px;
}

.icon-contact svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Portfolio Workspace */

.portfolio {
  min-width: 0;
}

.workspace-panel {
  display: none;
}

.workspace-panel.is-active {
  display: block;
}

.command-palette {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #05040a;
}

.command-label {
  color: var(--terminal-green);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.command-input-wrap {
  position: relative;
  min-width: 0;
}

.command-palette input,
.command-ghost {
  width: 100%;
  font: inherit;
  letter-spacing: 0;
}

.command-palette input {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 0 12px;
  caret-color: var(--terminal-green);
}

.command-input-wrap {
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--surface);
}

.command-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  padding: 0 12px;
  color: rgba(167, 160, 188, 0.42);
  pointer-events: none;
  white-space: pre;
}

.command-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.16);
}

.command-palette button {
  border: 1px solid var(--accent);
  background: #171126;
  color: var(--accent-strong);
}

.command-output {
  grid-column: 2 / 4;
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  min-height: 40px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted);
}

.tab::before {
  margin-right: 6px;
  color: var(--terminal-green);
  content: "./";
}

.tab:hover,
.tab:focus-visible,
.tab.is-active {
  border-color: var(--accent);
  background: #171126;
  color: var(--accent-strong);
  box-shadow: 4px 4px 0 rgba(192, 132, 252, 0.18);
}

.section-panel {
  min-height: 480px;
}

.section-header h2 {
  margin-bottom: 16px;
  font-size: 1.6rem;
  color: var(--terminal-green);
}

.section-header h2::before {
  color: var(--accent);
  content: "> ";
}

.items {
  display: grid;
  gap: 14px;
}

.item {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
}

.item-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.item-heading h3 {
  margin-bottom: 2px;
  font-size: 1.1rem;
  color: var(--accent-strong);
}

.item-heading h3::before {
  color: var(--terminal-cyan);
  content: "# ";
}

.item-heading p,
.item-heading time,
.description,
.empty {
  color: var(--muted);
}

.item-heading time {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 700;
}

.item-media {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #05040a;
  box-shadow: 4px 4px 0 rgba(192, 132, 252, 0.14);
}

.item-media img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.description {
  margin: 14px 0 0;
}

.item-link {
  margin-top: 14px;
  margin-right: 14px;
  border: 1px solid var(--accent);
  background: #080611;
  color: var(--accent-strong);
  box-shadow: 4px 4px 0 rgba(192, 132, 252, 0.2);
}

.item-link::before {
  color: var(--terminal-green);
  content: "-> ";
}

.detail-link::before {
  color: var(--terminal-cyan);
  content: "=> ";
}

/* Detail Pages */

.detail-shell {
  align-items: start;
}

.detail-prompt {
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #05040a;
  color: var(--terminal-green);
  font-weight: 800;
}

.detail-card {
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: 8px 8px 0 rgba(192, 132, 252, 0.12);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-header h2 {
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 1.55rem;
}

.detail-header h2::before {
  color: var(--terminal-cyan);
  content: "# ";
}

.detail-header p,
.detail-header time,
.detail-block p {
  color: var(--muted);
}

.placeholder {
  color: rgba(140, 255, 186, 0.72);
  font-style: italic;
}

.detail-header time {
  flex: 0 0 auto;
  font-weight: 800;
}

.detail-block {
  margin-top: 24px;
}

.detail-block h3 {
  margin-bottom: 8px;
  color: var(--terminal-green);
  font-size: 1rem;
}

.detail-block h3::before {
  color: var(--accent);
  content: "$ ";
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.awareness-shell {
  grid-template-columns: minmax(0, 1fr);
}

.awareness-panel .detail-card {
  max-width: 980px;
}

.awareness-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.awareness-table th,
.awareness-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.awareness-table th {
  width: 34%;
  color: var(--terminal-cyan);
  font-size: 0.9rem;
}

.awareness-table code {
  color: var(--accent-strong);
  word-break: break-word;
}

.awareness-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.awareness-terminal-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #05040a;
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.08);
}

.awareness-terminal-prompt {
  margin: 0 0 8px;
  color: var(--terminal-green) !important;
  font-weight: 800;
}

.awareness-terminal-output {
  margin: 0;
  color: var(--accent-strong);
}

.awareness-terminal-output code {
  color: inherit;
}

/* Password Roast */

.roast-shell {
  grid-template-columns: minmax(0, 1fr);
}

.roast-panel .detail-card {
  max-width: 1040px;
}

.roast-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.roast-label {
  display: block;
  margin-bottom: 8px;
  color: var(--terminal-green);
  font-size: 0.9rem;
  font-weight: 800;
}

.roast-input-row {
  display: block;
}

.roast-input-row input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #05040a;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  outline: none;
}

.roast-input-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.16);
}

.roast-note,
.roast-score {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.roast-meter {
  height: 14px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #05040a;
}

.roast-meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb7185, #facc15, #8cffba);
  transition: width 180ms ease;
}

.roast-output {
  align-self: stretch;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #05040a;
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.08);
}

.roast-output h3 {
  color: var(--accent-strong);
}

.roast-feedback {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.roast-feedback li {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--muted);
}

.roast-feedback li.is-good {
  border-color: rgba(140, 255, 186, 0.42);
  color: var(--terminal-green);
}

.roast-feedback li.is-missing {
  border-color: rgba(251, 113, 133, 0.44);
  color: #fecdd3;
}

.roast-actions {
  align-items: center;
  gap: 10px;
}

.roast-actions .contact {
  margin: 0;
}

.roast-button-secondary {
  background: rgba(103, 232, 249, 0.08);
  border-color: var(--line-soft);
  color: var(--terminal-cyan);
  box-shadow: 4px 4px 0 rgba(103, 232, 249, 0.1);
}

.roast-button-secondary:hover,
.roast-button-secondary:focus-visible {
  background: rgba(103, 232, 249, 0.16);
  outline: none;
  box-shadow:
    4px 4px 0 rgba(103, 232, 249, 0.14),
    0 0 0 3px rgba(103, 232, 249, 0.14);
}

/* Tags */


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--tag);
  font-size: 0.84rem;
  font-weight: 700;
  overflow: hidden;
}

.tags button,
.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--terminal-cyan);
  font: inherit;
  letter-spacing: 0;
}

.tags button {
  cursor: pointer;
}

.tags button:hover,
.tags button:focus-visible,
.tags button.is-active {
  background: rgba(103, 232, 249, 0.12);
  color: var(--accent-strong);
  outline: none;
}

.tags button.is-active {
  box-shadow: inset 0 0 0 1px var(--terminal-cyan);
}

.tags button::before,
.tags span::before {
  color: var(--accent);
  content: "--";
}

/* Admin */

.admin-terminal {
  max-width: 980px;
}

.admin-shell {
  padding: 28px 20px 24px;
}

.admin-form,
.admin-panel {
  width: 100%;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: 8px 8px 0 rgba(192, 132, 252, 0.12);
}

.admin-dashboard > .admin-panel:first-child {
  min-height: 150px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.admin-form {
  max-width: 520px;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-header h1 {
  margin-bottom: 0;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-actions form {
  margin: 0;
}

.dashboard-actions button.contact {
  cursor: pointer;
  font: inherit;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
}

#entry-manager.admin-panel {
  min-height: 190px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.admin-panel h2 {
  margin-bottom: 10px;
  color: var(--terminal-green);
  font-size: 1.05rem;
}

.admin-panel h2::before {
  color: var(--accent);
  content: "$ ";
}

.admin-section-list,
.admin-section-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-section-group {
  display: grid;
  gap: 8px;
}

.admin-section-group + .admin-section-group {
  margin-top: 14px;
}

.admin-section-group header,
.admin-section-group li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #05040a;
  color: var(--muted);
}

.admin-section-group header {
  color: var(--accent-strong);
  font-weight: 800;
}

.admin-section-group strong {
  color: var(--terminal-cyan);
}

.admin-section-group li {
  margin-left: 12px;
}

.danger-button {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(251, 113, 133, 0.72);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  font-size: 0.82rem;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: rgba(251, 113, 133, 0.18);
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.14);
}

.entry-row-actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
}

.secondary-button {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  background: rgba(103, 232, 249, 0.08);
  color: var(--terminal-cyan);
  font-size: 0.82rem;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(103, 232, 249, 0.16);
  outline: none;
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.14);
}

.section-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.section-actions button {
  padding: 0 12px;
  border: 1px solid var(--accent);
  background: #171126;
  color: var(--accent-strong);
}

.section-actions button::before {
  margin-right: 6px;
  color: var(--terminal-green);
  content: "+";
}

.section-actions button:hover,
.section-actions button:focus-visible {
  background: rgba(103, 232, 249, 0.12);
  outline: none;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.16);
}

.admin-form h1,
.admin-panel h1 {
  margin-bottom: 18px;
  color: var(--accent-strong);
}

.admin-form label,
.entry-form label {
  display: block;
  margin: 16px 0 6px;
  color: var(--terminal-green);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-form input,
.entry-form input,
.entry-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #05040a;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  outline: none;
}

.entry-form textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.admin-form input:focus,
.entry-form input:focus,
.entry-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.16);
}

.admin-form button,
.entry-form button {
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
  border: 1px solid var(--accent);
  background: #171126;
  color: var(--accent-strong);
}

.entry-form {
  margin-top: 16px;
}

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

.form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, 0.72);
  border-radius: 7px;
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
}

.form-success {
  padding: 10px 12px;
  border: 1px solid rgba(140, 255, 186, 0.72);
  border-radius: 7px;
  background: rgba(140, 255, 186, 0.1);
  color: var(--terminal-green);
}

/* Not Found */

.not-found-terminal {
  max-width: 1040px;
}

.not-found-terminal::after {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  content: "";
}

.not-found-shell {
  padding: 32px;
}

.not-found-command {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #05040a;
}

.not-found-command label {
  color: var(--terminal-green);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.not-found-command input {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  padding: 0 12px;
  outline: none;
}

.not-found-command input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.16);
}

.not-found-command button {
  height: 40px;
  border: 1px solid var(--accent);
  background: #171126;
  color: var(--accent-strong);
  padding: 0 12px;
}

.not-found-command-output {
  grid-column: 2 / 4;
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.not-found-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  box-shadow: 8px 8px 0 rgba(192, 132, 252, 0.12);
}

.not-found-art-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.not-found-art {
  display: block;
  overflow-x: auto;
  margin: 0;
  padding: clamp(12px, 1.8vw, 20px);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #05040a;
  color: var(--terminal-green);
  font: inherit;
  font-size: clamp(0.72rem, 1.15vw, 0.95rem);
  line-height: 1.2;
  white-space: pre;
  text-align: center;
  width: min(100%, 56ch);
  min-height: clamp(180px, 30vh, 320px);
  max-height: 46vh;
}

.not-found-code {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #05040a;
  color: var(--terminal-cyan);
  font-size: 0.84rem;
  font-weight: 800;
}

.not-found-copy h1 {
  margin-bottom: 14px;
  color: var(--accent-strong);
}

.not-found-copy p {
  color: var(--muted);
}

.not-found-remark {
  color: var(--terminal-green);
  font-weight: 800;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.not-found-terminal.is-booting::after {
  animation: notFoundFlicker 560ms linear 1;
}

.not-found-terminal.is-booting .not-found-panel {
  animation: notFoundReveal 420ms ease-out 1;
}

@keyframes notFoundFlicker {
  0% { opacity: 0; background: rgba(140, 255, 186, 0.06); }
  12% { opacity: 0.32; background: rgba(140, 255, 186, 0.18); }
  24% { opacity: 0.08; background: rgba(103, 232, 249, 0.08); }
  36% { opacity: 0.28; background: rgba(140, 255, 186, 0.14); }
  48% { opacity: 0.04; background: rgba(103, 232, 249, 0.06); }
  60% { opacity: 0.22; background: rgba(140, 255, 186, 0.1); }
  100% { opacity: 0; background: transparent; }
}

@keyframes notFoundReveal {
  0% { transform: translateY(6px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Responsive */

@media (max-width: 760px) {
  .terminal {
    width: min(100% - 20px, 1200px);
    margin: 10px auto 18px;
  }

  .terminal-bar {
    min-height: 54px;
    padding: 0 14px;
    gap: 10px;
  }

  .workspace-tabs {
    margin-left: 0;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 24px 16px 18px;
  }

  .profile {
    position: static;
  }

  .command-palette {
    grid-template-columns: 1fr auto;
  }

  .command-label {
    grid-column: 1 / 3;
  }

  .command-output {
    grid-column: 1 / 3;
  }

  .item-heading {
    display: block;
  }

  .detail-header {
    display: block;
  }

  .admin-shell {
    padding: 24px 14px 18px;
  }

  .dashboard-header,
  .admin-grid {
    display: block;
  }

  .dashboard-header .contact,
  .admin-grid .admin-panel + .admin-panel {
    margin-top: 16px;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .section-actions {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .not-found-shell {
    padding: 24px 14px 18px;
  }

  .not-found-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .not-found-art-wrap {
    justify-content: center;
  }

  .not-found-command {
    grid-template-columns: 1fr auto;
  }

  .not-found-command label {
    grid-column: 1 / 3;
  }

  .not-found-command-output {
    grid-column: 1 / 3;
  }

  .not-found-art {
    width: 100%;
    min-height: clamp(160px, 34vh, 280px);
    max-height: 44vh;
  }

  .roast-grid {
    grid-template-columns: 1fr;
  }

}
