/* こぼれ話 共通テーマ */
:root{
  --kb-bg:#fff9f6;
  --kb-card:#ffffff;
  --kb-text:#6f625e;
  --kb-text-strong:#514744;
  --kb-sub:#9b8f8a;
  --kb-line:#efe6e2;
  --kb-accent:#ec8d8d;
  --kb-accent-strong:#e68181;
  --kb-accent-soft:#fff0ee;
  --kb-accent-pale:#fff6f3;
  --kb-success:#79cfc6;
  --kb-radius:26px;
  --kb-shadow:0 4px 18px rgba(111,98,94,.035);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--kb-bg)}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI","Yu Gothic","Noto Sans JP",sans-serif;
  color:var(--kb-text); background:var(--kb-bg); letter-spacing:.015em;
  -webkit-font-smoothing:antialiased;
}
a{color:#c97878}
body.kobore-mypage{min-height:100vh;margin:0;padding:0;background:var(--kb-bg);color:var(--kb-text);line-height:1.72}
.km-wrap{max-width:760px;margin:0 auto;padding:18px 18px 40px}
.km-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px 18px}
.km-brand{display:flex;flex-direction:column;gap:2px}
.km-eyebrow{color:var(--kb-sub);font-size:.8rem;font-weight:600;letter-spacing:.05em}
.km-title{color:var(--kb-text-strong);font-size:1.52rem;line-height:1.35;font-weight:700;margin:0}
.km-user-card,.km-section,.km-register,.km-bot-card{
  background:var(--kb-card);border:1px solid var(--kb-line);border-radius:var(--kb-radius);box-shadow:var(--kb-shadow)
}
.km-user-card{padding:20px;margin-bottom:16px}
.km-user-name{color:var(--kb-text-strong);font-size:1.15rem;font-weight:700;margin-bottom:3px}
.km-handle{color:var(--kb-sub);font-size:.9rem;overflow-wrap:anywhere}
.km-section{padding:20px;margin:14px 0}
.km-section-title{color:var(--kb-text-strong);font-size:1rem;font-weight:700;margin:0 0 14px}
.km-plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.km-stat{text-align:center;background:var(--kb-accent-pale);border-radius:20px;padding:14px 8px}
.km-stat-value{display:block;color:var(--kb-text-strong);font-size:1.12rem;font-weight:700;margin-bottom:2px}
.km-stat-label{display:block;color:var(--kb-sub);font-size:.75rem;line-height:1.4}
.km-register{padding:20px;margin:16px 0 22px;background:var(--kb-accent-pale)}
.km-register-title{color:var(--kb-text-strong);font-weight:700;margin-bottom:5px}
.km-notice{color:var(--kb-sub);margin:.35em 0 .9em;font-size:.92rem}
.km-heading{display:flex;justify-content:space-between;align-items:end;gap:10px;margin:26px 2px 12px}
.km-heading h2{color:var(--kb-text-strong);font-size:1.08rem;margin:0}
.km-heading small{color:var(--kb-sub)}
.km-bot-list{display:grid;gap:12px}
.km-bot-card{padding:18px}
.km-bot-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.km-bot-name{color:var(--kb-text-strong);font-size:1.05rem;font-weight:700}
.km-bot-status{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#f3faf7;color:#6f9891;font-size:.75rem;white-space:nowrap}
.km-bot-meta{color:var(--kb-sub);font-size:.8rem;margin-top:2px}
.km-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.km-button,.km-button-secondary{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:10px 16px;
  border-radius:999px;text-decoration:none;font-size:.9rem;font-weight:700
}
.km-button{background:var(--kb-accent);color:#fff}
.km-button:hover{background:var(--kb-accent-strong)}
.km-button-secondary{background:#fff;border:1px solid var(--kb-line);color:var(--kb-text)}
.km-empty{padding:24px 18px;text-align:center;color:var(--kb-sub);background:#fff;border:1px dashed #eadfdb;border-radius:var(--kb-radius)}
.km-footer{display:flex;justify-content:center;padding:28px 0 6px}
.km-logout{color:var(--kb-sub);text-decoration:none;font-size:.88rem}
@media (max-width:560px){
  .km-wrap{padding:14px 14px 34px}
  .km-title{font-size:1.4rem}
  .km-plan-grid{gap:7px}
  .km-stat{padding:12px 5px}
  .km-stat-value{font-size:1.04rem}
  .km-stat-label{font-size:.7rem}
  .km-button,.km-button-secondary{width:100%}
}


/* ===== 2026-09-19: 投稿Bot / 設定資料 分離 ===== */

/* プランカード内を縦中央に揃える */
.km-stat{
  min-height:128px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.km-stat-value,.km-stat-label{width:100%}
.km-stat-value{line-height:1.4}
.km-stat-label{margin-top:6px;line-height:1.45}

/* セクション説明 */
.km-section-lead{
  color:var(--kb-sub);
  font-size:.9rem;
  line-height:1.65;
  margin:-4px 0 14px;
}

/* 投稿Bot / 設定資料共通カード */
.km-card-list{
  display:grid;
  gap:12px;
}
.km-data-card{
  background:var(--kb-card);
  border:1px solid var(--kb-line);
  border-radius:var(--kb-radius);
  box-shadow:var(--kb-shadow);
  padding:18px;
}
.km-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.km-card-title{
  color:var(--kb-text-strong);
  font-size:1.05rem;
  font-weight:700;
  line-height:1.45;
}
.km-card-sub{
  color:var(--kb-sub);
  font-size:.84rem;
  margin-top:3px;
  overflow-wrap:anywhere;
}
.km-chip{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:#f3faf7;
  color:#6f9891;
  font-size:.75rem;
  white-space:nowrap;
}
.km-chip-pink{
  background:var(--kb-accent-soft);
  color:#c77373;
}
.km-material-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:12px;
}
.km-material-pill{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#f8f3f1;
  color:#776b67;
  font-size:.76rem;
}
.km-split-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
}
.km-button-full{width:100%}

.km-counter-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
  color:var(--kb-sub);
  font-size:.86rem;
}
.km-counter-line strong{
  color:var(--kb-text-strong);
  font-size:.95rem;
}

/* 入力ページ */
.kf-wrap{
  max-width:720px;
  margin:0 auto;
  padding:20px 18px 40px;
}
.kf-back{
  display:inline-block;
  color:var(--kb-text);
  text-decoration:none;
  margin-bottom:12px;
}
.kf-title{
  color:var(--kb-text-strong);
  font-size:1.45rem;
  margin:0 0 8px;
}
.kf-lead{
  color:var(--kb-sub);
  margin:0 0 18px;
}
.kf-card{
  background:#fff;
  border:1px solid var(--kb-line);
  border-radius:var(--kb-radius);
  padding:20px;
  box-shadow:var(--kb-shadow);
}
.kf-field{margin:0 0 18px}
.kf-label{
  display:block;
  color:var(--kb-text-strong);
  font-weight:700;
  margin-bottom:7px;
}
.kf-input,.kf-select{
  width:100%;
  min-height:48px;
  border:1px solid #eadfdb;
  border-radius:16px;
  background:#fff;
  color:var(--kb-text-strong);
  font:inherit;
  font-size:16px;
  padding:11px 13px;
}
.kf-help{
  color:var(--kb-sub);
  font-size:.82rem;
  margin-top:6px;
  line-height:1.55;
}
.kf-checks{
  display:grid;
  gap:8px;
}
.kf-check{
  display:flex;
  align-items:center;
  gap:9px;
  background:#fffaf8;
  border:1px solid #f1e6e2;
  border-radius:15px;
  padding:11px 12px;
}
.kf-submit{
  width:100%;
  border:0;
  border-radius:999px;
  background:var(--kb-accent);
  color:#fff;
  font:inherit;
  font-weight:700;
  padding:14px 18px;
  margin-top:6px;
}
.kf-error{
  background:#fff0f0;
  color:#9e5e5e;
  border-radius:16px;
  padding:12px 14px;
  margin-bottom:14px;
}
.kf-info{
  background:var(--kb-accent-pale);
  border-radius:16px;
  padding:12px 14px;
  margin-bottom:14px;
  color:#796a65;
}

@media (max-width:560px){
  .km-split-actions{grid-template-columns:1fr}
  .kf-wrap{padding:16px 14px 34px}
}


/* ===== 2026-09-19 マイページ微調整 v3 ===== */

/* 「現在のプラン」の3カードは、文字量に関係なく上下中央揃え */
.km-plan-grid{
  align-items:stretch;
}

.km-stat{
  min-height:132px;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center !important;
  text-align:center;
  padding:14px 8px;
}

.km-stat-value,
.km-stat-label{
  width:100%;
  margin-left:auto;
  margin-right:auto;
}

.km-stat-value{
  line-height:1.35;
}

.km-stat-label{
  margin-top:7px;
  line-height:1.45;
}

/* 設定資料カードを明確に区切る */
.km-card-list{
  display:grid;
  gap:14px;
}

.km-data-card{
  display:block;
  background:#fff !important;
  border:1px solid var(--kb-line) !important;
  border-radius:26px !important;
  box-shadow:var(--kb-shadow) !important;
  padding:18px !important;
  margin:0 !important;
}

.km-data-card + .km-data-card{
  margin-top:0 !important;
}

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

.km-card-title{
  margin:0;
  color:var(--kb-text-strong);
  font-size:1.06rem;
  font-weight:700;
  line-height:1.45;
}

.km-card-sub{
  margin-top:3px;
  color:var(--kb-sub);
  font-size:.82rem;
}

.km-data-card .km-actions{
  margin-top:14px;
}

.km-data-card .km-button{
  width:100%;
}

/* 4件目以降をdetailsで折りたたむ */
.km-more{
  margin-top:14px;
}

.km-more-summary{
  list-style:none;
  cursor:pointer;
  text-align:center;
  user-select:none;
  background:#fff;
  border:1px solid var(--kb-line);
  border-radius:999px;
  color:var(--kb-text);
  font-weight:700;
  font-size:.9rem;
  padding:12px 16px;
}

.km-more-summary::-webkit-details-marker{
  display:none;
}

.km-more-summary::after{
  content:"⌄";
  display:inline-block;
  margin-left:7px;
  color:var(--kb-sub);
  transition:transform .2s ease;
}

.km-more[open] .km-more-summary::after{
  transform:rotate(180deg);
}

.km-more-list{
  margin-top:14px;
}

.km-more[open] .km-more-summary{
  background:var(--kb-accent-pale);
  color:var(--kb-accent-strong);
}


/* ===== 2026-09-28 ログイン / マイページ UI v4 ===== */

.kobore-login,
.kobore-mypage,
.kobore-email-auth{
  min-height:100vh;
  background:
    radial-gradient(circle at 87% 2%,rgba(244,205,195,.22) 0 90px,transparent 91px),
    radial-gradient(circle at 100% 15%,rgba(249,219,184,.20) 0 92px,transparent 93px),
    linear-gradient(180deg,#fffaf7 0%,#fff8f5 100%);
}

/* ---------- login ---------- */
.kobore-login .kl-wrap{
  width:min(100%,760px);
  margin:0 auto;
  padding:28px 18px 64px;
}
.kobore-login .kl-card,
.kobore-login .kl-method{
  background:rgba(255,255,255,.92);
  border:1px solid #efe5e1;
  border-radius:28px;
  box-shadow:0 8px 28px rgba(106,82,73,.045);
}
.kobore-login .kl-intro-card{
  padding:28px 28px 24px;
  margin-bottom:18px;
}
.kobore-login .kl-brand{
  display:inline-flex;
  align-items:flex-start;
  gap:8px;
  color:#9d5756;
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:.06em;
  margin-bottom:12px;
}
.kobore-login .kl-brand i{
  width:18px;
  height:18px;
  position:relative;
  display:inline-block;
}
.kobore-login .kl-brand i::before,
.kobore-login .kl-brand i::after{
  content:"";
  position:absolute;
  width:4px;
  height:11px;
  border-radius:999px;
  background:#f3b86b;
  transform-origin:center bottom;
}
.kobore-login .kl-brand i::before{left:4px;top:1px;transform:rotate(28deg)}
.kobore-login .kl-brand i::after{right:1px;bottom:0;transform:rotate(82deg)}
.kobore-login .kl-title{
  margin:0 0 10px;
  color:#4d4240;
  font-size:clamp(2rem,7vw,3.15rem);
  line-height:1.14;
  letter-spacing:.015em;
  font-weight:800;
}
.kobore-login .kl-lead{
  margin:0 0 22px;
  color:#6f625e;
  font-size:1.05rem;
  line-height:1.75;
}
.kobore-login .kl-note{
  margin:0;
}
.kobore-login .kl-info-panel{
  padding:15px 18px;
  border:1px solid #f2dcd9;
  border-radius:20px;
  background:linear-gradient(135deg,#fff4f2,#fff9f7);
}
.kobore-login .kl-info-row{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:10px;
  align-items:start;
  padding:8px 0;
  color:#746763;
  line-height:1.65;
}
.kobore-login .kl-info-row + .kl-info-row{border-top:1px solid rgba(236,141,141,.08)}
.kobore-login .kl-info-row strong{color:#514744}
.kobore-login .kl-info-icon{
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#df7e84;
  background:#fff7f5;
}
.kobore-login .kl-info-icon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.kobore-login .kl-method{
  overflow:hidden;
  margin:14px 0 0;
  transition:border-color .2s ease,background .2s ease;
}
.kobore-login .kl-method-summary{
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 28px;
  gap:14px;
  align-items:center;
  padding:18px 20px;
  user-select:none;
}
.kobore-login .kl-method-summary::-webkit-details-marker{display:none}
.kobore-login .kl-provider-logo{
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  font-size:2.1rem;
  line-height:1;
  font-weight:900;
  font-family:Arial,sans-serif;
  box-shadow:0 2px 12px rgba(70,60,55,.04);
}
.kobore-login .kl-provider-logo svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.kobore-login .kl-provider-logo-misskey{color:#88bd27}
.kobore-login .kl-provider-logo-mastodon{color:#5c59e8}
.kobore-login .kl-provider-logo-email{color:#846e68}
.kobore-login .kl-provider-copy{min-width:0;display:block}
.kobore-login .kl-provider-title-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  color:#3e3937;
  font-size:1.16rem;
  line-height:1.35;
}
.kobore-login .kl-provider-title-row strong{font-weight:800}
.kobore-login .kl-provider-desc{
  display:block;
  margin-top:4px;
  color:#81746f;
  font-size:.92rem;
  line-height:1.55;
}
.kobore-login .kl-recommend{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:4px 12px;
  border-radius:999px;
  background:#c8ef73;
  color:#476516;
  font-size:.78rem;
  font-weight:800;
}
.kobore-login .kl-chevron{
  width:14px;
  height:14px;
  border-right:3px solid #514744;
  border-bottom:3px solid #514744;
  transform:rotate(45deg);
  transition:transform .2s ease;
  justify-self:center;
  margin-top:-7px;
}
.kobore-login .kl-method[open] .kl-chevron{transform:rotate(225deg);margin-top:7px}
.kobore-login .kl-method-misskey{background:linear-gradient(135deg,#fbfff6,#fafff1);border-color:#cce895}
.kobore-login .kl-method-mastodon{background:linear-gradient(135deg,#fbfbff,#f3f3ff);border-color:#d8d9ff}
.kobore-login .kl-method-email{background:linear-gradient(135deg,#fffdfc,#faf7f6);border-color:#eadfdb}
.kobore-login .kl-method-body{padding:0 20px 20px}
.kobore-login .kl-label{
  display:block;
  margin:2px 0 8px;
  color:#4f4542;
  font-weight:800;
}
.kobore-login .kl-input{
  width:100%;
  min-height:52px;
  border:1px solid #ded6d2;
  border-radius:14px;
  background:#fff;
  color:#514744;
  font:inherit;
  font-size:16px;
  padding:12px 14px;
  outline:none;
}
.kobore-login .kl-input:focus{border-color:#d3aaa3;box-shadow:0 0 0 3px rgba(236,141,141,.09)}
.kobore-login .kl-help{
  margin-top:7px;
  color:#897c77;
  font-size:.84rem;
  line-height:1.55;
}
.kobore-login .kl-button{
  width:100%;
  min-height:54px;
  margin-top:14px;
  border:0;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-decoration:none;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.kobore-login .kl-button-misskey{background:linear-gradient(90deg,#a8df3e,#bfe95c);color:#28321d}
.kobore-login .kl-button-mastodon{background:#6262e8}
.kobore-login .kl-button-email{background:#806f69}
.kobore-login .kl-button-email-register{background:#a88780}
.kobore-login .kl-email-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* ---------- mypage ---------- */
.kobore-mypage{line-height:1.65}
.kobore-mypage .km-wrap{
  max-width:760px;
  margin:0 auto;
  padding:20px 18px 48px;
}
.kobore-mypage .km-header-v4{
  padding:4px 2px 18px;
  align-items:flex-end;
}
.kobore-mypage .km-eyebrow{font-size:.82rem;letter-spacing:.08em;color:#8d7d77}
.kobore-mypage .km-title{font-size:2rem;line-height:1.12;letter-spacing:.015em;color:#4b413f}
.kobore-mypage .km-menu{position:relative}
.kobore-mypage .km-menu-button{
  list-style:none;
  width:46px;
  height:46px;
  display:grid;
  align-content:center;
  gap:5px;
  padding:9px;
  cursor:pointer;
  border-radius:14px;
}
.kobore-mypage .km-menu-button::-webkit-details-marker{display:none}
.kobore-mypage .km-menu-button span{height:3px;border-radius:999px;background:#766a66;display:block}
.kobore-mypage .km-menu-panel{
  position:absolute;
  right:0;
  top:52px;
  z-index:20;
  min-width:220px;
  padding:8px;
  border:1px solid #eadfdb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 14px 34px rgba(83,63,56,.12);
}
.kobore-mypage .km-menu-panel a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:#665955;
  text-decoration:none;
  font-weight:700;
  font-size:.9rem;
}
.kobore-mypage .km-menu-panel a:hover{background:#fff5f2;color:#c86f72}
.kobore-mypage .km-user-card-v4{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 24px;
  gap:14px;
  align-items:center;
  padding:17px 20px;
  margin:0 0 14px;
  border-radius:22px;
  background:rgba(255,255,255,.91);
}
.kobore-mypage .km-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  display:grid;
  place-items:center;
}
.kobore-mypage .km-avatar-user{background:linear-gradient(135deg,#ffd9d6,#ffefea);color:#c07e78}
.kobore-mypage .km-avatar svg,
.kobore-mypage .km-home-icon svg,
.kobore-mypage .km-quick-icon svg,
.kobore-mypage .km-mini-avatar svg,
.kobore-mypage .km-bot-avatar svg,
.kobore-mypage .km-action-primary svg,
.kobore-mypage .km-action-outline svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.kobore-mypage .km-avatar svg{width:34px;height:34px;stroke-width:2.1}
.kobore-mypage .km-user-name{font-size:1.18rem;color:#403a38;margin:0}
.kobore-mypage .km-handle{font-size:.92rem;color:#9c8e89;margin-top:2px}
.kobore-mypage .km-login-provider{font-size:.82rem;color:#a3938d;margin-top:3px}
.kobore-mypage .km-card-arrow{font-size:2rem;line-height:1;color:#867671;text-decoration:none;justify-self:end;font-weight:300}
.kobore-mypage .km-quick-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:0 0 12px;
}
.kobore-mypage .km-quick-stat{
  min-width:0;
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:11px 10px;
  border-radius:20px;
  background:linear-gradient(135deg,#fff8f6,#fff0ed);
  border:1px solid #fff4f1;
}
.kobore-mypage .km-quick-icon{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.65);
  color:#b06f6d;
}
.kobore-mypage .km-quick-icon svg{width:24px;height:24px}
.kobore-mypage .km-quick-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.kobore-mypage .km-quick-copy small{color:#8d7f7a;font-size:.77rem;white-space:nowrap}
.kobore-mypage .km-quick-copy strong{color:#49403e;font-size:1rem;line-height:1.2;white-space:nowrap}
.kobore-mypage .km-tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:center;
  padding:4px;
  margin:0 0 18px;
  border-radius:999px;
  background:linear-gradient(90deg,#fff0ed,#fff8f5);
}
.kobore-mypage .km-tabs a{
  min-height:48px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#5c504c;
  text-decoration:none;
  font-weight:700;
  font-size:.95rem;
}
.kobore-mypage .km-tabs a.is-active{
  color:#fff;
  background:linear-gradient(90deg,#ef8589,#ed777d);
  box-shadow:0 5px 14px rgba(221,108,113,.14);
}
.kobore-mypage .km-tab-panel{display:grid;gap:12px}
.kobore-mypage .km-home-card{
  position:relative;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto 18px;
  gap:12px;
  align-items:center;
  min-height:110px;
  padding:18px 20px;
  border:1px solid #eee3df;
  border-radius:22px;
  background:rgba(255,255,255,.90);
  box-shadow:0 4px 18px rgba(111,98,94,.025);
  color:inherit;
  text-decoration:none;
}
.kobore-mypage .km-standard-guide{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:4px 6px 2px;
  color:#8b7f7b;
  text-decoration:none;
  font-size:.84rem;
  font-weight:700;
}
.kobore-mypage .km-standard-guide span:last-child{
  color:#b4a7a2;
  font-size:1.05rem;
}
.kobore-mypage .km-home-icon{
  width:50px;
  height:50px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f7f4ff;
  color:#6d6caf;
}
.kobore-mypage .km-home-icon svg{width:27px;height:27px}
.kobore-mypage .km-home-icon-feedback{background:#fff1ef;color:#d4666c}
.kobore-mypage .km-home-icon-clock{background:#fff4e8;color:#ae7a34}
.kobore-mypage .km-home-icon-credit{background:#fff2ef;color:#aa6662}
.kobore-mypage .km-home-copy{display:flex;flex-direction:column;min-width:0}
.kobore-mypage .km-home-copy strong{color:#3f3937;font-size:1.12rem;line-height:1.35}
.kobore-mypage .km-home-copy small{color:#9a8c87;font-size:.86rem;margin-top:3px;line-height:1.5}
.kobore-mypage .km-home-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
  min-height:40px;
  padding:7px 12px;
  border-radius:999px;
  font-weight:800;
  white-space:nowrap;
}
.kobore-mypage .km-home-badge-green{background:#e7f7f0;color:#54a790}
.kobore-mypage .km-home-badge-pink{background:#fff0f1;color:#d56c70}
.kobore-mypage .km-schedule-card{
  grid-template-columns:58px minmax(0,1fr) 18px;
}
.kobore-mypage .km-schedule-heading{grid-column:2/3}
.kobore-mypage .km-schedule-card>.km-card-arrow{grid-column:3/4;grid-row:1}
.kobore-mypage .km-schedule-list{
  grid-column:1/-1;
  display:grid;
  gap:0;
  margin-top:4px;
}
.kobore-mypage .km-schedule-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px 4px;
  border-top:1px solid #f1e8e4;
}
.kobore-mypage .km-mini-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f4eeee;
  color:#826b68;
}
.kobore-mypage .km-mini-avatar svg{width:21px;height:21px}
.kobore-mypage .km-schedule-row strong{color:#453d3a;font-size:.93rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kobore-mypage .km-schedule-row time{color:#70625e;font-size:.9rem;white-space:nowrap}
.kobore-mypage .km-schedule-empty{padding:15px 4px 2px;border-top:1px solid #f1e8e4;color:#9a8d88;font-size:.88rem}
.kobore-mypage .km-credit-card{min-height:104px}

/* bot tab */
.kobore-mypage .km-bot-create-actions{display:grid;gap:10px;margin-bottom:2px}
.kobore-mypage .km-button-primary-v4,
.kobore-mypage .km-button-outline-v4{
  width:100%;
  min-height:54px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
}
.kobore-mypage .km-button-primary-v4{background:linear-gradient(90deg,#ef8589,#ed777d);color:#fff;border:0}
.kobore-mypage .km-button-outline-v4{background:#fff;color:#665955;border:1px solid #e5d8d3}
.kobore-mypage .km-bot-accordion-list{display:grid;gap:12px}
.kobore-mypage .km-bot-accordion{
  overflow:hidden;
  border:1px solid #eadfdb;
  border-radius:22px;
  background:rgba(255,255,255,.94);
}
.kobore-mypage .km-bot-summary{
  list-style:none;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto 20px;
  gap:12px;
  align-items:center;
  padding:16px 18px;
  cursor:pointer;
}
.kobore-mypage .km-bot-summary::-webkit-details-marker{display:none}
.kobore-mypage .km-bot-avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f2d9d7,#efe4df);
  color:#76635f;
}
.kobore-mypage .km-bot-avatar svg{width:28px;height:28px}
.kobore-mypage .km-bot-identity{min-width:0;display:flex;flex-direction:column}
.kobore-mypage .km-bot-identity strong{color:#3d3735;font-size:1.12rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kobore-mypage .km-bot-identity small{color:#988983;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.kobore-mypage .km-chip{background:#ebf8f4;color:#6aa395;font-weight:700}
.kobore-mypage .km-accordion-chevron{
  width:12px;
  height:12px;
  border-right:2px solid #796b67;
  border-bottom:2px solid #796b67;
  transform:rotate(45deg);
  transition:transform .2s ease;
  margin-top:-5px;
}
.kobore-mypage .km-bot-accordion[open] .km-accordion-chevron{transform:rotate(225deg);margin-top:5px}
.kobore-mypage .km-bot-body{padding:0 18px 18px;border-top:1px solid #f4ebe8}
.kobore-mypage .km-bot-persona{color:#8e7f7a;font-size:.9rem;padding-top:14px}
.kobore-mypage .km-bot-persona strong{color:#6a5d59}
.kobore-mypage .km-bot-tags{margin-top:9px}
.kobore-mypage .km-material-pill{background:#f8f3f1;color:#776b67;border-radius:999px}
.kobore-mypage .km-no-material{margin-top:10px}
.kobore-mypage .km-v4-actions{display:grid;gap:8px;margin-top:14px}
.kobore-mypage .km-action-primary,
.kobore-mypage .km-action-outline{
  min-height:48px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-decoration:none;
  font-weight:800;
  font-size:.92rem;
}
.kobore-mypage .km-action-primary{background:linear-gradient(90deg,#ef8589,#ed777d);color:#fff}
.kobore-mypage .km-action-outline{background:#fff;color:#665955;border:1px solid #eadfdb}
.kobore-mypage .km-action-primary span,
.kobore-mypage .km-action-outline span{display:grid;place-items:center}
.kobore-mypage .km-action-primary svg,
.kobore-mypage .km-action-outline svg{width:21px;height:21px}

/* materials tab */
.kobore-mypage .km-materials-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:4px 3px 0;
}
.kobore-mypage .km-materials-head>div{display:flex;flex-direction:column;gap:3px}
.kobore-mypage .km-materials-head strong{color:#4b413f;font-size:1.08rem}
.kobore-mypage .km-materials-head small{color:#958782;line-height:1.5}
.kobore-mypage .km-materials-head>span{color:#8d7f7a;font-size:.88rem;white-space:nowrap}
.kobore-mypage .km-material-usage{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 3px;
  color:#958782;
  font-size:.88rem;
}
.kobore-mypage .km-material-usage strong{color:#594e4a}
.kobore-mypage .km-material-v4-list{display:grid;gap:12px;margin-top:2px}
.kobore-mypage .km-material-v4-card{
  padding:16px;
  border:1px solid #eadfdb;
  border-radius:22px;
  background:rgba(255,255,255,.94);
}
.kobore-mypage .km-material-v4-top{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}
.kobore-mypage .km-material-v4-copy{display:flex;flex-direction:column;min-width:0}
.kobore-mypage .km-material-v4-copy strong{color:#403936;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kobore-mypage .km-material-v4-copy small{color:#998a85;margin-top:2px}
.kobore-mypage .km-material-v4-card .km-action-outline{width:100%}
.kobore-mypage .km-material-empty{margin-top:4px}
.kobore-mypage .km-footer-v4{padding-top:24px}

@media (max-width:620px){
  .kobore-login .kl-wrap{padding:18px 14px 44px}
  .kobore-login .kl-intro-card{padding:22px 20px 20px}
  .kobore-login .kl-method-summary{grid-template-columns:52px minmax(0,1fr) 22px;padding:16px 16px;gap:11px}
  .kobore-login .kl-provider-logo{width:48px;height:48px}
  .kobore-login .kl-provider-title-row{font-size:1.05rem}
  .kobore-login .kl-provider-desc{font-size:.84rem}
  .kobore-login .kl-method-body{padding:0 16px 16px}
  .kobore-login .kl-email-actions{grid-template-columns:1fr}
  .kobore-login .kl-wide-break{display:none}

  .kobore-mypage .km-wrap{padding:16px 14px 38px}
  .kobore-mypage .km-title{font-size:1.75rem}
  .kobore-mypage .km-user-card-v4{grid-template-columns:62px minmax(0,1fr) 18px;padding:15px 16px}
  .kobore-mypage .km-avatar{width:56px;height:56px}
  .kobore-mypage .km-user-name{font-size:1.05rem}
  .kobore-mypage .km-handle{font-size:.82rem}
  .kobore-mypage .km-login-provider{font-size:.75rem}
  .kobore-mypage .km-quick-stats{gap:6px}
  .kobore-mypage .km-quick-stat{min-height:78px;gap:6px;padding:9px 6px}
  .kobore-mypage .km-quick-icon{width:35px;height:35px}
  .kobore-mypage .km-quick-icon svg{width:20px;height:20px}
  .kobore-mypage .km-quick-copy small{font-size:.68rem}
  .kobore-mypage .km-quick-copy strong{font-size:.88rem}
  .kobore-mypage .km-tabs a{min-height:45px;font-size:.9rem}
  .kobore-mypage .km-home-card{grid-template-columns:50px minmax(0,1fr) auto 16px;gap:10px;padding:15px 15px;min-height:100px}
  .kobore-mypage .km-home-icon{width:44px;height:44px}
  .kobore-mypage .km-home-icon svg{width:24px;height:24px}
  .kobore-mypage .km-home-copy strong{font-size:1rem}
  .kobore-mypage .km-home-copy small{font-size:.79rem}
  .kobore-mypage .km-home-badge{min-width:58px;min-height:36px;padding:6px 10px;font-size:.84rem}
  .kobore-mypage .km-schedule-card{grid-template-columns:50px minmax(0,1fr) 16px}
  .kobore-mypage .km-schedule-row{grid-template-columns:38px minmax(0,1fr) auto;padding:11px 2px}
  .kobore-mypage .km-mini-avatar{width:34px;height:34px}
  .kobore-mypage .km-schedule-row strong,.kobore-mypage .km-schedule-row time{font-size:.84rem}
  .kobore-mypage .km-bot-summary{grid-template-columns:52px minmax(0,1fr) auto 16px;padding:14px;gap:10px}
  .kobore-mypage .km-bot-avatar{width:48px;height:48px}
  .kobore-mypage .km-bot-identity strong{font-size:1rem}
  .kobore-mypage .km-bot-identity small{font-size:.78rem}
  .kobore-mypage .km-chip{font-size:.7rem;padding:5px 8px}
}

@media (max-width:420px){
  .kobore-mypage .km-quick-stat{flex-direction:column;text-align:center;min-height:96px}
  .kobore-mypage .km-quick-copy small,.kobore-mypage .km-quick-copy strong{white-space:normal}
  .kobore-mypage .km-home-card{grid-template-columns:46px minmax(0,1fr) 16px}
  .kobore-mypage .km-home-badge{grid-column:2/3;justify-self:start;margin-top:2px}
  .kobore-mypage .km-home-card>.km-card-arrow{grid-column:3/4;grid-row:1/3}
  .kobore-mypage .km-schedule-card{grid-template-columns:46px minmax(0,1fr) 16px}
  .kobore-mypage .km-schedule-list{grid-column:1/-1}
  .kobore-mypage .km-bot-summary{grid-template-columns:46px minmax(0,1fr) 16px}
  .kobore-mypage .km-bot-summary .km-chip{grid-column:2/3;justify-self:start}
  .kobore-mypage .km-bot-summary .km-accordion-chevron{grid-column:3/4;grid-row:1/3}
}

/* ===== 2026-09-28 UI v5: brand / official provider icons / compact materials ===== */
.kb-page-header{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 4px 14px;
}
.kb-site-logo-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.kb-site-logo{
  display:block;
  width:142px;
  max-width:46vw;
  height:auto;
}
.kobore-mypage .km-brand .kb-site-logo{
  width:118px;
  max-width:38vw;
  margin-bottom:4px;
}
.kobore-login .kl-provider-logo img{
  display:block;
  width:34px;
  height:34px;
  object-fit:contain;
}
.kobore-login .kl-provider-logo-mastodon img{
  width:32px;
  height:32px;
}
.kobore-mypage .km-avatar img,
.kobore-mypage .km-mini-avatar img,
.kobore-mypage .km-bot-avatar img{
  display:block;
  width:100%;
  height:100%;
  border-radius:inherit;
  object-fit:cover;
}

.kobore-mypage .km-material-v4-list{
  gap:10px;
}
.kobore-mypage .km-material-row{
  min-height:76px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto 16px;
  gap:11px;
  align-items:center;
  padding:11px 14px;
  border:1px solid #eadfdb;
  border-radius:20px;
  background:rgba(255,255,255,.94);
  color:inherit;
  text-decoration:none;
  box-shadow:0 4px 16px rgba(111,98,94,.025);
}
.kobore-mypage .km-material-row-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f7f4ff;
  color:#6d6caf;
}
.kobore-mypage .km-material-row-icon svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.kobore-mypage .km-material-row-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.kobore-mypage .km-material-row-copy strong{
  color:#403936;
  font-size:1rem;
  line-height:1.4;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.kobore-mypage .km-material-row-copy small{
  margin-top:2px;
  color:#a0918c;
  font-size:.74rem;
  line-height:1.35;
}
.kobore-mypage .km-material-row .km-chip{
  margin:0;
}
.kobore-mypage .km-material-row .km-card-arrow{
  font-size:1.65rem;
}

@media (max-width:620px){
  .kb-page-header{padding-bottom:12px}
  .kb-site-logo{width:126px}
  .kobore-mypage .km-brand .kb-site-logo{width:108px}
}
@media (max-width:420px){
  .kobore-mypage .km-material-row{
    grid-template-columns:42px minmax(0,1fr) auto 14px;
    gap:8px;
    padding:10px 12px;
    min-height:70px;
  }
  .kobore-mypage .km-material-row-icon{width:38px;height:38px}
  .kobore-mypage .km-material-row-icon svg{width:22px;height:22px}
  .kobore-mypage .km-material-row .km-chip{font-size:.67rem;padding:4px 7px}
}

/* ===== 2026-09-28 UI v6: mypage header lockup ===== */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800&display=swap');

.kobore-mypage .km-header-v4{
  align-items:center;
  gap:14px;
  padding:14px 4px 20px;
}

.kobore-mypage .km-brand-lockup{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:13px;
}

.kobore-mypage .km-brand-lockup .kb-site-logo-link{
  flex:0 0 auto;
}

.kobore-mypage .km-brand-lockup .kb-site-logo{
  width:108px;
  max-width:none;
  margin:0;
}

.kobore-mypage .km-page-title-block{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  padding-left:14px;
}

.kobore-mypage .km-page-title-block::before{
  content:"";
  position:absolute;
  left:0;
  top:5px;
  bottom:5px;
  width:2px;
  border-radius:999px;
  background:#f1ded8;
}

.kobore-mypage .km-page-title-block .km-title{
  margin:0;
  color:#4b413f;
  font-family:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Yu Gothic UI",sans-serif;
  font-size:1.62rem;
  font-weight:800;
  line-height:1.18;
  letter-spacing:.025em;
  white-space:nowrap;
}

.kobore-mypage .km-title-en{
  display:block;
  margin-left:2px;
  color:#b79b91;
  font-family:"M PLUS Rounded 1c",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:.66rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.34em;
  white-space:nowrap;
}

.kobore-mypage .km-menu{
  flex:0 0 auto;
}

.kobore-mypage .km-menu-button{
  width:46px;
  height:46px;
  border-radius:50%;
  padding:11px 10px;
  gap:5px;
  background:#fff3ef;
  transition:background .18s ease, transform .18s ease;
}

.kobore-mypage .km-menu-button:hover{
  background:#ffebe6;
}

.kobore-mypage .km-menu-button:active{
  transform:scale(.97);
}

.kobore-mypage .km-menu-button span{
  height:3px;
  background:#746864;
}

@media (max-width:620px){
  .kobore-mypage .km-header-v4{
    padding:12px 2px 18px;
  }
  .kobore-mypage .km-brand-lockup{
    gap:10px;
  }
  .kobore-mypage .km-brand-lockup .kb-site-logo{
    width:100px;
  }
  .kobore-mypage .km-page-title-block{
    padding-left:11px;
  }
  .kobore-mypage .km-page-title-block .km-title{
    font-size:1.48rem;
  }
  .kobore-mypage .km-title-en{
    font-size:.61rem;
    letter-spacing:.29em;
  }
  .kobore-mypage .km-menu-button{
    width:44px;
    height:44px;
  }
}

@media (max-width:390px){
  .kobore-mypage .km-brand-lockup{
    gap:8px;
  }
  .kobore-mypage .km-brand-lockup .kb-site-logo{
    width:92px;
  }
  .kobore-mypage .km-page-title-block{
    padding-left:9px;
  }
  .kobore-mypage .km-page-title-block .km-title{
    font-size:1.34rem;
    letter-spacing:.01em;
  }
  .kobore-mypage .km-title-en{
    font-size:.56rem;
    letter-spacing:.24em;
  }
  .kobore-mypage .km-menu-button{
    width:42px;
    height:42px;
    padding:10px 9px;
  }
}

/* ===== 2026-09-29: Free trial ===== */
.kobore-mypage .km-home-icon-trial{
  background:#f5f0ff;
  color:#8070b9;
}

body.kobore-free-trial{
  min-height:100vh;
  margin:0;
  background:var(--kb-bg);
  color:var(--kb-text);
  line-height:1.72;
}
.ft-wrap{
  width:min(720px,100%);
  margin:0 auto;
  padding:22px 18px 56px;
}
.ft-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:4px 2px 18px;
}
.ft-logo-link{display:inline-flex;align-items:center;text-decoration:none}
.ft-logo{display:block;width:118px;height:auto}
.ft-back{color:var(--kb-sub);font-size:.88rem;font-weight:700;text-decoration:none}
.ft-card{
  margin:0 0 16px;
  padding:24px;
  border:1px solid var(--kb-line);
  border-radius:28px;
  background:#fff;
  box-shadow:var(--kb-shadow);
}
.ft-kicker{
  display:inline-block;
  margin-bottom:7px;
  color:#c78a86;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.18em;
}
.ft-title{
  margin:0 0 10px;
  color:var(--kb-text-strong);
  font-family:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN","Yu Gothic UI",sans-serif;
  font-size:1.55rem;
  line-height:1.45;
  font-weight:800;
}
.ft-lead{margin:0 0 20px;color:var(--kb-sub);font-size:.94rem;line-height:1.8}
.ft-flow{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 22px;
  padding:12px 14px;
  border-radius:18px;
  background:var(--kb-accent-pale);
  color:#806f69;
  font-size:.82rem;
  font-weight:700;
}
.ft-flow span{white-space:nowrap}
.ft-flow i{font-style:normal;color:#d5aaa0;font-size:1.1rem}
.ft-form{display:grid;gap:0}
.ft-field{margin:0 0 20px}
.ft-label{display:block;margin-bottom:7px;color:var(--kb-text-strong);font-weight:800}
.ft-input,.ft-select,.ft-textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #e9deda;
  border-radius:16px;
  background:#fff;
  color:var(--kb-text-strong);
  font:inherit;
  font-size:16px;
  outline:none;
  transition:border-color .16s ease, box-shadow .16s ease;
}
.ft-input,.ft-select{min-height:50px;padding:11px 13px}
.ft-textarea{min-height:220px;padding:13px 14px;resize:vertical;line-height:1.75}
.ft-input:focus,.ft-select:focus,.ft-textarea:focus{
  border-color:#e8b7b1;
  box-shadow:0 0 0 3px rgba(236,141,141,.10);
}
.ft-help{margin-top:6px;color:var(--kb-sub);font-size:.8rem;line-height:1.6}
.ft-counter{display:flex;justify-content:space-between;gap:12px;margin-top:7px;color:var(--kb-sub);font-size:.78rem}
.ft-counter strong{color:#8c7771}
.ft-guide{
  margin:0 0 20px;
  padding:16px 17px;
  border:1px solid #f0e2de;
  border-radius:18px;
  background:#fffaf8;
  color:#796b66;
  font-size:.86rem;
}
.ft-guide>strong{display:block;color:#5c514e;margin-bottom:6px}
.ft-guide ul{margin:7px 0 9px;padding-left:1.35em}
.ft-guide li+li{margin-top:3px}
.ft-guide p{margin:0}
.ft-submit{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:999px;
  background:linear-gradient(90deg,#ef8d90,#ed777d);
  color:#fff;
  font:inherit;
  font-weight:800;
  padding:13px 18px;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(221,108,113,.12);
}
.ft-note,.ft-error{
  margin:14px 0;
  padding:13px 15px;
  border-radius:16px;
  font-size:.88rem;
  line-height:1.7;
}
.ft-note{background:#fff8f4;border:1px solid #f1e2db;color:#786963}
.ft-error{background:#fff0f0;border:1px solid #ebc6c6;color:#8a5050}
.ft-progress-card{text-align:center;padding-top:34px;padding-bottom:34px}
.ft-progress-mark{display:flex;justify-content:center;gap:8px;margin:24px 0 16px}
.ft-progress-mark span{width:10px;height:10px;border-radius:50%;background:#e58a8d;animation:ftPulse 1.2s infinite ease-in-out}
.ft-progress-mark span:nth-child(2){animation-delay:.16s}
.ft-progress-mark span:nth-child(3){animation-delay:.32s}
@keyframes ftPulse{0%,80%,100%{transform:scale(.75);opacity:.35}40%{transform:scale(1);opacity:1}}
.ft-progress-text{margin:0 0 4px;color:#665956;font-weight:800}
.ft-results{display:grid;gap:12px;margin-top:20px}
.ft-result-card{
  position:relative;
  padding:20px 18px 17px;
  border:1px solid #eee1dd;
  border-radius:20px;
  background:#fffaf9;
}
.ft-result-card p{margin:0;color:#594e4a;line-height:1.82;font-size:.96rem}
.ft-result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid #f2e5e1}
.ft-copy-button,.ft-share-button{appearance:none;border-radius:999px;padding:9px 13px;font:inherit;font-size:.78rem;font-weight:800;cursor:pointer}
.ft-copy-button{border:1px solid #e8d8d3;background:#fff;color:#756660}
.ft-share-button{border:0;background:#ee8589;color:#fff}
.ft-share-status{min-height:1.2em;color:#9b817b;font-size:.72rem}
.ft-result-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:24px;
  margin-bottom:9px;
  padding:0 8px;
  border-radius:999px;
  background:#fff0ee;
  color:#c47474;
  font-size:.72rem;
  font-weight:800;
}
.ft-source-details{margin-top:18px;border-top:1px solid #f0e6e2;padding-top:14px}
.ft-source-details summary{cursor:pointer;color:#8f7f79;font-weight:700;font-size:.88rem}
.ft-source-details div{margin-top:12px;padding:14px;border-radius:16px;background:#faf6f4;font-size:.86rem}
.ft-source-details p{margin:7px 0 0;white-space:normal}
.ft-standard-card h2{
  margin:0 0 12px;
  color:var(--kb-text-strong);
  font-family:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN","Yu Gothic UI",sans-serif;
  font-size:1.25rem;
  line-height:1.55;
}
.ft-standard-card p{margin:0 0 12px;font-size:.9rem;color:#776965}
.ft-standard-points{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}
.ft-standard-points span{padding:6px 10px;border-radius:999px;background:#fff1ef;color:#a76868;font-size:.76rem;font-weight:700}
.ft-standard-guide{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:18px;
  color:#8b7f7b;
  text-decoration:none;
  font-size:.84rem;
  font-weight:700;
}
.ft-standard-guide span{color:#b4a7a2;font-size:1rem}
@media (max-width:560px){
  .ft-wrap{padding:14px 14px 38px}
  .ft-header{padding-bottom:14px}
  .ft-logo{width:105px}
  .ft-card{padding:20px 17px;border-radius:24px}
  .ft-title{font-size:1.35rem}
  .ft-textarea{min-height:250px}
  .ft-flow{gap:6px;font-size:.75rem;padding:11px 9px}
}

/* ===== Free / Standard plan visibility + Free locked features ===== */
.kobore-mypage .km-user-name-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.kobore-mypage .km-plan-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:25px;
  padding:3px 9px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.02em;
}
.kobore-mypage .km-plan-badge.is-free{
  background:#f2eeec;
  color:#746864;
  border:1px solid #e4dcda;
}
.kobore-mypage .km-plan-badge.is-standard{
  background:#fff0ed;
  color:#b66468;
  border:1px solid #f2d7d4;
}
.kobore-mypage .km-quick-stat.is-locked{
  background:#f6f3f2;
  border-color:#ebe5e3;
  opacity:.68;
}
.kobore-mypage .km-quick-stat.is-locked .km-quick-icon{
  background:#ece8e6;
  color:#8f8581;
}
.kobore-mypage .km-tab-lock{
  display:inline-grid;
  place-items:center;
  width:14px;
  height:14px;
  margin-left:4px;
  opacity:.7;
}
.kobore-mypage .km-tab-lock svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
.kobore-mypage .km-tabs a.is-locked-tab:not(.is-active){opacity:.63}
.kobore-mypage .km-menu-disabled{
  display:block;
  padding:10px 12px;
  color:#aaa09d;
  font-size:.9rem;
  cursor:default;
}
.kobore-mypage .km-menu-lock{font-size:.75rem;opacity:.72}
.kobore-mypage .km-locked-card{
  background:#f7f4f3;
  border-color:#ebe4e1;
  box-shadow:none;
  color:#8d8380;
  opacity:.76;
}
.kobore-mypage .km-locked-card .km-home-icon{
  background:#ece8e6;
  color:#8f8581;
}
.kobore-mypage .km-lock-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:5px 10px;
  border-radius:999px;
  background:#ece7e5;
  color:#786d69;
  font-size:.76rem;
  font-weight:800;
}
.kobore-mypage .km-feature-lock-panel{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:20px;
  border:1px solid #e9e3e0;
  border-radius:22px;
  background:#f8f6f5;
  color:#817773;
}
.kobore-mypage .km-feature-lock-panel strong{display:block;color:#625854;font-size:1rem;margin-bottom:5px}
.kobore-mypage .km-feature-lock-panel p{margin:0;color:#968b87;font-size:.86rem;line-height:1.65}
.kobore-mypage .km-feature-lock-icon{
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#ece8e6;color:#817773;
}
.kobore-mypage .km-feature-lock-icon svg,
.kobore-mypage .km-locked-action svg,
.kobore-mypage .km-free-material-note svg{
  width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
.kobore-mypage .km-locked-action{
  display:grid;
  grid-template-columns:32px auto 1fr;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:11px 15px;
  border:1px dashed #dcd3d0;
  border-radius:16px;
  background:#f7f4f3;
  color:#8f8581;
}
.kobore-mypage .km-locked-action span{display:grid;place-items:center}
.kobore-mypage .km-locked-action strong{font-size:.9rem}
.kobore-mypage .km-locked-action small{font-size:.78rem;color:#a19793;text-align:right}
.kobore-mypage .km-trial-material-row{border-style:dashed;background:#fffaf8}
.kobore-mypage .km-free-material-note{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 16px;
  gap:10px;
  align-items:start;
  margin-top:4px;
  padding:14px 15px;
  border-radius:18px;
  background:#f7f4f3;
  color:#8b817d;
  text-decoration:none;
}
.kobore-mypage .km-free-material-note>span{display:grid;place-items:center;padding-top:1px}
.kobore-mypage .km-free-material-note strong{display:block;color:#6d625e;font-size:.88rem;margin-bottom:3px}
.kobore-mypage .km-free-material-note small{display:block;color:#9a8f8b;font-size:.78rem;line-height:1.55}
.kobore-mypage .km-free-material-note .km-free-material-note-arrow{
  align-self:center;
  color:#b4a7a2;
  font-size:1.05rem;
  padding-top:0;
}

/* ===== Free trial material preview ===== */
.kobore-free-trial-material{background:#fffaf8;color:#504744}
.kobore-free-trial-material .ftm-wrap{max-width:760px;margin:0 auto;padding:24px 16px 48px}
.kobore-free-trial-material .ftm-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.kobore-free-trial-material .ftm-header .kb-site-logo{width:120px;height:auto;display:block}
.kobore-free-trial-material .ftm-back{color:#7e716d;text-decoration:none;font-weight:700;font-size:.88rem}
.kobore-free-trial-material .ftm-card{padding:22px;border:1px solid #eee1dc;border-radius:24px;background:#fff;box-shadow:0 10px 28px rgba(110,89,82,.05);margin-bottom:14px}
.kobore-free-trial-material .ftm-kicker{color:#bd7c78;font-size:.72rem;font-weight:800;letter-spacing:.09em;margin-bottom:8px}
.kobore-free-trial-material .ftm-title-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.kobore-free-trial-material .ftm-title-row h1{margin:0;color:#443b38;font-size:1.45rem;line-height:1.35}
.kobore-free-trial-material .ftm-title-row p{margin:5px 0 0;color:#9b8c87;font-size:.85rem}
.kobore-free-trial-material .ftm-status{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#fff0ed;color:#b66e6b;font-size:.72rem;font-weight:800}
.kobore-free-trial-material .ftm-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0}
.kobore-free-trial-material .ftm-meta>div{padding:11px 12px;border-radius:15px;background:#faf7f5}
.kobore-free-trial-material .ftm-meta dt{color:#9a8f8a;font-size:.72rem;margin-bottom:3px}
.kobore-free-trial-material .ftm-meta dd{margin:0;color:#5d524e;font-weight:700;font-size:.9rem}
.kobore-free-trial-material .ftm-source{padding:18px;border-radius:18px;background:#fffaf8;border:1px solid #f0e4df}
.kobore-free-trial-material .ftm-source h2{margin:0 0 10px;color:#5a4f4b;font-size:1rem}
.kobore-free-trial-material .ftm-source p{margin:0;color:#5f5551;line-height:1.85;white-space:normal;overflow-wrap:anywhere}
.kobore-free-trial-material .ftm-primary{display:block;margin-top:16px;padding:13px 16px;border-radius:999px;background:linear-gradient(90deg,#ef8589,#ed777d);color:#fff;text-align:center;text-decoration:none;font-weight:800}
.kobore-free-trial-material .ftm-note-card h2{margin:0 0 8px;color:#5d524e;font-size:1rem}
.kobore-free-trial-material .ftm-note-card p{margin:0;color:#8e817c;font-size:.88rem;line-height:1.75}
@media (max-width:520px){
  .kobore-mypage .km-feature-lock-panel{grid-template-columns:42px minmax(0,1fr);padding:16px}
  .kobore-mypage .km-feature-lock-panel .km-lock-badge{grid-column:2;justify-self:start}
  .kobore-mypage .km-locked-action{grid-template-columns:28px minmax(0,1fr)}
  .kobore-mypage .km-locked-action small{grid-column:2;text-align:left}
  .kobore-free-trial-material .ftm-wrap{padding:18px 14px 40px}
  .kobore-free-trial-material .ftm-card{padding:18px}
  .kobore-free-trial-material .ftm-title-row{display:block}
  .kobore-free-trial-material .ftm-status{display:inline-flex;margin-top:10px}
  .kobore-free-trial-material .ftm-meta{grid-template-columns:1fr}
}

/* Free trial: iPhoneで長い人格名があっても横スクロールさせない */
body.kobore-free-trial{overflow-x:hidden}
body.kobore-free-trial .ft-wrap,
body.kobore-free-trial .ft-card,
body.kobore-free-trial .ft-field{box-sizing:border-box;min-width:0;max-width:100%}
body.kobore-free-trial .ft-select,
body.kobore-free-trial .ft-input,
body.kobore-free-trial .ft-textarea{min-width:0;max-width:100%}
