.create-title-block {
  margin-bottom: 20px;
  text-align: center;
}

.create-title-block span {
  color: #1662a8;
  font-size: 13px;
  font-weight: 800;
}

.create-title-block h1 {
  margin: 5px 0;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.35;
}

.create-title-block p {
  margin: 0;
  color: #52606d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.watch-link-requirement {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #f0b44d;
  border-radius: 8px;
  background: #fff8e8;
  color: #713b00;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.watch-link-hint,
.watch-link-services,
.watch-link-subnote {
  margin: 0;
  color: #52606d;
  font-size: 13px;
  line-height: 1.55;
}

.watch-link-subnote {
  margin-top: 6px;
  text-align: center;
}

/* 評価の共有ページから来たときだけ出す（リンクは誰も入らないと1時間で消える）。 */
.watch-link-timing {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6e0;
  color: #6b4e00;
  font-size: 13px;
  line-height: 1.55;
}

.watch-link-timing[hidden] {
  display: none;
}

#watchVideoUrl:focus {
  border-color: #4ea6f5;
  outline: 3px solid rgba(78, 166, 245, .18);
}

.watch-url-preview {
  display: none;
  border-color: #b8d8f4;
  background: #f1f7fd;
}

.watch-url-preview.is-visible {
  display: grid;
}

.watch-url-preview.is-error {
  border-color: #f1b8ad;
  background: #fff5f3;
}

.watch-url-preview-service {
  color: #1662a8 !important;
}

.watch-url-preview.is-error .watch-url-preview-service {
  color: #b42318 !important;
}

.watch-url-preview-detail {
  color: #202124;
  white-space: normal !important;
}

.watch-link-error {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #f1b8ad;
  border-radius: 8px;
  background: #fff5f3;
  color: #b42318;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.create-secondary-link {
  justify-self: center;
  margin-top: 10px;
  color: #1662a8;
  font-size: 14px;
  font-weight: 700;
}

.create-disclosure a {
  color: #1557b0;
}

.create-main {
  padding-bottom: 40px;
}

.create-submit-bar {
  position: static;
  padding: 0;
  margin-top: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.create-submit-bar button[type="submit"] {
  background: #247dcc;
}

.create-submit-bar button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: .55;
}

html[data-surface="side-panel"] .create-title-block span,
html[data-surface="side-panel"] .create-secondary-link,
html[data-surface="side-panel"] .create-disclosure a {
  color: var(--blue);
}

html[data-surface="side-panel"] .create-title-block p,
html[data-surface="side-panel"] .watch-link-hint,
html[data-surface="side-panel"] .watch-link-services,
html[data-surface="side-panel"] .watch-link-subnote {
  color: var(--muted);
}

html[data-surface="side-panel"] .watch-link-requirement {
  border-color: var(--warning-border);
  background: var(--warning-soft);
  color: var(--warning);
}

html[data-surface="side-panel"] #watchVideoUrl:focus {
  border-color: var(--blue);
  outline-color: var(--blue-focus);
}

html[data-surface="side-panel"] .watch-url-preview {
  border-color: var(--blue-border);
  background: var(--blue-soft);
}

html[data-surface="side-panel"] .watch-url-preview.is-error,
html[data-surface="side-panel"] .watch-link-error {
  border-color: var(--danger-border);
  background: var(--danger-soft);
}

html[data-surface="side-panel"] .watch-url-preview-service {
  color: var(--blue) !important;
}

html[data-surface="side-panel"] .watch-url-preview.is-error .watch-url-preview-service,
html[data-surface="side-panel"] .watch-link-error {
  color: var(--danger) !important;
}

html[data-surface="side-panel"] .watch-url-preview-detail {
  color: var(--text);
}

html[data-surface="side-panel"] .create-submit-bar button[type="submit"] {
  background: var(--blue-strong);
}

[hidden] { display: none !important; }

#preparedWatchLink { display: grid; gap: 12px; }
#preparedWatchLink p { margin: 0; }
.prepared-video-summary { overflow-wrap: anywhere; font-weight: 700; line-height: 1.6; }
.prepared-copy { width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid #247dcc; border-radius: 8px; background: transparent; color: #1662a8; font: inherit; font-weight: 700; cursor: pointer; }
.prepared-copy:disabled { opacity: .55; cursor: wait; }
.prepared-copy:focus-visible { outline: 3px solid #e5a000; outline-offset: 3px; }
html[data-surface="side-panel"] .prepared-copy { border-color: var(--blue); color: var(--blue); }

.watch-link-requirement-details > summary { display: none; }
html[data-surface="side-panel"] .watch-link-requirement-details { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
html[data-surface="side-panel"] .watch-link-requirement-details > summary { display: list-item; font-size: 14px; font-weight: 700; }
html[data-surface="side-panel"] .watch-link-requirement { margin: 10px 0 0; }

#watchVideoUrlFields { display: grid; gap: 8px; }
#watchVideoUrlFields[hidden] { display: none; }
#editWatchVideoUrl { justify-self: start; }

/* リンクを作る前の「拡張機能がまだ入っていません」（サイトで開いたときだけ出る。watch-create-extension-notice.js）。 */
.watch-link-extension-notice { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #9cc4ea; border-radius: 10px; background: #eef6fd; color: #1d2733; line-height: 1.7; }
.watch-link-extension-notice h2 { margin: 0 0 6px; font-size: 16px; }
.watch-link-extension-notice p { margin: 0; font-size: 14px; }
.watch-link-extension-notice .prepared-copy { display: block; box-sizing: border-box; margin-top: 12px; background: #fff; text-align: center; text-decoration: none; }
.watch-link-extension-notice[data-state="added"] { border-color: #8fcaa4; background: #edf8f1; }

.watch-link-update { padding: 16px; border: 1px solid #bf343f; border-radius: 10px; background: #fff2f3; color: #8a1721; line-height: 1.7; }
.watch-link-update h2 { margin: 0 0 12px; font-size: 18px; }
.watch-link-update p { margin: 12px 0; }
.watch-link-update .prepared-copy { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
html[data-surface="side-panel"] .watch-link-update { background: var(--danger-soft); border-color: var(--danger-border); color: var(--text); }
html[data-surface="side-panel"] .watch-link-update h2 { color: var(--danger); }
