/* DEAD BYTE — per-app styles (content inside window bodies) */

.cmd-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0c0c0c;
  color: #d4d4d4;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1rem;
}

.cmd-output {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.cmd-entry {
  margin-bottom: 10px;
}

.cmd-entry-query {
  color: #ffffff;
}

.cmd-entry-query::before {
  content: "C:\\NEXORA> ";
  color: #4caf50;
}

.cmd-entry-error {
  color: #ff6b6b;
  margin-top: 4px;
}

.cmd-entry-meta {
  color: #7f7f7f;
  margin-top: 4px;
  font-size: 0.9231rem;
}

.cmd-banner {
  color: #7f7f7f;
  margin-bottom: 10px;
}

.cmd-table-wrap {
  margin-top: 6px;
  overflow-x: auto;
  max-width: 100%;
}

table.cmd-table {
  border-collapse: collapse;
  font-size: 0.9231rem;
  min-width: 100%;
}

table.cmd-table th,
table.cmd-table td {
  border: 1px solid #333;
  padding: 3px 8px;
  text-align: left;
  white-space: nowrap;
}

table.cmd-table th {
  background: #1e1e1e;
  color: #4caf50;
}

table.cmd-table tr:nth-child(even) td {
  background: #141414;
}

table.cmd-table tr:nth-child(odd) td {
  background: #0c0c0c;
}

table.cmd-table td.cmd-null {
  color: #6a6a6a;
  font-style: italic;
}

table.cmd-table th.cmd-flag-col,
table.cmd-table td.cmd-flag-col {
  white-space: nowrap;
  width: 1%;
}

.cmd-flag-btn {
  background: linear-gradient(180deg, #ffb74d 0%, #e08a1e 100%);
  color: #2a1a00;
  border: 1px solid #a5670f;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 0.8462rem;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
}

.cmd-flag-btn:hover {
  filter: brightness(1.1);
}

.cmd-flag-result {
  font-size: 0.8462rem;
  font-weight: bold;
  white-space: nowrap;
}

.cmd-flag-hit {
  color: #4caf50;
}

.cmd-flag-miss {
  color: #7f7f7f;
  font-weight: normal;
  font-style: italic;
}

.cmd-inputbar {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #2a2a2a;
  background: #111;
}

.cmd-prompt {
  color: #4caf50;
  padding-top: 4px;
  flex: 0 0 auto;
}

.cmd-input {
  flex: 1 1 auto;
  background: #0c0c0c;
  color: #fff;
  border: 1px solid #333;
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  padding: 4px 6px;
  resize: none;
  outline: none;
  min-height: 26px;
  max-height: 120px;
}

.cmd-input:focus {
  border-color: #4caf50;
}

.cmd-run {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #4caf50 0%, #2e7d32 100%);
  color: #fff;
  border: 1px solid #1b5e20;
  border-radius: 3px;
  padding: 5px 14px;
  font-weight: bold;
  cursor: pointer;
}

.cmd-run:hover {
  filter: brightness(1.1);
}

.cmd-run:disabled {
  opacity: 0.5;
  cursor: default;
}

.cmd-clue-notice {
  color: #ffd54f;
  background: #2a2410;
  border: 1px solid #6b5c1a;
  border-radius: 2px;
  padding: 5px 8px;
  margin: -4px 0 10px;
  font-size: 0.9231rem;
}

.cmd-hint {
  color: #666;
  font-size: 0.8462rem;
  padding: 0 10px 6px;
  background: #111;
}

/* ============ SCHEMA APP ============ */

.schema-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ece9d8;
}

.schema-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
  background: #d4d0c8;
  border-bottom: 1px solid #8f8f8f;
}

.schema-tab {
  padding: 6px 16px;
  background: #ece9d8;
  border: 1px solid #8f8f8f;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: 0.9231rem;
  font-family: inherit;
  cursor: pointer;
  color: #333;
  position: relative;
  top: 1px;
}

.schema-tab.active {
  background: #fff;
  font-weight: bold;
  color: #000;
}

.schema-panel {
  flex: 1 1 auto;
  overflow: auto;
  background: #fff;
}

.schema-tables-layout {
  display: flex;
  height: 100%;
}

.schema-table-list {
  flex: 0 0 160px;
  border-right: 1px solid #b8b8b8;
  background: #f4f2ec;
  overflow-y: auto;
}

.schema-table-item {
  padding: 7px 12px;
  font-size: 0.9231rem;
  cursor: pointer;
  border-bottom: 1px solid #e4e1d8;
  color: #333;
}

.schema-table-item:hover {
  background: #e2e8f5;
}

.schema-table-item.active {
  background: #316ac5;
  color: #fff;
}

.schema-table-detail {
  flex: 1 1 auto;
  padding: 14px 18px;
  overflow-y: auto;
}

.schema-table-title {
  font-size: 1.2308rem;
  font-weight: bold;
  color: #0d3fc7;
  margin-bottom: 4px;
}

.schema-table-desc {
  font-size: 0.9231rem;
  color: #555;
  margin-bottom: 12px;
}

table.schema-col-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9231rem;
}

table.schema-col-table th {
  text-align: left;
  padding: 4px 8px;
  background: #d4d0c8;
  border: 1px solid #b8b8b8;
}

table.schema-col-table td {
  padding: 4px 8px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.schema-col-name {
  font-family: Consolas, "Courier New", monospace;
  font-weight: bold;
}

.schema-col-type {
  color: #666;
  font-family: Consolas, "Courier New", monospace;
  white-space: nowrap;
}

.schema-tag {
  display: inline-block;
  background: #e0e8f8;
  color: #1a4fb0;
  border: 1px solid #b7c8ea;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.7692rem;
  white-space: nowrap;
  margin: 1px 2px 1px 0;
}

.schema-col-notes {
  color: #555;
}

/* --- cheat sheet --- */

.cheat-intro {
  padding: 12px 18px 4px;
  color: #555;
  font-size: 0.9231rem;
}

.cheat-entry {
  padding: 8px 18px;
}

.cheat-title {
  font-size: 0.9231rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.cheat-code {
  background: #0c0c0c;
  color: #4caf50;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9231rem;
  padding: 8px 10px;
  border-radius: 3px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: pointer;
  border: 1px solid transparent;
}

.cheat-code:hover {
  border-color: #4caf50;
  filter: brightness(1.2);
}

/* ============ NOTES APP ============ */

.notes-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.notes-textarea {
  flex: 1 1 auto;
  border: none;
  outline: none;
  resize: none;
  padding: 10px;
  font-family: "Courier New", Consolas, monospace;
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
}

.notes-status {
  flex: 0 0 auto;
  height: 18px;
  padding: 0 10px 4px;
  font-size: 0.8462rem;
  color: #8a8a8a;
  text-align: right;
}

/* ============ CLUE FOLDER APP ============ */

.clue-app {
  display: flex;
  height: 100%;
  background: #fff;
}

.clue-layout {
  display: flex;
  height: 100%;
  width: 100%;
}

.clue-suspect-list {
  flex: 0 0 200px;
  border-right: 1px solid #b8b8b8;
  background: #f4f2ec;
  overflow-y: auto;
}

.clue-suspect-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 0.9231rem;
  cursor: pointer;
  border-bottom: 1px solid #e4e1d8;
  color: #333;
}

.clue-suspect-item:hover {
  background: #e2e8f5;
}

.clue-suspect-item.active {
  background: #316ac5;
  color: #fff;
}

.clue-suspect-name {
  font-weight: bold;
}

.clue-suspect-count {
  font-size: 0.8462rem;
  color: inherit;
  opacity: 0.75;
  white-space: nowrap;
}

.clue-suspect-detail {
  flex: 1 1 auto;
  padding: 14px 18px;
  overflow-y: auto;
}

.clue-detail-title {
  font-size: 1.2308rem;
  font-weight: bold;
  color: #0d3fc7;
  margin-bottom: 10px;
}

.clue-empty {
  color: #777;
  font-size: 0.9231rem;
  font-style: italic;
  padding: 10px 0;
}

.clue-card {
  border: 1px solid #ddd;
  border-left: 3px solid #316ac5;
  background: #f9fafd;
  border-radius: 2px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.clue-card-label {
  font-weight: bold;
  font-size: 0.9231rem;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.clue-card-desc {
  font-size: 0.9231rem;
  color: #444;
  line-height: 1.4;
}

/* ============ ACCUSE APP ============ */

.accuse-app {
  height: 100%;
  overflow-y: auto;
  padding: 14px 16px;
  background: #ece9d8;
}

.accuse-intro {
  font-size: 0.9231rem;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.4;
}

.accuse-suspect-list {
  border: 1px solid #8f8f8f;
  background: #fff;
  margin-bottom: 10px;
}

.accuse-suspect-item {
  padding: 7px 10px;
  font-size: 0.9231rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.accuse-suspect-item:last-child {
  border-bottom: none;
}

.accuse-suspect-item:hover {
  background: #e2e8f5;
}

.accuse-suspect-item.selected {
  background: #316ac5;
  color: #fff;
}

.accuse-submit-btn {
  background: linear-gradient(180deg, #e0524a 0%, #b8241c 100%);
  color: #fff;
  border: 1px solid #7a1510;
  border-radius: 3px;
  padding: 7px 18px;
  font-weight: bold;
  font-size: 0.9231rem;
  cursor: pointer;
  width: 100%;
}

.accuse-submit-btn:hover {
  filter: brightness(1.1);
}

.accuse-result {
  margin-top: 12px;
}

.accuse-verdict {
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 0.9231rem;
  line-height: 1.5;
}

.accuse-verdict-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.accuse-verdict-win {
  background: #e5f6e5;
  border: 1px solid #7bc47f;
  color: #1e4d20;
}

.accuse-verdict-notyet {
  background: #fff6e0;
  border: 1px solid #d8b45a;
  color: #6b5316;
}

.accuse-verdict-aside {
  margin-top: 8px;
  font-style: italic;
  color: #3d6b3f;
}

.accuse-verdict-chain {
  font-family: Consolas, "Courier New", monospace;
  background: #0c0c0c;
  color: #4caf50;
  padding: 6px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  font-size: 0.8462rem;
  overflow-x: auto;
  white-space: nowrap;
}

.accuse-digdeeper-section {
  margin-top: 14px;
}

.accuse-digdeeper-section hr {
  border: none;
  border-top: 1px solid #c8c4b0;
  margin-bottom: 12px;
}

.accuse-digdeeper-btn {
  background: linear-gradient(180deg, #6a6a6a 0%, #3a3a3a 100%);
  color: #fff;
  border: 1px solid #222;
  border-radius: 3px;
  padding: 7px 18px;
  font-weight: bold;
  font-size: 0.9231rem;
  cursor: pointer;
  width: 100%;
}

.accuse-digdeeper-btn:hover {
  filter: brightness(1.15);
}

.accuse-digdeeper-result {
  margin-top: 10px;
}

/* ============ SETTINGS APP ============ */

.settings-app {
  height: 100%;
  padding: 16px;
  background: #ece9d8;
}

.settings-group {
  margin-bottom: 18px;
}

.settings-label {
  font-weight: bold;
  font-size: 0.9231rem;
  color: #333;
  margin-bottom: 8px;
}

.settings-font-options {
  display: flex;
  gap: 6px;
}

.settings-font-btn {
  flex: 1 1 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #8f8f8f;
  border-radius: 3px;
  font-size: 0.9231rem;
  font-family: inherit;
  cursor: pointer;
  color: #333;
}

.settings-font-btn:hover {
  background: #e2e8f5;
}

.settings-font-btn.active {
  background: #316ac5;
  border-color: #1a4fb0;
  color: #fff;
  font-weight: bold;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9231rem;
  color: #333;
  cursor: pointer;
}

.settings-toggle input {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ============ CASE FILE APP ============ */

.casefile-app {
  height: 100%;
  overflow-y: auto;
  padding: 16px 20px;
  background: #fdfbf3;
  color: #2a2a2a;
  font-size: 0.9231rem;
  line-height: 1.5;
}

.casefile-title {
  font-size: 1.2308rem;
  font-weight: bold;
  color: #7a1510;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.casefile-from {
  font-size: 0.8462rem;
  color: #777;
  font-style: italic;
  margin-bottom: 12px;
}

.casefile-app p {
  margin: 0 0 10px;
}

.casefile-suspects {
  margin: 0 0 10px;
  padding-left: 20px;
}

.casefile-suspects li {
  margin-bottom: 3px;
}
