@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");
:root {
  --ink: #172b28;
  --muted: #687b74;
  --paper: #f5f5ed;
  --line: #d8e0d5;
  --green: #d7ed70;
  --dark: #173c33;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
}
.shell {
  max-width: 1460px;
  margin: auto;
  padding: 0 5vw;
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 15px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-top: 4px;
}
.mark {
  height: 38px;
  width: 38px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  position: relative;
}
.mark span {
  position: absolute;
  color: var(--green);
  font-size: 12px;
  right: 3px;
  top: 1px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.pulse {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #75a765;
}
.intro {
  padding: 78px 0 66px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.eyebrow {
  font:
    10px "DM Mono",
    monospace;
  color: #778a79;
  letter-spacing: 0.16em;
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.22;
  letter-spacing: -0.06em;
  margin: 0;
  font-weight: 600;
}
h1 em {
  font-style: normal;
  color: #73927b;
}
.lede {
  color: var(--muted);
  font-size: 15px;
  margin: 22px 0 0;
}
.index {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font:
    10px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}
.index b {
  color: var(--ink);
  font-size: 24px;
  font-weight: 400;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
}
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  background: #e9eee4;
}
.auth h2,
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  margin: 0;
}
.auth p:not(.eyebrow),
.panel > p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 10px 0 0;
}
.auth .eyebrow {
  margin-bottom: 10px;
}
label:not(.drop) {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.input-row {
  display: flex;
}
input[type="password"] {
  min-width: 0;
  flex: 1;
  background: #fff;
  border: 1px solid #cbd6c9;
  padding: 14px;
  font:
    13px "DM Mono",
    monospace;
  outline: none;
}
input[type="password"]:focus {
  border-color: #567b63;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
}
.input-row button,
.wide {
  background: var(--dark);
  color: white;
  padding: 13px 20px;
  font-size: 13px;
}
.input-row button span,
.wide span {
  margin-left: 30px;
  color: var(--green);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 68px 0 20px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.text-button {
  background: none;
  color: var(--dark);
  padding: 8px 0;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.skills {
  grid-column: 1/-1;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-number {
  font:
    12px "DM Mono",
    monospace;
  color: #91a093;
}
.pill {
  font:
    9px "DM Mono",
    monospace;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  padding: 6px 9px;
  color: var(--muted);
}
h3 {
  font-size: 20px;
  margin: 25px 0 0;
  letter-spacing: -0.04em;
}
.drop {
  margin: 25px 0 14px;
  min-height: 175px;
  border: 1px dashed #a8b9a8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: #fafbf7;
  text-align: center;
  padding: 15px;
}
.drop:hover,
.drop.over {
  background: #f0f6de;
  border-color: #718e66;
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload-icon {
  font-size: 25px;
  color: #638573;
}
.drop b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.drop small,
.row small {
  font:
    11px "DM Mono",
    "Noto Sans SC",
    monospace;
  color: var(--muted);
}
.wide {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.progress {
  height: 4px;
  background: #e0e9dc;
  margin-top: 10px;
}
.progress div {
  height: 100%;
  background: #87ae55;
  transition: width 0.2s;
}
.progress-text {
  margin: 6px 0 0;
  color: var(--muted);
  font: 12px "DM Mono", "Noto Sans SC", monospace;
  font-variant-numeric: tabular-nums;
}
.list {
  margin-top: 22px;
  max-height: 380px;
  overflow: auto;
}
.row {
  border-top: 1px solid #e7ece4;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.row-text {
  min-width: 0;
}
.row b,
.row small {
  display: block;
}
.row b {
  font-size: 13px;
}
.row small {
  line-height: 1.6;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.download {
  border: 1px solid var(--line);
  background: #fff;
  width: 34px;
  height: 34px;
  font-size: 18px;
  color: var(--dark);
  flex-shrink: 0;
}
.download:hover {
  background: var(--green);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.delete-button {
  min-height: 36px;
  padding: 8px 10px;
  color: #8f3b30;
  border: 1px solid #e4b5aa;
  background: #fff7f3;
  font-size: 12px;
}
.delete-button:hover:not(:disabled) { background: #f9e5de; }
button:focus-visible { outline: 2px solid #567b63; outline-offset: 3px; }
#deleteDialog {
  width: min(480px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
}
#deleteDialog::backdrop { background: #172b2899; }
#deleteDialog h2 { margin: 0 0 16px; font-size: 22px; }
#deleteDialog p { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
#deleteTarget { font-weight: 600; }
#deleteStatus { color: #8f3b30; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.dialog-actions button { min-height: 44px; padding: 10px 16px; }
#deleteCancel { background: #e9eee4; color: var(--dark); }
@media (max-width: 700px) {
  .row-actions { flex-direction: column; }
  .delete-button { min-height: 44px; }
}
.empty {
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid #e7ece4;
}
#message:not(:empty) {
  margin-top: 20px;
  padding: 14px 18px;
  font-size: 13px;
}
.success {
  background: #e4efd8;
  color: #30563a;
}
.error {
  background: #f9e5de;
  color: #8f3b30;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  color: #91a093;
  font:
    10px "DM Mono",
    "Noto Sans SC",
    monospace;
  letter-spacing: 0.08em;
}
@media (max-width: 700px) {
  .shell {
    padding: 0 20px;
  }
  .intro {
    padding: 50px 0;
  }
  .index {
    display: none;
  }
  .auth,
  .grid {
    grid-template-columns: 1fr;
  }
  .skills {
    grid-column: auto;
  }
  .panel {
    padding: 22px;
  }
  .input-row button span {
    margin-left: 8px;
  }
  .section-heading {
    margin-top: 50px;
  }
  footer {
    gap: 10px;
    flex-wrap: wrap;
  }
}
.skill-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}
.skill-layout .list {
  margin-top: 25px;
}
.skill-layout .drop {
  min-height: 145px;
}
#skillMessage:not(:empty) {
  margin-top: 12px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .skill-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .skill-layout .list {
    margin-top: 25px;
  }
}
.release-notes-field {
  margin: 20px 0;
}
.release-notes-field label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.release-notes-field label span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.release-notes-field textarea {
  display: block;
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border: 1px solid #cbd6c9;
  background: #fafbf7;
  color: var(--ink);
  padding: 12px;
  font:
    13px/1.65 "Noto Sans SC",
    sans-serif;
  outline: none;
}
.release-notes-field textarea:focus {
  border-color: #567b63;
}
.release-notes-field p {
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.release-notes {
  margin-top: 9px;
  font-size: 12px;
}
.release-notes summary {
  cursor: pointer;
  color: #476e58;
}
.release-notes p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.7;
  margin: 8px 0 0;
  max-height: 220px;
  overflow: auto;
}

.advanced {
  margin: 18px 0;
  font-size: 12px;
  min-width: 0;
}
.advanced summary {
  cursor: pointer;
  min-height: 36px;
  line-height: 1.6;
  color: var(--dark);
}
.advanced label {
  margin-top: 12px;
}
.advanced p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.advanced textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--line);
  font: 12px/1.6 monospace;
}
.advanced input[type="file"] {
  max-width: 100%;
  font-size: 12px;
}
.skill-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px;
  font: 13px inherit;
}
.skill-search {
  margin-top: 25px;
}
.skill-search .input-row input {
  flex: 1;
}
.skill-search small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.grid > *,
.skill-layout > * {
  min-width: 0;
}
@media (max-width: 700px) {
  .download {
    min-width: 44px;
    min-height: 44px;
  }
  .advanced summary {
    min-height: 44px;
  }
}
