* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #fce7f3 0%, #fdf2f8 45%, #fff1f2 100%);
  color: #1f2937;
}

.site-frame {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 960px) minmax(140px, 1fr);
  gap: 16px;
  align-items: start;
  padding: 0 12px;
}

.side-panel {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  justify-content: center;
}

.side-panel img {
  width: min(100%, 240px);
  border-radius: 24px;
  box-shadow: 0 18px 30px rgba(244, 114, 182, 0.25);
  border: 2px solid rgba(244, 114, 182, 0.25);
  background: #fff;
}

.mobile-avatars {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 10px;
  padding: 0 6px;
}

.mobile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 10px 18px rgba(244, 114, 182, 0.2);
  background: #fff;
}

body.profile-raven .side-panel--right,
body.profile-raven .mobile-avatar--right {
  display: none;
}

body.profile-asia .side-panel--left,
body.profile-asia .mobile-avatar--left {
  display: none;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.ticker {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 114, 182, 0.3);
  box-shadow: 0 12px 24px rgba(244, 114, 182, 0.18);
  min-height: 54px;
  backdrop-filter: blur(6px);
}

.ticker-actions {
  display: flex;
  justify-content: flex-end;
  padding: 6px 10px 10px;
}

.ticker-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 0;
  font-size: 13px;
  color: #9f1239;
}

.ticker-summary .summary-label {
  font-weight: 600;
}

.ticker-summary .summary-value {
  font-weight: 700;
  color: #1f2937;
}

.ticker.is-collapsed .ticker-summary {
  padding-bottom: 10px;
}

.ticker.is-collapsed .tradingview-widget-container {
  display: none;
}

.ticker.is-collapsed {
  min-height: 44px;
}

.ticker.is-collapsed .ticker-actions {
  padding: 10px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(140deg, #f472b6 0%, #ec4899 45%, #db2777 100%);
  color: #f8fafc;
  padding: 30px 34px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(219, 39, 119, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(251, 191, 36, 0.25), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.hero p {
  margin: 0;
  opacity: 0.85;
}

.market-driver {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.market-driver__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fde7f1;
}

.market-driver__ticker {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.12);
}

.market-driver__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  padding: 0 14px;
  width: max-content;
  will-change: transform;
}

.market-driver__track.is-animating {
  animation: marketDriverScroll var(--market-driver-duration, 22s) linear infinite;
}

.market-driver__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 600;
}

.market-driver__item:not(:first-child)::before {
  content: "•";
  color: rgba(255, 255, 255, 0.6);
  margin-right: 18px;
}

.market-driver__link {
  color: inherit;
  text-decoration: none;
}

.market-driver__link:hover {
  text-decoration: underline;
}

.market-driver__source {
  font-size: 12px;
  color: #ffe4e6;
  font-weight: 500;
}

@keyframes marketDriverScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--market-driver-shift, 50%)));
  }
}

.badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.badge.is-error {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #ffe4e6;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 26px 0 14px;
  flex-wrap: wrap;
}

.page-nav {
  display: flex;
  gap: 10px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}

.journal-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-left: 4px;
}

.journal-range label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #9f1239;
  font-weight: 600;
}

.journal-range input[type="date"] {
  min-width: 150px;
}

form.symbols-collapsed .select-with-add:not(.is-collapsed) {
  display: none;
}

body.calendar-only .stats,
body.calendar-only .entries,
body.calendar-only .card:not(#calendar-section) {
  display: none;
}

body.calendar-only #calendar-section {
  display: grid;
}

body.chart-only .stats,
body.chart-only .entries,
body.chart-only .card:not(#pnl-section) {
  display: none;
}

body.chart-only #pnl-section {
  display: grid;
}

body.tutorial-only .stats,
body.tutorial-only .entries,
body.tutorial-only .card:not(#tutorial-section) {
  display: none;
}

body.tutorial-only #tutorial-section {
  display: grid;
}

body.gallery-only .stats,
body.gallery-only .entries,
body.gallery-only .card:not(#setup-gallery-section) {
  display: none;
}

body.gallery-only #setup-gallery-section {
  display: grid;
}

body.videos-only .stats,
body.videos-only .entries,
body.videos-only .card:not(#tutorial-videos-section) {
  display: none;
}

body.videos-only #tutorial-videos-section {
  display: grid;
}

body.news-only .stats,
body.news-only .entries,
body.news-only .card:not(#news-section) {
  display: none;
}

body.news-only #news-section {
  display: grid;
}

body.calendar-only .journal-filters,
body.chart-only .journal-filters,
body.gallery-only .journal-filters,
body.videos-only .journal-filters,
body.news-only .journal-filters,
body.tutorial-only .journal-filters {
  display: none;
}

body.tick-float-visible .page {
  padding-bottom: 240px;
}

.chip {
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: #9f1239;
  transition: all 0.2s ease;
}

.chip.is-active {
  background: linear-gradient(120deg, #ec4899, #db2777);
  border-color: #f472b6;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.35);
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  background: rgba(249, 168, 212, 0.55);
  padding: 22px;
  border-radius: 20px;
  margin-bottom: 26px;
  box-shadow: 0 18px 40px rgba(190, 24, 93, 0.22);
  border: 2px solid rgba(190, 24, 93, 0.6);
  color: #1f2937;
}

.stats-group {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.stats-group h3 {
  margin: 0;
  font-size: 16px;
  color: #9f1239;
}

.stats .label {
  margin: 0;
  font-size: 12px;
  color: #9f1239;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats .value {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.card {
  background: rgba(252, 211, 237, 0.55);
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(190, 24, 93, 0.22);
  margin-bottom: 34px;
  border: 2px solid rgba(190, 24, 93, 0.5);
  color: #1f2937;
}

.card h2 {
  margin: 0 0 16px;
}

.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.entry-card-container.is-collapsed form {
  display: none;
}

.entry-header h2 {
  margin: 0;
}

.tutorial-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #6b7280;
}

.tutorial-steps li {
  line-height: 1.4;
}

.tutorial-section {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.tutorial-section h3 {
  margin: 0;
  color: #9f1239;
  font-size: 15px;
}

.tutorial-section ul {
  margin: 0;
  padding-left: 18px;
  color: #6b7280;
  display: grid;
  gap: 6px;
}

body:not(.calendar-only) #calendar-section {
  display: none;
}

body:not(.chart-only) #pnl-section {
  display: none;
}

body:not(.tutorial-only) #tutorial-section {
  display: none;
}

body:not(.gallery-only) #setup-gallery-section {
  display: none;
}

body:not(.videos-only) #tutorial-videos-section {
  display: none;
}

body:not(.news-only) #news-section {
  display: none;
}

.news-feed {
  display: grid;
  gap: 16px;
}

.news-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.news-title h2 {
  margin: 0;
}

.news-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9f1239;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(244, 114, 182, 0.25);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 24px rgba(244, 114, 182, 0.15);
}

.news-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #9f1239;
  text-decoration: none;
}

.news-card__title:hover {
  text-decoration: underline;
}

.news-card__meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar {
  display: grid;
  gap: 16px;
}

.calendar-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.calendar-title h2 {
  margin: 0;
}

.calendar-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9f1239;
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.calendar-month {
  font-weight: 600;
  color: #9f1239;
  min-width: 140px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-day {
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 8px;
  min-height: 76px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-day strong {
  color: #1f2937;
}

.calendar-day.is-header {
  background: transparent;
  border: none;
  min-height: auto;
  padding: 0;
  font-weight: 600;
  color: #9f1239;
  text-align: center;
}

.calendar-day.has-entry {
  border-color: rgba(244, 114, 182, 0.6);
  background: rgba(244, 114, 182, 0.08);
  color: #9f1239;
}

.calendar-day.is-selected {
  border-color: #ec4899;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.25);
}

.calendar-day:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-badge {
  font-size: 11px;
  font-weight: 600;
  color: #9f1239;
}

.pnl-chart {
  display: grid;
  gap: 16px;
}

.setup-gallery {
  display: grid;
  gap: 16px;
}

.tutorial-videos {
  display: grid;
  gap: 16px;
}

.tutorial-videos.is-collapsed .tutorial-grid,
.tutorial-videos.is-collapsed #tutorial-empty {
  display: none;
}

.gallery-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.gallery-title h2 {
  margin: 0;
}

.gallery-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9f1239;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#setup-category-select {
  min-width: 200px;
}

#setup-notes-input {
  min-width: 220px;
}

#setup-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.setup-gallery-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.setup-gallery-section {
  display: grid;
  gap: 12px;
}

.setup-gallery-section h3 {
  margin: 0;
  font-size: 15px;
  color: #9f1239;
}

.setup-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(244, 114, 182, 0.25);
  padding: 10px;
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 24px rgba(244, 114, 182, 0.15);
}

.setup-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 160px;
  cursor: pointer;
}

.setup-card__title {
  font-size: 12px;
  font-weight: 600;
  color: #9f1239;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-card__date {
  font-size: 11px;
  color: #6b7280;
}

.tutorial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(244, 114, 182, 0.25);
  padding: 10px;
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 24px rgba(244, 114, 182, 0.15);
}

.tutorial-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 180px;
  cursor: pointer;
}

.tutorial-card__desc {
  font-size: 13px;
  font-weight: 600;
  color: #9f1239;
}

.tutorial-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.tutorial-delete {
  font-size: 11px;
  padding: 4px 8px;
}

.setup-card__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.setup-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.setup-filter .chip {
  flex: 0 0 auto;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 90;
}

.image-modal.is-visible {
  display: flex;
}

.image-modal__content {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 24px 50px rgba(244, 114, 182, 0.35);
  display: grid;
  gap: 10px;
  max-width: min(92vw, 960px);
  width: 100%;
}

.image-modal__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  max-height: 80vh;
}

.setup-card__select {
  min-width: 180px;
}

.setup-card__notes {
  min-width: 200px;
  border-radius: 10px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12px;
}

.chart-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.chart-title h2 {
  margin: 0;
}

.chart-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9f1239;
}

.chart-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chart-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-canvas-wrap {
  width: 100%;
  overflow-x: auto;
}

.chart-canvas-wrap canvas {
  cursor: pointer;
}

.chart-person {
  margin: 6px 0 10px;
  font-size: 15px;
  color: #9f1239;
}

#pnl-chart {
  width: 100%;
  border-radius: 16px;
  background: rgba(252, 231, 243, 0.5);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

#pnl-chart-raven,
#pnl-chart-asia {
  width: 100%;
  border-radius: 16px;
  background: rgba(252, 231, 243, 0.5);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.chart-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}

.chart-modal.is-visible {
  display: flex;
}

.chart-modal__content {
  width: min(980px, 100%);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 24px 50px rgba(244, 114, 182, 0.35);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.chart-modal__content header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#pnl-chart-large {
  width: 100%;
  border-radius: 16px;
  background: rgba(252, 231, 243, 0.5);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

form {
  display: grid;
  gap: 16px;
}

.form-error {
  display: none;
  background: rgba(254, 226, 226, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.form-error.is-visible {
  display: block;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #9f1239;
  font-weight: 700;
}

.card form > label,
.card form > .select-with-add,
.card form > .grid.two,
.card form > .grid.three,
.card form > .form-section,
.card form > .checklist {
  background: rgba(251, 207, 232, 0.98);
  border: 2px solid rgba(190, 24, 93, 0.85);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(190, 24, 93, 0.25);
}

.card form > .grid.two,
.card form > .grid.three {
  background: rgba(249, 168, 212, 0.98);
  border-color: rgba(157, 23, 77, 0.9);
}

.card form > label {
  background: rgba(255, 255, 255, 1);
  border-left: 6px solid rgba(157, 23, 77, 0.9);
}

input,
select,
textarea {
  background: #fff0f7;
  box-shadow: inset 0 0 0 2px rgba(157, 23, 77, 0.35);
  font-weight: 400;
}

.checklist {
  border: 1px dashed rgba(244, 114, 182, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  background: rgba(244, 114, 182, 0.06);
}

.checklist legend {
  font-weight: 700;
  color: #9f1239;
  padding: 0 6px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}

.form-section {
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(244, 114, 182, 0.12);
}

.form-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-section__toggle {
  background: linear-gradient(120deg, rgba(244, 114, 182, 0.35), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(219, 39, 119, 0.45);
  color: #7a0b2e;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: left;
  flex: 1;
}

.form-section__clear {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(244, 114, 182, 0.45);
  color: #9f1239;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
}

.form-section__body {
  display: grid;
  gap: 12px;
}

.form-section.is-collapsed .form-section__body {
  display: none;
}

.form-section input,
.form-section select,
.form-section textarea {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(244, 114, 182, 0.5);
}

.hint {
  font-size: 12px;
  color: #9f1239;
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding-top: 24px;
}

.tick-float {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(244, 114, 182, 0.25);
  padding: 12px;
  display: none;
  gap: 10px;
  z-index: 60;
}

.tick-float.is-visible {
  display: grid;
}

.tick-float__row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.tick-float__label {
  font-weight: 600;
  color: #9f1239;
  font-size: 13px;
}

.tick-float__value {
  font-weight: 700;
  color: #1f2937;
  font-size: 13px;
}

#tick-adjust-float {
  flex: 1;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  color: #9f1239;
}

.toggle input {
  width: 18px;
  height: 18px;
}

input,
select,
textarea {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.25);
}

textarea {
  resize: vertical;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.actions {
  display: flex;
  gap: 12px;
}

.select-with-add {
  display: grid;
  gap: 10px;
}

.select-with-add .selected-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.08);
  color: #9f1239;
  font-size: 13px;
}

.select-with-add .summary-label {
  font-weight: 600;
}

.select-with-add .summary-value {
  font-weight: 700;
  color: #1f2937;
}

.select-with-add.is-collapsed label,
.select-with-add.is-collapsed .add-row {
  display: none;
}

.select-with-add.is-collapsed .selected-summary {
  display: flex;
}

.add-row {
  display: flex;
  gap: 10px;
}

.add-row input {
  flex: 1;
}

.small {
  padding: 10px 14px;
  font-size: 12px;
}

button {
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  padding: 12px 18px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.primary {
  background: linear-gradient(120deg, #ec4899, #db2777);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(236, 72, 153, 0.35);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(236, 72, 153, 0.45);
}

.ghost {
  background: rgba(244, 114, 182, 0.12);
  color: #9f1239;
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.entries h2 {
  margin: 0 0 16px;
  color: #1f2937;
}

.entry-list {
  display: grid;
  gap: 16px;
}

.entry-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(190, 24, 93, 0.2);
  border: 2px solid rgba(190, 24, 93, 0.45);
  color: #1f2937;
}

.entry-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 10px;
  cursor: pointer;
}

.entry-image-preview {
  display: grid;
  gap: 8px;
  align-content: start;
}

.entry-image-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: none;
}

.entry-image-preview img.is-visible {
  display: block;
}

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

.entry-title {
  margin: 0;
  font-weight: 700;
}

.entry-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #9f1239;
}

.entry-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: #6b7280;
}

.entry-details span {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(244, 114, 182, 0.25);
  padding: 4px 8px;
  border-radius: 999px;
  color: #1f2937;
}

.entry-notes strong {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(120deg, #ec4899, #db2777);
  padding: 2px 6px;
  border-radius: 999px;
  margin-right: 6px;
  display: inline-block;
}

.entry-pill {
  display: inline-block;
  background: rgba(244, 114, 182, 0.18);
  color: #9f1239;
  border: 1px solid rgba(244, 114, 182, 0.35);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  margin-right: 6px;
}

.entry-meta {
  color: #9f1239;
  font-weight: 600;
}

.entry-notes {
  margin-top: 12px;
  font-size: 13px;
  color: #4b5563;
}

.delete {
  background: rgba(244, 114, 182, 0.2);
  color: #be123c;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.45);
}

.is-hidden {
  display: none;
}

.edit {
  background: rgba(244, 114, 182, 0.15);
  color: #9f1239;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.45);
  margin-right: 8px;
}

.empty {
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(244, 114, 182, 0.35);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #9f1239;
}

@media (max-width: 720px) {
  .site-frame {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
  .side-panel {
    display: none;
  }
  .mobile-avatars {
    display: flex;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .actions {
    flex-direction: column;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .page {
    padding-top: 18px;
  }
  .mobile-avatars {
    margin: 0 0 8px;
    padding: 0;
  }
  .mobile-avatar {
    width: 38px;
    height: 38px;
  }
}
