/* Product views follow the shared DateGit paper / sage palette. */
.fx-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 8px 0 30px;
}
.fx-heading h1 {
  font-size: clamp(25px, 3.2vw, 34px);
  letter-spacing: -1.4px;
  margin: 9px 0 10px;
}
.fx-heading p,
.fx-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
}
.fx-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
}
.fx-panel h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.fx-panel form {
  margin-top: 18px;
}
.fx-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.fx-field {
  min-width: 0;
  margin-bottom: 14px;
}
.fx-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 8px;
}
.fx-field input,
.fx-field select,
.fx-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #dfe3d8;
  background: #fbfcf7;
  border-radius: 9px;
  font-size: 13px;
  color: var(--ink);
}
.fx-field textarea {
  min-height: 106px;
  resize: vertical;
  line-height: 1.75;
}
.fx-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 5px 0 20px;
}
.fx-checks label,
.fx-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
}
.fx-checks input,
.fx-checkbox input,
.fx-avoid-list input {
  accent-color: #506a51;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.fx-form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.fx-caption {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 5px 0;
}
.fx-empty {
  text-align: center;
  border: 1px dashed #d4dbcb;
  padding: 38px 22px;
  border-radius: 17px;
  margin: 22px 0;
  background: #f9faf470;
}
.fx-empty-icon {
  display: flex;
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  align-items: center;
  justify-content: center;
  background: #e8eddd;
  border-radius: 15px;
  color: #7c916a;
}
.fx-empty h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.fx-empty p {
  max-width: 430px;
  margin: 0 auto 19px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
}
.fx-empty .btn + .btn {
  margin-left: 7px;
}
.fx-results-heading,
.fx-section-title {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 17px;
}
.fx-results-heading h2,
.fx-section-title h2 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.6px;
}
.fx-section-title h2 span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 5px;
}
.fx-section-title p {
  font-size: 12px;
  line-height: 1.8;
  margin: 6px 0 0;
  color: var(--muted);
}
.fx-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  align-items: start;
}
.fx-option {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding: 22px;
}
.fx-option-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fx-option-number {
  color: #b3bea0;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -2px;
}
.fx-option h3 {
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.6px;
  margin: 17px 0 10px;
}
.fx-option .fx-copy {
  font-size: 12px;
}
.fx-stops {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 12px;
}
.fx-stops li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.fx-stops li > span {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #dbe2d0;
  color: #75896b;
  background: #f1f4e9;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: 0 0 24px;
  font-size: 10px;
}
.fx-stops button {
  padding: 2px 0;
  border: 0;
  background: none;
  text-align: left;
  line-height: 1.6;
}
.fx-stops button:hover {
  text-decoration: underline;
}
.fx-option-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.fx-option-facts > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fx-option-facts .icon {
  width: 14px;
  height: 14px;
}
.fx-reasons {
  border-radius: 10px;
  background: #f0f3e8;
  padding: 14px 15px;
  margin: 17px 0;
}
.fx-reasons h4 {
  font-size: 12px;
  margin: 0 0 8px;
}
.fx-reasons ul,
.fx-details ul {
  padding-left: 16px;
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
  color: #70806b;
}
.fx-details {
  margin-top: 15px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.85;
}
.fx-details summary {
  cursor: pointer;
  padding: 7px 0;
  font-size: 12px;
}
.fx-details p {
  line-height: 1.85;
}
.fx-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.fx-card-actions .btn {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 11px;
}
.fx-option .fx-card-actions {
  flex-direction: column;
}
.fx-option .fx-card-actions .btn {
  justify-content: center;
}
.fx-library-section {
  margin-bottom: 35px;
}
.fx-link-grid,
.fx-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fx-link-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 21px;
  border-radius: 15px;
}
.fx-link-icon {
  background: var(--sage);
  padding: 11px;
  border-radius: 12px;
  color: #768b66;
  flex-shrink: 0;
}
.fx-link-main {
  min-width: 0;
  width: 100%;
}
.fx-link-main h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.fx-link-main h3 a {
  text-decoration: none;
}
.fx-link-main h3 a:hover {
  text-decoration: underline;
}
.fx-link-main h3 .icon {
  display: inline;
  width: 12px;
  height: 12px;
  vertical-align: middle;
}
.fx-url {
  color: #a0a79c;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 0 13px;
}
.fx-user-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #596a58;
  font-size: 12px;
  line-height: 1.9;
  margin: 13px 0;
}
.fx-card-footer {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.fx-text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 4px 0;
  color: #6c8167;
  font-size: 11px;
  text-align: left;
}
.fx-text-button .icon {
  width: 14px;
  height: 14px;
}
.fx-text-button:hover {
  text-decoration: underline;
}
.fx-draft-card {
  background: #fffdf4;
  border: 1px solid #e2e3d3;
  padding: 24px;
  border-radius: 17px;
}
.fx-draft-card h3 {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.4px;
  margin: 16px 0 11px;
}
.fx-route-text {
  color: #7c8672;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.fx-route-text span {
  color: #b9bfae;
  padding: 0 4px;
}
.fx-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.fx-compare section {
  border-radius: 12px;
  padding: 18px;
  background: #f2f4e9;
}
.fx-compare section:last-child {
  background: #f8eddf;
}
.fx-compare h3 {
  font-size: 16px;
  line-height: 1.6;
}
.fx-compare p,
.fx-diff p {
  font-size: 12px;
  line-height: 1.9;
  color: #7b8773;
}
.fx-diff b {
  display: inline-block;
  min-width: 84px;
  color: #485e47;
}
.fx-draft-editor {
  display: grid;
  gap: 9px;
  margin: 19px 0;
}
.fx-draft-editor > div {
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 9px;
  background: #f0f3e8;
  padding: 10px;
}
.fx-draft-editor > div > span {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.7;
}
.fx-draft-editor .btn {
  padding: 5px;
  min-height: 32px;
  background: #ffffff80;
}
.fx-draft-editor .icon {
  width: 16px;
  height: 16px;
}
.fx-draft-add {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.fx-draft-add .fx-field {
  flex: 1;
}
.fx-draft-add .btn {
  margin-top: 11px;
  padding: 10px 12px;
  font-size: 12px;
}
.fx-memory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.9fr);
  gap: 28px;
  align-items: start;
}
.fx-diary-list {
  display: grid;
  gap: 20px;
}
.fx-diary-card {
  padding: 24px;
  border: 1px solid #e6e2d4;
  border-radius: 16px;
  background: #fffdf5;
  box-shadow: 0 4px 20px #415c3c04;
}
.fx-diary-date {
  color: #7b846e;
  font-size: 12px;
  font-weight: 600;
}
.fx-stars {
  color: #d8a66d;
  font-size: 16px;
  letter-spacing: 2px;
}
.fx-diary-card h3 {
  margin: 18px 0 10px;
  font-size: 19px;
}
.fx-talk-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 22px;
  margin-top: 28px;
}
.fx-talk-panel .fx-section-title {
  margin-top: 0;
}
.fx-talk-panel h2 {
  font-size: 17px;
}
.fx-talk-panel .btn {
  padding: 7px 10px;
  font-size: 11px;
}
.fx-comments {
  display: grid;
  gap: 13px;
}
.fx-comment {
  background: #f4f5ee;
  border-radius: 12px 12px 12px 3px;
  padding: 15px;
}
.fx-comment.mine {
  background: #edf0e2;
  border-radius: 12px 12px 3px 12px;
}
.fx-comment strong {
  font-size: 11px;
}
.fx-comment .row-between > span {
  font-size: 9px;
  color: #98a08f;
}
.fx-comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.9;
  margin: 11px 0;
}
.fx-comment small {
  display: block;
  font-size: 9px;
  color: #8f9984;
  border-top: 1px solid #dfe5d6;
  padding-top: 10px;
  line-height: 1.65;
}
.fx-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.fx-members {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
}
.fx-members > span {
  font-size: 11px;
  color: #8a957f;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fx-members .icon {
  width: 15px;
  height: 15px;
}
.fx-fieldset {
  padding: 0;
  margin: 18px 0;
  border: 0;
}
.fx-fieldset legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.fx-preference-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fx-preference-chips label {
  position: relative;
  cursor: pointer;
}
.fx-preference-chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.fx-preference-chips span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #dfe3d6;
  font-size: 11px;
  color: #8b9581;
  background: #fafbf6;
}
.fx-preference-chips .icon {
  width: 16px;
  height: 16px;
}
.fx-preference-chips input:checked + span {
  color: #506747;
  background: #e7ecd9;
  border-color: #a3b38d;
}
.fx-preference-chips input:focus-visible + span {
  outline: 3px solid #d89565;
  outline-offset: 3px;
}
.fx-avoid-list {
  display: grid;
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
  margin-top: 12px;
  padding: 6px 3px;
}
.fx-avoid-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  line-height: 1.6;
}
.fx-avoid-list small {
  display: block;
  color: #9aa28f;
  font-size: 9px;
}
.fx-setting-row {
  display: flex;
  gap: 17px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fx-setting-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.fx-setting-row h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.fx-setting-row p {
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
  max-width: 310px;
}
.fx-setting-row .btn {
  font-size: 11px;
  padding: 9px 11px;
  flex-shrink: 0;
  white-space: normal;
  text-align: center;
  max-width: 130px;
}
.fx-boundary {
  background: #f9f5ec;
}
.fx-recovery-code {
  width: 100%;
  padding: 17px 13px;
  border-radius: 10px;
  border: 1px dashed #a5b38f;
  background: #f1f5e8;
  font-family: monospace;
  font-size: 17px;
  letter-spacing: 0.8px;
  margin: 10px 0;
}
.fx-recovery-intro .btn {
  margin-top: 18px;
}
@media (max-width: 1100px) {
  .fx-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fx-memory-grid {
    grid-template-columns: 1fr;
  }
  .fx-talk-panel {
    margin-top: 0;
  }
}
@media (max-width: 760px) {
  .fx-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin: 9px 0 24px;
  }
  .fx-heading p {
    font-size: 12px;
  }
  .fx-panel {
    padding: 20px;
    border-radius: 15px;
  }
  .fx-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .fx-field label {
    font-size: 11px;
    line-height: 1.6;
  }
  .fx-field input,
  .fx-field select,
  .fx-field textarea {
    font-size: 14px;
  }
  .fx-checks {
    flex-direction: column;
    gap: 12px;
  }
  .fx-form-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .fx-form-bottom .btn {
    justify-content: center;
  }
  .fx-options,
  .fx-link-grid,
  .fx-draft-grid,
  .fx-settings-grid {
    grid-template-columns: 1fr;
  }
  .fx-option {
    padding: 23px;
  }
  .fx-option .fx-card-actions {
    flex-direction: row;
  }
  .fx-results-heading,
  .fx-section-title {
    flex-wrap: wrap;
    gap: 12px;
  }
  .fx-section-title h2 {
    font-size: 19px;
  }
  .fx-link-card {
    padding: 18px;
    gap: 12px;
  }
  .fx-link-icon {
    padding: 9px;
  }
  .fx-link-main h3 {
    font-size: 14px;
  }
  .fx-memory-grid {
    gap: 18px;
  }
  .fx-diary-card {
    padding: 21px;
  }
  .fx-talk-panel {
    padding: 20px;
  }
  .fx-empty {
    padding: 30px 19px;
  }
  .fx-empty .btn + .btn {
    margin-top: 9px;
  }
  .fx-compare {
    grid-template-columns: 1fr;
  }
  .fx-setting-row {
    align-items: flex-start;
  }
}
@media (max-width: 370px) {
  .fx-form-grid {
    grid-template-columns: 1fr;
  }
  .fx-setting-row {
    flex-direction: column;
  }
}
