:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6878;
  --line: #d8e0ec;
  --paper: #f7f9fd;
  --panel: #ffffff;
  --cyan: #35c6df;
  --blue: #5c7ee2;
  --purple: #7c6cff;
  --navy: #0b1222;
  --deep: #070c17;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(53, 198, 223, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(124, 108, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, #eef4fb 0%, var(--paper) 38%, #ffffff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 18px;
}

.sheet {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(12, 19, 36, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(circle at 14% 12%, rgba(53, 198, 223, 0.24), transparent 26rem),
    radial-gradient(circle at 86% 4%, rgba(124, 108, 255, 0.28), transparent 30rem),
    linear-gradient(125deg, var(--deep), #10182c 58%, #241957);
  color: #eef5ff;
}

.hero::after {
  position: absolute;
  inset: auto 32px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 198, 223, 0.75), rgba(124, 108, 255, 0.65), transparent);
  content: "";
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: 0 0 28px rgba(53, 198, 223, 0.26);
}

.brand-name {
  display: block;
  font-size: 1.42rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: rgba(238, 245, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill {
  border: 1px solid rgba(238, 245, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(238, 245, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(238, 245, 255, 0.76);
  font-size: 1.04rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.privacy-note {
  margin-top: 14px;
  border: 1px solid rgba(53, 198, 223, 0.22);
  border-radius: 16px;
  background: rgba(53, 198, 223, 0.08);
  color: #26445d;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92, 126, 226, 0.22);
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0 16px;
  white-space: nowrap;
}

.button.secondary {
  background: #ffffff;
  color: #253247;
}

.content {
  display: grid;
  gap: 18px;
  padding: 26px 32px 32px;
}

.section {
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
}

.section-header {
  display: flex;
  gap: 13px;
  margin-bottom: 15px;
}

.number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(53, 198, 223, 0.28);
  border-radius: 12px;
  background: rgba(53, 198, 223, 0.08);
  color: #117187;
  font-size: 0.76rem;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.label {
  display: block;
  margin-bottom: 7px;
  color: #344052;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

input[type="text"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 12px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

textarea.tall {
  min-height: 168px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eff5fb;
  color: #344052;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: normal;
}

td input,
td textarea {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 3px;
}

td textarea {
  min-height: 64px;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  padding: 11px 12px;
  color: #2a3548;
  font-size: 0.94rem;
}

.check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--blue);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 22px 32px 28px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .page {
    padding: 14px 10px;
  }

  .sheet {
    border-radius: 20px;
  }

  .hero,
  .intro,
  .content,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand,
  .intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intro {
    display: grid;
  }

  .actions {
    justify-content: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 760px;
  }

  .table-wrap {
    overflow-x: auto;
  }
}

@page {
  size: A4;
  margin: 12mm;
}

@media print {
  body {
    background: #ffffff;
    color: #111827;
  }

  .page {
    max-width: none;
    padding: 2mm 0;
  }

  .sheet {
    overflow: visible;
    border: 1px solid #dfe6f1;
    border-radius: 18px;
    box-shadow: none;
  }

  .hero {
    border-radius: 17px 17px 0 0;
    padding: 18px 20px 16px;
    background: #0b1222 !important;
    color: #ffffff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hero::after {
    inset-inline: 20px;
  }

  .brand {
    gap: 12px;
    margin-bottom: 18px;
  }

  .logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .brand-subtitle,
  .pill {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  h1 {
    max-width: 100%;
    font-size: 2.05rem;
    line-height: 1.06;
  }

  .subtitle {
    margin-top: 10px;
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .intro,
  .content,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .intro p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .privacy-note {
    margin-top: 9px;
    padding: 9px 11px;
    font-size: 0.76rem;
  }

  .content {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .section {
    break-inside: avoid-page;
    page-break-inside: avoid;
    border-radius: 15px;
    padding: 13px;
  }

  .section-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .number {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 0.68rem;
  }

  h2 {
    font-size: 0.92rem;
  }

  .hint {
    margin-top: 2px;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .grid {
    gap: 10px;
  }

  label,
  .label {
    margin-bottom: 5px;
    font-size: 0.62rem;
    letter-spacing: 0.055em;
  }

  input[type="text"],
  input[type="date"],
  select,
  textarea {
    border-radius: 9px;
    font-size: 0.78rem;
    padding: 7px 8px;
  }

  .no-print {
    display: none !important;
  }

  input,
  textarea,
  select {
    color: #111827 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  textarea {
    min-height: 78px;
    resize: none;
  }

  textarea.tall {
    min-height: 116px;
  }

  .checklist {
    gap: 7px;
  }

  .check {
    break-inside: avoid-page;
    border-radius: 10px;
    padding: 8px 9px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .check input {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 0.62rem;
    line-height: 1.18;
  }

  th,
  td {
    padding: 3px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  th {
    font-size: 0.48rem;
    line-height: 1.14;
    letter-spacing: 0.025em;
  }

  thead {
    display: table-header-group;
  }

  tr {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  td input,
  td textarea {
    min-height: 28px;
    padding: 2px;
    font-size: 0.58rem;
    line-height: 1.18;
  }

  td textarea {
    min-height: 42px;
  }

  .dense-table {
    table-layout: fixed;
  }

  .dense-table th,
  .dense-table td {
    padding: 2px;
  }

  .dense-table th {
    font-size: 0.42rem;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  .dense-table td input,
  .dense-table td textarea {
    min-height: 24px;
    font-size: 0.52rem;
  }

  .dense-table td textarea {
    min-height: 34px;
  }

  .calendar-table col:nth-child(1) {
    width: 10%;
  }

  .calendar-table col:nth-child(2) {
    width: 18%;
  }

  .calendar-table col:nth-child(3),
  .calendar-table col:nth-child(4),
  .calendar-table col:nth-child(5),
  .calendar-table col:nth-child(6),
  .calendar-table col:nth-child(9) {
    width: 8%;
  }

  .calendar-table col:nth-child(7),
  .calendar-table col:nth-child(8) {
    width: 16%;
  }

  .idea-bank-table col:nth-child(1) {
    width: 12%;
  }

  .idea-bank-table col:nth-child(2) {
    width: 16%;
  }

  .idea-bank-table col:nth-child(3),
  .idea-bank-table col:nth-child(4),
  .idea-bank-table col:nth-child(5),
  .idea-bank-table col:nth-child(7),
  .idea-bank-table col:nth-child(8),
  .idea-bank-table col:nth-child(9) {
    width: 7%;
  }

  .idea-bank-table col:nth-child(6),
  .idea-bank-table col:nth-child(10),
  .idea-bank-table col:nth-child(11) {
    width: 10%;
  }

  .footer {
    padding-top: 14px;
    padding-bottom: 16px;
    font-size: 0.72rem;
  }

  .privacy-note {
    background: #eef8fb !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
