:root {
  --bg: #120d10;
  --panel: rgba(28, 24, 27, 0.82);
  --panel-strong: rgba(44, 35, 40, 0.92);
  --text: #fff7f0;
  --muted: #cdbfc3;
  --line: rgba(255, 247, 240, 0.16);
  --gold: #d9a95f;
  --rose: #bd4965;
  --teal: #3ea69a;
  --danger: #e76969;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(90deg, rgba(18, 13, 16, 0.94), rgba(18, 13, 16, 0.78)),
    url("./assets/intimate-bg.png") center / cover fixed,
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.file-action {
  min-height: 44px;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.gate {
  display: grid;
  align-content: center;
  min-height: 100vh;
  max-width: 520px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand.compact h1 {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid rgba(217, 169, 95, 0.55);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 247, 240, 0.95) 0 6px, transparent 7px),
    linear-gradient(135deg, rgba(217, 169, 95, 0.95), rgba(189, 73, 101, 0.82));
  box-shadow: 0 12px 34px rgba(189, 73, 101, 0.24);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.gate-box,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.gate-box {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 247, 240, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 247, 240, 0.08);
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  min-height: 104px;
  padding: 12px 13px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(217, 169, 95, 0.78);
  box-shadow: 0 0 0 4px rgba(217, 169, 95, 0.14);
}

input[type="range"] {
  accent-color: var(--gold);
  padding: 0;
}

select option {
  color: #1a1417;
}

.primary,
.ghost {
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  border: 0;
  color: #1e1517;
  background: linear-gradient(135deg, var(--gold), #f0d79b);
  box-shadow: 0 12px 28px rgba(217, 169, 95, 0.18);
}

.ghost {
  border: 1px solid rgba(255, 247, 240, 0.18);
  color: var(--text);
  background: rgba(255, 247, 240, 0.07);
}

.message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.app {
  display: grid;
  gap: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 4px;
}

.top-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-actions .ghost,
.form-actions .ghost,
.form-actions .primary {
  padding: 0 16px;
}

.file-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  overflow: hidden;
  cursor: pointer;
}

.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.partners {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 18px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 12px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1.18fr);
  gap: 20px;
  align-items: start;
}

.panel {
  padding: 20px;
}

.section-title,
.list-head {
  margin-bottom: 18px;
}

.form-panel {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .field:nth-child(3) {
  grid-column: 1 / -1;
}

output {
  justify-self: start;
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #16211f;
  background: rgba(62, 166, 154, 0.95);
  font-weight: 900;
}

.list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.list-head select {
  max-width: 190px;
}

.entries {
  display: grid;
  gap: 12px;
}

.entry {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 247, 240, 0.13);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel-strong);
}

.entry-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255, 247, 240, 0.08);
  font-size: 0.83rem;
  font-weight: 800;
}

.rating {
  color: #1f1618;
  background: var(--gold);
}

.wish,
.notes {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

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

.video-link {
  width: fit-content;
  color: #d6fff8;
  font-weight: 800;
  text-decoration: none;
}

.video-link:hover {
  text-decoration: underline;
}

.entry-delete {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(231, 105, 105, 0.35);
  border-radius: 8px;
  color: #ffd0d0;
  background: rgba(231, 105, 105, 0.1);
}

.empty {
  border: 1px dashed rgba(255, 247, 240, 0.22);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .topbar,
  .partners {
    align-items: stretch;
    flex-direction: column;
  }

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

  .list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .list-head select {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 16px 0;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .gate-box,
  .panel {
    padding: 16px;
  }

  .top-actions .ghost,
  .file-action,
  .form-actions .ghost,
  .form-actions .primary {
    width: 100%;
  }
}
