:root {
  --ink: #342d42;
  --muted: #6b6373;
  --accent: #70539b;
  --accent-dark: #5d4088;
  --line: #e8e3ed;
  --canvas: #faf9fc;
  --soft: #f1edf7;
  --white: #fff;
  --danger: #a5364c;
  --green: #36765e;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  font-size: 14px;
}
.marketing-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.release-status {
  margin: 16px auto;
  max-width: 1120px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
}
.marketing-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.marketing-table caption,
.marketing-table th,
.marketing-table td {
  padding: 12px 16px;
  white-space: nowrap;
}
.marketing-table th {
  background: var(--soft);
}
.marketing-table td {
  border-top: 1px solid var(--line);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  line-height: 1.7;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8763b6;
  outline-offset: 4px;
}
button {
  border: 0;
}
svg.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button .icon {
  pointer-events: none;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 15px;
  padding: 12px;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
}
.brand > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7857rem;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.brand b {
  font-weight: 400;
  color: var(--accent);
}
.brand small {
  display: block;
  font-family: inherit;
  font-size: 0.64286rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  margin-top: 6px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 32px 20px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar > .brand {
  padding-left: 9px;
}
.workspace-label {
  font:
    0.71429rem/1.5 Arial,
    sans-serif;
  letter-spacing: 0.15em;
  color: #6b6372;
  margin: 52px 13px 17px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 9px;
  background: transparent;
  color: #766d80;
  font-size: 0.85714rem;
  min-height: 46px;
  white-space: nowrap;
}
.nav-button:hover {
  background: #f8f6fb;
}
.nav-button.active {
  color: var(--accent);
  background: var(--soft);
  font-weight: 600;
}
.nav-arrow {
  margin-left: auto;
  font-size: 1.3571rem;
  font-weight: 400;
}
.nav-divider {
  height: 1px;
  background: var(--line);
  margin: 17px 13px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.garden-note {
  padding: 18px 16px;
  background: linear-gradient(125deg, #f8f4fc, #f6f0f3);
  border: 1px solid #ede4f0;
  border-radius: 12px;
}
.garden-note > small {
  display: block;
  color: #766780;
  font-size: 0.78571rem;
  line-height: 1.9;
  margin: 7px 0;
}
.garden-flower {
  font-size: 1.8571rem;
  color: #9875ad;
  line-height: 1;
}
.text-link {
  padding: 4px 0;
  background: none;
  color: var(--accent);
  font-size: 0.71429rem;
  text-align: left;
}
.sidebar-help {
  display: flex;
  gap: 9px;
  text-decoration: none;
  font-size: 0.78571rem;
  color: var(--muted);
  padding: 20px 12px;
}
.sidebar-help .icon {
  width: 16px;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 18px 5px 0;
  text-align: left;
}
.account-avatar {
  display: grid;
  place-items: center;
  background: #eee8f7;
  color: var(--accent);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.5714rem;
  flex-shrink: 0;
}
.account-button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.account-button strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 117px;
  font-size: 0.71429rem;
  font-weight: 500;
}
.account-button small {
  display: block;
  color: #6d6277;
  font-size: 0.64286rem;
}
.account-button > span:last-child .icon {
  width: 16px;
  color: var(--muted);
}
.app-shell {
  margin-left: 232px;
}
.app-header {
  position: sticky;
  top: 0;
  height: 83px;
  padding: 0 38px;
  background: #ffffffed;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 15;
}
.breadcrumb {
  font-size: 0.78571rem;
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb span {
  padding: 0 13px;
  color: #bcb4c5;
}
.breadcrumb strong {
  color: #564a62;
  font-weight: 500;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header-actions > [role="status"] {
  font-size: 0.71429rem;
  color: var(--muted);
  margin-right: 10px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 0.78571rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition:
    background 0.16s,
    transform 0.16s;
}
.button .icon {
  width: 15px;
  height: 15px;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 3px 5px #70539b12;
}
.primary:hover {
  background: var(--accent-dark);
}
.secondary {
  background: var(--white);
  border: 1px solid #ddd6e5;
  color: #665975;
}
.secondary:hover {
  background: #f8f5fc;
}
.quiet {
  background: var(--soft);
  color: var(--accent);
}
.danger {
  color: var(--danger);
  border: 1px solid #e5bcc5;
  background: #fff9fa;
}
.danger-solid {
  background: var(--danger);
  color: white;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(355px, 440px);
  min-height: calc(100vh - 83px);
  max-width: 1460px;
  margin: auto;
}
.editing-pane {
  padding: 36px 40px 80px;
  min-width: 0;
}
.page-eyebrow {
  font:
    0.71429rem/1.5 Arial,
    sans-serif;
  color: #715f85;
  letter-spacing: 0.17em;
  margin-bottom: 9px;
}
.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.page-title-row h1 {
  font-size: 1.7857rem;
  line-height: 1.5;
  letter-spacing: 0.025em;
  margin: 0;
  font-weight: 600;
}
.page-title-row .count-badge {
  font:
    0.71429rem/1.6 Arial,
    sans-serif;
  color: #715f7c;
  background: #f0ebf5;
  border: 1px solid #e8e0f0;
  border-radius: 20px;
  padding: 5px 11px;
  white-space: nowrap;
}
.page-description {
  font-size: 0.78571rem;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 26px;
}
.profile-summary {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 19px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
}
.summary-avatar {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.7143rem;
}
.summary-copy {
  flex: 1;
  min-width: 0;
}
.summary-copy strong {
  font-size: 0.85714rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.summary-copy small {
  font-size: 0.71429rem;
  color: var(--muted);
}
.summary-edit {
  background: transparent;
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--accent);
  font-size: 0.71429rem;
  padding: 8px;
}
.summary-edit .icon {
  height: 14px;
  width: 14px;
}
.featured-hint {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f2edf8;
  border: 1px solid #e9e0f2;
  border-radius: 10px;
  margin-bottom: 23px;
}
.featured-hint .icon {
  color: #9876b1;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.featured-hint strong {
  font-size: 0.78571rem;
  font-weight: 500;
  color: #70568b;
}
.featured-hint p {
  font-size: 0.71429rem;
  color: #715f7f;
  margin: 3px 0 0;
  line-height: 1.7;
}
.links-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 14px;
}
.section-label {
  font-size: 0.78571rem;
  font-weight: 500;
  color: #72617f;
}
.toolbar-button {
  font-size: 0.71429rem;
  color: var(--muted);
  background: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
}
.toolbar-button .icon {
  height: 13px;
  width: 13px;
}
.link-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 0;
}
.link-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  overflow: hidden;
}
.link-card:hover {
  border-color: #cfc0df;
  box-shadow: 0 3px 12px #69527b07;
}
.link-card.featured-card {
  border-color: #ccb7df;
}
.link-card.is-hidden {
  background: #f7f5f9;
}
.link-card-header {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 16px 15px 11px;
}
.drag-handle {
  color: #beb6c5;
  cursor: grab;
  background: transparent;
  padding: 4px 0;
}
.drag-handle .icon {
  width: 13px;
  height: 20px;
}
.service-square {
  width: 35px;
  height: 35px;
  border: 1px solid #ede8f3;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #8b6da3;
  background: #f7f4fa;
  font:
    1.2857rem Arial,
    sans-serif;
}
.service-square.youtube {
  background: #fff2f2;
  color: #bc4256;
  border-color: #f5e2e4;
}
.service-square.x {
  background: #f3f3f5;
  color: #50465a;
  border-color: #e8e5ec;
}
.card-heading {
  min-width: 0;
  flex: 1;
}
.card-heading strong {
  display: block;
  font-size: 0.78571rem;
  line-height: 1.7;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.card-heading small {
  font-size: 0.64286rem;
  color: #6c6376;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  padding: 6px;
  border-radius: 7px;
  background: transparent;
  color: #9789a3;
}
.icon-button .icon {
  width: 16px;
  height: 16px;
}
.icon-button:hover {
  background: #f0ebf6;
  color: var(--accent);
}
.star-button[aria-pressed="true"] {
  color: #9770b0;
  background: #f4edf9;
}
.star-button[aria-pressed="true"] svg {
  fill: #9770b029;
}
.link-card-bottom {
  padding: 0 15px 12px 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.block-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 6px 15px;
}
.block-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--danger);
  font-size: 0.85714rem;
}
.block-delete-button .icon {
  width: 16px;
  height: 16px;
}
.block-delete-button:hover {
  background: #fff1f3;
  border-color: #eac2ca;
}
.block-delete-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.block-card-actions .reorder-actions {
  gap: 8px;
}
.block-card-actions .reorder-actions .icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  color: #5d4088;
  background: #f1edf7;
  border: 1px solid #c6b4d8;
  border-radius: 10px;
}
.block-card-actions .reorder-actions .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}
.block-card-actions .reorder-actions .icon-button:hover:not(:disabled) {
  background: #e5dcef;
  border-color: #70539b;
}
.block-card-actions .reorder-actions .icon-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.block-card-actions .reorder-actions .icon-button:disabled {
  opacity: 1;
  color: #9b94a3;
  background: #f7f6f9;
  border-color: #e8e3ed;
}
.delete-target-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  overflow-wrap: anywhere;
}
.delete-target-preview p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 0.85714rem;
}
.link-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.57143rem;
  line-height: 1.5;
  border-radius: 5px;
  padding: 3px 6px;
  white-space: nowrap;
}
.tag-purpose {
  background: #f2eff6;
  color: #725e83;
}
.tag-active {
  color: #456e5d;
  background: #edf5f0;
}
.tag-preparing {
  background: #f8f2e8;
  color: #7c6232;
}
.tag-ended {
  background: #efedf2;
  color: #7d7486;
}
.tag-hidden {
  background: #ece8f2;
  color: #715e84;
}
.tag-star {
  color: #7f5599;
  background: #f5eefa;
}
.reorder-actions {
  display: flex;
  gap: 1px;
}
.reorder-actions .icon-button {
  min-width: 25px;
  min-height: 25px;
  padding: 4px;
}
.reorder-actions .icon {
  width: 12px;
  height: 12px;
}
.add-link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #c6b4d8;
  color: #7d5f9a;
  background: #f6f2fb;
  width: 100%;
  padding: 17px;
  margin-top: 15px;
  font-size: 0.78571rem;
  border-radius: 11px;
}
.add-link-button:hover {
  background: #eee7f7;
  border-color: #9c7eba;
}
.add-link-button .icon {
  width: 16px;
  height: 16px;
}
.small-hint {
  font-size: 0.71429rem;
  color: #6d6278;
  margin: 15px 0;
  line-height: 1.8;
}
.small-hint .icon {
  width: 13px;
  height: 13px;
  margin-right: 5px;
}
.preview-pane {
  position: sticky;
  top: 83px;
  align-self: start;
  height: calc(100vh - 83px);
  min-height: 650px;
  background: linear-gradient(155deg, #f2eff7, #f4f0f4 60%, #eff0f5);
  border-left: 1px solid var(--line);
  padding: 32px 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preview-heading {
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.71429rem;
  color: #766585;
}
.preview-heading > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #a38ab5;
  box-shadow: 0 0 0 3px #e8e0ee;
}
.preview-device {
  width: 100%;
  max-width: 340px;
  border: 6px solid #fff;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 15px 45px #52426712,
    0 1px 5px #52426714;
  overflow: hidden;
  flex: 1;
  min-height: 400px;
  max-height: 710px;
  display: flex;
  flex-direction: column;
}
.device-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  border-bottom: 1px solid #eee9f1;
  color: #6d6278;
  font:
    0.64286rem Arial,
    sans-serif;
  background: #fff;
}
.device-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d8d0e0;
}
.device-bar > span:nth-child(2) {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 230px;
}
.device-bar .icon {
  width: 10px;
  height: 10px;
  margin-left: 4px;
}
.phone-screen {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  flex: 1;
  border-radius: 0 0 20px 20px;
}
.phone-screen > .public-profile {
  min-height: 100%;
}
.preview-note {
  font-size: 0.57143rem;
  color: #8d8098;
  text-align: center;
  line-height: 1.9;
  max-width: 330px;
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.preview-note .icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.publication-state {
  font-size: 0.64286rem;
  color: #7c6d8a;
  text-align: center;
  margin-top: 7px;
}
.publication-state a {
  text-underline-offset: 3px;
}
.local-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.64286rem;
  color: #8b6d43;
  margin: -13px 0 20px;
}
.local-notice .icon {
  width: 13px;
  height: 13px;
}
.notice-detail {
  color: #73644f;
  margin-left: 6px;
}
[hidden] {
  display: none !important;
}
.mobile-view-switch {
  display: none;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 23px;
  margin: 20px 0;
}
.form-card h2 {
  font-size: 0.92857rem;
  margin: 0 0 17px;
  font-weight: 600;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field:last-child {
  margin-bottom: 0;
}
.field > span,
.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78571rem;
  margin-bottom: 7px;
  font-weight: 500;
}
.field .optional {
  font-size: 0.64286rem;
  color: #6f6177;
  font-weight: 400;
}
.field small {
  display: block;
  font-size: 0.71429rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px;
}
input:not([type="checkbox"], [type="color"], [type="range"]),
textarea,
select {
  width: 100%;
  border: 1px solid #ddd5e6;
  background: #fdfcfe;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  color: var(--ink);
  min-width: 0;
  font-size: 0.85714rem;
  line-height: 1.7;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #9b7db6;
  box-shadow: 0 0 0 3px #a582c21a;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #ddd5e6;
  border-radius: 8px;
  overflow: hidden;
}
.input-prefix > span {
  padding: 10px 0 10px 12px;
  font:
    0.71429rem Arial,
    sans-serif;
  color: #6f617a;
  white-space: nowrap;
}
.input-prefix input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 3px !important;
}
.field-error {
  font-size: 0.71429rem;
  color: var(--danger);
  margin-top: 5px;
}
.error-summary {
  border: 1px solid #e4b4be;
  background: #fff5f7;
  padding: 13px 15px;
  color: #9a354a;
  border-radius: 8px;
  font-size: 0.78571rem;
  margin: 15px 0;
}
.upload-pair {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: center;
}
.avatar-upload-preview {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1edf7;
  display: grid;
  place-items: center;
  font-size: 2.5714rem;
  color: #a68bb9;
}
.upload-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.upload-label input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}
.upload-label:focus-within {
  outline: 3px solid #8763b6;
  outline-offset: 4px;
}
.cover-upload-preview {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee8f5;
  margin-bottom: 10px;
}
.remove-image {
  background: transparent;
  color: #746077;
  font-size: 0.71429rem;
  text-decoration: underline;
  padding: 10px;
}
.theme-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.filter-chip {
  background: transparent;
  color: #735f80;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 0.71429rem;
}
.filter-chip[aria-pressed="true"] {
  background: #eee6f7;
  border-color: #e1d3ed;
  color: #70539b;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.theme-option {
  padding: 7px 6px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  position: relative;
  min-width: 0;
}
.theme-option[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.theme-sample {
  border-radius: 6px;
  padding: 10px 12px 8px;
  background: var(--t-bg);
  display: grid;
  gap: 4px;
  height: 69px;
  place-content: center;
}
.theme-sample > i:first-child {
  width: 14px;
  height: 14px;
  border: 2px solid var(--t-panel);
  border-radius: 50%;
  background: var(--t-accent);
  justify-self: center;
  margin-bottom: 2px;
}
.theme-sample > i:nth-child(2),
.theme-sample > i:nth-child(3) {
  width: 35px;
  height: 7px;
  border-radius: 2px;
  background: var(--t-panel);
  display: block;
}
.theme-sample > i:nth-child(3) {
  background: var(--t-accent);
}
.theme-option > span:last-child {
  display: block;
  font-size: 0.57143rem;
  padding-top: 5px;
  color: #766483;
  white-space: nowrap;
}
.theme-check {
  position: absolute;
  right: 4px;
  top: 3px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.57143rem;
  width: 14px;
  height: 14px;
}
.color-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.color-control {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  font-size: 0.71429rem;
}
.color-control input[type="color"] {
  padding: 0;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  cursor: pointer;
}
.color-control input[type="text"] {
  width: 82px;
  font-size: 0.71429rem;
  padding: 5px;
}
.color-control label {
  flex: 1;
}
.contrast-warning {
  font-size: 0.71429rem;
  color: #81602d;
  border: 1px solid #e8d6b1;
  background: #fffaf0;
  padding: 12px;
  border-radius: 8px;
  margin: 15px 0;
}
.contrast-warning p {
  margin: 3px 0;
}
.contrast-good {
  font-size: 0.71429rem;
  color: #4e7b68;
  margin: 15px 0;
}
.design-details {
  margin: 22px 0;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.design-details summary {
  font-size: 0.85714rem;
  cursor: pointer;
  color: #655274;
}
.design-details > .color-fields {
  margin-top: 18px;
}
.range-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 0.71429rem;
  margin: 18px 0;
}
input[type="range"] {
  accent-color: var(--accent);
  width: 100%;
}
.range-row output {
  font-size: 0.71429rem;
  color: #71607b;
  text-align: right;
}
.segmented {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #f1edf6;
  border-radius: 8px;
  flex-wrap: wrap;
}
.segmented button {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  background: transparent;
  font-size: 0.71429rem;
  color: #70607d;
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 4px #49305e0b;
  color: var(--accent);
}
.button-stack {
  display: grid;
  gap: 10px;
}
.settings-state {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.85714rem;
}
.settings-state p {
  margin: 3px 0;
  font-size: 0.71429rem;
  color: var(--muted);
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 13px 22px;
  border-radius: 12px;
  background: #44354f;
  color: white;
  font-size: 0.85714rem;
  box-shadow: 0 10px 30px #34263f30;
  line-height: 1.8;
}
.toast.is-error {
  background: #94354b;
}
dialog {
  border: 1px solid #e8dfef;
  max-width: min(540px, calc(100vw - 28px));
  width: 540px;
  max-height: calc(100dvh - 40px);
  border-radius: 18px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 25px 100px #30243e20;
  overflow: auto;
}
dialog::backdrop {
  background: #31213f5c;
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 1.2143rem;
  margin: 0;
  font-weight: 600;
}
.modal-body {
  padding: 24px 26px;
}
.modal-body > p {
  font-size: 0.85714rem;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 20px;
}
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #fbf9fd;
}
.modal-footer .button {
  min-height: 42px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.78571rem;
  line-height: 1.9;
  margin: 18px 0;
}
.check-label input {
  margin-top: 4px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.check-label small {
  font-size: 0.71429rem;
  display: block;
  color: var(--muted);
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.two-fields > .field {
  margin: 0;
}
.modal-link-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 0;
}
.link-delete {
  background: transparent;
  color: var(--danger);
  font-size: 0.71429rem;
  padding: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.link-delete .icon {
  width: 14px;
  height: 14px;
}
.empty-state {
  border: 1px dashed #d6c7e4;
  border-radius: 12px;
  padding: 35px 20px;
  background: #fff;
  text-align: center;
}
.empty-state .icon {
  width: 30px;
  height: 30px;
  color: #aa8fbe;
}
.empty-state h2 {
  font-size: 0.92857rem;
  font-weight: 500;
}
.empty-state p {
  font-size: 0.78571rem;
  color: var(--muted);
}
.loading-state {
  padding: 100px 15px;
  text-align: center;
  font-size: 0.85714rem;
  color: var(--muted);
}
.loading-flower {
  color: #a38ab5;
  font-size: 2.5714rem;
}
.welcome-panel {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 14px;
}
.welcome-panel h2 {
  font-size: 1.2857rem;
  line-height: 1.9;
  margin: 0 0 12px;
}
.welcome-panel p {
  font-size: 0.85714rem;
  color: var(--muted);
  margin: 0 0 20px;
}
.welcome-panel .button {
  width: 100%;
  margin-top: 9px;
}
.onboarding-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.choice-button {
  border: 1px solid var(--line);
  padding: 18px 12px;
  border-radius: 10px;
  background: #fff;
  font-size: 0.78571rem;
}
.choice-button[aria-pressed="true"] {
  background: #f2ebf9;
  border-color: #b69ccb;
  color: var(--accent);
}
.review-list {
  margin: 0;
  padding: 15px 18px;
  background: #f5f1f9;
  border-radius: 10px;
  list-style: none;
  font-size: 0.85714rem;
  display: grid;
  gap: 5px;
}
.review-list span {
  color: var(--muted);
  font-size: 0.78571rem;
}
.share-url {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f6f1fa;
  border: 1px solid #e7dcec;
  padding: 12px;
  border-radius: 9px;
  overflow-wrap: anywhere;
  font-size: 0.85714rem;
}
.share-url a {
  min-width: 0;
  flex: 1;
}
.success-mark {
  display: grid;
  place-items: center;
  background: #eaf2ee;
  color: #4a7d65;
  font-size: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 18px;
}
.success-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px !important;
  color: var(--ink) !important;
}
.reset-note {
  font-size: 0.71429rem;
  color: var(--muted);
}
.bulk-preview {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.bulk-preview > div {
  padding: 10px;
  background: #f3eef8;
  border-radius: 6px;
  font-size: 0.78571rem;
  overflow-wrap: anywhere;
}
.upload-progress {
  font-size: 0.71429rem;
  color: var(--accent);
  margin-top: 10px;
}
.library-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.71429rem;
}
.library-item img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.library-item span {
  flex: 1;
}
.library-item button {
  font-size: 0.71429rem;
}
.noscript-note {
  position: fixed;
  bottom: 0;
  left: 0;
  background: #fff0c5;
  color: #564c22;
  z-index: 200;
  width: 100%;
  padding: 20px;
  margin: 0;
}
.guide-content {
  max-width: 760px;
  padding: 50px 24px 90px;
  margin: auto;
}
.guide-content h1 {
  font-size: 2.2857rem;
}
.guide-content h2 {
  font-size: 1.2857rem;
  margin-top: 40px;
}
.guide-content p,
.guide-content li {
  font-size: 0.92857rem;
  line-height: 2;
  color: #6e627e;
}
.guide-content .brand {
  margin-bottom: 45px;
}
.guide-content li {
  margin-bottom: 10px;
}
@media (min-width: 1600px) {
  .editing-pane {
    padding: 42px 55px;
  }
  .editor-layout {
    grid-template-columns: minmax(470px, 1fr) 470px;
  }
  .preview-pane {
    padding: 35px 50px;
  }
  .preview-device {
    max-width: 355px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .app-shell {
    margin-left: 200px;
  }
  .app-header {
    padding: 0 25px;
  }
  .editing-pane {
    padding: 32px 26px 70px;
  }
  .editor-layout {
    grid-template-columns: minmax(340px, 1fr) minmax(300px, 360px);
  }
  .preview-pane {
    padding: 30px 24px;
  }
  .header-actions > [role="status"] {
    display: none;
  }
  .breadcrumb {
    font-size: 0.71429rem;
  }
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .color-fields {
    grid-template-columns: 1fr;
  }
  .garden-note {
    padding: 16px 12px;
  }
  .brand > span {
    font-size: 1.6429rem;
  }
  .notice-detail {
    display: none;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 84px;
    padding: 25px 12px;
    align-items: center;
  }
  .sidebar > .brand {
    padding: 0;
  }
  .sidebar .brand > span,
  .workspace-label,
  .sidebar-bottom,
  .nav-arrow,
  .nav-divider {
    display: none;
  }
  .sidebar nav {
    margin-top: 45px;
    width: 100%;
    gap: 12px;
  }
  .nav-button {
    font-size: 0;
    gap: 0;
    padding: 15px;
    justify-content: center;
  }
  .nav-button .icon {
    width: 22px;
    height: 22px;
  }
  .app-shell {
    margin-left: 84px;
  }
  .editor-layout {
    grid-template-columns: minmax(340px, 1fr) minmax(290px, 340px);
  }
  .app-header {
    height: 76px;
    padding: 0 24px;
  }
  .preview-pane {
    top: 76px;
    height: calc(100vh - 76px);
    padding: 27px 22px;
  }
  .editor-layout {
    min-height: calc(100vh - 76px);
  }
  .button {
    padding: 10px 14px;
  }
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 780px) {
  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 64px;
    padding: 13px 18px 0;
    align-items: stretch;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .brand {
    width: max-content;
    padding-bottom: 12px;
  }
  .sidebar .brand img {
    width: 27px;
    height: 27px;
  }
  .sidebar .brand > span {
    display: block;
    font-size: 1.5714rem;
  }
  .sidebar .brand small {
    display: none;
  }
  .sidebar nav {
    margin-top: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-button {
    font-size: 0.71429rem;
    gap: 5px;
    padding: 9px 10px;
    min-height: 38px;
    flex: 1;
    justify-content: center;
    border-radius: 8px 8px 0 0;
  }
  .nav-button .icon {
    width: 15px;
    height: 15px;
  }
  .app-shell {
    margin-left: 0;
  }
  .app-header {
    position: fixed;
    top: 10px;
    right: 12px;
    height: 38px;
    border: 0;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
    gap: 8px;
    z-index: 30;
  }
  .breadcrumb {
    display: none;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .button {
    min-height: 34px;
    font-size: 0.71429rem;
    border-radius: 7px;
    padding: 8px 12px;
    gap: 5px;
  }
  .header-actions .button .icon {
    width: 13px;
    height: 13px;
  }
  .save-button .icon {
    display: none;
  }
  .editor-layout {
    display: block;
    min-height: calc(100vh - 103px);
  }
  .editing-pane {
    padding: 28px 22px 120px;
    max-width: 620px;
    margin: auto;
  }
  .page-title-row h1 {
    font-size: 1.6429rem;
  }
  .page-description {
    font-size: 0.78571rem;
  }
  .profile-summary {
    padding: 15px;
  }
  .preview-pane {
    display: none;
    position: relative;
    top: 0;
    height: auto;
    min-height: calc(100vh - 104px);
    padding: 25px 25px 120px;
    border: 0;
  }
  .preview-device {
    min-height: 600px;
    max-height: none;
    flex: auto;
    width: min(100%, 390px);
  }
  .phone-screen {
    overflow: visible;
  }
  .mobile-preview .editing-pane {
    display: none;
  }
  .mobile-preview .preview-pane {
    display: flex;
  }
  .mobile-view-switch {
    position: fixed;
    display: flex;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #d9cbe6;
    border-radius: 50px;
    padding: 5px;
    background: #fffffff2;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px #4b355521;
    z-index: 25;
    gap: 3px;
  }
  .mobile-view-switch button {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    padding: 11px 22px;
    font-size: 0.78571rem;
    color: #8c769f;
    background: transparent;
    white-space: nowrap;
    min-width: 102px;
  }
  .mobile-view-switch .icon {
    width: 14px;
    height: 14px;
  }
  .mobile-view-switch button[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
  }
  .local-notice {
    margin: -7px 0 18px;
  }
  .toast {
    bottom: 92px;
    left: 50%;
    width: max-content;
  }
  .theme-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .color-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar .nav-button:nth-last-child(1) {
    font-size: 0.71429rem;
  }
  .preview-note {
    font-size: 0.71429rem;
  }
  .publication-state {
    font-size: 0.71429rem;
  }
  .form-card {
    padding: 20px;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 16px 20px;
  }
  .account-button {
    display: none;
  }
  .notice-detail {
    display: inline;
  }
  .preview-device {
    border-width: 5px;
  }
  .preview-heading {
    max-width: 390px;
  }
  .theme-option > span:last-child {
    font-size: 0.64286rem;
  }
}
@media (max-width: 390px) {
  .sidebar {
    padding: 13px 10px 0;
  }
  .sidebar .brand > span {
    font-size: 1.3571rem;
  }
  .sidebar .brand {
    gap: 6px;
  }
  .sidebar .brand img {
    width: 25px;
    height: 25px;
  }
  .header-actions .button {
    font-size: 0.64286rem;
    padding: 8px 9px;
  }
  .header-actions .button .icon {
    display: none;
  }
  .nav-button {
    font-size: 0.64286rem;
    padding: 9px 6px;
    gap: 4px;
  }
  .nav-button .icon {
    width: 13px;
    height: 13px;
  }
  .editing-pane {
    padding: 24px 15px 120px;
  }
  .page-title-row h1 {
    font-size: 1.5rem;
  }
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .color-fields {
    grid-template-columns: 1fr;
  }
  .notice-detail {
    display: none;
  }
  .link-card-header {
    gap: 9px;
    padding-left: 12px;
    padding-right: 10px;
  }
  .link-card-bottom {
    padding-left: 40px;
    padding-right: 10px;
  }
  .summary-edit {
    font-size: 0.64286rem;
    gap: 3px;
  }
  .modal-header h2 {
    font-size: 1.0714rem;
  }
  .modal-body,
  .modal-header {
    padding: 18px;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .theme-sample {
    padding: 10px;
  }
  .mobile-view-switch button {
    padding: 10px 19px;
  }
  .tag {
    font-size: 0.57143rem;
  }
  .card-heading small {
    max-width: 170px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 780px) {
  .reorder-actions .icon-button {
    min-height: 34px;
    min-width: 30px;
  }
  .nav-button {
    white-space: normal;
    min-width: 0;
  }
  .nav-button span:has(.icon) {
    flex-shrink: 0;
  }
}
.summary-copy strong {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.summary-copy small {
  overflow-wrap: anywhere;
}
.summary-edit {
  flex-shrink: 0;
}
@media (max-width: 390px) {
  .sidebar .brand > span {
    display: none;
  }
  .sidebar > .brand {
    min-height: 38px;
    align-items: flex-start;
  }
  .nav-button {
    flex-direction: column;
    gap: 3px;
    text-align: center;
  }
  .sidebar .nav-button:nth-last-child(1) {
    font-size: 0.64286rem;
  }
  .summary-edit {
    font-size: 0.64286rem;
  }
}
.mobile-save-state {
  display: none;
}
@media (max-width: 780px) {
  .mobile-save-state {
    display: block;
    font-size: 0.64286rem;
    color: var(--muted);
    margin: -4px 0 17px;
  }
  .profile-summary {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .summary-edit {
    grid-column: 2;
    justify-self: start;
    padding: 0;
  }
  .summary-copy strong {
    font-size: 0.85714rem;
  }
  .summary-copy small {
    font-size: 0.71429rem;
  }
}
.preview-note,
.publication-state,
.garden-note > small {
  color: #6e627e;
}
.phone-screen:focus-visible {
  outline: 3px solid #70539b;
  outline-offset: -3px;
}
.link-image-controls {
  border: 1px solid var(--line);
  background: #faf8fc;
  border-radius: 12px;
  padding: 15px;
  margin: 0 0 20px;
}
.link-image-controls h3 {
  margin: 0 0 10px;
  font-size: 0.85714rem;
}
.link-image-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.link-image-top .service-square {
  width: 52px;
  height: 52px;
}
.link-image-top .button {
  min-height: 38px;
}
.link-image-file {
  position: absolute;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}
.link-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.link-preset {
  border: 1px solid #d6cadd;
  background: #fff;
  border-radius: 8px;
  padding: 9px 4px;
  font-size: 0.71429rem;
  min-height: 42px;
}
.link-preset[aria-pressed="true"] {
  border-color: #70539b;
  background: #ece4f5;
  color: #5d4088;
  box-shadow: inset 0 0 0 1px #70539b;
}
.link-preset span {
  display: block;
  font-size: 1.14rem;
}
.link-preset.brand-choice {
  grid-column: 1/-1;
  text-align: left;
  padding: 11px;
}
.link-preset.brand-choice small {
  display: block;
  font-size: 0.64286rem;
  color: #706177;
  margin-top: 4px;
}
.link-art-preview .brand-art {
  margin-top: 12px;
}
.link-image-progress {
  font-size: 0.71429rem;
  color: #70539b;
  line-height: 1.8;
}
.avatar-position-controls {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.avatar-crop-editor {
  display: grid;
  justify-items: center;
  gap: 12px;
  background: #f0ebf7;
  padding: 24px 16px;
  border-radius: 12px;
}
.avatar-crop-editor .profile-avatar {
  position: relative;
  top: 0;
  margin: 0;
  width: 180px;
  height: 180px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.avatar-crop-editor .profile-avatar:active {
  cursor: grabbing;
}
.avatar-crop-editor p {
  font-size: 0.71429rem;
  color: #6e627e;
  margin: 0;
}
.avatar-crop-editor .profile-avatar:focus-visible {
  outline: 3px solid #70539b;
  outline-offset: 5px;
}
.crop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crop-reset {
  background: transparent;
  color: #70539b;
  text-decoration: underline;
  font-size: 0.71429rem;
  padding: 8px;
}
.summary-avatar.avatar-crop {
  padding: 0;
  display: block;
  flex-shrink: 0;
}
.link-image-file:focus-visible + span {
  outline: 3px solid #70539b;
}
@media (max-width: 390px) {
  .link-preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .link-image-controls {
    padding: 12px;
  }
  .link-image-top {
    flex-wrap: wrap;
  }
}
#modal:has(.link-image-controls) {
  scroll-padding-block: 7rem 10rem;
}
#modal:has(.link-image-controls) .modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}
#modal:has(.link-image-controls) .modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.add-text-button {
  margin-top: 10px;
}
.text-block-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 15px 16px 45px;
  color: var(--muted);
  line-height: 1.7;
}
.text-body-count {
  text-align: right;
}
#text-form textarea {
  line-height: 1.8;
  resize: vertical;
}

.text-block-card .service-square {
  color: #574163;
}
.video-mode-controls {
  margin: 22px 0;
  border: 0;
  padding: 0;
  min-width: 0;
}
.video-mode-controls legend {
  font-weight: 600;
  margin-bottom: 10px;
}
.video-mode-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.video-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 8px;
  cursor: pointer;
}
.video-mode-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}
.video-mode-option:has(input:disabled) {
  cursor: default;
  color: var(--muted);
}
.video-mode-option input {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  flex: 0 0 16px;
  margin: 4px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.video-mode-option > span {
  min-width: 0;
}
.video-mode-option strong {
  display: block;
  font-size: 0.85714rem;
}
.video-mode-option small {
  display: block;
  font-size: 0.71429rem;
  margin-top: 5px;
  line-height: 1.7;
}
.video-mode-preview img {
  display: block;
  max-width: 100%;
  width: 280px;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
  border-radius: 8px;
}
@media (max-width: 500px) {
  .video-mode-options {
    grid-template-columns: 1fr;
  }
}
.link-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.link-preview-actions .button {
  font-size: 0.9rem;
  min-height: 44px;
  white-space: normal;
  max-width: 100%;
}
.link-preview-actions [hidden] {
  display: none;
}
