/* TASFUL TALK — 通知・連絡ハブ */

.talk-home-page {
  --talk-accent: #967622;
  --talk-accent-soft: #fffbeb;
  --talk-border: #e2e8f0;
  --talk-muted: #64748b;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.talk-home-main {
  display: grid;
  gap: 1rem;
  max-width: 920px;
}

.talk-home-lead {
  margin: 0;
  font-size: 0.875rem;
  color: var(--talk-muted);
  line-height: 1.55;
}

/* --- Dashboard (Phase10) --- */
.talk-dashboard {
  display: grid;
  gap: 1rem;
}

.talk-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .talk-dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .talk-dashboard-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.talk-dashboard-stat {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--talk-border);
  background: #fff;
}

.talk-dashboard-stat__value {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.talk-dashboard-stat__label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--talk-muted);
}

.talk-dashboard-stat--amber { border-color: #fcd34d; background: #fffbeb; }
.talk-dashboard-stat--rose { border-color: #fecdd3; background: #fff1f2; }
.talk-dashboard-stat--rose .talk-dashboard-stat__value { color: #be123c; }
.talk-dashboard-stat--blue { border-color: #bfdbfe; background: #eff6ff; }
.talk-dashboard-stat--purple { border-color: #ddd6fe; background: #f5f3ff; }
.talk-dashboard-stat--slate { background: #f8fafc; }
.talk-dashboard-stat--teal { border-color: #99f6e4; background: #f0fdfa; }
.talk-dashboard-stat--teal .talk-dashboard-stat__value { color: #0f766e; }

@keyframes talk-dashboard-stat-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(190, 18, 60, 0.35);
  }
  40% {
    transform: scale(1.03);
    box-shadow: 0 0 0 6px rgba(190, 18, 60, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

.talk-dashboard-stat--pulse {
  animation: talk-dashboard-stat-pulse 0.65s ease-out;
}

.talk-dashboard-stat--pulse .talk-dashboard-stat__value {
  color: #be123c;
}

@media (min-width: 900px) {
  .talk-dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  }
}

.talk-dashboard-section__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #1e293b;
}

.talk-dashboard-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--talk-accent);
  cursor: pointer;
  text-decoration: underline;
}

.talk-dashboard-important {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--talk-border);
  background: #fff;
}

.talk-dashboard-important__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.talk-dashboard-important__list {
  display: grid;
  gap: 0.5rem;
}

.talk-dashboard-alert {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.talk-dashboard-alert:hover,
.talk-dashboard-alert:focus-visible {
  background: var(--talk-accent-soft);
  border-color: #fcd34d;
  outline: none;
}

.talk-dashboard-alert--urgent {
  border-color: #fecaca;
  background: #fef2f2;
}

.talk-dashboard-alert__type {
  margin-right: 0.35rem;
}

.talk-dashboard-alert__title {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.talk-dashboard-alert__meta {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--talk-muted);
}

.talk-quick-actions {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--talk-border);
  background: #fff;
}

.talk-quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .talk-quick-actions__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

.talk-quick-actions__btn {
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: var(--talk-accent-soft);
  font-size: 0.75rem;
  font-weight: 800;
  color: #78350f;
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
}

.talk-quick-actions__btn:hover,
.talk-quick-actions__btn:focus-visible {
  border-color: #fcd34d;
  background: #fef9c3;
  outline: none;
}

.talk-recent-actions {
  padding: 0.25rem 0 0.5rem;
}

.talk-recent-actions__track {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .talk-recent-actions__track {
    flex-wrap: wrap;
    overflow: visible;
    scroll-snap-type: none;
  }
}

.talk-recent-actions__card {
  flex: 0 0 auto;
  min-width: 168px;
  max-width: 220px;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #f8fafc;
  scroll-snap-align: start;
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .talk-recent-actions__card {
    flex: 1 1 160px;
    max-width: none;
  }
}

.talk-recent-actions__name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
}

.talk-recent-actions__time {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--talk-muted);
}

.talk-recent-actions__rerun {
  justify-self: start;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #c4a24a;
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--talk-accent);
  cursor: pointer;
}

.talk-recent-actions__rerun:hover {
  background: var(--talk-accent-soft);
}

.talk-unified-inbox {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--talk-border);
  background: #fff;
}

.talk-unified-inbox__head {
  margin-bottom: 0.65rem;
}

.talk-unified-inbox__sub {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--talk-muted);
  line-height: 1.45;
}

.talk-unified-inbox__filters--mobile {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.talk-unified-inbox__filters--desktop {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

@media (min-width: 768px) {
  .talk-unified-inbox__filters--mobile {
    display: none;
  }

  .talk-unified-inbox__filters--desktop {
    display: flex;
  }
}

.talk-unified-inbox__filter {
  display: grid;
  gap: 0.2rem;
}

.talk-unified-inbox__filter-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--talk-muted);
}

.talk-unified-inbox__select {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.8125rem;
}

.talk-unified-inbox__chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.talk-unified-inbox__chip-label {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--talk-muted);
  margin-right: 0.15rem;
}

.talk-unified-inbox__chip {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.talk-unified-inbox__chip.is-active {
  border-color: #c4a24a;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-unified-inbox__quick,
.talk-notify-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.talk-unified-inbox__quick-btn,
.talk-notify-quick-filters__btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.talk-unified-inbox__quick-btn.is-active,
.talk-notify-quick-filters__btn.is-active {
  border-color: #c4a24a;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-unified-inbox__summary {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: var(--talk-muted);
}

.talk-unified-inbox__list {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .talk-unified-inbox__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.talk-unified-inbox-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--talk-border);
  background: #fafafa;
}

.talk-unified-inbox-card--unread {
  border-color: #fcd34d;
  background: #fffbeb;
}

.talk-unified-inbox-card--urgent,
.talk-unified-inbox-card--anpi {
  border-left: 4px solid #be123c;
  background: linear-gradient(90deg, #fff1f2 0%, #fffbeb 48%, #fafafa 100%);
}

.talk-unified-inbox-card--important {
  border-left: 4px solid #2563eb;
  background: linear-gradient(90deg, #eff6ff 0%, #fafafa 55%);
}

.talk-unified-inbox-card--static {
  border-style: dashed;
  background: linear-gradient(135deg, #fafafa 0%, #fff 70%);
}

.talk-unified-inbox-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  justify-content: space-between;
}

.talk-unified-inbox-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.talk-unified-inbox-card__kind {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.1rem 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.talk-unified-inbox-card__kind--notification { background: #dbeafe; color: #1d4ed8; }
.talk-unified-inbox-card__kind--ai_draft { background: #ede9fe; color: #5b21b6; }
.talk-unified-inbox-card__kind--broadcast_draft { background: #f3e8ff; color: #6d28d9; }
.talk-unified-inbox-card__kind--static { background: #fffbeb; color: #7a5710; }

.talk-unified-inbox-card__category {
  font-size: 0.625rem;
  font-weight: 800;
  color: #64748b;
}

.talk-unified-inbox-card__time {
  font-size: 0.6875rem;
  color: var(--talk-muted);
  white-space: nowrap;
}

.talk-unified-inbox-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.talk-unified-inbox-card__summary {
  margin: 0;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.talk-unified-inbox-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

@media (min-width: 641px) {
  .talk-unified-inbox-card__actions {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .talk-unified-inbox-card:hover .talk-unified-inbox-card__actions,
  .talk-unified-inbox-card:focus-within .talk-unified-inbox-card__actions {
    opacity: 1;
    transform: translateY(0);
  }
}

.talk-unified-inbox-card__action {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.talk-unified-inbox-card__action--primary {
  border-color: #c4a24a;
  background: var(--talk-accent);
  color: #fff;
}

.talk-unified-inbox-card__action--danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.talk-dashboard-recent {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--talk-border);
  background: #fff;
}

.talk-dashboard-recent__list {
  margin: 0.5rem 0 0.65rem;
  padding: 0;
  list-style: none;
}

.talk-dashboard-recent__item {
  border-bottom: 1px solid #f1f5f9;
}

.talk-dashboard-recent__item:last-child {
  border-bottom: none;
}

.talk-dashboard-recent__link {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  text-decoration: none;
  color: inherit;
}

.talk-dashboard-recent__link:hover .talk-dashboard-recent__title {
  color: var(--talk-accent);
}

.talk-dashboard-recent__channel {
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--talk-muted);
}

.talk-dashboard-recent__title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
}

.talk-dashboard-recent__preview {
  font-size: 0.75rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talk-dashboard-recent__meta {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.talk-dashboard-empty {
  margin: 0;
  padding: 0.35rem 0;
}

.talk-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
}

.talk-tabs__btn {
  flex: 1;
  min-height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.talk-tabs__btn.is-active {
  background: #fff;
  color: var(--talk-accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.talk-tabs__btn:focus-visible {
  outline: 2px solid var(--talk-accent);
  outline-offset: 2px;
}

.talk-tabs__btn--ai {
  font-weight: 800;
}

.talk-tabs__btn--ai.is-active {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.talk-home--simple .talk-home-main {
  gap: 0.75rem;
}

.talk-home--simple .talk-tabs {
  margin-top: 0.15rem;
}

.talk-home--simple .talk-filter-panel__inner--tags {
  padding: 0.55rem 0.65rem;
}

.talk-home--simple .talk-filter-tags__hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.talk-home--simple .talk-filter-panel__inner--tags .talk-filter-chip {
  min-height: 36px;
  font-size: 0.8125rem;
}

.talk-home--simple .talk-filter-tags__sub-label {
  display: none;
}

.talk-chat-card--builder-subtle {
  opacity: 0.88;
  order: 1;
}

.talk-chat-card--builder-subtle .talk-chat-card__badge--builder {
  background: #f1f5f9;
  color: #64748b;
}

/* --- AI 相談中心ハブ --- */
.talk-ai-card {
  display: grid;
  gap: 0.85rem;
}

.talk-ai-hub {
  display: grid;
  gap: 1rem;
}

.talk-ai-more {
  display: none !important;
}

.talk-ai-hero-card {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 1.15rem 1.1rem 1.2rem;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 48%, #e0f2fe 100%);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.14);
}

.talk-ai-hero-card__brand {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #4338ca;
}

.talk-ai-hero-card__title {
  margin: 0.45rem 0 0;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.talk-ai-hero-card__sub {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
}

.talk-ai-hero-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.talk-ai-hero-card__cta:active {
  transform: scale(0.99);
}

.talk-ai-hub-section__title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #64748b;
}

.talk-ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.talk-ai-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 72px;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.talk-ai-tool-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.talk-ai-tool-card__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.talk-ai-tool-card__label {
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.3;
}

.talk-ai-vendor-search {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.talk-ai-vendor-search__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

.talk-ai-vendor-search__sub {
  margin: 0;
}

.talk-ai-vendor-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.talk-ai-vendor-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.talk-ai-vendor-form__field--wide {
  grid-column: 1 / -1;
}

.talk-ai-vendor-form__field input {
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.talk-ai-vendor-form__actions {
  margin-top: 0.35rem;
}

.talk-ai-vendor-search__status {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.talk-ai-vendor-search__status.is-ok {
  color: #047857;
}

.talk-ai-vendor-search__status.is-error {
  color: #b91c1c;
}

.talk-ai-vendor-results__grid {
  display: grid;
  gap: 0.75rem;
}

.talk-ai-vendor-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.talk-ai-vendor-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.talk-ai-vendor-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.talk-ai-vendor-card__badge {
  flex-shrink: 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.6875rem;
  font-weight: 800;
}

.talk-ai-vendor-card__meta {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}

.talk-ai-vendor-card__meta div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem;
  font-size: 0.8125rem;
}

.talk-ai-vendor-card__meta dt {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.talk-ai-vendor-card__meta dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}

.talk-ai-vendor-card__cta {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
}

.talk-ai-vendor-card__cta:disabled {
  opacity: 0.65;
  cursor: wait;
}

.talk-ai-vendor-empty {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.875rem;
}

@media (max-width: 520px) {
  .talk-ai-vendor-form__grid {
    grid-template-columns: 1fr;
  }
}

.talk-ai-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8edf2;
  background: #fff;
}

.talk-ai-suggest-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.talk-ai-suggest-list li:last-child .talk-ai-suggest-item {
  border-bottom: none;
}

.talk-ai-suggest-item::after {
  content: "›";
  margin-left: auto;
  color: #cbd5e1;
  font-size: 1.125rem;
}

.talk-ai-history-list {
  border-radius: 12px;
  border: 1px solid #e8edf2;
  background: #fff;
  overflow: hidden;
}

.talk-ai-history-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-align: center;
}

.talk-ai-history-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.talk-ai-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.talk-ai-history-items li:last-child .talk-ai-history-item {
  border-bottom: none;
}

.talk-ai-history-item__label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.talk-ai-history-item__time {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.talk-ai-saved-section {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eef2f6;
}

.talk-ai-saved-section .talk-ai-saved__sub {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.talk-ai-hub__hero {
  display: none;
}

.talk-ai-hub__title {
  margin: 0;
  font-size: 1.25rem;
}

.talk-ai-hub__sub {
  margin: 0.2rem 0 0;
}

.talk-ai-primary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 520px) {
  .talk-ai-primary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.talk-ai-primary__btn {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(160deg, #eff6ff 0%, #fff 70%);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.talk-ai-primary__btn:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
}

.talk-ai-primary__btn:active {
  transform: scale(0.99);
}

.talk-ai-primary__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.talk-ai-primary__label {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
}

.talk-ai-primary__hint {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}

.talk-ai-more {
  margin-top: 0.15rem;
  border: 1px dashed var(--talk-border);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  background: #f8fafc;
}

.talk-ai-more__summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #334155;
}

.talk-ai-more__hint {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.75rem;
  color: var(--talk-muted);
}

.talk-ai-more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding-bottom: 0.35rem;
}

.talk-ai-more__link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
}

.talk-ai-more__link:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.talk-ai-power {
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  background: #fffdf5;
}

.talk-ai-power__summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #92400e;
}

.talk-ai-power__grid {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.talk-ai-composer__back {
  display: inline-flex;
  align-items: center;
  min-height: var(--tasful-back-link-min-h, 36px);
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.35rem 0.2rem 0;
  border: none;
  border-radius: 8px;
  background: none;
  font-size: var(--tasful-back-link-font-size, 0.8125rem);
  font-weight: 700;
  color: var(--tasful-back-link-color, #967622);
  cursor: pointer;
  touch-action: manipulation;
}

.talk-ai-composer__back:focus-visible {
  outline: 2px solid #c4a24a;
  outline-offset: 2px;
}

.talk-ai-composer__mode {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.talk-ai-saved--fold {
  border-top: 1px solid var(--talk-border);
  padding-top: 0.65rem;
}

.talk-ai-saved__summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #475569;
}

/* --- 折りたたみフィルターバー --- */
.talk-filter-bar {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.talk-filter-bar__row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.talk-filter-bar__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 0.65rem;
  border: 1px solid var(--talk-border);
  border-radius: 10px;
  background: #fff;
}

.talk-filter-bar__search-icon {
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
}

.talk-filter-bar__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  outline: none;
}

.talk-filter-bar__toggle {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}

.talk-filter-bar__toggle.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.talk-filter-panel[hidden] {
  display: none !important;
}

.talk-filter-panel__inner {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid var(--talk-border);
  border-radius: 12px;
  background: #f8fafc;
}

.talk-filter-panel__inner--tags {
  gap: 0.55rem;
}

.talk-filter-tags__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.talk-filter-tags__hint {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--talk-muted);
}

.talk-filter-tags__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.talk-filter-tags__row--sub {
  margin-top: 0.15rem;
}

.talk-filter-tags__sub-label {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #64748b;
  width: 100%;
}

.talk-filter-panel__inner--tags .talk-filter-chip {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}

.talk-filter-panel__reset {
  justify-self: start;
  min-height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px dashed #94a3b8;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}

.talk-filter-section {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.talk-filter-section__summary {
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  list-style: none;
}

.talk-filter-section__summary::-webkit-details-marker {
  display: none;
}

.talk-filter-section__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.55rem 0.55rem;
}

.talk-filter-chip {
  min-height: 30px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.talk-filter-chip.is-active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
}

.talk-panel[hidden] {
  display: none !important;
}

.talk-card {
  background: #fff;
  border: 1px solid var(--talk-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.talk-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.talk-card__sub {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--talk-muted);
}

.talk-chat-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.talk-chat-search {
  display: block;
  margin: 0;
}

.talk-chat-search__input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.875rem;
  color: #0f172a;
}

.talk-chat-search__input::placeholder {
  color: #94a3b8;
}

.talk-chat-search__input:focus {
  outline: 2px solid var(--talk-accent-soft);
  border-color: #c4a24a;
}

@media (min-width: 768px) {
  .talk-chat-toolbar {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .talk-chat-search {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 360px;
  }

  .talk-channel-filters {
    flex: 1 1 320px;
    margin-bottom: 0;
  }
}

.talk-channel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
}

.talk-channel-filters__btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.talk-channel-filters__btn.is-active {
  border-color: #c4a24a;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* LINE風 — プロフィール画像・表示名・最終メッセージ・未読 */
.talk-chat-line {
  list-style: none;
  border-bottom: 1px solid #f1f5f9;
}

.talk-chat-line__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: inherit;
}

.talk-chat-line__link:hover {
  background: #fafaf8;
}

.talk-chat-line__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.talk-chat-line__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--talk-border);
}

.talk-chat-line__online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.talk-chat-line__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.talk-chat-line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.talk-chat-line__name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.talk-chat-line__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

.talk-chat-line__domain {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
}

.talk-chat-line__domain--friend {
  background: #e0f2fe;
  color: #0369a1;
}

.talk-chat-line__domain--work {
  background: #fff8e1;
  color: #967622;
}

.talk-chat-line__channel {
  font-size: 0.625rem;
}

.talk-chat-line__context {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.talk-chat-line__preview {
  font-size: 0.8125rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.talk-chat-line__aside {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.talk-chat-line__unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
}

.talk-chat-line__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.5rem 0.65rem;
  margin-left: 3.75rem;
}

.talk-chat-line__profile-link {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--talk-accent);
  text-decoration: none;
}

.talk-chat-line--static {
  background: #fafaf8;
}

.talk-chat-card {
  list-style: none;
}

.talk-chat-card__inner {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--talk-border);
  background: #fff;
}

.talk-chat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.talk-chat-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #f1f5f9;
  color: #475569;
}

.talk-chat-card__badge--personal { background: #e3f2fd; color: #1565c0; }
.talk-chat-card__badge--skill { background: #e8eaf6; color: #3949ab; }
.talk-chat-card__badge--worker { background: #efebe9; color: #5d4037; }
.talk-chat-card__badge--job { background: #e8f5e9; color: #2e7d32; }
.talk-chat-card__badge--product { background: #fce4ec; color: #c2185b; }
.talk-chat-card__badge--shop { background: #f3e5f5; color: #7b1fa2; }
.talk-chat-card__badge--business { background: #fff8e1; color: #967622; }
.talk-chat-card__badge--builder { background: #fffbeb; color: #7a5710; }
.talk-chat-card__badge--ai_consult { background: #ecfdf5; color: #047857; }
.talk-chat-card__badge--system { background: #fef2f2; color: #b91c1c; }

.talk-chat-card__time {
  font-size: 0.75rem;
  color: var(--talk-muted);
  white-space: nowrap;
}

.talk-chat-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.talk-chat-card__partner {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.talk-chat-card__preview {
  margin: 0;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.talk-chat-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.talk-chat-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.talk-chat-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--talk-border);
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.talk-chat-card__btn--primary {
  border-color: #c4a24a;
  background: var(--talk-accent);
  color: #fff;
}

.talk-chat-card__btn--secondary:hover,
.talk-chat-card__btn--primary:hover {
  filter: brightness(0.97);
}

.talk-chat-card--static .talk-chat-card__inner {
  border-style: dashed;
  background: linear-gradient(135deg, #fafafa 0%, #fff 55%);
}

.talk-chat-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  line-height: 1.55;
}

.talk-builder-hub {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed #c4a24a;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 60%);
  display: grid;
  gap: 0.5rem;
}

.talk-builder-hub__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #7a5710;
}

.talk-builder-hub__desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--talk-muted);
  line-height: 1.5;
}

.talk-builder-hub__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--talk-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.talk-builder-hub__link:hover {
  filter: brightness(1.05);
}

.talk-notify-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.talk-notify-toolbar__titles {
  flex: 1;
  min-width: 0;
}

.talk-notify-toolbar__title {
  margin-bottom: 0.15rem;
}

.talk-notify-toolbar__sub {
  margin: 0;
}

.talk-notify-settings-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
}

.talk-notify-settings-btn:hover {
  background: #f8fafc;
}

.talk-notify-summary {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--talk-muted);
}

.talk-notify-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.talk-notify-settings-modal[hidden] {
  display: none;
}

.talk-notify-settings-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--talk-border);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.talk-notify-settings-form {
  padding: 0 1rem 1rem;
}

.talk-notify-settings-group {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.talk-notify-settings-group__title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #334155;
}

.talk-notify-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.talk-notify-settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.talk-notify-settings-toggle--master {
  font-weight: 800;
}

.talk-notify-settings-toggle input {
  flex-shrink: 0;
}

.talk-notify-settings-warn {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #92400e;
}

.talk-notify-settings-warn[hidden] {
  display: none;
}

.talk-notify-settings-hint {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  color: #64748b;
}

.talk-notify-settings-quiet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.talk-notify-settings-quiet.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.talk-notify-settings-time {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.talk-notify-settings-time input {
  min-height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--talk-border);
}

.talk-notify-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.talk-notify-card--muted {
  opacity: 0.72;
  border-style: dashed;
}

.talk-notify-muted-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
}

.talk-notify-filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  .talk-notify-filter-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }
}

.talk-notify-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.talk-notify-follow-filter {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.talk-notify-follow-select {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

@media (min-width: 768px) {
  .talk-notify-follow-select {
    display: none;
  }
}

.talk-notify-follow-btn {
  display: none;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #5eead4;
  background: #f0fdfa;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f766e;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .talk-notify-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.talk-notify-follow-btn.is-active {
  border-color: #0d9488;
  background: #ccfbf1;
  color: #115e59;
  box-shadow: inset 0 0 0 1px #14b8a6;
}

.talk-notify-follow-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
  line-height: 1.2;
}

.talk-notify-card--follow {
  border-left: 3px solid #22d3ee;
}

.talk-notify-card--follow.talk-notify-card--unread {
  border-left-color: #0891b2;
}

.talk-notify-filters__btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.talk-notify-filters__btn.is-active {
  border-color: #c4a24a;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-notify-list {
  display: grid;
  gap: 0.625rem;
  align-content: start;
}

.talk-notify-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(52vh, 420px);
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

.talk-notify-empty-state__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.55;
  color: #64748b;
}

.talk-notify-card__compact {
  display: block;
  min-width: 0;
}

.talk-notify-card__chevron {
  display: none;
}

.talk-notify-card__head-extra {
  display: contents;
}

.talk-notify-card__head--compact .talk-notify-card__time {
  display: none;
}

.talk-notify-card__actions--sr {
  /* desktop: visible via hover rules below */
}

/* 通知詳細（スマホ: ボトムシート / PC: 中央モーダル） */
.talk-notify-detail {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  padding: 0;
}

.talk-notify-detail[hidden] {
  display: none !important;
}

body.talk-notify-detail-open {
  overflow: hidden;
}

.talk-notify-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.talk-notify-detail__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 80dvh;
  background: #fff;
  border: 1px solid var(--talk-border);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.talk-notify-detail--sheet {
  align-items: flex-end;
}

.talk-notify-detail--sheet .talk-notify-detail__panel {
  border-radius: 18px 18px 0 0;
  max-height: 80dvh;
}

.talk-notify-detail--modal {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.talk-notify-detail--modal .talk-notify-detail__panel {
  width: min(560px, 100%);
  max-height: min(85vh, 720px);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.talk-notify-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.talk-notify-detail__title {
  margin: 0;
  flex: 1;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
}

.talk-notify-detail__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 1rem;
  cursor: pointer;
}

.talk-notify-detail__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.talk-notify-detail__meta-grid {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.talk-notify-detail__meta-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.8125rem;
}

.talk-notify-detail__meta-row dt {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.talk-notify-detail__meta-row dd {
  margin: 0;
}

.talk-notify-detail__section {
  margin-bottom: 1rem;
}

.talk-notify-detail__section-title {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
}

.talk-notify-detail__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
}

.talk-notify-detail__ops {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.talk-notify-detail__link {
  display: block;
  word-break: break-all;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2563eb;
}

.talk-notify-detail__empty-link {
  margin: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.talk-notify-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.talk-notify-detail__action {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
}

.talk-notify-detail__action--primary {
  border-color: #c4a24a;
  background: var(--talk-accent-soft, #fffbeb);
  color: var(--talk-accent, #967622);
}

.talk-notify-detail__action--danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.talk-notify-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--talk-border);
  border-radius: 12px;
  background: #fff;
  cursor: default;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.talk-notify-card--cta-only:hover {
  border-color: #c4a24a;
  box-shadow: 0 4px 14px rgba(150, 118, 34, 0.12);
}

.talk-notify-card--cta-only .talk-notify-card__title,
.talk-notify-card--cta-only .talk-notify-card__text,
.talk-notify-card--cta-only .talk-notify-card__body,
.talk-notify-card--cta-only .talk-notify-card__compact {
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
}

.talk-notify-card--return-focus {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.talk-notify-card--unread {
  border-color: #fde68a;
  background: #fffdf5;
}

.talk-notify-card--urgent,
.talk-notify-card--anpi {
  border-left: 4px solid #be123c;
  background: linear-gradient(90deg, #fff1f2 0%, #fffdf5 50%, #fff 100%);
}

.talk-notify-card--important {
  border-left: 4px solid #2563eb;
  background: linear-gradient(90deg, #eff6ff 0%, #fff 55%);
}

.talk-notify-section {
  display: grid;
  gap: 0.625rem;
}

.talk-notify-section + .talk-notify-section {
  margin-top: 1rem;
  padding-top: 0.25rem;
}

.talk-notify-section__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.125rem;
}

.talk-notify-section__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #334155;
}

.talk-notify-section--important .talk-notify-section__title {
  color: #c2410c;
}

.talk-notify-section--important .talk-notify-section__head::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  flex-shrink: 0;
}

.talk-notify-section__list {
  display: grid;
  gap: 0.625rem;
  pointer-events: none;
}

.talk-notify-section__list > .talk-notify-card {
  pointer-events: auto;
}

.talk-notify-card--tier-important {
  border-left: 4px solid #ea580c;
  background: linear-gradient(90deg, #fff7ed 0%, #fff 58%);
  box-shadow: 0 1px 0 rgba(234, 88, 12, 0.08);
}

.talk-notify-card--tier-important.talk-notify-card--anpi {
  border-left-color: #dc2626;
  background: linear-gradient(90deg, #fff1f2 0%, #fff7ed 45%, #fff 100%);
}

.talk-notify-card--tier-important .talk-notify-card__deadline {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c2410c;
}

/* TASFUL市場通知 — 状態別アクセント（左ライン + 小バッジ）390px基準 */
.talk-notify-card__market-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 0.125rem;
}

.talk-notify-card__market-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.talk-notify-card__market-badge--new {
  background: #111827;
  color: #fff;
}

.talk-notify-card__market-badge--preparing {
  background: #dbeafe;
  color: #1d4ed8;
}

.talk-notify-card__market-badge--delivered {
  background: #dcfce7;
  color: #15803d;
}

.talk-notify-card__market-badge--review {
  background: #ffedd5;
  color: #c2410c;
}

.talk-notify-card--market-preparing.talk-notify-card--tier-important {
  border-left-color: #2563eb;
  background: linear-gradient(90deg, #eff6ff 0%, #fff 58%);
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08);
}

.talk-notify-card--market-delivered.talk-notify-card--tier-important {
  border-left-color: #16a34a;
  background: linear-gradient(90deg, #f0fdf4 0%, #fff 58%);
  box-shadow: 0 1px 0 rgba(22, 163, 74, 0.08);
}

.talk-notify-card--market-review.talk-notify-card--tier-important {
  border-left-color: #ea580c;
  background: linear-gradient(90deg, #fff7ed 0%, #fff 58%);
  box-shadow: 0 1px 0 rgba(234, 88, 12, 0.08);
}

.talk-notify-card--market-shipped.talk-notify-card--tier-important {
  border-left-color: #6366f1;
  background: linear-gradient(90deg, #eef2ff 0%, #fff 58%);
  box-shadow: 0 1px 0 rgba(99, 102, 241, 0.08);
}

.talk-notify-card--market-accepted.talk-notify-card--tier-important {
  border-left-color: #64748b;
  background: linear-gradient(90deg, #f8fafc 0%, #fff 58%);
  box-shadow: 0 1px 0 rgba(100, 116, 139, 0.08);
}

.talk-notify-card--market-purchase.talk-notify-card--tier-important {
  border-left-color: #c4a24a;
  background: linear-gradient(90deg, #fffbeb 0%, #fff 58%);
  box-shadow: 0 1px 0 rgba(196, 162, 74, 0.1);
}

/* TASFUL市場通知 — 390px 情報密度（CTA 44px は維持） */
.talk-notify-card[class*="talk-notify-card--market-"].talk-notify-card--minimal-inline {
  padding: 0.625rem 0.75rem;
  gap: 0.35rem;
}

.talk-notify-card[class*="talk-notify-card--market-"] .talk-notify-card__body--minimal-inline {
  gap: 0.375rem;
}

.talk-notify-card[class*="talk-notify-card--market-"] .talk-notify-card__title {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.talk-notify-card__shop {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.25;
  color: #64748b;
  letter-spacing: 0.01em;
}

.talk-notify-card__text--market {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #334155;
  white-space: pre-line;
}

.talk-notify-card[class*="talk-notify-card--market-"] .talk-notify-card__category-chip {
  min-height: 18px;
  padding: 0.05rem 0.4rem;
  font-size: 0.6875rem;
  line-height: 1.25;
}

.talk-notify-card[class*="talk-notify-card--market-"] .talk-notify-card__market-badges {
  margin-bottom: 0;
  gap: 0.25rem;
}

.talk-notify-section__list:has(.talk-notify-card[class*="talk-notify-card--market-"]) {
  gap: 0.5rem;
}

.talk-notify-card--tier-normal.talk-notify-card--tap {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.talk-notify-card--tier-normal.talk-notify-card--tap:hover {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.talk-notify-card--tier-normal.talk-notify-card--tap:active {
  transform: scale(0.992);
}

.talk-notify-card--tier-normal.talk-notify-card--tap:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.talk-notify-card__cta-row--anpi {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.talk-notify-card__cta-row--anpi .talk-notify-card__action--primary {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  border: 2px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.talk-notify-card__cta-row--anpi .talk-notify-card__action--ghost {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.talk-notify-card__cta-row--anpi .talk-notify-card__action--ghost:hover {
  background: #eff6ff;
}

/* OPS WATCH 通知（重要度色分け） */
.talk-notify-card--ops-high {
  border-left: 4px solid #dc2626;
  background: linear-gradient(90deg, #fef2f2 0%, #fff 60%);
}

.talk-notify-card--ops-medium {
  border-left: 4px solid #2563eb;
  background: linear-gradient(90deg, #eff6ff 0%, #fff 60%);
}

.talk-notify-card--ops-low {
  border-left: 4px solid #94a3b8;
  background: linear-gradient(90deg, #f8fafc 0%, #fff 60%);
}

.talk-notify-card--ops-daily {
  border-color: #c4a24a;
  box-shadow: 0 2px 10px rgba(150, 118, 34, 0.1);
}

.talk-notify-card__type--ops {
  background: #1e293b;
  color: #f8fafc;
}

.talk-ops-watch-imp {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.talk-ops-watch-imp--high {
  background: #fee2e2;
  color: #b91c1c;
}

.talk-ops-watch-imp--medium {
  background: #dbeafe;
  color: #1d4ed8;
}

.talk-ops-watch-imp--low {
  background: #f1f5f9;
  color: #64748b;
}

.talk-ops-watch-count-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.12rem 0.42rem;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0369a1;
}

.talk-ops-watch-body {
  display: grid;
  gap: 0.15rem;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.45;
}

.talk-ops-watch-body__brand {
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.talk-ops-watch-body__section {
  font-weight: 800;
  color: #475569;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
}

.talk-ops-watch-body__count {
  font-weight: 700;
  color: #0369a1;
  margin: 0;
}

.talk-ops-watch-body__hint {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.25rem 0 0;
}

.talk-ops-watch-body__line {
  margin: 0;
}

.talk-ops-watch-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.talk-ops-watch-modal[hidden] {
  display: none;
}

body.talk-ops-watch-modal-open {
  overflow: hidden;
}

.talk-ops-watch-modal__panel {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--talk-border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.talk-ops-watch-modal__body {
  padding: 0 1rem 1rem;
}

.talk-ops-watch-detail__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.talk-ops-watch-detail__meta {
  font-size: 0.75rem;
  color: #64748b;
}

.talk-ops-watch-detail__pre {
  white-space: pre-wrap;
  font-size: 0.8125rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
}

.talk-ops-watch-detail h5 {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.8125rem;
  color: #475569;
}

.talk-ops-watch-detail--sep {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--talk-border);
}

.talk-ops-watch-detail__sources {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
}

.talk-notify-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.talk-notify-card__type {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
}

.talk-notify-card__type--blue { background: #dbeafe; color: #1d4ed8; }
.talk-notify-card__type--green { background: #dcfce7; color: #15803d; }
.talk-notify-card__type--amber { background: #fef3c7; color: #b45309; }
.talk-notify-card__type--purple { background: #ede9fe; color: #6d28d9; }
.talk-notify-card__type--teal { background: #ccfbf1; color: #0f766e; }
.talk-notify-card__type--indigo { background: #e0e7ff; color: #4338ca; }
.talk-notify-card__type--rose { background: #ffe4e6; color: #be123c; }
.talk-notify-card__type--slate { background: #f1f5f9; color: #475569; }
.talk-notify-card__type--cyan { background: #cffafe; color: #0e7490; }
.talk-notify-card__type--gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #9a7209;
  border: 1px solid #d4af37;
  box-shadow: 0 1px 0 rgba(196, 162, 74, 0.12);
}

.talk-notify-card--shop-store-purchase.talk-notify-card--minimal-inline {
  padding: 0.5rem 0.65rem;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__body--minimal-inline {
  gap: 0.28rem;
  align-items: flex-start;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__shop-store-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__head--shop-store {
  margin-bottom: 0.1rem;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__shop-store-head .talk-notify-card__category-chip {
  min-height: 18px;
  padding: 0 0.4rem;
  font-size: 0.6875rem;
  line-height: 1.25;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__shop-store-head .talk-notify-card__market-badge {
  min-height: 18px;
  padding: 0.08rem 0.4rem;
  font-size: 0.6875rem;
  line-height: 1.25;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__shop-store-details {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin-top: 0;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__shop-name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__product-name {
  margin: 0;
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #334155;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__amount {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.25;
  color: #9a7209;
  letter-spacing: 0.01em;
}

.talk-notify-card--shop-store-purchase .talk-notify-card__order-number {
  margin: 0.05rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #64748b;
  letter-spacing: 0.02em;
}

.talk-notify-card--shop-store-purchase.talk-notify-card--market-purchase.talk-notify-card--tier-important {
  border-left-color: #c9a227;
  background: linear-gradient(90deg, #fffbeb 0%, #fff 62%);
}

.talk-notify-card--shop-store-purchase .talk-notify-card__minimal-action,
.talk-notify-card--shop-store-purchase .talk-notify-card__card-cta,
.talk-notify-card--shop-store-purchase.talk-notify-card--platform .talk-notify-card__body .talk-notify-card__minimal-action,
.talk-notify-card--shop-store-purchase.talk-notify-card--cta-only .talk-notify-card__body .talk-notify-card__card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 96px;
  max-width: 120px;
  min-height: 36px;
  height: 36px;
  margin-top: 0.35rem;
  padding: 0 17px;
  align-self: flex-start;
  flex: 0 0 auto;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

.talk-notify-card--platform {
  border-color: #e8edf3;
}

.talk-notify-card__head--platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.talk-notify-card__category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.talk-notify-card__head-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.talk-notify-card__subtype {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.talk-notify-card__time {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.talk-notify-card__body--platform {
  padding-top: 0.15rem;
}

.talk-notify-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.talk-notify-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.talk-notify-card__tag--indigo { background: #e0e7ff; color: #4338ca; }
.talk-notify-card__tag--amber { background: #fef3c7; color: #b45309; }
.talk-notify-card__tag--teal { background: #ccfbf1; color: #0f766e; }
.talk-notify-card__tag--blue { background: #dbeafe; color: #1d4ed8; }
.talk-notify-card__tag--green { background: #dcfce7; color: #15803d; }
.talk-notify-card__tag--cyan { background: #cffafe; color: #0e7490; }
.talk-notify-card__tag--purple { background: #ede9fe; color: #6d28d9; }
.talk-notify-card__tag--rose { background: #ffe4e6; color: #be123c; }
.talk-notify-card__tag--slate { background: #f1f5f9; color: #475569; }

.talk-notify-card__project {
  margin: 0 0 0.2rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #334155;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.talk-notify-card--builder-scope .talk-notify-card__scope-chip {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.talk-notify-card__body--platform .talk-notify-card__title {
  margin-bottom: 0.35rem;
}

.talk-notify-card__actions--platform {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}

.talk-notify-card__platform-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.875rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
}

.talk-notify-card__platform-action.talk-notify-card__action--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.talk-notify-card__platform-action.talk-notify-card__action--primary:hover {
  filter: brightness(1.05);
}

.talk-notify-card--minimal-inline {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
}

.talk-notify-card--cta-inline,
.talk-notify-card--cta-only {
  cursor: default;
  pointer-events: none;
}

.talk-notify-card--cta-only .talk-notify-card__compact,
.talk-notify-card--cta-only .talk-notify-card__body,
.talk-notify-card--cta-only .talk-notify-card__head,
.talk-notify-card--cta-only .talk-notify-card__title,
.talk-notify-card--cta-only .talk-notify-card__text,
.talk-notify-card--cta-only .talk-notify-card__job-details,
.talk-notify-card--cta-only .talk-notify-card__meta {
  pointer-events: none;
}

.talk-notify-card__card-cta,
.talk-notify-card--cta-inline .talk-notify-card__minimal-action,
.talk-notify-card--cta-only [data-talk-notify-action] {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.15);
  cursor: pointer;
  pointer-events: auto;
}

.talk-notify-card--minimal-inline .talk-notify-card__body--minimal-inline {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
}

.talk-notify-card--minimal-inline .talk-notify-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.talk-notify-card--cta-only .talk-notify-card__body .talk-notify-card__card-cta,
.talk-notify-card--minimal-inline .talk-notify-card__minimal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0.55rem 0.875rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
  flex: 0 0 auto;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: static !important;
  height: auto !important;
  max-height: none !important;
  clip: auto !important;
  clip-path: none !important;
}

.talk-notify-card--shop-store-purchase.talk-notify-card--minimal-inline .talk-notify-card__body .talk-notify-card__minimal-action,
.talk-notify-card--shop-store-purchase.talk-notify-card--cta-only .talk-notify-card__body .talk-notify-card__card-cta {
  display: inline-flex !important;
  justify-content: center !important;
  width: fit-content !important;
  min-width: 96px !important;
  max-width: 120px !important;
  min-height: 36px !important;
  height: 36px !important;
  margin-top: 0.35rem !important;
  padding: 0 17px !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}

.talk-notify-card--minimal-inline .talk-notify-card__minimal-action:hover {
  background: #f8fafc;
}

.talk-notify-card--job-details.talk-notify-card--minimal-inline {
  padding: 0.9375rem 0.875rem;
}

.talk-notify-card--job-details .talk-notify-card__body--minimal-inline {
  gap: 0.4375rem;
}

.talk-notify-card--job-details .talk-notify-card__job-head {
  margin: 0;
}

.talk-notify-card--job-details .talk-notify-card__category-chip {
  min-height: 20px;
  padding: 0.1rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
}

.talk-notify-card--job-details .talk-notify-card__title--job-event {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #334155;
}

.talk-notify-card__job-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.talk-notify-card__job-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.talk-notify-card__text--details {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
  white-space: normal;
  overflow: visible;
  display: block;
}

.talk-notify-card__job-supplement {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: #64748b;
}

.talk-notify-card__job-time {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #94a3b8;
}

.talk-notify-card--job-details .talk-notify-card__minimal-action,
.talk-notify-card--platform .talk-notify-card__body .talk-notify-card__minimal-action,
.talk-notify-card--platform .talk-notify-card__body .talk-notify-card__card-cta {
  margin-top: 0.125rem;
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

.talk-notify-card--job-details .talk-notify-card__minimal-action:hover,
.talk-notify-card--platform .talk-notify-card__body .talk-notify-card__minimal-action:hover {
  filter: brightness(1.05);
  background: #2563eb;
}

@media (max-width: 640px) {
  .talk-notify-card__actions--platform {
    opacity: 1;
    transform: none;
  }

  .talk-notify-card__platform-action,
  .talk-notify-card__card-cta {
    min-height: 44px;
  }
}

.talk-notify-priority--high { color: #b45309; }
.talk-notify-priority--medium { color: #64748b; }
.talk-notify-priority--low { color: #94a3b8; }

.talk-notify-read {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.talk-notify-read--unread {
  background: #fef3c7;
  color: #b45309;
}

.talk-notify-read--read {
  background: #f1f5f9;
  color: #64748b;
}

.talk-notify-priority {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.talk-notify-priority--normal {
  background: #f8fafc;
  color: #64748b;
}

.talk-notify-priority--important {
  background: #ffedd5;
  color: #c2410c;
}

.talk-notify-priority--urgent {
  background: #fee2e2;
  color: #b91c1c;
}

.talk-notify-card__body {
  min-width: 0;
}

.talk-notify-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}

.talk-notify-card__text {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--talk-muted);
  line-height: 1.45;
}

.talk-notify-card__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  color: #94a3b8;
}

.talk-notify-card__source::before {
  content: "· ";
}

.talk-notify-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid #f1f5f9;
}

@media (min-width: 641px) {
  .talk-notify-card__actions {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .talk-notify-card:hover .talk-notify-card__actions,
  .talk-notify-card:focus-within .talk-notify-card__actions {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .talk-notify-card__actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    opacity: 1;
    transform: none;
  }
}

.talk-notify-card__card-cta {
  margin-top: 0.5rem;
  text-decoration: none;
  box-sizing: border-box;
}

.talk-notify-card__action {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}

.talk-notify-card__minimal-action.talk-notify-card__action {
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.talk-notify-card__action--primary {
  border-color: #c4a24a;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-notify-card__action--danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.talk-notify-card__action:hover {
  filter: brightness(0.98);
}

.talk-broadcast-card--highlight {
  border-color: #c4a24a;
  box-shadow: 0 0 0 2px rgba(196, 162, 74, 0.35);
  animation: talk-broadcast-highlight 1.2s ease 2;
}

@keyframes talk-broadcast-highlight {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(196, 162, 74, 0.2);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(196, 162, 74, 0.45);
  }
}

.talk-notify-card__open {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #c4a24a;
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--talk-accent);
  cursor: pointer;
}

.talk-notify-card__open:hover {
  background: var(--talk-accent-soft);
}

.talk-ai-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.talk-ai-modes__btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.talk-ai-modes__btn.is-active {
  border-color: #c4a24a;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-ai-form {
  display: grid;
  gap: 0.65rem;
}

.talk-ai-form label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.talk-ai-form textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--talk-border);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

.talk-ai-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.talk-ai-form__submit {
  min-height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--talk-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.talk-ai-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.talk-ai-result {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--talk-border);
}

.talk-ai-result[hidden] {
  display: none !important;
}

.talk-ai-result__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
}

.talk-ai-result__body {
  margin: 0;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--talk-border);
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: #334155;
  font-family: inherit;
  max-height: 280px;
  overflow: auto;
}

.talk-ai-result__body--rich {
  white-space: normal;
  max-height: none;
}

.talk-ai-result__body--rich .ai-cross-card:last-child {
  margin-bottom: 0;
}

.talk-ai-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.talk-ai-action {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.talk-ai-action:hover {
  background: #f1f5f9;
}

.talk-ai-action--primary {
  border-color: #c4a24a;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-ai-action--notify {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.talk-ai-action--apply {
  border-color: #86efac;
  background: #ecfdf5;
  color: #15803d;
}

.talk-draft-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.45;
}

.talk-draft-banner--ok {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

.talk-draft-banner--warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.talk-ai-action--muted {
  color: #94a3b8;
}

.talk-ai-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.talk-ai-result__status {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  min-height: 1.2em;
}

.talk-ai-result__status.is-ok {
  color: #15803d;
}

.talk-ai-result__status.is-error {
  color: #b91c1c;
}

.talk-ai-saved {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--talk-border);
}

.talk-ai-saved__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: #1e293b;
}

.talk-ai-saved__sub {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.75rem;
  color: var(--talk-muted);
}

.talk-ai-saved__list {
  display: grid;
  gap: 0.5rem;
}

.talk-ai-draft-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #fff;
}

.talk-ai-draft-card--discarded {
  opacity: 0.55;
}

.talk-ai-draft-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.talk-ai-draft-card__mode {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-ai-draft-card__time {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.talk-ai-draft-card__status {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
}

.talk-ai-draft-card__excerpt {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #475569;
}

.talk-ai-draft-card__excerpt--out {
  color: #334155;
}

.talk-ai-draft-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.talk-ai-draft-card__btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--talk-border);
  background: #f8fafc;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
}

.talk-ai-draft-card__btn--danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.talk-ai-draft-card__btn--apply {
  border-color: #86efac;
  color: #15803d;
  background: #ecfdf5;
}

.talk-ai-draft-card__btn--send {
  border-color: #86efac;
  color: #15803d;
  background: #ecfdf5;
  font-weight: 800;
}

.talk-ai-action--broadcast {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.talk-ai-broadcast {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--talk-border);
}

.talk-ai-broadcast__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: #1e293b;
}

.talk-ai-broadcast__sub {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.75rem;
  color: var(--talk-muted);
}

.talk-ai-broadcast__list {
  display: grid;
  gap: 0.5rem;
}

.talk-broadcast-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #fff;
}

.talk-broadcast-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.talk-broadcast-card__kind {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: #f5f3ff;
  color: #6d28d9;
}

.talk-broadcast-card__time {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.talk-broadcast-card__status,
.talk-broadcast-card__priority {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
}

.talk-broadcast-card__status--scheduled {
  color: #92400e;
}

.talk-broadcast-card__status--sent {
  color: #166534;
}

.talk-broadcast-card__status--discarded {
  color: #94a3b8;
}

.talk-broadcast-card__sent {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
}

.talk-broadcast-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
}

.talk-broadcast-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: #475569;
}

.talk-broadcast-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.talk-ai-action--send {
  border-color: #86efac;
  background: #ecfdf5;
  color: #15803d;
  font-weight: 800;
}

.talk-broadcast-banner {
  margin-bottom: 0.75rem;
}

.talk-broadcast-send-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.talk-broadcast-send-modal[hidden] {
  display: none;
}

.talk-broadcast-send-modal__lead {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.talk-broadcast-send-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.talk-broadcast-send-modal__meta {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
}

.talk-broadcast-send-modal__meta dt {
  font-weight: 700;
  color: #64748b;
}

.talk-broadcast-send-modal__meta dd {
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.talk-broadcast-view__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.talk-broadcast-modal,
.talk-broadcast-view {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.talk-broadcast-modal[hidden],
.talk-broadcast-view[hidden] {
  display: none !important;
}

.talk-broadcast-modal__backdrop,
.talk-broadcast-view .talk-broadcast-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.talk-broadcast-modal__panel,
.talk-broadcast-view__panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--talk-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.talk-broadcast-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.talk-broadcast-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.talk-broadcast-modal__close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.talk-broadcast-modal__form {
  display: grid;
  gap: 0.75rem;
}

.talk-broadcast-modal__field {
  display: grid;
  gap: 0.35rem;
}

.talk-broadcast-modal__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.talk-broadcast-modal__input,
.talk-broadcast-modal__select {
  width: 100%;
  min-height: 36px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--talk-border);
  border-radius: 8px;
  font: inherit;
}

.talk-broadcast-modal__hint {
  font-size: 0.75rem;
  color: #64748b;
}

.talk-broadcast-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.talk-broadcast-view__body {
  margin: 0 0 0.75rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--talk-border);
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
}

.talk-broadcast-view__meta {
  margin: 0;
  font-size: 0.8125rem;
}

.talk-broadcast-view__meta dt {
  font-weight: 700;
  color: #64748b;
  margin-top: 0.35rem;
}

.talk-broadcast-view__meta dd {
  margin: 0.1rem 0 0;
  color: #1e293b;
}

.talk-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--talk-muted);
  font-size: 0.875rem;
}

.talk-section-label {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .talk-notify-priority {
    margin-left: 0;
  }
}

/* 通知タブ — スマホ向けコンパクト一覧 */
@media (max-width: 960px) {
  .talk-home--tab-notify .talk-panel--line-stage > .talk-card {
    padding: 0.55rem 0.5rem 0.65rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .talk-home--tab-notify .talk-notify-toolbar {
    margin-bottom: 0.25rem;
    padding: 0 0.15rem;
  }

  .talk-home--tab-notify .talk-notify-toolbar__sub {
    display: none;
  }

  .talk-home--tab-notify .talk-notify-summary {
    margin: 0 0.15rem 0.35rem;
    font-size: 0.6875rem;
  }

  .talk-home--tab-notify .talk-filter-bar--notify {
    margin-bottom: 0.35rem;
    padding: 0 0.1rem;
  }

  .talk-home--tab-notify .talk-notify-list {
    gap: 0.5rem;
    padding: 0 0.05rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .talk-home--tab-notify .talk-notify-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .talk-notify-card--compact {
    position: relative;
    display: block;
    gap: 0;
    padding: 0.52rem 0.58rem;
    border-radius: 10px;
  }

  .talk-notify-card--job-details.talk-notify-card--compact {
    padding: 0.9375rem 0.85rem;
    border-radius: 12px;
  }

  .talk-home--tab-notify .talk-notify-list:has(.talk-notify-card--job-details) {
    gap: 0.5rem;
  }

  .talk-notify-card--compact:hover {
    box-shadow: none;
  }

  .talk-notify-card--compact.talk-notify-card--unread {
    background: #fffdf8;
  }

  .talk-notify-card__compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 0.4rem;
    row-gap: 0.2rem;
    align-items: start;
  }

  .talk-notify-card__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 1.1rem;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 300;
    color: #cbd5e1;
    pointer-events: none;
  }

  .talk-notify-card__head,
  .talk-notify-card__head--platform,
  .talk-notify-card__head--compact {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .talk-notify-card__head-extra,
  .talk-notify-card__head .talk-notify-read,
  .talk-notify-card__head .talk-notify-priority,
  .talk-notify-card__head .talk-notify-follow-badge,
  .talk-notify-card__head .talk-ops-watch-count-badge,
  .talk-notify-card__head .talk-ops-watch-imp,
  .talk-notify-card__subtype {
    display: none !important;
  }

  .talk-notify-card__head-chips {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .talk-notify-card__type,
  .talk-notify-card__category-chip {
    font-size: 0.6875rem;
    line-height: 1.25;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .talk-notify-card__project {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
    -webkit-line-clamp: 1;
  }

  .talk-notify-card__head--compact .talk-notify-card__time,
  .talk-notify-card__head--platform .talk-notify-card__time {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #94a3b8;
  }

  .talk-notify-card__body,
  .talk-notify-card__body--platform {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
    min-width: 0;
  }

  .talk-notify-card__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .talk-notify-card--minimal-inline .talk-notify-card__title,
  .talk-notify-card--job-details .talk-notify-card__title--job-event,
  .talk-notify-card--platform .talk-notify-card__body .talk-notify-card__title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .talk-notify-card--platform.talk-notify-card--minimal-inline,
  .talk-notify-card--job-details.talk-notify-card--compact {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .talk-notify-card__body--minimal-inline,
  .talk-notify-card--platform .talk-notify-card__body--platform {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .talk-notify-card__text,
  .talk-notify-card__body .talk-ops-watch-body {
    margin: 0.12rem 0 0;
    font-size: 0.75rem;
    line-height: 1.42;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .talk-notify-card__text--details,
  .talk-notify-card--minimal-inline .talk-notify-card__text,
  .talk-notify-card--platform .talk-notify-card__body .talk-notify-card__text {
    display: block;
    -webkit-line-clamp: unset;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .talk-notify-card--platform .talk-notify-card__body .talk-notify-card__minimal-action,
  .talk-notify-card--platform .talk-notify-card__body .talk-notify-card__card-cta,
  .talk-notify-card--cta-only .talk-notify-card__body .talk-notify-card__card-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: auto !important;
    margin-top: 0.45rem;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
    color: #fff !important;
    background: #2563eb !important;
  }

  .talk-notify-card--platform .talk-notify-card__cta-row--anpi .talk-notify-card__action--primary,
  .talk-notify-card__cta-row--anpi .talk-notify-card__action--primary {
    color: #fff !important;
    background: #2563eb !important;
    border: 2px solid #2563eb !important;
    font-weight: 800 !important;
  }

  .talk-notify-card--platform .talk-notify-card__cta-row--anpi .talk-notify-card__action--ghost,
  .talk-notify-card__cta-row--anpi .talk-notify-card__action--ghost {
    color: #2563eb !important;
    background: #fff !important;
    border: 2px solid #2563eb !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  .talk-notify-card--shop-store-purchase.talk-notify-card--platform .talk-notify-card__body .talk-notify-card__minimal-action,
  .talk-notify-card--shop-store-purchase.talk-notify-card--cta-only .talk-notify-card__body .talk-notify-card__card-cta {
    display: inline-flex !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: 96px !important;
    max-width: 120px !important;
    min-height: 36px !important;
    height: 36px !important;
    margin-top: 0.35rem !important;
    padding: 0 17px !important;
    align-self: flex-start !important;
    flex: 0 0 auto !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }

  .talk-notify-card--shop-store-purchase.talk-notify-card--minimal-inline {
    padding: 0.45rem 0.6rem !important;
  }

  .talk-notify-card__meta,
  .talk-notify-card__meta--legacy {
    display: none !important;
  }

  .talk-notify-card__actions,
  .talk-notify-card__actions--platform,
  .talk-notify-card__actions--sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    max-width: 1px !important;
    max-height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .talk-notify-card__actions .talk-notify-card__action {
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    background: transparent !important;
  }

  .talk-notify-card--urgent,
  .talk-notify-card--anpi,
  .talk-notify-card--important,
  .talk-notify-card--ops-high,
  .talk-notify-card--ops-medium,
  .talk-notify-card--ops-low {
    border-left-width: 3px;
    background: #fff;
  }

  .talk-notify-card--unread.talk-notify-card--urgent,
  .talk-notify-card--unread.talk-notify-card--anpi {
    background: #fffdf8;
  }
}

/* P1-3 — 通知カード 読みやすさ・密度（最小11px / 390px基準） */
.talk-notify-card .talk-notify-card__time,
.talk-notify-card .talk-notify-card__order-number,
.talk-notify-card .talk-notify-card__meta,
.talk-notify-card .talk-notify-card__job-time,
.talk-notify-card .talk-notify-card__shop,
.talk-notify-card .talk-notify-card__type,
.talk-notify-card .talk-notify-card__category-chip,
.talk-notify-card .talk-notify-card__subtype,
.talk-notify-card .talk-notify-card__market-badge,
.talk-notify-card .talk-notify-read,
.talk-notify-card .talk-notify-priority,
.talk-notify-card .talk-ops-watch-count-badge,
.talk-notify-card .talk-ops-watch-imp {
  font-size: max(0.6875rem, 11px);
  line-height: 1.35;
}

.talk-notify-section__list {
  gap: 0.5rem;
}

@media (min-width: 961px) {
  .talk-home--tab-notify .talk-notify-list {
    gap: 0.625rem;
  }

  .talk-home--tab-notify .talk-notify-card--compact,
  .talk-home--tab-notify .talk-notify-card--minimal-inline {
    padding: 0.65rem 0.75rem;
  }
}

/* P1-4 — TALK dash-header タイトル省略（notify/chat-app タブでは非表示） */
.talk-home-page [data-talk-page-header] .dash-header__title {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(100%, 14rem);
}

.talk-home-page [data-talk-page-header] .dash-header__inner {
  min-height: var(--dash-header-h, 68px);
}

@media (max-width: 768px) {
  .talk-home-page [data-talk-page-header] .dash-header__title {
    max-width: min(100%, 10.5rem);
    font-size: 16px;
  }

  .talk-home-page [data-talk-page-header] .dash-header__inner {
    min-height: 60px;
  }
}

/* ==========================================================================
   LINE風 3カラム（左ナビ / 中央一覧 / 右会話）
   ========================================================================== */
.talk-home-page.talk-home--line {
  --talk-line-rail-w: 76px;
  --talk-line-list-w: clamp(320px, 360px, 380px);
  --talk-line-navy: #1e3a5f;
}

/* TALKタブ — チャットアプリモード（LINE PC版） */
.talk-home--tab-chat [data-talk-page-header],
.talk-home--tab-chat [data-talk-dashboard],
.talk-home--tab-chat .talk-home-lead,
.talk-home--tab-chat .talk-home-lead--power,
.talk-home--tab-chat .talk-line-list-foot,
.talk-home--tab-notify [data-talk-page-header],
.talk-home--tab-notify [data-talk-dashboard],
.talk-home--tab-notify .talk-home-lead,
.talk-home--tab-notify .talk-home-lead--power,
.talk-home--chat-app [data-talk-page-header],
.talk-home--chat-app [data-talk-dashboard],
.talk-home--chat-app .talk-home-lead,
.talk-home--chat-app .talk-home-lead--power,
.talk-home--chat-app .talk-line-list-foot {
  display: none !important;
}

.talk-home-page.talk-home--tab-chat .dash-main,
.talk-home-page.talk-home--chat-app .dash-main {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.talk-home-page.talk-home--tab-chat .dash-content,
.talk-home-page.talk-home--chat-app .dash-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
}

.talk-home-page.talk-home--tab-chat .talk-home-main,
.talk-home-page.talk-home--chat-app .talk-home-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.talk-home--tab-chat .talk-line-app,
.talk-home--chat-app .talk-line-app {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.talk-home--tab-chat .talk-line-stage,
.talk-home--tab-chat .talk-line-split,
.talk-home--chat-app .talk-line-stage,
.talk-home--chat-app .talk-line-split {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.talk-home--tab-chat .talk-line-list-col,
.talk-home--tab-chat .talk-line-room-col,
.talk-home--chat-app .talk-line-list-col,
.talk-home--chat-app .talk-line-room-col {
  height: 100%;
  max-height: 100%;
}

.talk-home--line .talk-home-main {
  max-width: none;
  gap: 0;
}

.talk-home--line .dash-content.dash-shell {
  max-width: none;
  width: 100%;
  padding: 0 0 0.5rem;
}

.talk-home--line .talk-home-lead {
  display: none;
}

.talk-home--line .talk-tabs--legacy {
  display: none !important;
}

.talk-line-app {
  display: grid;
  grid-template-columns: var(--talk-line-rail-w) 1fr;
  min-height: calc(100vh - 140px);
  max-height: calc(100vh - 100px);
  border: 1px solid var(--talk-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.talk-home--tab-notify .talk-line-app,
.talk-home--tab-ai .talk-line-app {
  min-height: calc(100vh - 140px);
  max-height: calc(100vh - 100px);
  border: 1px solid var(--talk-border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.talk-line-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.65rem 0.35rem;
  background: linear-gradient(180deg, var(--talk-line-navy) 0%, #152a45 100%);
  color: #e2e8f0;
}

.talk-line-rail__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 58px;
  padding: 0.35rem 0.2rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 0.625rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.talk-line-rail__btn:hover,
.talk-line-rail__btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.talk-line-rail__btn--ai.is-active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.talk-line-rail__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.talk-line-rail__label {
  line-height: 1.2;
  text-align: center;
}

.talk-line-rail__btn--ops {
  margin-top: auto;
}

.talk-line-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #f8fafc;
}

.talk-line-split {
  display: grid;
  grid-template-columns: var(--talk-line-list-w) 1fr;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.talk-line-split:not(.is-active) {
  display: none;
}

.talk-line-list-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--talk-border);
  background: #fff;
}

.talk-line-list-head {
  padding: 0.5rem 0.65rem 0;
  border-bottom: 1px solid #e8edf2;
  flex-shrink: 0;
  background: #fff;
}

.talk-line-search-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.talk-line-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #dce3eb;
  background: #f5f7fa;
}

.talk-line-add-friend {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #dce3eb;
  background: #fff;
  color: var(--talk-accent);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.talk-line-add-friend:hover {
  background: var(--talk-accent-soft);
  border-color: #c4a24a;
}

.talk-line-category-bar {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  min-height: 48px;
  margin: 0 -0.15rem;
  padding-bottom: 0;
  border-bottom: 1px solid #e8edf2;
}

.talk-line-category-tabs {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  align-items: stretch;
}

.talk-line-category-tabs::-webkit-scrollbar {
  display: none;
}

.talk-line-category-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.85rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}

.talk-line-category-tab:hover {
  color: #334155;
}

.talk-line-category-tab.is-active {
  color: var(--talk-accent);
  border-bottom-color: var(--talk-accent);
}

.talk-line-filter-gear {
  flex-shrink: 0;
  align-self: center;
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.talk-line-filter-gear:hover,
.talk-line-filter-gear[aria-expanded="true"] {
  background: #f1f5f9;
  color: #334155;
}

.talk-filter-panel--line {
  padding: 0.45rem 0 0.5rem;
}

.talk-line-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  outline: none;
}

/* legacy chips — 未使用時のフォールバック */
.talk-line-filter-chip {
  flex-shrink: 0;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.talk-line-filter-chip.is-active {
  border-color: #c4a24a;
  background: var(--talk-accent-soft);
  color: var(--talk-accent);
}

.talk-line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.talk-line-list__item {
  border-bottom: 1px solid #f1f5f9;
}

.talk-line-list__btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.talk-line-list__btn:hover {
  background: #fafaf8;
}

.talk-line-list__btn.is-active,
.talk-line-list__btn[aria-current="true"] {
  background: #fffbeb;
}

.talk-line-list__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.talk-line-list__avatar,
.talk-line-list__avatar--img,
.talk-line-list__avatar--initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.talk-line-list__avatar--img {
  object-fit: cover;
  border: 1px solid var(--talk-border);
  background: #f1f5f9;
}

.talk-line-list__avatar--initials,
.talk-avatar--initials,
.talk-line-room-header__avatar--initials,
.chat-msg__avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--talk-avatar-size, 48px);
  height: var(--talk-avatar-size, 48px);
  border-radius: 50%;
  background: linear-gradient(135deg, #f3ead4, #e8d9a8);
  color: #7a5710;
  font-size: calc(var(--talk-avatar-size, 48px) * 0.34);
  font-weight: 800;
  border: 1px solid #e8d4a8;
  line-height: 1;
}

.chat-msg__avatar--img,
.talk-line-room-header__avatar--img {
  width: var(--talk-avatar-size, 40px);
  height: var(--talk-avatar-size, 40px);
  border-radius: 50%;
  object-fit: cover;
}

.talk-line-list__online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.talk-line-list__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.talk-line-list__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}

.talk-line-list__name-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.talk-line-list__name {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.talk-line-list__chips {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  flex-shrink: 0;
}

.talk-line-list__chip {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 0.35rem;
  border-radius: 3px;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #f1f5f9;
  color: #64748b;
  white-space: nowrap;
}

.talk-line-list__chip--friend {
  background: #e0f2fe;
  color: #0369a1;
}

.talk-line-list__chip--work {
  background: #fff8e1;
  color: #967622;
}

.talk-line-list__chip--official {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
}

.talk-line-list__chip--platform {
  background: #dbeafe;
  color: #1d4ed8;
}

.talk-line-list__chip--anpi {
  background: #ffe4e6;
  color: #be123c;
}

.talk-line-list__chip--tasful {
  background: #f1f5f9;
  color: #475569;
}

.talk-line-list__chip--ai {
  background: #ede9fe;
  color: #6d28d9;
}

.talk-line-list__chip--support {
  background: #ecfdf5;
  color: #047857;
}

.talk-line-list__chip--notify-purchase,
.talk-line-list__chip--notify-apply,
.talk-line-list__chip--notify-hire,
.talk-line-list__chip--notify-consult,
.talk-line-list__chip--notify-complete,
.talk-line-list__chip--notify-chat {
  background: #dbeafe;
  color: #1d4ed8;
}

.talk-line-list__chip--notify-identity,
.talk-line-list__chip--notify-payment {
  background: #fef3c7;
  color: #b45309;
}

.talk-line-list__chip--notify-review {
  background: #ede9fe;
  color: #6d28d9;
}

.talk-line-list__chip--notify-shipping {
  background: #cffafe;
  color: #0e7490;
}

.talk-line-list__chip--notify-anpi-check,
.talk-line-list__chip--notify-anpi-done {
  background: #ffe4e6;
  color: #be123c;
}

.talk-line-list__chip--notify-anpi-pending,
.talk-line-list__chip--notify-anpi-alert {
  background: #fecdd3;
  color: #9f1239;
}

.talk-line-list__chip--notify-support {
  background: #ecfdf5;
  color: #047857;
}

.talk-line-list__chip--notify-report {
  background: #fee2e2;
  color: #b91c1c;
}

.talk-line-list__chip--notify-notice {
  background: #f1f5f9;
  color: #475569;
}

.talk-line-list__chip--notify-important {
  background: #ffedd5;
  color: #c2410c;
}

.talk-line-list__chip--notify-default {
  background: #f1f5f9;
  color: #64748b;
}

.talk-line-list__item[data-talk-thread-id="official_tasful"] .talk-line-list__name,
.talk-line-list__item[data-talk-thread-id="official_anpi"] .talk-line-list__name,
.talk-line-list__item[data-talk-thread-id="official_builder"] .talk-line-list__name {
  font-weight: 800;
}

.chat-bubble--notify-card {
  display: grid;
  gap: 0.45rem;
  min-width: min(100%, 16.5rem);
}

.chat-notify-card__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.chat-notify-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.chat-notify-card__action:hover {
  background: #f8fafc;
}

.talk-line-room--official-readonly [data-talk-line-composer] {
  display: none !important;
}

.talk-line-list__time {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #94a3b8;
}

.talk-line-list__subtitle {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.talk-line-list__preview {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.talk-line-list__aside {
  flex-shrink: 0;
}

.talk-line-list__aside .talk-chat-line__unread {
  display: inline-flex;
}

.talk-line-list-foot {
  margin: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.6875rem;
  color: var(--talk-muted);
  border-top: 1px solid #f1f5f9;
}

.talk-line-room-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
  position: relative;
}

.talk-line-room-empty[hidden],
.talk-line-room-active[hidden],
.talk-line-room-col.talk-line-room--active .talk-line-room-empty,
.talk-line-room-col[data-selected-thread-id] .talk-line-room-empty {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 0 !important;
  pointer-events: none !important;
}

.talk-line-room-col.talk-line-room--empty .talk-line-room-active,
.talk-line-room-col:not([data-selected-thread-id]):not(.talk-line-room--active) .talk-line-room-active {
  display: none !important;
}

.talk-line-room-col.talk-line-room--empty .talk-line-composer,
.talk-line-room-col:not(.talk-line-room--active) .talk-line-composer {
  display: none !important;
}

.talk-line-room-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--talk-muted);
}

.talk-line-room-col.talk-line-room--empty:not([data-selected-thread-id]) .talk-line-room-empty:not([hidden]) {
  display: flex;
  flex: 1;
}

.talk-line-room-empty__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  color: #475569;
}

.talk-line-room-empty__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.talk-line-room-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.talk-line-room-col.talk-line-room--active .talk-line-room-active,
.talk-line-room-col[data-selected-thread-id] .talk-line-room-active {
  display: flex;
  flex: 1;
  min-height: 0;
}

.talk-line-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 4.125rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--talk-border);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 80%);
  flex-shrink: 0;
}

.talk-line-room-header__back {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--tasful-back-link-min-h, 36px);
  height: var(--tasful-back-link-min-h, 36px);
  min-width: var(--tasful-back-link-min-h, 36px);
  min-height: var(--tasful-back-link-min-h, 36px);
  margin-top: 0;
  margin-right: 12px;
  padding: 0;
  border: 1px solid var(--talk-border);
  border-radius: 10px;
  background: #fff;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--tasful-back-link-color, #967622);
  cursor: pointer;
  touch-action: manipulation;
}

.talk-line-room-header__back:focus-visible {
  outline: 2px solid #c4a24a;
  outline-offset: 2px;
}

.talk-line-room-header__peer,
.talk-line-room-header__main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1 1 0%;
}

.talk-line-room-header__avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  line-height: 0;
  text-decoration: none;
}

.talk-line-room-header__avatar-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  line-height: 0;
  --talk-avatar-size: 36px;
}

.talk-line-room-header__avatar-slot .talk-line-room-header__avatar--initials,
.talk-line-room-header__avatar-slot .talk-line-room-header__avatar--img,
.talk-line-room-header .talk-line-room-header__avatar--initials,
.talk-line-room-header .talk-line-room-header__avatar--img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  --talk-avatar-size: 36px;
}

.talk-line-room-header__meta,
.header-name-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  padding-top: 2px;
  min-width: 0;
}

.talk-line-room-header__name {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: -2px 0 0;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.talk-line-room-header__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0;
}

.talk-line-room-header__chips[hidden] {
  display: none !important;
}

.talk-line-room-header__subtitle {
  margin: 0;
  font-size: 0.6875rem;
  color: #94a3b8;
}

.talk-line-room-header__subtitle[hidden] {
  display: none !important;
}

.talk-line-room-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 0.45rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
}

.talk-line-room-chip--friend {
  background: #e0f2fe;
  color: #0369a1;
}

.talk-line-room-chip--work {
  background: #fff8e1;
  color: #967622;
}

.talk-line-room-chip--kind {
  background: #f3e8ff;
  color: #6b21a8;
}

.talk-line-room-chip--channel {
  background: #ecfdf5;
  color: #047857;
}

.talk-line-room-chip--platform {
  background: #dbeafe;
  color: #1d4ed8;
}

.talk-line-room-chip--anpi {
  background: #ffe4e6;
  color: #be123c;
}

.talk-line-room-chip--tasful {
  background: #f1f5f9;
  color: #475569;
}

.talk-line-room-chip--ai {
  background: #ede9fe;
  color: #6d28d9;
}

.talk-line-room-chip--support {
  background: #ecfdf5;
  color: #047857;
}

.talk-line-room-header--notify-center {
  padding-top: calc(0.65rem + 5px);
  padding-bottom: calc(0.65rem + 5px);
}

.talk-line-room-header--notify-center .talk-line-room-header__chips {
  margin-top: 0;
}

.talk-line-room-header--notify-center .talk-line-room-chip {
  padding-inline: calc(0.45rem + 3px);
}

.talk-line-room-header__online,
.talk-line-room-header__presence {
  display: none !important;
}

.talk-line-room-header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  align-self: center;
}

.talk-line-room-header__icon-btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--talk-border);
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.talk-line-room-header__icon-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.talk-line-room-context {
  padding: 0.45rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.talk-line-room-context__title {
  margin: 0;
  font-weight: 700;
  color: #334155;
}

.talk-line-room-context__link {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--talk-accent);
}

.talk-line-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem 0;
  background: #f8fafc;
}

.talk-line-messages-loading {
  margin: 0;
  text-align: center;
  color: var(--talk-muted);
  font-size: 0.8125rem;
}

/* 友達トーク — 相手メッセージ行（LINE風 flex row） */
.talk-line-messages .chat-day {
  padding-left: 16px;
  padding-right: 16px;
}

.talk-line-messages .message-row.peer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0.38rem 0;
}

.talk-line-messages .message-row.peer + .message-row.peer {
  margin-top: 0.18rem;
}

.talk-line-messages .message-avatar,
.talk-line-messages .message-avatar--initials,
.talk-line-messages .message-avatar--img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-top: 8px;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  --talk-avatar-size: 32px;
  border-radius: 50%;
}

.talk-line-messages .message-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3ead4, #e8d9a8);
  color: #7a5710;
  font-size: calc(var(--talk-avatar-size, 32px) * 0.34);
  font-weight: 800;
  border: 1px solid #e8d4a8;
  line-height: 1;
}

.talk-line-messages .message-avatar--img {
  object-fit: cover;
  border: 1px solid var(--talk-border);
}

.talk-line-messages .message-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(100% - 56px);
  min-width: 0;
}

.talk-line-messages .message-row.peer .message-bubble {
  margin: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  border-bottom-left-radius: 6px;
}

.talk-line-messages .message-row.peer .message-bubble .chat-bubble__text {
  color: #1f2937;
}

.talk-line-messages .message-row.peer .message-bubble .chat-bubble__name {
  color: #6b7280;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.talk-line-messages .message-time {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 10px;
  line-height: 1.2;
  color: #9ca3af;
  white-space: nowrap;
}

.talk-line-messages .chat-msg--me {
  display: flex;
  justify-content: flex-end;
  padding-left: 16px;
  padding-right: 16px;
}

.talk-line-messages .chat-msg--me .chat-msg__meta--me {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-right: 5px;
}

.talk-line-composer {
  flex-shrink: 0;
  padding: 0.5rem 0.65rem;
  border-top: 1px solid var(--talk-border);
  background: #fff;
}

.talk-line-composer__toolbar {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
}

.talk-line-composer__tool {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--talk-border);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.talk-line-composer__tool:disabled {
  opacity: 0.45;
  cursor: default;
}

.talk-line-composer__tool--ai:not(:disabled):hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.talk-line-composer__field {
  flex: 1;
  min-width: 0;
  display: flex;
}

.talk-line-composer__input {
  width: 100%;
  min-height: 36px;
  max-height: 120px;
  resize: none;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
}

.talk-line-composer__send {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--talk-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.talk-panel--line-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
}

.talk-panel--line-stage .talk-card {
  max-width: 920px;
  margin: 0 auto;
}

.talk-friend-add-modal__lead {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--talk-muted);
  line-height: 1.5;
}

.talk-friend-add-modal__methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.talk-friend-add-modal__method {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--talk-border);
  background: #f8fafc;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: left;
  color: #475569;
  cursor: not-allowed;
  opacity: 0.75;
}

.talk-friend-add-modal__hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.talk-profile-modal__panel {
  max-width: 400px;
}

.talk-profile-modal__hero {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.talk-profile-modal__name {
  margin: 0;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 800;
}

.talk-profile-modal__status {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--talk-muted);
}

.talk-profile-modal__meta {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
}

.talk-profile-modal__meta dt {
  font-weight: 700;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.talk-profile-modal__meta dd {
  margin: 0.1rem 0 0;
  color: #1e293b;
}

/* 通知タブ — 横スクロールカテゴリバー */
.talk-notify-category-bar,
.talk-notify-mobile-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 0.75rem 0.45rem;
  margin: 0;
  scroll-padding-inline: 0.75rem;
  box-sizing: border-box;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.talk-notify-category-bar::-webkit-scrollbar,
.talk-notify-mobile-chips::-webkit-scrollbar {
  display: none;
}

.talk-notify-mobile-chip {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}

.talk-notify-mobile-chip.is-active {
  border-color: #c4a24a;
  background: #fffbeb;
  color: #967622;
}

.talk-notify-mobile-chip__count {
  display: inline-flex;
  min-width: 1rem;
  justify-content: center;
  margin-left: 0.12rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #967622;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 800;
}

.talk-filter-tags__row--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.talk-filter-tags__row--scroll::-webkit-scrollbar {
  display: none;
}

@media (max-width: 960px) {
  .talk-home--tab-notify .talk-filter-bar--notify {
    margin-bottom: 0.25rem;
  }

  .talk-home--tab-notify .talk-filter-bar__toggle {
    min-height: 30px;
    padding: 0 0.55rem;
    font-size: 0.6875rem;
  }

  .talk-home--tab-notify .talk-filter-bar__search-input {
    min-height: 30px;
    font-size: 0.75rem;
  }

  .talk-home--tab-notify .talk-filter-panel__inner--tags .talk-filter-chip {
    min-height: 28px;
    padding: 0.25rem 0.55rem;
    font-size: 0.6875rem;
  }

  .talk-panel--line-stage .talk-ai-hub {
    padding: 0 0.15rem;
  }

  .talk-ai-hero-card__title {
    font-size: 1.25rem;
  }

  .talk-home--tab-notify .talk-panel--line-stage {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .talk-home--tab-notify .talk-panel--line-stage > .talk-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .talk-home--tab-notify .talk-panel--line-stage > .talk-card > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .talk-home--tab-notify .talk-notify-toolbar,
  .talk-home--tab-notify .talk-notify-summary,
  .talk-home--tab-notify .talk-notify-category-bar,
  .talk-home--tab-notify .talk-notify-mobile-chips,
  .talk-home--tab-notify .talk-filter-bar--notify,
  .talk-home--tab-notify .talk-filter-panel:not([hidden]) {
    flex-shrink: 0;
  }

  .talk-home--tab-notify .talk-notify-list {
    flex: 0 0 auto;
    height: auto;
    width: 100%;
    min-height: 0;
    max-height: var(--talk-notify-list-max-height, 60vh);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(
      var(--talk-mobile-tabbar-total, 52px) + var(--talk-notify-list-gap-bottom, 12px)
    );
  }

  .talk-home--tab-notify .talk-notify-list--scrollable {
    flex: 1 1 auto;
  }

  .talk-home--tab-notify .talk-notify-list--empty-pure {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    min-height: var(--talk-notify-list-max-height, min(52vh, 420px));
    max-height: var(--talk-notify-list-max-height, min(52vh, 420px));
    overflow: visible;
    padding-bottom: calc(
      var(--talk-mobile-tabbar-total, 52px) + var(--talk-notify-list-gap-bottom, 12px)
    );
  }

  .talk-home--tab-notify .talk-panel--line-stage {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    overflow-x: hidden;
  }

  .talk-home--tab-notify .talk-notify-category-bar,
  .talk-home--tab-notify .talk-notify-mobile-chips {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    max-width: 100%;
  }

  .talk-home--tab-notify .talk-filter-bar__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .talk-home--tab-notify .talk-filter-bar__search {
    width: 100%;
    min-width: 0;
  }

  .talk-home--tab-notify .talk-filter-bar__toggle {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  .talk-home--tab-notify .talk-notify-toolbar {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }

  .talk-home--tab-notify .talk-notify-list--empty-pure .talk-notify-empty-state {
    min-height: min(42vh, 360px);
  }

  .talk-home--tab-notify .talk-empty {
    margin: 0;
    padding: 1.25rem 0.75rem;
  }

  .talk-notify-detail--sheet .talk-notify-detail__panel {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .talk-ops-watch-modal {
    align-items: flex-end;
    padding: 0;
  }

  .talk-ops-watch-modal__panel {
    width: 100%;
    max-height: 80dvh;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* ==========================================================================
   スマホ / PWA — LINEアプリ風（1カラム + 下部タブ）
   ========================================================================== */
.talk-mobile-tabbar {
  display: none;
}

@media (max-width: 960px) {
  html:has(.talk-home-page.talk-home--tab-notify),
  body:has(.talk-home-page.talk-home--tab-notify) {
    overflow-x: hidden;
    max-width: 100%;
  }

  .talk-home-page {
    --talk-mobile-tabbar-h: 52px;
    --talk-mobile-tabbar-total: calc(var(--talk-mobile-tabbar-h) + env(safe-area-inset-bottom, 0px));
    --talk-mobile-safe-top: env(safe-area-inset-top, 0px);
    --talk-notify-list-gap-bottom: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .talk-home-page .dash-sidebar,
  .talk-home-page .dash-sidebar__overlay {
    display: none !important;
  }

  .talk-home-page .dash-app,
  .talk-home-page .dash-main,
  .talk-home-page .dash-content.dash-shell,
  .talk-home-page .talk-home-main,
  .talk-home-page .talk-line-app,
  .talk-home-page .talk-line-stage,
  .talk-home-page .talk-line-split {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .talk-home-page .talk-home-main {
    max-width: none !important;
  }

  .talk-home-page .dash-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .talk-home-page.talk-home--tab-chat .dash-main,
  .talk-home-page.talk-home--tab-chat .dash-content,
  .talk-home-page.talk-home--chat-app .dash-main,
  .talk-home-page.talk-home--chat-app .dash-content {
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .talk-home-page.talk-home--tab-chat .dash-content.dash-shell,
  .talk-home-page.talk-home--chat-app .dash-content.dash-shell {
    padding: 0 !important;
  }

  .talk-home-page.talk-home--tab-chat .talk-line-app,
  .talk-home-page.talk-home--chat-app .talk-line-app {
    min-height: 0;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    height: calc(100dvh - var(--talk-mobile-tabbar-total)) !important;
    max-height: calc(100dvh - var(--talk-mobile-tabbar-total)) !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .talk-home--tab-notify .talk-line-app,
  .talk-home--tab-ai .talk-line-app {
    min-height: 0;
    height: auto;
    flex: 1 1 auto;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .talk-home-page.talk-home--tab-notify .talk-home-main {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  .talk-home-page.talk-home--tab-notify .dash-main,
  .talk-home-page.talk-home--tab-notify .dash-content.dash-shell,
  .talk-home-page.talk-home--tab-notify .talk-home-main {
    padding-bottom: 0;
  }

  .talk-home--tab-notify .talk-line-stage,
  .talk-home--tab-ai .talk-line-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .talk-line-app {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .talk-line-rail {
    display: none !important;
  }

  .talk-home--line {
    --talk-line-list-w: 100%;
  }

  .talk-line-split {
    grid-template-columns: 1fr;
    position: relative;
    height: 100%;
    min-height: 0;
  }

  .talk-line-split:not(.talk-line-split--room-open) .talk-line-room-col {
    display: none !important;
  }

  .talk-line-list-col {
    height: 100%;
    max-height: 100%;
    border-right: none;
  }

  .talk-line-list-head {
    position: sticky;
    top: 0;
    z-index: 6;
    padding-top: calc(0.5rem + var(--talk-mobile-safe-top));
    margin-top: calc(-1 * var(--talk-mobile-safe-top));
    box-shadow: 0 1px 0 #e8edf2;
  }

  .talk-line-list {
    padding-bottom: 0.25rem;
  }

  .talk-line-room-header__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .talk-line-split--room-open .talk-line-list-col {
    display: none !important;
  }

  .talk-line-split--room-open .talk-line-room-col {
    display: flex !important;
    position: absolute;
    inset: 0;
    z-index: 4;
    height: 100%;
    max-height: 100%;
  }

  .talk-line-split--room-open .talk-line-room-header {
    padding-top: calc(0.5rem + var(--talk-mobile-safe-top));
    padding-bottom: 0.45rem;
    align-items: center;
    gap: 0;
  }

  .talk-line-split--room-open .talk-line-room-header__back {
    margin-right: 12px;
  }

  .talk-line-split--room-open .talk-line-room-header__peer,
  .talk-line-split--room-open .talk-line-room-header__main {
    gap: 14px;
  }

  .talk-line-room-header__subtitle {
    display: none !important;
  }

  .talk-line-room-header__chips {
    max-height: none;
    overflow: visible;
  }

  .talk-line-room-header__chips .talk-line-room-chip:nth-child(n + 3) {
    display: none !important;
  }

  .talk-line-room-header__actions [data-talk-line-action="profile"],
  .talk-line-room-header__actions [data-talk-line-action="call"],
  .talk-line-room-header__actions [data-talk-line-action="video"] {
    display: none !important;
  }

  .talk-line-room-header__icon-btn[data-talk-line-action="menu"] {
    min-width: 40px;
    padding: 0;
    font-size: 1.25rem;
  }

  .talk-line-split--room-open .talk-line-room-context {
    display: none !important;
  }

  .talk-line-room-active {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .talk-line-split--room-open .talk-line-messages {
    flex: 1;
    min-height: 0;
    padding-bottom: 0.35rem;
  }

  .talk-line-split--room-open .talk-line-composer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 0.45rem;
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -1px 0 var(--talk-border);
  }

  .talk-line-composer__input {
    border-radius: 6px;
  }

  .talk-line-composer__tool,
  .talk-line-composer__send,
  .talk-line-room-header__back {
    border-radius: 6px;
  }

  .talk-line-search,
  .talk-line-add-friend {
    border-radius: 6px;
  }

  .talk-mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    min-height: var(--talk-mobile-tabbar-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  }

  .talk-home-page.talk-home--tab-notify .talk-mobile-tabbar {
    position: sticky;
    bottom: 0;
    left: auto;
    right: auto;
    flex-shrink: 0;
    margin-top: 0;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.05);
  }

  .talk-mobile-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: var(--talk-mobile-tabbar-h);
    padding: 0.25rem 0.15rem;
    border: none;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.625rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .talk-mobile-tabbar__item.is-active {
    color: var(--talk-accent, #967622);
  }

  .talk-mobile-tabbar__icon {
    font-size: 1.125rem;
    line-height: 1;
  }

  .talk-mobile-tabbar__label {
    line-height: 1.2;
    white-space: nowrap;
  }

  .talk-home--tab-chat .talk-home-main,
  .talk-home--chat-app .talk-home-main {
    padding-bottom: 0;
  }
}

@media (min-width: 961px) {
  .talk-line-room-header__back {
    display: none !important;
  }

  .talk-mobile-tabbar {
    display: none !important;
  }
}

/* 求人カテゴリ UI レビュー — review=job */
body.talk-job-review-mode [data-talk-dashboard],
body.talk-job-review-mode [data-talk-notify-mobile-chips],
body.talk-job-review-mode [data-talk-notify-filter-bar],
body.talk-job-review-mode .talk-notify-settings-btn,
body.talk-job-review-mode [data-talk-line-list-filters],
body.talk-job-review-mode .talk-filter-bar--chat,
body.talk-job-review-mode .talk-line-category-tabs {
  display: none !important;
}

body.talk-job-review-mode .talk-notify-toolbar__sub {
  color: #166534;
  font-weight: 700;
}

/* 求人 end-to-end — review=job-full */
body.talk-job-full-review-mode [data-talk-dashboard],
body.talk-job-full-review-mode [data-talk-notify-mobile-chips],
body.talk-job-full-review-mode [data-talk-notify-filter-bar],
body.talk-job-full-review-mode .talk-notify-settings-btn,
body.talk-job-full-review-mode [data-talk-line-list-filters],
body.talk-job-full-review-mode .talk-filter-bar--chat,
body.talk-job-full-review-mode .talk-line-category-tabs {
  display: none !important;
}

body.talk-job-full-review-mode .talk-notify-toolbar__sub {
  color: #1d4ed8;
  font-weight: 700;
}

/* ワーカーカテゴリ UI レビュー — review=worker */
body.talk-worker-review-mode [data-talk-dashboard],
body.talk-worker-review-mode [data-talk-notify-mobile-chips],
body.talk-worker-review-mode [data-talk-notify-filter-bar],
body.talk-worker-review-mode .talk-notify-settings-btn,
body.talk-worker-review-mode [data-talk-line-list-filters],
body.talk-worker-review-mode .talk-filter-bar--chat,
body.talk-worker-review-mode .talk-line-category-tabs {
  display: none !important;
}

body.talk-worker-review-mode .talk-notify-toolbar__sub {
  color: #5b21b6;
  font-weight: 700;
}

/* 公式通知ルーム — リッチ通知カード（Phase 4+ / 通知センター圧縮） */
.chat-msg--official-notify {
  margin: 0 0 14px;
}

.chat-msg--official-notify:last-child {
  margin-bottom: 0.35rem;
}

.chat-msg--official-notify .chat-msg__content--notify-card {
  max-width: 100%;
  width: 100%;
}

.talk-line-room-notify-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(184, 148, 46, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

.talk-line-room-notify-card--unread {
  padding-left: 1.05rem;
}

.talk-line-room-notify-card__unread-dot {
  position: absolute;
  left: 0.42rem;
  top: 0.58rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}

.talk-line-room-notify-card--platform {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.talk-line-room-notify-card--anpi {
  border-color: rgba(190, 18, 60, 0.45);
  background: linear-gradient(180deg, #fff1f2 0%, #fff 100%);
  box-shadow: 0 1px 8px rgba(190, 18, 60, 0.1);
}

.talk-line-room-notify-card--anpi .talk-line-room-notify-card__event {
  color: #9f1239;
}

.talk-line-room-notify-card--anpi .talk-line-room-notify-card__body {
  color: #be123c;
}

.talk-line-room-notify-card--anpi .talk-line-room-notify-card__cta {
  border-color: rgba(190, 18, 60, 0.45);
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #be123c;
}

.talk-line-room-notify-card--anpi .talk-line-room-notify-card__cta:hover {
  background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
}

.talk-line-room-notify-card--tasful {
  border-color: rgba(71, 85, 105, 0.22);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.talk-line-room-notify-card__tag {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 4px;
  padding: 0.08rem 0.56rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.talk-line-room-notify-card__tag--job {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.talk-line-room-notify-card__tag--worker {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.talk-line-room-notify-card__tag--business {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
}

.talk-line-room-notify-card__tag--shop {
  background: rgba(234, 88, 12, 0.14);
  color: #c2410c;
}

.talk-line-room-notify-card__tag--anpi {
  background: rgba(190, 18, 60, 0.14);
  color: #be123c;
}

.talk-line-room-notify-card__tag--product,
.talk-line-room-notify-card__tag--skill,
.talk-line-room-notify-card__tag--connect,
.talk-line-room-notify-card__tag--builder {
  background: rgba(71, 85, 105, 0.12);
  color: #475569;
}

.talk-line-room-notify-card__tag--tasful,
.talk-line-room-notify-card__tag--default {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.talk-line-room-notify-card__tag--purchase,
.talk-line-room-notify-card__tag--apply,
.talk-line-room-notify-card__tag--hire,
.talk-line-room-notify-card__tag--consult,
.talk-line-room-notify-card__tag--complete,
.talk-line-room-notify-card__tag--chat {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.talk-line-room-notify-card__tag--identity,
.talk-line-room-notify-card__tag--payment {
  background: rgba(234, 179, 8, 0.18);
  color: #b45309;
}

.talk-line-room-notify-card__tag--review {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
}

.talk-line-room-notify-card__tag--shipping {
  background: rgba(6, 182, 212, 0.16);
  color: #0e7490;
}

.talk-line-room-notify-card__tag--anpi-check,
.talk-line-room-notify-card__tag--anpi-done {
  background: rgba(190, 18, 60, 0.14);
  color: #be123c;
}

.talk-line-room-notify-card__tag--anpi-pending,
.talk-line-room-notify-card__tag--anpi-alert {
  background: rgba(244, 63, 94, 0.16);
  color: #9f1239;
}

.talk-line-room-notify-card__tag--support {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.talk-line-room-notify-card__tag--report {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.talk-line-room-notify-card__tag--notice {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.talk-line-room-notify-card__tag--important {
  background: rgba(234, 88, 12, 0.16);
  color: #c2410c;
}

.talk-line-room-notify-card__listing {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.32;
  color: #0f172a;
}

.talk-line-room-notify-card__event {
  margin: 0 0 6px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.32;
  color: #1e293b;
}

.talk-line-room-notify-card__body--tasful-excerpt {
  color: #334155;
  font-size: 0.8rem;
}

.talk-line-room-notify-card__body,
.talk-line-room-notify-card__meta {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.38;
  color: #475569;
}

.talk-line-room-notify-card__time {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #64748b;
}

.talk-line-room-notify-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 11px;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 148, 46, 0.45);
  background: linear-gradient(180deg, #fff9eb 0%, #f3ead4 100%);
  color: #7a5710;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(122, 87, 16, 0.1);
}

.talk-line-room-notify-card__cta:hover {
  background: linear-gradient(180deg, #fff6df 0%, #e8d5a8 100%);
}

.talk-line-room-notify-card__cta--muted {
  opacity: 0.65;
  cursor: default;
}

@media (max-width: 960px) {
  .talk-line-split--room-open .talk-line-room-header--notify-center {
    padding-top: calc(0.5rem + 5px + var(--talk-mobile-safe-top));
    padding-bottom: calc(0.45rem + 5px);
  }

  .chat-msg--official-notify {
    margin: 0 0 14px;
    padding: 0 0.35rem;
  }

  .chat-msg--official-notify:last-child {
    margin-bottom: 0.35rem;
  }

  .talk-line-room-notify-card {
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
  }

  .talk-line-room-notify-card--unread {
    padding-left: 1.08rem;
  }

  .talk-line-room-notify-card__cta {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    min-height: 2.35rem;
  }
}

/* TALK 拡張 — 友達 / 安全 / カレンダー / 一覧メニュー */
.talk-line-search-row {
  position: relative;
}

.talk-line-add-menu,
.talk-line-list-overflow-menu,
.talk-room-menu {
  position: fixed;
  z-index: 1200;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.talk-line-add-menu__item,
.talk-line-list-overflow-menu__item,
.talk-room-menu__item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.talk-line-add-menu__item:hover,
.talk-line-list-overflow-menu__item:hover,
.talk-room-menu__item:hover {
  background: #f1f5f9;
}

.talk-room-menu__item--danger {
  color: #be123c;
}

.talk-line-list-overflow {
  flex-shrink: 0;
  align-self: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.talk-line-list-overflow:hover {
  background: rgba(15, 23, 42, 0.06);
}

.talk-friend-add-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.talk-friend-add-modal__method {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.talk-friend-add-modal__method.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
  color: #1d4ed8;
}

.talk-friend-panel__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.talk-friend-panel__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.talk-friend-panel__input,
.talk-friend-panel__textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  font-size: 0.86rem;
  box-sizing: border-box;
}

.talk-friend-panel__textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.talk-friend-panel__hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.talk-friend-panel__qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  border: 2px dashed rgba(37, 99, 235, 0.25);
  border-radius: 12px;
  background: #f8fbff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1d4ed8;
}

.talk-friend-search-card {
  margin-top: 0.65rem;
  padding: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #f8fafc;
}

.talk-friend-search-card__name {
  margin: 0;
  font-weight: 700;
}

.talk-friend-search-card__sub {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.78rem;
  color: #64748b;
}

.talk-report-reason {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
}

.talk-calendar-modal__panel {
  max-width: 34rem;
}

.talk-calendar-modal__tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.talk-calendar-modal__tab {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.talk-calendar-card {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.talk-calendar-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.5rem;
}

.talk-calendar-card__nav--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.talk-calendar-card__nav--cta:hover {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
}

.talk-calendar-card__time {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
}

.talk-calendar-card__title {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.92rem;
}

.talk-calendar-card__place,
.talk-calendar-card__memo,
.talk-calendar-card__meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #475569;
}

.talk-calendar-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.talk-calendar-card__nav {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.talk-calendar-card__notify {
  font-size: 0.74rem;
  color: #64748b;
}

.talk-calendar-form__work {
  margin: 0.5rem 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 10px;
}

.talk-friend-panel__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.84rem;
}

.talk-profile-modal__safety {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.talk-profile-modal__safety-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

.talk-profile-modal__safety-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.talk-profile-modal__memo-preview {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

@media (max-width: 960px) {
  .talk-line-category-bar {
    gap: 0.25rem;
  }

  .talk-line-category-tabs {
    flex: 1;
    min-width: 0;
  }

  .talk-friend-add-modal__panel,
  .talk-calendar-modal__panel,
  .talk-group-create-modal .talk-broadcast-modal__panel {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }

  .talk-line-add-menu,
  .talk-line-list-overflow-menu,
  .talk-room-menu {
    max-width: calc(100vw - 1rem);
  }
}

/* 390px ルームヘッダー — flex + header-name-container（名前 centerY = アバター centerY） */
@media (max-width: 960px) {
  .talk-home-page .talk-line-split--room-open header.talk-line-room-header {
    display: flex;
    align-items: center;
    min-height: 4.125rem;
    gap: 0;
  }

  .talk-home-page .talk-line-split--room-open .talk-line-room-header__back {
    margin-right: 12px;
  }

  .talk-home-page .talk-line-split--room-open .talk-line-room-header__peer,
  .talk-home-page .talk-line-split--room-open .talk-line-room-header__main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .talk-home-page .talk-line-split--room-open .talk-line-room-header__avatar-link {
    display: flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    line-height: 0;
  }

  .talk-home-page .talk-line-split--room-open .talk-line-room-header__meta,
  .talk-home-page .talk-line-split--room-open .header-name-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    padding-top: 2px;
  }

  .talk-home-page .talk-line-split--room-open .talk-line-room-header__name {
    display: flex;
    align-items: center;
    min-height: 36px;
  }

  .talk-home-page .talk-line-split--room-open .talk-line-room-header__actions {
    display: flex;
    align-items: center;
    align-self: center;
  }
}

/* 安否通知 — 無事=プライマリ / 詳細=アウトライン（platform上書きより強い詳細度） */
.talk-notify-card--platform .talk-notify-card__body .talk-notify-card__cta-row--anpi .talk-notify-card__action--primary.talk-notify-card__minimal-action {
  background: #2563eb !important;
  color: #fff !important;
  border: 2px solid #2563eb !important;
  font-weight: 800 !important;
}

.talk-notify-card--platform .talk-notify-card__body .talk-notify-card__cta-row--anpi .talk-notify-card__action--ghost.talk-notify-card__minimal-action {
  background: #fff !important;
  color: #2563eb !important;
  border: 2px solid #2563eb !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

