:root {
  color-scheme: dark;
  --bg: #030405;
  --surface: #111920;
  --surface-2: #1a2530;
  --surface-3: #243348;
  --line: #2d6fb5;
  --line-soft: #37536c;
  --text: #f3f6fb;
  --muted: #b7bec8;
  --accent: #f1ff19;
  --blue: #2b9dd0;
  --danger: #ff5f6d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  color: var(--text);
}

.app-shell {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  background: #020303;
}

.loader,
.empty {
  padding: 32px 22px;
  color: var(--muted);
}

.nickname-screen {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 28px;
}

.nickname-screen h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.nickname-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.nickname-form {
  display: grid;
  gap: 14px;
}

.nickname-form input,
.nickname-form button {
  min-height: 54px;
  border-radius: 8px;
}

.nickname-form input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  outline: none;
}

.nickname-form button,
.primary-btn,
.card-btn {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #405872 0%, #10161f 100%);
  box-shadow: 0 0 10px rgba(45, 111, 181, 0.28);
  cursor: pointer;
}

.top-summary {
  margin: 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 42px;
  background: radial-gradient(circle at 50% 0%, #334257 0%, #1b2530 46%, #0c1117 100%);
}

.top-summary .small {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
}

.top-summary .line {
  font-size: 25px;
}

.accent {
  color: var(--accent);
}

.segments {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #101419;
}

.segment,
.tag-chip {
  flex: 0 0 auto;
  min-height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 0 22px;
  background: #17212b;
  color: #d6dbe2;
  white-space: nowrap;
}

.segment.active,
.tag-chip.active {
  border: 3px solid var(--accent);
  color: var(--text);
}

.profile-card,
.resume-wide,
.project-detail,
.resume-detail {
  margin: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 26px 22px;
  background: var(--surface);
}

.profile-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.name {
  color: var(--accent);
  font-size: 28px;
  line-height: 1.05;
}

.role,
.muted {
  color: var(--muted);
}

.role {
  margin-top: 8px;
  font-size: 22px;
}

.help-btn,
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #d8d8d2;
  color: #777;
  font-weight: 700;
  font-size: 26px;
}

.date-row {
  margin-top: 26px;
  font-size: 23px;
}

.notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  font-size: 22px;
}

.switch {
  width: 86px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--blue);
  position: relative;
  flex: 0 0 auto;
}

.switch::after {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f7f7f7;
  position: absolute;
  right: 2px;
  top: 2px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

.mini-card {
  min-height: 290px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px 16px;
  background: radial-gradient(circle at 50% 0%, #53677e 0%, #263549 40%, #131b25 100%);
}

.mini-card h2,
.resume-wide h2,
.section-title {
  margin: 0;
  color: var(--accent);
  font-size: 28px;
  font-weight: 500;
}

.mini-card p,
.resume-wide p {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 23px;
  line-height: 1.38;
}

.mini-card .label,
.resume-wide .label {
  color: var(--muted);
  font-size: 21px;
}

.card-btn {
  width: 100%;
  min-height: 70px;
  margin-top: 30px;
  border-radius: 8px;
  font-size: 27px;
}

.app-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid #26313d;
}

.back-btn,
.home-btn,
.refresh-btn {
  border: 0;
  background: transparent;
  color: #2d8cff;
  font-size: 34px;
  cursor: pointer;
}

.home-btn {
  color: #d8dde4;
}

.bar-name {
  color: var(--accent);
  font-size: 28px;
}

.bar-role {
  color: var(--muted);
  font-size: 21px;
}

.resume-wide {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 310px);
  align-items: center;
  gap: 18px;
}

.primary-btn {
  min-height: 70px;
  border-radius: 8px;
  font-size: 24px;
}

.section {
  padding: 20px 0 0;
}

.section-title {
  padding: 0 62px 16px;
}

.tags {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 40px 16px;
  background: #101419;
}

.tag-chip {
  color: #b8c8d8;
  font-weight: 700;
  font-size: 18px;
}

.project-list {
  display: grid;
  gap: 12px;
  padding: 14px 12px 28px;
  background: #080a0c;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 14px;
  width: 100%;
  min-height: 150px;
  border: 1px solid #273a4a;
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  background: var(--surface);
  cursor: pointer;
}

.project-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
}

.status {
  border: 1px solid #6e7b88;
  border-radius: 16px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 16px;
}

.month {
  display: inline-block;
  margin-top: 10px;
  border-radius: 18px;
  padding: 4px 12px;
  background: #ffd83d;
  color: #151515;
  font-size: 18px;
  font-weight: 700;
}

.project-desc {
  margin-top: 12px;
  color: #95a2af;
  font-size: 18px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-tags span {
  border-radius: 14px;
  padding: 5px 10px;
  background: #10385c;
  color: #40a8ff;
}

.safe-metrics {
  margin-top: 14px;
  color: #9aa8b6;
  font-size: 17px;
}

.thumb {
  width: 112px;
  height: 104px;
  align-self: center;
  border-radius: 10px;
  object-fit: cover;
  background: #23303e;
}

.resume-text,
.project-text {
  margin-top: 18px;
  white-space: pre-wrap;
  color: #eef2f7;
  font-size: 19px;
  line-height: 1.45;
}

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

.media-grid img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #273a4a;
}

.notice {
  margin: 18px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 18px;
  color: var(--muted);
  background: var(--surface);
}

.error {
  color: var(--danger);
}

@media (max-width: 560px) {
  .app-shell {
    max-width: none;
  }

  .top-summary {
    padding: 20px;
  }

  .top-summary .small,
  .top-summary .line {
    font-size: 22px;
  }

  .profile-card {
    padding: 22px 18px;
  }

  .cards,
  .resume-wide {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: auto;
  }

  .project-card {
    grid-template-columns: 1fr 92px;
  }

  .thumb {
    width: 92px;
    height: 92px;
  }

  .section-title,
  .tags {
    padding-left: 18px;
    padding-right: 18px;
  }
}

