@charset "UTF-8";
/* ===== styles.css ===== */
/* ============================================================
   忍者LINK LP - styles.css
   モバイルファースト / ダークモード基調
   ============================================================ */
/* ---------- Design tokens ---------- */
:root {
  --cover-media-ratio: 10 / 3;
  --bg: #0a0a0d;
  --bg-2: #141116;
  --surface: #17141b;
  --surface-2: #1d1922;
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.22);
  --text: #ffffff;
  --text-2: rgba(255,255,255,.66);
  --text-3: rgba(255,255,255,.42);
  --violet: #ff2d78;
  --cyan: #ff2d78;
  --pink: #ff2d78;
  --grad: linear-gradient(100deg, #ff2d78 0%, #9c1450 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,45,120,.16), rgba(255,45,120,.04));
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
  --container: 1120px;
  --pad: 20px;
  --ease: cubic-bezier(.22,.7,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container--narrow {
  max-width: 780px;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section__head {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(24px, 6vw, 40px);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.section__lead {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.br-pc {
  display: none;
}

.br-sp {
  display: inline;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--grad);
  color: #08090D;
  box-shadow: 0 8px 24px rgba(110, 120, 255, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 12px 32px rgba(110, 120, 255, 0.42);
}

.btn--google {
  background: #fff;
  color: #1F2330;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn--google:hover {
  background: #F4F6FA;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn--lg {
  padding: 17px 30px;
  font-size: 16px;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.gicon {
  flex: none;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 11, 16, 0.9);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo__text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.logo__accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  position: fixed;
  inset: 64px 0 auto 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 12px var(--pad) 24px;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s var(--ease), opacity 0.25s var(--ease), visibility 0.32s;
}

.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav > a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}

.nav > a:hover {
  color: var(--text);
}

.nav__cta {
  margin-top: 14px;
  border-bottom: none;
  color: #08090D;
  justify-content: center;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded=true] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded=true] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded=true] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 画像プレースホルダー */
.ph {
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.14), rgba(255, 255, 255, 0.04)), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px), #17141b;
  border: 1px dashed var(--line-strong);
  object-fit: cover;
}

.ph--wide {
  aspect-ratio: 16/9;
}

.ph--emblem {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  margin: 0 auto 26px;
}

/* ===== editor.css ===== */
/* ============================================================
   忍者LINK 編集画面 - editor.css
   styles.css のデザイントークンを継承して上書き・追加する
   ============================================================ */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(60% 40% at 50% -8%, rgba(139, 92, 255, 0.16), transparent 70%), var(--bg);
}

/* ---------- 汎用パーツ ---------- */
.iconbtn {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 14px;
  transition: all 0.2s var(--ease);
}

.iconbtn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

/* OS依存の絵文字を使わない、アプリ共通の線画アイコン。 */
.ui-icon {
  display: block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon--inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
}

.drawer__ico .ui-icon,
.tool__ico .ui-icon {
  margin-inline: auto;
}

/* 既存のダッシュボードHTMLも同じSVG調のアイコンへ統一する。 */
.dashboard-menu i,
.help-card__icon {
  color: transparent;
  font-size: 0;
  background-color: currentColor;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.dashboard-menu a[href*="account"] i {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E11313' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h5m4 0h7M4 12h10m4 0h2M4 17h2m4 0h10'/%3E%3Ccircle cx='11' cy='7' r='2'/%3E%3Ccircle cx='16' cy='12' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E");
}

.dashboard-menu a[href*="help"] i {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E11313' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.7 9a2.5 2.5 0 1 1 3.5 2.3c-.8.4-1.2.9-1.2 1.7v.3M12 17.2h.01'/%3E%3C/svg%3E");
}

.help-card__icon {
  width: 42px;
  height: 42px;
}

.help-card:nth-child(1) .help-card__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E11313' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4c2.2-1.4 4.4-1.5 6-1-1 5-3.7 8-7.5 10.5L9 10c1.4-2.3 3.1-4.4 5-6Z'/%3E%3Ccircle cx='15.7' cy='7.3' r='1.4'/%3E%3Cpath d='M9 10 5.5 9 3 11.5 7 13m5.5.5L14 17l-2.5 2.5-1-4M6.5 16.5 4 19'/%3E%3C/svg%3E"); }
.help-card:nth-child(2) .help-card__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E11313' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0 0 18h1.2a2 2 0 0 0 1.3-3.5c-.8-.7-.3-2 .8-2H18a3 3 0 0 0 3-3A9 9 0 0 0 12 3Z'/%3E%3Ccircle cx='7.5' cy='11' r='1'/%3E%3Ccircle cx='10' cy='7' r='1'/%3E%3Ccircle cx='15' cy='7.5' r='1'/%3E%3C/svg%3E"); }
.help-card:nth-child(3) .help-card__icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E11313' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 14.5 5-5M7.8 16.2l-1.4 1.4a3.5 3.5 0 0 1-5-5l3-3a3.5 3.5 0 0 1 5 0m6.8-1.8 1.4-1.4a3.5 3.5 0 0 1 5 5l-3 3a3.5 3.5 0 0 1-5 0'/%3E%3C/svg%3E"); }

.btn--danger {
  background: rgba(255, 90, 110, 0.1);
  border: 1px solid rgba(255, 90, 110, 0.34);
  color: #FF8A9B;
}

.btn--danger:hover {
  background: rgba(255, 90, 110, 0.18);
}

/* ============================================================
   アプリバー
   ============================================================ */
.appbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 11, 16, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.appbar__inner {
  height: 60px;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.appbar__preview {
  display: none;
}

.publish-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.publish-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.publish-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8a8f9d;
  box-shadow: 0 0 0 3px rgba(138, 143, 157, 0.12);
}

.publish-status[data-published="true"] { color: #8df0ad; }
.publish-status[data-published="true"] .publish-status__dot {
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14);
}

.publish-control .btn:disabled {
  cursor: wait;
  opacity: 0.58;
}

/* styles.css では PC でハンバーガーを隠しているが、編集画面では常に表示する */
.appbar .nav-toggle {
  display: grid;
}

.savestate {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.savestate__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  transition: background 0.3s var(--ease);
}

.savestate.is-saving .savestate__dot {
  background: var(--cyan);
  animation: pulse 1.2s infinite;
}

/* スマホでは操作が多い上部バーを1画面内に収める。 */
@media (max-width: 599px) {
  .appbar__inner {
    padding-inline: 10px;
    gap: 6px;
  }
  .appbar__inner > .logo {
    flex: none;
  }
  .appbar__inner > .logo .logo__text,
  .publish-status {
    display: none;
  }
  .appbar__right,
  .publish-control {
    min-width: 0;
    gap: 6px;
  }
  .appbar__right .btn {
    min-height: 36px;
    padding-inline: 10px;
  }
}

/* ============================================================
   ドロワー
   ============================================================ */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 7, 11, 0.66);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.scrim.is-on {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(320px, 86vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
  overflow-y: auto;
}

.drawer.is-open {
  transform: none;
}

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

.drawer__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.drawer__avatar-frame {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  flex: 0 0 44px;
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
}

.drawer__avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center;
}

.drawer__name {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
}

.drawer__id {
  font-size: 12px;
  color: var(--text-3);
  word-break: break-all;
}

.drawer__list {
  display: grid;
  gap: 2px;
}

.drawer__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.drawer__list a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.drawer__ico {
  width: 22px;
  text-align: center;
}

.drawer__foot {
  margin-top: auto;
  display: grid;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

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

.drawer__legal a {
  font-size: 12px;
  color: var(--text-3);
}

.drawer__legal a:hover {
  color: var(--text-2);
}

/* ============================================================
   ワークスペース
   ============================================================ */
.workspace {
  flex: 1;
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 20px 16px 24px; /* 下部ドックぶんの余白はフッター側で確保 */
}

.media-integrity-warning {
  position: fixed;
  z-index: 70;
  top: 76px;
  left: 50%;
  width: min(620px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--red) 42%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--red));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  transform: translateX(-50%);
}

.media-integrity-warning[hidden] { display: none; }

/* ---------- 稼働状況 ---------- */
.watch-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0a0b10;
  color: #f2f3f8;
}

.watch-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: #14161d;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.watch-card h1 { margin: 6px 0 18px; font-size: clamp(24px, 6vw, 34px); }
.watch-summary { padding: 12px 14px; border-radius: 12px; font-weight: 800; }
.watch-summary.is-up { background: rgba(74,222,128,.12); color: #86efac; }
.watch-summary.is-down { background: rgba(239,68,68,.12); color: #fca5a5; }
.watch-list { margin: 20px 0 0; }
.watch-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.watch-list dt { color: #b7bbc8; }
.watch-list dd { margin: 0; font-weight: 900; }
.watch-list .is-up { color: #86efac; }
.watch-list .is-down { color: #fca5a5; }
.watch-list .is-disabled { color: #c4b5fd; }
.watch-time { margin: 18px 0 0; color: #858b9b; font-size: 12px; }

/* ---------- デザインツール（SP：下部ドック） ---------- */
.rail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  background: rgba(14, 16, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

.rail__head {
  display: none;
}

.tool {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
  color: var(--text-3);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.tool:hover, .tool.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.tool__ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 800;
}

.tool--ai .tool__ico {
  background: var(--grad);
  color: #08090D;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(110, 120, 255, 0.34);
}

.tool__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- キャンバス ---------- */
.canvas {
  flex: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.urlbar {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
}

.urlbar__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-3);
  flex: none;
}

.urlbar__url {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.urlbar__copy {
  flex: none;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}

.urlbar__copy:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.urlbar__copy.is-done {
  background: var(--grad);
  color: #08090D;
  border-color: transparent;
}

.urlbar__edit {
  flex: none;
  display: grid;
  place-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}

.urlbar__edit:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.urlbar__edit .ui-icon {
  width: 14px;
  height: 14px;
}

.canvas__hint {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ============================================================
   スマホ枠エディタ
   ============================================================ */
.editphone {
  width: 100%;
  max-width: 420px;
}

.editphone__frame {
  /* 現行スマートフォンの主流に近い19.5:9。幅から高さを決め、短い固定枠にしない。 */
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(160deg, #2B2F3E, #10121A);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.07) inset;
}

/* 編集プレビューの端末外形は内容量に左右されない。内容だけを端末内でスクロールする。 */
.editphone__frame > .page {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--p-acc) 45%, transparent) transparent;
}

.editphone__frame > .page::-webkit-scrollbar { width: 5px; }
.editphone__frame > .page::-webkit-scrollbar-track { background: transparent; }
.editphone__frame > .page::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--p-acc) 45%, transparent);
}

/* ---------- 公開ページのプレビュー（テーマ変数） ---------- */
.page {
  --p-bg1:#FFE9F0;
  --p-bg2:#FFF6F2;
  --p-acc:#FF8FB4;
  --p-acc2:#FFC48A;
  --p-txt:#4A2B38;
  --p-btn:rgba(255,255,255,.75);
  --p-radius: 14px;
  display: flex;
  flex-direction: column;
  border-radius: 21px;
  overflow: hidden;
  min-height: 560px;
  padding-bottom: 22px;
  background: linear-gradient(170deg, var(--p-bg1), var(--p-bg2));
  color: var(--p-txt);
  text-align: center;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

.page[data-theme=neon] {
  --p-bg1:#1A1140;
  --p-bg2:#08131F;
  --p-acc:#9B6BFF;
  --p-acc2:#22D3EE;
  --p-txt:#F2F3F8;
  --p-btn:rgba(255,255,255,.09);
}

.page[data-theme=sakura] {
  --p-bg1:#FFE9F0;
  --p-bg2:#FFF6F2;
  --p-acc:#FF8FB4;
  --p-acc2:#FFC48A;
  --p-txt:#4A2B38;
  --p-btn:rgba(255,255,255,.75);
}

.page[data-theme=ocean] {
  --p-bg1:#062B45;
  --p-bg2:#0A4256;
  --p-acc:#38BDF8;
  --p-acc2:#5EEAD4;
  --p-txt:#EAF7FF;
  --p-btn:rgba(255,255,255,.12);
}

.page[data-theme=mono] {
  --p-bg1:#141414;
  --p-bg2:#232323;
  --p-acc:#D6D6D6;
  --p-acc2:#8A8A8A;
  --p-txt:#F5F5F5;
  --p-btn:rgba(255,255,255,.08);
}

.page[data-theme=citrus] {
  --p-bg1:#FFF3D6;
  --p-bg2:#FFE6C2;
  --p-acc:#FF9E3D;
  --p-acc2:#FFD166;
  --p-txt:#4A3418;
  --p-btn:rgba(255,255,255,.7);
}

.page[data-theme=violet] {
  --p-bg1:#EDE3FB;
  --p-bg2:#F7F1FF;
  --p-acc:#8B5CFF;
  --p-acc2:#B58CFF;
  --p-txt:#39265C;
  --p-btn:rgba(255,255,255,.8);
}

.page[data-theme=forest] {
  --p-bg1:#0E2A1F;
  --p-bg2:#14382A;
  --p-acc:#4ADE80;
  --p-acc2:#A3E635;
  --p-txt:#E9FBF0;
  --p-btn:rgba(255,255,255,.1);
}

.page[data-theme=midnight] {
  --p-bg1:#0B1020;
  --p-bg2:#151B33;
  --p-acc:#6E8BFF;
  --p-acc2:#C084FC;
  --p-txt:#EAEEFF;
  --p-btn:rgba(255,255,255,.08);
}

.page[data-font=sans] {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.page[data-font=mincho] {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

.page[data-font=round] {
  font-family: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "Hiragino Sans", sans-serif;
}

.page[data-font=mono] {
  font-family: ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
}

.page[data-font=bold] {
  font-family: "Arial Black", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 700;
  letter-spacing: .025em;
}

.page[data-font=classic] {
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: .035em;
}

.page[data-font=casual] {
  font-family: "Klee", "HanziPen SC", "Bradley Hand", "Hiragino Maru Gothic ProN", cursive;
  letter-spacing: .04em;
}

.page[data-btn=round] {
  --p-radius: 999px;
}

.page[data-btn=soft] {
  --p-radius: 14px;
}

.page[data-btn=square] {
  --p-radius: 2px;
}

.page[data-btn=outline] {
  --p-radius: 14px;
}

.page[data-btn=card] { --p-radius: 8px; }
.page[data-btn=shadow] { --p-radius: 16px; }
.page[data-btn=glass] { --p-radius: 18px; }

/* ---------- カバー / アバター ---------- */
.page__cover {
  position: relative;
  height: auto;
  aspect-ratio: var(--cover-media-ratio);
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(120deg, var(--p-acc), var(--p-acc2));
}

.page:not(.show-cover) .page__cover {
  display: none;
}

.page:not(.show-cover) .page__avatarwrap {
  margin-top: 28px;
}

.cover-visibility .setting-row {
  padding: 0;
  border: 0;
}

.page__coverimg {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  opacity: 0.5;
  object-fit: cover;
  transform-origin: center;
  transition: opacity 160ms ease;
}

.page__avatarwrap {
  position: relative;
  width: 92px;
  margin: -46px auto 0;
}

.page__avatar-media {
  position: relative;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--p-acc), var(--p-acc2));
}

.page__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid var(--p-bg2);
  background: linear-gradient(140deg, var(--p-acc), var(--p-acc2));
  object-fit: cover;
  transform-origin: center;
  transition: opacity 160ms ease;
}

/* 編集画面の未設定アバターだけは、保存済みの位置・拡大率に影響されず中央等倍に固定する。 */
.editphone .page__avatar.ph {
  object-position: 50% 50% !important;
  transform: none !important;
}

.page.is-profile-loading .page__coverimg,
.page.is-profile-loading .page__avatar,
.page__coverimg.is-media-loading,
.page__avatar.is-media-loading {
  opacity: 0 !important;
}

.editbtn {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: rgba(10, 11, 16, 0.78);
  color: #fff;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.editbtn:hover {
  transform: scale(1.08);
  background: rgba(10, 11, 16, 0.94);
}

.editbtn--cover {
  top: 10px;
  right: 10px;
}

.editbtn--avatar {
  bottom: 0;
  right: -2px;
}

/* ---------- 編集可能テキスト ---------- */
.page__field {
  position: relative;
  margin: 12px 16px 0;
}

.page__field .pencil {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.page__field:hover .pencil {
  opacity: 0.8;
}

.page__name, .page__bio {
  border-radius: 10px;
  border: 1px dashed transparent;
  padding: 7px 26px 7px 12px;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  word-break: break-word;
}

.page__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.page__bio {
  font-size: 12px;
  line-height: 1.75;
  opacity: 0.82;
}

.page__name:hover, .page__bio:hover {
  border-color: currentColor;
  background: rgba(127, 127, 127, 0.08);
}

.page__name:focus, .page__bio:focus {
  border-style: solid;
  border-color: var(--p-acc);
  background: rgba(127, 127, 127, 0.1);
}

[contenteditable]:empty::before {
  content: attr(data-placeholder);
  opacity: 0.4;
}

/* ---------- リンク一覧 ---------- */
.links {
  padding: 16px 16px 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.lnk {
  grid-column: span 6;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 40px 12px 12px;
  border-radius: var(--p-radius);
  background: var(--p-btn);
  border: 1px solid rgba(127, 127, 127, 0.18);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), border-radius 0.35s var(--ease);
}

.lnk--cols-2 {
  grid-column: span 3;
}

.lnk--cols-3 {
  grid-column: span 2;
}

.link-slot {
  grid-column: span 6;
  min-width: 0;
}

.link-slot--cols-2 {
  grid-column: span 3;
}

.link-slot--cols-3 {
  grid-column: span 2;
}

.link-slot > .lnk {
  width: 100%;
  height: 100%;
}

.lnk:has(.lnk__image) {
  display: grid;
  grid-template-columns: 14px 26px minmax(0, 1fr);
  padding: 0 0 12px;
  overflow: hidden;
  border-radius: min(var(--p-radius), 18px);
}

.lnk__image {
  grid-column: 1/-1;
  width: 100%;
  height: 128px;
  -o-object-fit: cover;
     object-fit: cover;
  background: linear-gradient(135deg, var(--p-acc), var(--p-acc2));
  transform-origin: center;
}

.lnk__image.is-media-loading,
.account-avatar-media.is-media-loading {
  opacity: 0;
}

.lnk__image,
.account-avatar-media {
  transition: opacity .18s ease;
}

.lnk__image[hidden] {
  display: none;
}

.media-position {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(80, 65, 72, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .56);
}

.media-position[hidden] { display: none; }

.media-status {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cyan) 10%, var(--surface));
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.55;
}

.media-status.is-error {
  background: color-mix(in srgb, var(--red) 11%, var(--surface));
  color: var(--red);
}

.media-position__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.media-position__head strong {
  line-height: 1.45;
}

.media-position__head button {
  color: var(--red);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.media-position__zoom {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
}

.media-position__zoom input[type=range] {
  width: 100%;
  accent-color: var(--red);
}

.media-position__zoom output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.media-drag-surface {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.media-drag-surface img,
.media-drag-surface video {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.media-drag-surface.is-position-dragging {
  cursor: grabbing;
}

.media-drag-surface:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red) 45%, transparent);
  outline-offset: 3px;
}

.lnk--cols-2 .lnk__image, .link-slot--cols-2 .lnk__image {
  height: 118px;
}

.lnk--cols-3 .lnk__image, .link-slot--cols-3 .lnk__image {
  height: 96px;
}

.lnk--cols-2:has(.lnk__image), .lnk--cols-3:has(.lnk__image) {
  grid-template-columns: 12px 24px minmax(0, 1fr);
}

.lnk--cols-2 .lnk__url, .lnk--cols-3 .lnk__url,
.link-slot--cols-2 .lnk__url, .link-slot--cols-3 .lnk__url {
  display: none;
}

.lnk--cols-3 .lnk__ico, .link-slot--cols-3 .lnk__ico {
  width: 22px;
  height: 22px;
  font-size: 10px;
}

.lnk--cols-2 .lnk__title, .lnk--cols-3 .lnk__title,
.link-slot--cols-2 .lnk__title, .link-slot--cols-3 .lnk__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10.5px;
}

.lnk--cols-3 {
  padding-right: 24px;
}

.lnk--cols-3 .lnk__pencil {
  right: 7px;
}

.lnk:has(.lnk__image) .lnk__handle {
  margin-left: 12px;
}

.lnk:has(.lnk__image) .lnk__pencil {
  top: auto;
  bottom: 17px;
}

.public .lnk:has(.lnk__image) {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  padding: 0 12px 12px;
}

.public .lnk:has(.lnk__image) .lnk__image {
  margin-inline: -12px;
  width: calc(100% + 24px);
}

.lnk--image {
  display: block !important;
  aspect-ratio: 1/1;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 14px !important;
}

.lnk--image .lnk__image {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  -o-object-fit: cover;
     object-fit: cover;
}

.lnk__overlay {
  position: absolute;
  inset: auto 7px 7px;
  z-index: 2;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 11, 16, 0.56);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.lnk--image.lnk--cols-1 {
  aspect-ratio: 16/8;
}

.lnk--image.lnk--cols-1 .lnk__overlay {
  inset: auto 12px 12px;
  padding: 7px 11px;
  font-size: 12px;
}

.lnk--image .lnk__handle {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 7px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin: 0 !important;
  border-radius: 7px;
  background: rgba(10, 11, 16, 0.62);
  color: #fff;
  opacity: 0.85;
}

.lnk--image .lnk__pencil {
  top: 7px !important;
  right: 7px;
  bottom: auto !important;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(10, 11, 16, 0.62);
  color: #fff;
  opacity: 0.9;
  transform: none;
}

.public .lnk--image .lnk__handle, .public .lnk--image .lnk__pencil {
  display: none;
}

.page[data-btn=outline] .lnk {
  background: transparent;
  border: 2px solid var(--p-acc);
}

.page[data-btn=card] .lnk {
  border-left: 5px solid var(--p-acc);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--p-txt) 12%, transparent);
}

.page[data-btn=shadow] .lnk {
  border-color: transparent;
  box-shadow: 0 9px 20px color-mix(in srgb, var(--p-txt) 18%, transparent);
  transform: translateY(-1px);
}

.page[data-btn=glass] .lnk {
  background: color-mix(in srgb, var(--p-btn) 64%, transparent);
  border-color: color-mix(in srgb, white 48%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 8px 22px rgba(0,0,0,.08);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
}

.lnk:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.lnk.is-dragging {
  opacity: 0.4;
}

.lnk.is-over {
  border-color: var(--p-acc);
  border-style: dashed;
}

.lnk__handle {
  flex: none;
  width: 14px;
  font-size: 12px;
  line-height: 1;
  opacity: 0.34;
  cursor: grab;
  letter-spacing: -1px;
}

.lnk__ico {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-content: center;
  background: linear-gradient(140deg, var(--p-acc), var(--p-acc2));
  color: #0B0B10;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.lnk__ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lnk__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

[data-link-layout="row"] .lnk__body {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

[data-link-layout="row"] .lnk__title {
  flex: none;
}

[data-link-layout="row"] .lnk__url {
  flex: 1;
  text-align: right;
}

.hide-link-url .lnk__url {
  display: none;
}

.lnk__title {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
}

.lnk__url {
  min-width: 0;
  font-size: 10px;
  opacity: 0.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lnk__pencil {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.45;
}

.lnk:hover .lnk__pencil {
  opacity: 0.9;
}

.links__empty {
  grid-column: span 6;
  padding: 24px 12px;
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
  line-height: 1.8;
  border: 1px dashed currentColor;
  border-radius: 12px;
}

.addlink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px auto 0;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--p-acc), var(--p-acc2));
  color: #0B0B10;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.addlink:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.page__credit {
  margin-top: auto;
  padding-top: 22px;
  font-size: 9.5px;
  opacity: 0.4;
  letter-spacing: 0.06em;
}

/* ============================================================
   フッター
   ============================================================ */
.applegal {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 16px calc(96px + env(safe-area-inset-bottom));
  text-align: center;
}

.applegal ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 10px;
}

.applegal a {
  font-size: 12px;
  color: var(--text-3);
}

.applegal a:hover {
  color: var(--text-2);
}

.applegal p {
  font-size: 11.5px;
  color: var(--text-3);
}

/* ============================================================
   シート（SP：下からのボトムシート / PC：右のスライドオーバー）
   ============================================================ */
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--line-strong);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(100%);
  transition: transform 0.34s var(--ease);
}

.sheet.is-open {
  transform: none;
}

.sheet__bar {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  margin: 10px auto 0;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.sheet__title {
  font-size: 15.5px;
  font-weight: 800;
}

.sheet__body {
  overflow-y: auto;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

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

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

.field__label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.field__help {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.7;
}

.field__input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px; /* iOS のズーム防止 */
  line-height: 1.6;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field__input::-moz-placeholder {
  color: var(--text-3);
}

.field__input::placeholder {
  color: var(--text-3);
}

.field__input:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--surface-2);
}

.field__input--area {
  resize: vertical;
  min-height: 82px;
  font-family: inherit;
}

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

/* ---------- アイコン選択 ---------- */
.icongrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}

.icopick {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 9px 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.2s var(--ease);
}

.icopick:hover {
  border-color: var(--line-strong);
}

.icopick.is-on {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.icopick__g {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-content: center;
  background: var(--grad);
  color: #08090D;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
}

.icopick__g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icopick__t {
  font-size: 9.5px;
  color: var(--text-3);
}

.icopick--upload .icopick__g {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  color: var(--text-3);
}

/* ---------- スイッチ ---------- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__track {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  padding: 2px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.switch__thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.switch input:checked + .switch__track {
  background: var(--grad);
  border-color: transparent;
}

.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(18px);
  background: #0A0B10;
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.switch__label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
}

.shorten-toggle {
  display: grid;
  gap: 10px;
}

.shorten-out {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.1), rgba(34, 211, 238, 0.06));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 800;
  background-clip: padding-box;
}

.orderbtns {
  display: flex;
  gap: 8px;
}

/* ---------- テーマ / フォント / ボタン形状の選択 ---------- */
.themegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.themepick {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.2s var(--ease);
}

.themepick:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.themepick.is-on {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

.themepick__sw {
  height: 44px;
  display: flex;
}

.themepick__sw i {
  flex: 1;
}

.themepick__t {
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}

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

.optpick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  transition: all 0.2s var(--ease);
}

.optpick:hover {
  border-color: var(--line-strong);
}

.optpick.is-on {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

.optpick__n {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}

.optpick__s {
  font-size: 17px;
  color: var(--text);
}

.btngrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btnpick {
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 10px;
  justify-items: center;
  transition: all 0.2s var(--ease);
}

.btnpick:hover {
  border-color: var(--line-strong);
}

.btnpick.is-on {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

.btnpick__p {
  width: 100%;
  height: 26px;
  background: var(--grad);
}

.btnpick[data-btn=round] .btnpick__p {
  border-radius: 999px;
}

.btnpick[data-btn=soft] .btnpick__p {
  border-radius: 8px;
}

.btnpick[data-btn=square] .btnpick__p {
  border-radius: 1px;
}

.btnpick[data-btn=outline] .btnpick__p {
  background: transparent;
  border: 2px solid var(--violet);
  border-radius: 8px;
}

.btnpick[data-btn=card] .btnpick__p {
  border-left: 5px solid var(--violet);
  border-radius: 5px;
}

.btnpick[data-btn=shadow] .btnpick__p {
  border-radius: 9px;
  box-shadow: 0 7px 12px rgba(35,26,18,.22);
}

.btnpick[data-btn=glass] .btnpick__p {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(225,19,19,.18));
  box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(35,26,18,.12);
}

.btnpick__t {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
}

/* ---------- アップローダー ---------- */
.uploader {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 26px 16px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.08), rgba(34, 211, 238, 0.05)), var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.uploader:hover {
  border-color: var(--cyan);
}

.uploader.is-filled {
  padding: 8px;
}

.uploader__empty {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.uploader__ico {
  font-size: 24px;
}

.uploader__text {
  font-size: 13.5px;
  font-weight: 800;
}

.uploader__note {
  font-size: 11px;
  color: var(--text-3);
}

.uploader__preview {
  width: 100%;
  height: 164px;
  border-radius: 10px;
  -o-object-fit: cover;
     object-fit: cover;
}

.uploader__media-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 164px;
  overflow: hidden;
  border-radius: 10px;
}

.uploader__media-frame .uploader__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.uploader__media-frame--avatar {
  width: 132px;
  height: 132px;
  margin: 16px auto;
  border-radius: 50%;
}

.uploader__media-frame--cover {
  height: auto;
  aspect-ratio: var(--cover-media-ratio);
}

video.uploader__preview {
  background: #090b12;
  object-fit: cover;
}

.profile-image-uploader {
  position: relative;
  min-height: 180px;
}

.profile-image-uploader .uploader__preview {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  object-fit: cover;
}

.profile-image-uploader.is-uploading {
  pointer-events: none;
}

.uploader.is-uploading > :not(.uploader__progress) {
  opacity: 0.42;
}

.uploader__progress {
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  min-width: 116px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.88);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- リンク画像 / カスタムカラー ---------- */
.linkimage-upload {
  position: relative;
  display: grid;
  min-height: 132px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.linkimage-upload:hover {
  border-color: var(--cyan);
  background: var(--surface-2);
}

.linkimage-upload__empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  padding: 20px;
  text-align: center;
}

.linkimage-upload__empty > span {
  font-size: 24px;
}

.linkimage-upload__empty strong {
  font-size: 13px;
}

.linkimage-upload__empty small {
  color: var(--text-3);
  font-size: 10px;
}

.linkimage-upload img, .linkimage-upload video {
  width: 100%;
  height: 164px;
  -o-object-fit: cover;
     object-fit: cover;
}

.linkimage-upload.is-uploading {
  pointer-events: none;
  opacity: 0.58;
}

.linkimage-upload.has-media {
  min-height: 0;
  justify-self: center;
  border-style: solid;
}

.linkimage-upload.has-media.linkimage-upload--cols-1 {
  width: 100%;
  aspect-ratio: 2/1;
}

.linkimage-upload.has-media.linkimage-upload--cols-2 {
  width: calc((100% - 10px) / 2);
  aspect-ratio: 1/1;
}

.linkimage-upload.has-media.linkimage-upload--cols-3 {
  width: calc((100% - 20px) / 3);
  aspect-ratio: 1/1;
}

.linkimage-upload.has-media img, .linkimage-upload.has-media video {
  height: 100%;
}

.mini-remove {
  justify-self: start;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
}

.mini-remove:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

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

.colorgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.colorpick {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.colorpick input {
  grid-row: 1/3;
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.colorpick input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.colorpick input::-webkit-color-swatch {
  border: 0;
  border-radius: 8px;
}

.colorpick span {
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
}

.colorpick output {
  color: var(--text-3);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.columnpick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.columnpick button {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  transition: 0.2s var(--ease);
}

.columnpick button:hover {
  border-color: var(--line-strong);
}

.columnpick button.is-on {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
  color: var(--text);
}

.columnpick strong {
  font-size: 11px;
}

.columnpick small {
  color: var(--text-3);
  font-size: 8.5px;
}

.columnpick__preview {
  width: 100%;
  height: 28px;
  display: grid;
  gap: 3px;
}

.columnpick__preview i {
  display: block;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  opacity: 0.8;
}

.columnpick__preview--1 {
  grid-template-columns: 1fr;
}

.columnpick__preview--2 {
  grid-template-columns: repeat(2, 1fr);
}

.columnpick__preview--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.addtype__lead {
  margin-bottom: 2px;
  color: var(--text-2);
  font-size: 12px;
}

.addtype-card {
  width: 100%;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: 0.2s var(--ease);
}

.addtype-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.addtype-card > span:nth-child(2) {
  min-width: 0;
}

.addtype-card strong, .addtype-card small {
  display: block;
}

.addtype-card strong {
  font-size: 13px;
}

.addtype-card small {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.6;
}

.addtype-card em {
  color: var(--cyan);
  font-style: normal;
}

.addtype-card__visual {
  width: 82px;
  height: 58px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--grad-soft);
}

.addtype-card__visual--button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
}

.addtype-card__visual--button i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--grad);
  color: #08090D;
  font-style: normal;
  font-size: 10px;
}

.addtype-card__visual--button b {
  color: var(--text-2);
  font-size: 8px;
}

.addtype-card__visual--image i {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #8B5CFF, #FF6BAA 55%, #22D3EE);
}

.addtype-card__visual--image b {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  padding: 3px;
  border-radius: 5px;
  background: rgba(10, 11, 16, 0.55);
  color: #fff;
  font-size: 7px;
  text-align: center;
}

@media (max-width: 360px) {
  .links {
    gap: 7px;
    padding-inline: 12px;
  }
  .lnk--cols-3 .lnk__handle, .lnk--cols-3 .lnk__ico {
    display: none;
  }
  .lnk--cols-3:has(.lnk__image) {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 6px;
  }
  .lnk--cols-3 .lnk__image {
    margin-inline: -6px;
    width: calc(100% + 12px);
  }
}
/* ---------- AI編集モード ---------- */
.ai__lead {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.85;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(139, 92, 255, 0.24);
}

.ai-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(155, 107, 255, 0.28);
  border-radius: 12px;
  background: rgba(155, 107, 255, 0.08);
  color: var(--text);
  font-size: 12px;
}

.ai-current[hidden] { display: none; }

.themepick:disabled,
.colorpick input:disabled,
.customcolor-head .mini-remove:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.ai-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ai-mode label { cursor: pointer; }
.ai-mode input { position: absolute; opacity: 0; pointer-events: none; }
.ai-mode span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.03);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.ai-mode input:checked + span {
  border-color: var(--accent);
  background: rgba(155,107,255,.13);
  color: var(--accent-2);
}
.ai-mode input:disabled + span { opacity: .42; cursor: not-allowed; }

.ai-content-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}
.ai-content-toggle input { margin-top: 3px; accent-color: var(--accent); }
.ai-content-toggle strong { display: block; font-size: 12.5px; }
.ai-content-toggle small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }

.ai-saved { padding-top: 4px; }
.ai-saved__list { display: grid; gap: 8px; margin-top: 10px; }
.ai-saved__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  text-align: left;
}
.ai-saved__item:hover { border-color: rgba(155,107,255,.55); }
.ai-saved__item.is-current { border-color: var(--accent); background: rgba(155,107,255,.1); }
.ai-saved__item strong { display: block; font-size: 12.5px; }
.ai-saved__item small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.ai-saved__badge { flex: none; color: var(--accent-2); font-size: 10px; font-weight: 800; }

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

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

.proposals {
  display: grid;
  gap: 10px;
}

.proposal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  animation: swatchIn 0.45s var(--ease) forwards;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.proposal:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.proposal:nth-child(1) {
  animation-delay: 0.04s;
}

.proposal:nth-child(2) {
  animation-delay: 0.14s;
}

.proposal:nth-child(3) {
  animation-delay: 0.24s;
}

.proposal__sw {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
}

.proposal__sw i:last-child {
  display: flex;
}

.proposal__sw i:last-child b {
  flex: 1;
}

.proposal__body {
  min-width: 0;
}

.proposal__n {
  font-size: 13.5px;
  font-weight: 800;
}

.proposal__d {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.6;
}

.ai__loading {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  padding: 14px 0;
}

/* ---------- 公開完了 ---------- */
.published {
  justify-items: center;
  text-align: center;
}

.published__ico {
  font-size: 40px;
}

.published__lead {
  font-size: 17px;
  font-weight: 800;
}

.published__url {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.1), rgba(34, 211, 238, 0.06));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
}

.published__url > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.published__url .urlbar__copy {
  flex: none;
}

.published__share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.published__qr {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.published__qr img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
}

/* ---------- トースト ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 95;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 31, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  max-width: calc(100vw - 32px);
  white-space: normal;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   PC レイアウト
   ============================================================ */
@media (min-width: 768px) {
  .appbar__inner {
    height: 68px;
    padding-inline: 28px;
  }
  .appbar__preview {
    display: inline-flex;
  }
  .savestate {
    display: flex;
  }
  .workspace {
    padding: 32px 28px 48px;
    gap: 32px;
    align-items: flex-start;
  }
  /* デザインツールを左レールに */
  .rail {
    position: sticky;
    top: 92px;
    inset: auto;
    width: 116px;
    flex: none;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 12px;
    backdrop-filter: none;
  }
  .rail__head {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--text-3);
    text-align: center;
    margin-bottom: 6px;
  }
  .tool {
    flex: none;
    padding: 10px 4px;
  }
  .canvas {
    padding-bottom: 0;
  }
  .applegal {
    padding-bottom: 28px;
  }
  /* シートを右のスライドオーバーに */
  .sheet {
    top: 68px;
    bottom: 0;
    left: auto;
    right: 0;
    width: 400px;
    max-height: none;
    border-radius: 0;
    border-top: none;
    border-left: 1px solid var(--line-strong);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
  }
  .sheet.is-open {
    transform: none;
  }
  .sheet__bar {
    display: none;
  }
  .sheet__head {
    padding: 22px 22px 16px;
  }
  .sheet__body {
    padding: 22px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .toast {
    bottom: 32px;
  }
}
@media (min-width: 1180px) {
  .workspace {
    max-width: 1180px;
  }
}
/* ============================================================
   公開ページ（ファンが見る画面）
   編集画面の .page をそのまま使い、編集UIだけを外した表示
   ============================================================ */
.public {
  display: block;
}

.pub {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* SP：画面いっぱいに表示 */
.public .page {
  border-radius: 0;
  min-height: auto;
  flex: 1;
  padding-bottom: 34px;
  opacity: 1;
  visibility: visible;
  transition: opacity 160ms ease, background 0.45s var(--ease), color 0.45s var(--ease);
}

/* API反映前の仮配置や、背景・アバターの読込途中を一瞬表示しない。 */
.public .page.is-profile-loading {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.public .page__cover {
  height: auto;
}

.public .page__avatarwrap {
  width: 104px;
  margin-top: -52px;
}

.public .page__avatar-media {
  width: 104px;
  height: 104px;
}

.public .page__avatar {
  width: 104px;
  height: 104px;
}

/* 編集用アフォーダンスは非表示 */
.public .editbtn,
.public .pencil,
.public .lnk__handle,
.public .lnk__pencil {
  display: none;
}

.public .page__field {
  margin-top: 14px;
}

.public .page__name,
.public .page__bio {
  border-color: transparent;
  background: none;
  padding-inline: 12px;
  cursor: default;
}

.public .page__name {
  font-size: 19px;
}

.public .page__bio {
  font-size: 13px;
}

.public .links {
  padding-top: 20px;
  gap: 12px;
}

.public .lnk {
  padding: 15px 16px;
  cursor: pointer;
}

.public .lnk__ico {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.public .lnk__title {
  font-size: 14px;
}

.public .lnk__url {
  font-size: 10.5px;
}

.public .lnk__arrow {
  flex: none;
  font-size: 12px;
  opacity: 0.4;
}

.public .lnk:hover .lnk__arrow {
  opacity: 0.8;
}

/* 共有ボタン */
.pubshare {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: rgba(10, 11, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 15px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.pubshare:hover {
  transform: scale(1.06);
  background: rgba(10, 11, 16, 0.78);
}

/* ページ内クレジット + 新規登録導線 */
.pubcta {
  margin: 30px 16px 0;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(127, 127, 127, 0.2);
  background: rgba(127, 127, 127, 0.07);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.pubcta__lead {
  font-size: 11.5px;
  line-height: 1.7;
  opacity: 0.7;
}

.pubcta__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--p-acc), var(--p-acc2));
  color: #0B0B10;
  font-size: 12.5px;
  font-weight: 800;
  transition: transform 0.2s var(--ease);
}

.pubcta__btn:hover {
  transform: translateY(-2px);
}

/* 公開ページのフッター */
.pubfoot {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.pubfoot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.pubfoot__links a {
  font-size: 12px;
  color: var(--text-3);
}

.pubfoot__links a:hover {
  color: var(--text-2);
}

.pubfoot__note {
  max-width: 34em;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.85;
}

.pubfoot__copy {
  font-size: 11px;
  color: var(--text-3);
}

/* 共有シート：公開ページにはアプリバーがないため、右スライドではなく中央モーダルにする */
@media (min-width: 768px) {
  .public .sheet {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(360px, calc(100vw - 40px));
    max-height: 86dvh;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    transform: translate(-50%, calc(-50% + 16px));
    box-shadow: var(--shadow-lg);
  }
  .public .sheet.is-open {
    transform: translate(-50%, -50%);
  }
  .public .sheet__bar {
    display: none;
  }
}

/* PC：中央のカード表示 */
@media (min-width: 720px) {
  .pub {
    padding: 0 20px;
  }
  .public .page {
    width: 100%;
    max-width: 460px;
    /* スマホ機種の比率には合わせず、画面の高さいっぱいまで伸ばす */
    flex: 1;
    margin-inline: auto;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }
  .pubfoot {
    margin-top: 40px;
  }
  .pubshare {
    top: 20px;
    right: 20px;
  }
}
/* ---------- モーション設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  .sheet, .drawer, .scrim, .toast, .proposal {
    transition-duration: 0.001ms;
    animation-duration: 0.001ms;
  }
  .proposal {
    opacity: 1;
    transform: none;
  }
}
/* ===== dashboard.css ===== */
.dashboard-app {
  display: block;
}

.dashboard-bar {
  max-width: 1180px;
  margin-inline: auto;
}

.dashboard-shell {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding: 24px 0 64px;
  display: grid;
  gap: 16px;
}

.dashboard-nav {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.dashboard-user {
  display: none;
}

.dashboard-menu {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 10px 13px;
  border-radius: 11px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-menu a.is-active {
  color: #08090D;
  background: var(--grad);
}

.dashboard-menu i {
  width: 20px;
  text-align: center;
  font-style: normal;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-head .eyebrow {
  margin-bottom: 4px;
}

.dashboard-head h1 {
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.dashboard-head p:last-child {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 12.5px;
}

.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent), var(--surface);
  padding: 18px;
}

.dashboard-panel + .dashboard-panel {
  margin-top: 14px;
}

.dashboard-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.dashboard-panel__head h2 {
  font-size: 16px;
  line-height: 1.5;
}

.dashboard-panel__head p {
  color: var(--text-3);
  font-size: 10.5px;
}

.dash-field {
  display: grid;
  gap: 7px;
}

.dash-field + .dash-field {
  margin-top: 16px;
}

.dash-field label, .dash-label {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 800;
}

.dash-input, .dash-select, .dash-textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 14px;
}

select.dash-input, select.dash-select,
select.dash-input option, select.dash-select option {
  color-scheme: dark;
  background: #000;
  color: #fff;
}

.dash-textarea {
  min-height: 96px;
  resize: vertical;
  font-family: inherit;
}

.dash-input:focus, .dash-select:focus, .dash-textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.dash-help {
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.7;
}

.dash-help.is-ok { color: #16805b; }
.dash-help.is-error { color: #c43d55; }

.dash-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.dash-actions--center {
  justify-content: center;
}

.dash-actions--start {
  justify-content: flex-start;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mini-stat {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.mini-stat span {
  display: block;
  color: var(--text-3);
  font-size: 9px;
}

.mini-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.short-list {
  display: grid;
  gap: 10px;
}

.short-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}

.short-card.is-off {
  opacity: 0.55;
}

.short-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.short-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--cyan);
  font-weight: 900;
}

.short-copy {
  min-width: 0;
}

.short-copy strong, .short-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.short-copy strong {
  font-size: 12.5px;
}

.short-copy span {
  color: var(--text-3);
  font-size: 9.5px;
}

.short-url {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--bg-2);
}

.short-url code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--cyan);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-btn {
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
}

.mini-btn:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.short-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 9.5px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle-track {
  width: 34px;
  height: 20px;
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: #34394A;
  transition: 0.2s;
}

.toggle-track::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-2);
  transition: 0.2s;
}

.toggle input:checked + .toggle-track {
  background: var(--grad);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(14px);
  background: #08090D;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar-frame {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
  border: 2px solid var(--line-strong);
}

.dashboard-avatar-frame {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
}

.account-avatar-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center;
}

.drawer__avatar-frame.is-empty,
.profile-avatar-frame.is-empty,
.dashboard-avatar-frame.is-empty {
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
}

.setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.setting-copy h3 {
  font-size: 12.5px;
}

.setting-copy p {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.6;
}

.danger-zone {
  border-color: rgba(255, 90, 110, 0.22);
}

.danger-zone h2 {
  color: #FF9AAA;
}

.help-search {
  position: relative;
  margin-bottom: 17px;
}

.help-search input {
  padding-left: 40px;
}

.help-search span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}

.help-grid {
  display: grid;
  gap: 10px;
}

.help-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  transition: 0.2s;
}

.help-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.help-card[hidden] {
  display: none;
}

.help-card__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 11px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-soft);
}

.help-card h2 {
  font-size: 13px;
}

.help-card p {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.7;
}

.help-links {
  display: grid;
}

.help-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px;
}

.help-link:hover {
  color: var(--text);
}

.empty-result {
  padding: 28px;
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
}

.dash-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 12px);
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 22, 31, 0.96);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dash-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-foot {
  padding-bottom: 26px;
}

@media (min-width: 720px) {
  .dashboard-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .short-card {
    grid-template-columns: minmax(190px, 1.2fr) minmax(180px, 1fr);
    align-items: center;
  }
  .short-meta {
    grid-column: 1/-1;
  }
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .account-grid .dashboard-panel {
    margin-top: 0;
  }
}
@media (min-width: 960px) {
  .dashboard-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding-top: 34px;
    align-items: start;
  }
  .dashboard-nav {
    position: sticky;
    top: 92px;
    padding: 14px;
  }
  .dashboard-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 5px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-avatar-frame { width: 38px; height: 38px; flex-basis: 38px; }
  .dashboard-user strong, .dashboard-user > div > span {
    display: block;
  }
  .dashboard-user strong {
    font-size: 12px;
  }
  .dashboard-user > div > span {
    color: var(--text-3);
    font-size: 9px;
  }
  .dashboard-menu {
    display: grid;
    overflow: visible;
  }
  .dashboard-menu a {
    width: 100%;
  }
  .dashboard-panel {
    padding: 22px;
  }
}
@media (max-width: 420px) {
  .logo__text {
    font-size: 15px;
  }
  .dashboard-bar .btn {
    padding: 9px 12px;
    font-size: 12px;
  }
  .stat-strip {
    grid-template-columns: 1fr;
  }
}
/* ===== legal.css ===== */
.legal-app {
  display: block;
}

.legal-bar {
  max-width: 1180px;
  margin-inline: auto;
}

.legal-back {
  padding-inline: 15px;
}

.legal-shell {
  width: min(960px, 100% - 32px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.14), rgba(34, 211, 238, 0.06)), var(--surface);
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  filter: blur(8px);
}

.legal-hero .eyebrow {
  margin-bottom: 6px;
}

.legal-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.legal-hero p:last-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.9;
}

.legal-updated {
  display: inline-flex;
  margin-top: 16px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 10px;
}

.legal-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.legal-nav, .legal-content, .contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-nav {
  padding: 16px;
}

.legal-nav p {
  margin-bottom: 8px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.legal-nav ol {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.legal-nav a {
  display: block;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.legal-nav a:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.legal-content {
  padding: 24px 20px;
}

.legal-section {
  scroll-margin-top: 88px;
}

.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.55;
}

.legal-section h2 span {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--grad-soft);
  color: var(--cyan);
  font-size: 10px;
}

.legal-section h3 {
  margin: 20px 0 7px;
  font-size: 14px;
}

.legal-section p, .legal-section li {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.95;
}

.legal-section ul, .legal-section ol {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  padding-left: 1.4em;
}

.legal-section ul {
  list-style: disc;
}

.legal-section ol {
  list-style: decimal;
}

.legal-note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.055);
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.8;
}

.legal-note--warning {
  border-color: rgba(255, 196, 138, 0.28);
  background: rgba(255, 196, 138, 0.07);
  color: #E7C9A3;
}

.contact-card {
  margin-top: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card h2 {
  font-size: 16px;
}

.contact-card p {
  color: var(--text-2);
  font-size: 12px;
}

.contact-card .btn {
  width: 100%;
}

.legal-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-table th, .legal-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.8;
}

.legal-table tr:last-child th, .legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  width: 31%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 700;
}

.legal-table td {
  color: var(--text-2);
}

.placeholder {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 196, 138, 0.1);
  color: #FFD4A8;
  font-weight: 700;
}

.faq-filter {
  display: flex;
  gap: 7px;
  margin: 18px 0;
  overflow-x: auto;
}

.faq-filter button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.faq-filter button.is-active {
  border-color: transparent;
  background: var(--grad);
  color: #08090D;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.faq-card[hidden] {
  display: none;
}

.faq-card summary {
  position: relative;
  padding: 17px 48px 17px 17px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "＋";
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 18px;
  font-weight: 400;
}

.faq-card[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 17px 17px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.9;
}

.legal-foot {
  padding-bottom: 26px;
}

@media (min-width: 760px) {
  .legal-shell {
    padding-top: 54px;
  }
  .legal-hero {
    padding: 46px 44px;
  }
  .legal-content {
    padding: 38px 42px;
  }
  .contact-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
  }
  .contact-card .btn {
    width: auto;
  }
}
@media (max-width: 560px) {
  .logo__text {
    font-size: 15px;
  }
  .legal-back {
    padding: 9px 12px;
    font-size: 12px;
  }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table tr {
    border-bottom: 1px solid var(--line);
  }
  .legal-table tr:last-child {
    border-bottom: 0;
  }
  .legal-table th {
    padding: 11px 13px 4px;
    border: 0;
    color: var(--text-3);
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  .legal-table td {
    padding: 2px 13px 12px;
    border: 0;
  }
}
/* ===== analytics.css ===== */
.analytics-app {
  display: block;
}
.analytics-app .analytics-bar {
  max-width: 1180px;
  margin-inline: auto;
}
.analytics-app .back-to-editor {
  padding-inline: 15px;
}
.analytics-app .analytics-main {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 34px 0 64px;
}
.analytics-app .analytics-head {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 26px;
}
.analytics-app .analytics-head .eyebrow {
  margin-bottom: 5px;
}
.analytics-app .analytics-head h1 {
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.analytics-app .analytics-head > div > p:last-child {
  margin-top: 7px;
  color: var(--text-2);
  font-size: 13px;
}
.analytics-app .period-select {
  display: grid;
  gap: 6px;
  width: 100%;
}
.analytics-app .period-select span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.analytics-app .period-select select {
  width: 100%;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 11px 42px 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A8AEC0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 13px;
  font-weight: 700;
}
.analytics-app .metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.analytics-app .metric-card, .analytics-app .panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent), var(--surface);
  border-radius: var(--radius);
}
.analytics-app .metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}
.analytics-app .metric-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -48px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(139, 92, 255, 0.11);
  filter: blur(5px);
}
.analytics-app .metric-card--clicks::after {
  background: rgba(34, 211, 238, 0.1);
}
.analytics-app .metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.analytics-app .metric-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}
.analytics-app .trend {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 800;
}
.analytics-app .trend--up {
  color: #70E3B0;
  background: rgba(74, 222, 128, 0.08);
}
.analytics-app .metric-card p {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
}
.analytics-app .metric-card strong {
  display: block;
  margin: 2px 0;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.analytics-app .metric-card small {
  color: var(--text-3);
  font-size: 10px;
}
.analytics-app .panel {
  padding: 18px;
}
.analytics-app .panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.analytics-app .panel__head h2 {
  font-size: 16px;
  line-height: 1.5;
}
.analytics-app .panel__head p {
  color: var(--text-3);
  font-size: 11px;
}
.analytics-app .chart-panel {
  margin-bottom: 16px;
}
.analytics-app .legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-size: 10px;
  color: var(--text-2);
}
.analytics-app .legend span, .analytics-app .device-list span, .analytics-app .source-name {
  display: flex;
  align-items: center;
  gap: 7px;
}
.analytics-app .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.analytics-app .dot--violet {
  background: var(--violet);
  box-shadow: 0 0 9px rgba(139, 92, 255, 0.8);
}
.analytics-app .dot--cyan {
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(34, 211, 238, 0.65);
}
.analytics-app .dot--muted {
  background: #485064;
}
.analytics-app .chart-wrap {
  width: 100%;
  overflow: hidden;
}
.analytics-app .traffic-chart {
  width: 100%;
  height: auto;
  min-height: 230px;
}
.analytics-app .chart-grid {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}
.analytics-app .chart-label {
  fill: #737A8E;
  font-size: 10px;
  font-family: inherit;
}
.analytics-app .chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.analytics-app .chart-area {
  opacity: 0.14;
}
.analytics-app .chart-point {
  stroke: #14161F;
  stroke-width: 3;
}
.analytics-app .analytics-columns {
  display: grid;
  min-width: 0;
  gap: 16px;
  margin-bottom: 16px;
}
.analytics-app .analytics-columns > * {
  min-width: 0;
}
.analytics-app .table-scroll {
  width: 100%;
  overflow-x: auto;
}
.analytics-app table {
  width: 100%;
  min-width: 450px;
  border-collapse: collapse;
}
.analytics-app th {
  padding: 0 10px 10px;
  color: var(--text-3);
  font-size: 10px;
  text-align: right;
  font-weight: 700;
}
.analytics-app th:first-child, .analytics-app td:first-child {
  text-align: left;
}
.analytics-app td {
  padding: 13px 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: right;
}
.analytics-app .link-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.analytics-app .link-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--grad-soft);
  color: var(--cyan);
  font-weight: 900;
}
.analytics-app .link-copy {
  min-width: 0;
}
.analytics-app .link-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-app .link-copy small {
  display: block;
  overflow: hidden;
  color: var(--text-3);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-app .click-value {
  font-weight: 800;
}
.analytics-app .source-list {
  display: grid;
  gap: 15px;
}
.analytics-app .source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
}
.analytics-app .source-name {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.analytics-app .source-row strong {
  font-size: 12px;
}
.analytics-app .source-bar {
  grid-column: 1/-1;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.analytics-app .source-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}
.analytics-app .device-layout {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: center;
}
.analytics-app .donut {
  width: 124px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--violet) 0 78%, var(--cyan) 78% 95%, #485064 95%);
  position: relative;
}
.analytics-app .donut::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--surface);
}
.analytics-app .donut span {
  position: relative;
  z-index: 1;
  font-size: 23px;
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
}
.analytics-app .donut small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 9px;
}
.analytics-app .device-list {
  display: grid;
  gap: 12px;
}
.analytics-app .device-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-2);
}
.analytics-app .device-list strong {
  color: var(--text);
}
.analytics-app .insight-card {
  display: flex;
  gap: 15px;
  padding: 22px;
  border: 1px solid rgba(139, 92, 255, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.14), rgba(34, 211, 238, 0.07));
}
.analytics-app .insight-card__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #08090D;
  box-shadow: 0 8px 20px rgba(110, 120, 255, 0.28);
}
.analytics-app .insight-card .eyebrow {
  margin-bottom: 5px;
}
.analytics-app .insight-card h2 {
  font-size: 15px;
  line-height: 1.5;
}
.analytics-app .insight-card div > p:last-child {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.8;
}
.analytics-app .analytics-foot {
  padding-bottom: 26px;
}
@media (min-width: 620px) {
  .analytics-app .analytics-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .analytics-app .period-select {
    width: 170px;
  }
  .analytics-app .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 619px) {
  .analytics-app .links-panel, .analytics-app .source-panel {
    padding: 18px 14px;
  }
  .analytics-app .table-scroll {
    overflow: visible;
  }
  .analytics-app table {
    min-width: 0;
  }
  .analytics-app thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .analytics-app tbody {
    display: grid;
    gap: 10px;
  }
  .analytics-app tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }
  .analytics-app td {
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .analytics-app td:nth-child(2), .analytics-app td:nth-child(3) {
    display: grid;
    gap: 1px;
    justify-items: end;
    font-size: 11px;
  }
  .analytics-app td:nth-child(2)::before, .analytics-app td:nth-child(3)::before {
    color: var(--text-3);
    font-size: 8px;
    font-weight: 700;
  }
  .analytics-app td:nth-child(2)::before {
    content: "クリック";
  }
  .analytics-app td:nth-child(3)::before {
    content: "率";
  }
  .analytics-app .link-badge {
    width: 32px;
    height: 32px;
  }
  .analytics-app .source-list {
    gap: 12px;
  }
  .analytics-app .source-row {
    gap: 7px 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .analytics-app .source-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .analytics-app .source-bar {
    height: 6px;
  }
}
@media (min-width: 820px) {
  .analytics-app .analytics-main {
    padding-top: 48px;
  }
  .analytics-app .panel {
    padding: 22px;
  }
  .analytics-app .analytics-columns {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  }
  .analytics-app .analytics-columns--bottom {
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.6fr);
  }
  .analytics-app .traffic-chart {
    min-height: 280px;
  }
}
@media (max-width: 420px) {
  .analytics-app .logo__text {
    font-size: 15px;
  }
  .analytics-app .back-to-editor {
    font-size: 12px;
    padding: 9px 12px;
  }
  .analytics-app .panel__head {
    display: block;
  }
  .analytics-app .legend {
    justify-content: flex-start;
    margin-top: 9px;
  }
  .analytics-app .device-layout {
    grid-template-columns: 105px 1fr;
    gap: 16px;
  }
  .analytics-app .donut {
    width: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-app * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Error pages */
.error-app {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 15%, rgba(139, 92, 255, 0.16), transparent 38%), var(--bg);
}
.error-shell {
  width: min(680px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  align-content: center;
  gap: 32px;
}
.error-shell > .logo { justify-self: center; }
.error-card {
  padding: clamp(32px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(18, 19, 27, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.error-code {
  margin: 0 0 8px;
  color: var(--accent, #8b5cff);
  font-size: clamp(56px, 14vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}
.error-card h1 { margin: 0 0 16px; font-size: clamp(24px, 5vw, 36px); }
.error-card > p:not(.error-code) { margin: 0; color: var(--text-2); line-height: 1.8; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ============================================================
   2026 brand refresh — Ninja Link dark × pink
   ============================================================ */
:root {
  --brand-red: #ff2d78;
  --brand-red-dark: #8f1148;
  --brand-ink: #050506;
  --brand-paper: #0a0a0d;
  --brand-white: #17141b;
}

body {
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 45, 120, .10), transparent 26rem),
    var(--bg);
}

::selection { background: rgba(255, 45, 120, .3); color: #fff; }
:focus-visible { outline-color: var(--brand-red); }

.brand,
.logo {
  display: block;
  width: clamp(154px, 18vw, 196px);
  height: 36px;
  flex: 0 0 auto;
  overflow: hidden;
  color: transparent;
  background: url('/assets/lp/logo-white.svg') left center / contain no-repeat;
}

.brand > *,
.logo > * { visibility: hidden; }

.header,
.appbar {
  background: rgba(10, 10, 13, .82);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.header.is-scrolled { background: rgba(10, 10, 13, .95); }
.appbar { color: var(--text); }

.eyebrow {
  color: var(--brand-red);
  font-weight: 850;
  letter-spacing: .2em;
}

.grad {
  background: none;
  color: var(--brand-red);
  -webkit-text-fill-color: currentColor;
}

.btn { border-radius: 8px; font-weight: 800; }
.btn--primary {
  color: #fff;
  background: var(--brand-red);
  border: 1px solid var(--brand-red);
  box-shadow: 0 7px 0 var(--brand-red-dark), 0 14px 28px rgba(255,45,120,.28);
}
.btn--primary:hover {
  background: #ff4f8f;
  box-shadow: 0 5px 0 var(--brand-red-dark), 0 12px 22px rgba(255,45,120,.36);
  transform: translateY(2px);
}
.btn--primary:active { box-shadow: 0 1px 0 var(--brand-red-dark); transform: translateY(6px); }
.btn--ghost {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,45,120,.5); }

.card,
.panel,
.metric-card,
.dashboard-panel,
.help-card,
.faq-card,
.legal-nav,
.legal-content,
.contact-card,
.error-card {
  color: var(--text);
  background: rgba(23, 20, 27, .9);
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}
.card:hover,
.help-card:hover { border-color: rgba(255,45,120,.4); box-shadow: 0 18px 38px rgba(0,0,0,.45); }
.card__ico,
.help-card__icon,
.metric-icon {
  color: var(--brand-red);
  background: rgba(255,45,120,.14);
  border-color: rgba(255,45,120,.24);
}

.workspace,
.canvas,
.analytics-app,
.dashboard-app,
.legal-app,
.error-app { background-color: var(--brand-paper); }
.rail,
.dashboard-nav,
.drawer { background: #141116; border-color: var(--line); }
.tool.is-active,
.dashboard-menu a.is-active,
.dashboard-menu a:hover { color: var(--brand-red); background: rgba(255,45,120,.14); }
.savestate__dot,
.publish-status__dot { background: var(--brand-red); }
.urlbar,
.canvas__hint { color: var(--text-2); }
.editphone__frame { box-shadow: 0 28px 70px rgba(0,0,0,.45); }
.sheet,
.modal__panel { background: var(--brand-white); color: var(--text); }
.field input,
.field textarea,
.field select,
.dash-input,
.dash-select,
.dash-textarea { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--line-strong); }
.field input:focus,
.field textarea:focus,
.field select:focus,
.dash-input:focus,
.dash-select:focus,
.dash-textarea:focus { border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(255,45,120,.18); }

.analytics-app .trend--up,
.analytics-app .insight-card .eyebrow { color: var(--brand-red); }
.analytics-app .insight-card {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,45,120,.22), rgba(156,20,80,.14));
  border-color: rgba(255,45,120,.35);
}
.analytics-app .insight-card p { color: rgba(255,255,255,.75); }
.analytics-app .dot--violet,
.analytics-app .dot--cyan { background: var(--brand-red); }
.analytics-app .donut { background: conic-gradient(var(--brand-red) 0 78%, #3a3540 78% 95%, #6f6875 95%); }

.legal-hero h1,
.dashboard-head h1,
.analytics-head h1 { letter-spacing: -.035em; }
.legal-nav a:hover,
.legal-content a,
.faq-card summary::after { color: var(--brand-red); }
.error-code { color: var(--brand-red); }

@media (max-width: 640px) {
  .brand, .logo { width: 142px; height: 32px; }
  .btn--primary { box-shadow: 0 5px 0 var(--brand-red-dark), 0 10px 22px rgba(255,45,120,.24); }
}

/* Mobile overflow guard — editor controls and media must never widen the viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

video,
iframe {
  max-width: 100%;
}

.appbar__inner,
.appbar__right,
.workspace,
.canvas,
.editphone,
.editphone__frame,
.sheet,
.sheet__body {
  min-width: 0;
}

@media (max-width: 640px) {
  .appbar__inner {
    width: 100%;
    padding-inline: 10px;
    gap: 6px;
  }

  .appbar .logo,
  .publish-status {
    display: none;
  }

  .appbar__right {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .appbar__right .btn--sm {
    flex: 0 1 auto;
    min-width: 0;
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .publish-control {
    min-width: 0;
    gap: 0;
  }

  .workspace {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-inline: 10px;
    overflow: hidden;
  }

  .canvas {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .urlbar,
  .editphone {
    width: min(420px, calc(100vw - 20px));
    max-width: 420px;
    min-width: 0;
  }

  .editphone__frame {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .editphone__frame > .page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .editphone__frame {
    padding: 6px;
    border-radius: 22px;
  }

  .drawer {
    width: min(320px, 92vw);
    max-width: 100%;
  }

  .sheet__head,
  .sheet__body {
    width: 100%;
    max-width: 100%;
  }

  .published__url {
    min-width: 0;
    font-size: 12px;
  }

  .published__url > *:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .appbar__right .btn--sm {
    padding-inline: 8px;
  }

  .urlbar {
    gap: 6px;
    padding-left: 10px;
  }

  .urlbar__copy {
    padding-inline: 9px;
  }

  .addtype-card {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .addtype-card__visual {
    width: 64px;
  }
}

/*
 * スマホ幅だけ端末モック内の二重スクロールをやめ、編集ページ自体を全幅表示する。
 * 768px以上では19.5:9の端末枠と内部スクロールを使う。
 */
@media (max-width: 767px) {
  .workspace {
    padding-inline: 0;
    overflow: visible;
  }

  .urlbar {
    width: calc(100% - 20px);
    max-width: 420px;
  }

  .canvas__hint {
    padding-inline: 14px;
  }

  .editphone {
    width: 100%;
    max-width: none;
  }

  .editphone__frame {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .editphone__frame > .page {
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 60px);
    max-height: none;
    border-radius: 0;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-width: auto;
  }
}



/* ===== admin ===== */
.admin-app { min-height:100dvh; background:#0a0a0d; color:#fff; }
.admin-top { position:sticky; top:0; z-index:20; height:68px; padding:0 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; background:rgba(10,10,13,.85); border-bottom:1px solid rgba(255,255,255,.12); backdrop-filter:blur(14px); }
.admin-top > div { display:flex; align-items:center; gap:16px; font-size:12px; font-weight:750; color:rgba(255,255,255,.6); }
.admin-layout { min-height:calc(100dvh - 68px); display:grid; grid-template-columns:220px minmax(0,1fr); }
.admin-side { position:sticky; top:68px; height:calc(100dvh - 68px); padding:30px 18px; background:#141116; color:#fff; }
.admin-side__label { padding:0 12px 18px; color:#ff2d78; font-size:11px; font-weight:900; letter-spacing:.2em; }
.admin-side nav { display:grid; gap:5px; }
.admin-side button { width:100%; padding:12px 14px; border-radius:9px; color:rgba(255,255,255,.55); text-align:left; font-size:13px; font-weight:750; }
.admin-side button:hover,.admin-side button.is-active { color:#fff; background:rgba(255,45,120,.14); }
.admin-side button.is-active { box-shadow:inset 3px 0 #ff2d78; }
.admin-side__note { position:absolute; bottom:26px; left:30px; color:rgba(255,255,255,.4); font-size:11px; }
.admin-main { width:100%; max-width:1420px; padding:42px clamp(24px,4vw,60px) 80px; }
.admin-view { display:none; }.admin-view.is-active { display:block; }
.admin-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.admin-heading h1 { font-size:clamp(28px,4vw,42px); line-height:1.2; letter-spacing:-.04em; }
.admin-heading p:last-child { margin-top:7px; color:rgba(255,255,255,.6); font-size:13px; }
.admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.admin-metrics article,.admin-panel { border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(23,20,27,.9); box-shadow:0 8px 24px rgba(0,0,0,.35); }
.admin-metrics article { padding:20px; }.admin-metrics span { display:block; color:rgba(255,255,255,.6); font-size:12px; font-weight:700; }.admin-metrics strong { display:block; margin-top:8px; font-size:32px; line-height:1; }
.admin-columns { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.8fr); gap:18px; }
.admin-panel { overflow:hidden; }.admin-panel__head { min-height:58px; padding:15px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(255,255,255,.1); }.admin-panel__head h2 { font-size:15px; }.admin-panel__head button { color:#ff2d78; font-size:11px; font-weight:800; }
.admin-table-wrap { overflow-x:auto; } .admin-panel table { width:100%; border-collapse:collapse; font-size:12px; }.admin-panel th { padding:11px 15px; color:rgba(255,255,255,.55); background:rgba(255,255,255,.03); text-align:left; white-space:nowrap; }.admin-panel td { padding:14px 15px; border-top:1px solid rgba(255,255,255,.08); vertical-align:middle; white-space:nowrap; }.admin-panel td strong,.admin-panel td small { display:block; }.admin-panel td small { max-width:240px; color:rgba(255,255,255,.5); overflow:hidden; text-overflow:ellipsis; }
.admin-badge { display:inline-flex; padding:3px 8px; border-radius:999px; background:rgba(255,255,255,.1); color:rgba(255,255,255,.75); font-size:10px; font-weight:800; }.admin-badge--published,.admin-badge--active,.admin-badge--resolved { background:rgba(74,222,128,.16); color:#4ade80; }.admin-badge--open,.admin-badge--failed,.admin-badge--suspended { background:rgba(255,90,90,.16); color:#ff6a6a; }.admin-badge--in_progress,.admin-badge--draft { background:rgba(255,196,79,.16); color:#ffc44f; }
.admin-inquiry-list { display:grid; gap:0; }.admin-inquiry-list--full { gap:12px; }.admin-inquiry { padding:16px 18px; border-bottom:1px solid rgba(255,255,255,.08); background:rgba(23,20,27,.9); }.admin-inquiry-list--full .admin-inquiry { border:1px solid rgba(255,255,255,.12); border-radius:12px; }.admin-inquiry > div { display:flex; align-items:center; gap:8px; margin-bottom:8px; }.admin-inquiry > div > span:first-child { color:#ff2d78; font-size:10px; font-weight:850; }.admin-inquiry time { margin-left:auto; color:rgba(255,255,255,.45); font-size:10px; }.admin-inquiry strong { font-size:12px; }.admin-inquiry p { margin-top:6px; color:rgba(255,255,255,.7); font-size:12px; line-height:1.7; white-space:pre-wrap; word-break:break-word; }.admin-empty { padding:24px; color:rgba(255,255,255,.5); font-size:12px; text-align:center; }
.admin-search { max-width:600px; display:flex; gap:9px; margin-bottom:16px; }.admin-search input { flex:1; min-width:0; padding:11px 14px; border:1px solid rgba(255,255,255,.18); border-radius:10px; background:rgba(255,255,255,.05); color:#fff; }
@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.admin-side{position:static;height:auto;padding:10px 14px}.admin-side__label,.admin-side__note{display:none}.admin-side nav{display:flex;overflow-x:auto}.admin-side button{width:auto;white-space:nowrap}.admin-main{padding:28px 16px 70px}.admin-metrics{grid-template-columns:repeat(2,1fr)}.admin-columns{grid-template-columns:1fr}.admin-top{padding-inline:16px}}
@media(max-width:520px){.admin-top>div>span{display:none}.admin-metrics{grid-template-columns:1fr 1fr}.admin-metrics article{padding:15px}.admin-metrics strong{font-size:26px}.admin-heading{align-items:flex-start}.admin-search{flex-direction:column}}
.admin-user-row { cursor:pointer; }.admin-user-row:hover td { background:rgba(255,45,120,.06); }
.admin-status-select { padding:5px 28px 5px 9px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(255,255,255,.06); color:#fff; font-size:10px; font-weight:800; }
.admin-modal { position:fixed; inset:0; z-index:100; display:grid; justify-items:end; }.admin-modal[hidden]{display:none}.admin-modal__scrim{position:absolute;inset:0;width:100%;height:100%;background:rgba(0,0,0,.6);backdrop-filter:blur(3px)}.admin-modal__panel{position:relative;width:min(480px,100%);height:100%;padding:24px;overflow-y:auto;background:#141116;box-shadow:-20px 0 60px rgba(0,0,0,.4)}.admin-modal__panel>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.admin-modal__panel h2{font-size:25px}
.admin-user-card__profile{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.03)}.admin-user-card__profile img,.admin-user-card__profile>span{width:54px;height:54px;border-radius:50%;object-fit:cover}.admin-user-card__profile>span{display:grid;place-items:center;background:#2a2730;color:#fff;font-size:20px;font-weight:800}.admin-user-card__profile strong,.admin-user-card__profile p{display:block}.admin-user-card__profile p{color:rgba(255,255,255,.55);font-size:11px}.admin-user-card__profile .admin-badge{margin-top:5px}.admin-user-card dl{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin-top:16px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.12)}.admin-user-card dl>div{padding:13px;background:#17141b}.admin-user-card dt{color:rgba(255,255,255,.5);font-size:10px;font-weight:750}.admin-user-card dd{margin-top:3px;font-size:12px;font-weight:750;word-break:break-word}.admin-user-card__actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
@media(max-width:520px){.admin-modal__panel{padding:18px}.admin-user-card dl{grid-template-columns:1fr}.admin-user-card__actions{flex-direction:column}.admin-user-card__actions .btn{width:100%}}

/* ===== login (creator-login) ===== */
.creator-login { min-height:100vh; color:#f6f1ed; background:#0b090d; }
.creator-login__header { position:absolute; z-index:2; top:0; left:0; padding:28px clamp(22px,5vw,64px); }
.creator-login__main { display:grid; grid-template-columns:minmax(420px,.9fr) minmax(420px,1.1fr); min-height:100vh; }
.creator-login__panel { display:flex; flex-direction:column; justify-content:center; width:min(470px,calc(100% - 48px)); margin:auto; padding:110px 0 60px; }
.creator-login__panel h1 { margin:22px 0 12px; font-size:clamp(42px,5vw,64px); letter-spacing:-.06em; }
.creator-login__panel > p:not(.creator-section-no) { color:rgba(255,255,255,.5); line-height:1.8; }
.creator-section-no { color:#ff6f9d; font-size:10px; font-weight:850; letter-spacing:.2em; }
.creator-auth-list { display:grid; gap:12px; margin-top:38px; }
.creator-auth { display:grid; grid-template-columns:32px 1fr auto; align-items:center; gap:15px; min-height:62px; padding:0 20px; border-radius:7px; }
.creator-auth--x { color:#fff; background:#050505; border:1px solid rgba(255,255,255,.2); }
.creator-auth--google { color:#27242a; background:#fff; }
.creator-auth:hover { transform:translateY(-2px); }
.creator-auth > i { font-style:normal; }
.creator-auth__icon { font-size:20px; text-align:center; }
.creator-google-icon { position:relative; width:22px; height:22px; border:5px solid #4285f4; border-right-color:#34a853; border-bottom-color:#fbbc05; border-left-color:#ea4335; border-radius:50%; }
.creator-google-icon::after { content:""; position:absolute; width:10px; height:5px; right:-6px; top:4px; background:#fff; border-top:4px solid #4285f4; }
.creator-login__panel > small { margin-top:24px; color:rgba(255,255,255,.35); font-size:10px; line-height:1.8; }
.creator-login__panel > small a { color:rgba(255,255,255,.7); text-decoration:underline; }
.creator-login__visual { position:relative; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; padding:clamp(40px,6vw,80px); background:radial-gradient(circle at 65% 25%,rgba(255,196,211,.65),transparent 20%),linear-gradient(145deg,#3c183f,#cf2c63 52%,#59169b); }
.creator-login__visual::before { content:""; position:absolute; width:55%; height:90%; left:34%; bottom:-30%; border-radius:50% 50% 10% 10%; background:linear-gradient(160deg,rgba(255,255,255,.28),rgba(255,255,255,.02)); transform:rotate(-8deg); }
.creator-login__visual p,.creator-login__visual span { position:relative; z-index:1; }
.creator-login__visual p { color:#fff; font-size:clamp(58px,7vw,104px); font-weight:900; line-height:.91; letter-spacing:-.07em; }
.creator-login__visual p em { color:#ffb2c5; font-style:normal; }
.creator-login__visual span { margin-top:24px; color:rgba(255,255,255,.65); font-size:12px; letter-spacing:.12em; }
@media (max-width: 820px) {
  .creator-login__main { grid-template-columns:1fr; }
  .creator-login__panel { min-height:100svh; padding-top:120px; }
  .creator-login__visual { display:none; }
}
