/* reset.css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

body.bg {
    background-color: #f9fafb;
    font-family: 'Instrument Sans', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.box {
    max-width: 28rem;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.icon-white {
    width: 2rem;
    height: 2rem;
    color: #fff;
}

.heading-main {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.subtext {
    color: #6b7280;
}

.card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group-checkbox {
    text-align: center;
}

.form-group-checkbox label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input {
    width: 90%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    transition: border 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.ai-alert {
    color: red;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.icon-right {
    width: 1rem;
    height: 1rem;
}

.forgot {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.forgot a {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
}

.forgot a:hover {
    color: #2563eb;
}

.feature {
    margin-top: 2rem;
}

.feature-box {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    background-color: #dbeafe;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-blue {
    width: 1rem;
    height: 1rem;
    color: #3b82f6;
}

.feature-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.feature-text {
    font-size: 0.75rem;
    color: #6b7280;
}


.idea-screen {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #eef2ff, #fdfdfd, #f5f3ff);
}

.idea-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ハンバーガーアイコン */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: black;
    border-radius: 3px;
}

/* スマホ時に切り替え */
@media (max-width: 768px) {
    .header-right {
        display: none;
        flex-direction: column;
        background: #d5d5d5;
        position: absolute;
        top: 60px;
        right: 10px;
        padding: 1rem;
        border-radius: 8px;
        align-items: start;
    }

    .header-right.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

.header-user {
    font-size: 0.875rem;
    color: #4b5563;
}

.header-btn {
    background: none;
    border: none;
    font-size: 0.875rem;
    color: #4b5563;
    cursor: pointer;
}

.header-btn:hover {
    color: #111827;
}

.idea-main {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
}

.idea-title-area {
    margin-bottom: 2rem;
}

.idea-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.25rem;
}

.idea-subtext {
    color: #6b7280;
}

.idea-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.idea-search input {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    flex: 1;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.idea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.idea-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.idea-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.menu-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.25rem;
}

.menu-btn:hover {
    color: #4b5563;
}

.idea-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.idea-meta-item {
    margin-bottom: 0.25rem;
}

.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
}

.no-results-icon {
    font-size: 2rem;
    background: #f3f4f6;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========== IdeaPromptScreen（Tailwind無し） ========== */
.prompt-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2ff, #ffffff 40%, #f5f3ff);
}

.prompt-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.prompt-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prompt-header-left .link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    text-decoration: none;
}

.prompt-header-left .link-quiet:hover {
    color: #111827;
}

.icon.inline-back {
    display: inline-flex;
    align-items: center;
}

.svg-16 {
    width: 16px;
    height: 16px;
}

.svg-20 {
    width: 20px;
    height: 20px;
}

.svg-32 {
    width: 32px;
    height: 32px;
}

.white {
    color: #fff;
    fill: #fff
}

.blue {
    color: #2563eb;
}

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

.logo-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.prompt-hero {
    text-align: center;
    padding: 48px 16px 24px;
}

.hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.hero-text {
    font-size: 18px;
    color: #6b7280;
}

.prompt-card {
    max-width: 896px;
    margin: 0 auto;
    padding: 0 16px;
}

.prompt-card form {
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .1);
    backdrop-filter: blur(12px);
}

.label-lg {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.textarea {
    width: 95%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, .5);
    color: #111827;
    resize: vertical;
    min-height: 160px;
    transition: box-shadow .2s, border-color .2s;
}

.textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .3);
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.muted {
    color: #9ca3af;
    font-size: 14px;
}

.btn-gradient {
    margin-top: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .15);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
    filter: brightness(1.02);
}

.btn-gradient:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

.prompt-examples {
    max-width: 896px;
    margin: 48px auto;
    padding: 0 16px;
}

.examples-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.examples-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.example-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, .5);
    transition: transform .2s, box-shadow .2s, background .2s;
}

.example-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 12px 18px rgba(0, 0, 0, .1);
}

.example-icon {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.example-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

/* 送信中オーバーレイ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.overlay.hidden {
    display: none;
}

.overlay-card {
    width: min(720px, 92vw);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

.overlay-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.overlay-icon .circle {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    opacity: .2;
    animation: ping 1.5s infinite;
}

.pulse {
    animation: pulse 1.8s infinite;
}

.spin {
    animation: spin 1.5s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: .25
    }

    100% {
        transform: scale(1.8);
        opacity: 0
    }
}

.overlay-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.overlay-text {
    color: #6b7280;
    margin-bottom: 16px;
}

.progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 9999px;
    transition: width .4s;
}

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    justify-content: center;
}

.steps li {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    justify-content: center;
}

.steps .dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #d1d5db;
    display: inline-block;
}

.steps .done .dot {
    background: #10b981;
}

.steps .doing .dot {
    background: #3b82f6;
}


/* ========== IdeaEditScreen（Tailwind無し） ========== */
.edit-screen {
    background: linear-gradient(135deg, #eef2ff, #ffffff 40%, #f5f3ff);
}

.edit-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

.edit-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .edit-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.card-ghost {
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .10);
}

.sticky-top {
    top: 32px;
}

.side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.side-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.blue {
    color: #3b82f6;
}

.gray {
    color: #9ca3af;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.field input,
.field textarea {
    width: 95%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: rgba(255, 255, 255, .5);
    transition: box-shadow .2s, border-color .2s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .3);
}

.side-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.side-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.side-kv {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.kv {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}

.side-status .kv {
    margin-bottom: 6px;
}

.btn-green-gradient {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #22c55e, #059669);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .15);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.btn-green-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
    filter: brightness(1.02);
}

.edit-maincard .maincard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.maincard-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.maincard-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.badge.green {
    color: #065f46;
    background: #d1fae5;
    border-color: #a7f3d0;
}

.hint {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.hint p {
    font-size: 14px;
    line-height: 1.6;
}

.textarea.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.maincard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .maincard-footer {
        flex-direction: column;
        align-items: flex-end;
    }
}

.menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 28px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 140px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.dropdown-menu button:hover {
    background: #f3f4f6;
}

.hidden {
    display: none;
}


/* ====== アカウント管理　一覧画面 ====== */
.ykb-acc {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2ff, #ffffff 40%, #f5f3ff);
    font-family: 'Instrument Sans', system-ui, sans-serif;
    color: #111827;
}

.ykb-acc-icon-svg {
    width: 20px;
    height: 20px;
    color: #4b5563; /* アイコン色（グレー） */
}

.ykb-acc-alert-success {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #ecfdf5;          /* 薄いグリーン */
    color: #065f46;               /* 濃いグリーン */
    border: 1px solid #a7f3d0;    /* 枠もグリーン系 */
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.4s ease;
}

.ykb-acc-alert-icon {
    font-weight: bold;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Header */
.ykb-acc-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.ykb-acc-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.ykb-acc-header__left,
.ykb-acc-header__center,
.ykb-acc-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ykb-acc-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #3b82f6, #7c3aed);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

.ykb-acc-logo__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.ykb-acc-user {
    font-size: 14px;
    color: #4b5563;
}

.ykb-acc-link {
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ykb-acc-link:hover {
    color: #111827;
}

.ykb-acc-icon {
    display: inline-block;
}

.ykb-acc-icon--back {
    width: 16px;
    height: 16px;
    border: solid 2px currentColor;
    border-left: 0;
    border-top: 0;
    transform: rotate(135deg);
    border-radius: 2px;
    margin-right: 2px;
}

.ykb-acc-svg {
    display: block;
}

.ykb-acc-svg--16 {
    width: 16px;
    height: 16px;
}

.ykb-acc-svg--white {
    color: #fff;
}

/* Main */
.ykb-acc-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.ykb-acc-section {
    margin-bottom: 20px;
}

.ykb-acc-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.ykb-acc-muted {
    color: #6b7280;
}

/* Actions */
.ykb-acc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: end;
    margin: 16px 0 24px;
}

.ykb-acc-search {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1 1 420px;
}

.ykb-acc-search__wrap {
    position: relative;
    flex: 1;
}

.ykb-acc-icon--search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #9ca3af;
}

.ykb-acc-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: rgba(255, 255, 255, .7);
    transition: box-shadow .2s, border-color .2s;
}

.ykb-acc-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}

.ykb-acc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
    border: 0;
}

.ykb-acc-btn--primary {
    color: #fff;
    background: linear-gradient(90deg, #3b82f6, #7c3aed);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .15);
    transition: transform .2s, box-shadow .2s, filter .2s;
    margin-bottom: 30px;
}

.ykb-acc-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .18);
    filter: brightness(1.02);
}

.ykb-acc-btn--ghost {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.ykb-acc-icon--plus {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    position: relative;
}

.ykb-acc-icon--plus::before,
.ykb-acc-icon--plus::after {
    content: '';
    position: absolute;
    background: #fff;
}

.ykb-acc-icon--plus::before {
    width: 10px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ykb-acc-icon--plus::after {
    width: 2px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Grid + Card */
.ykb-acc-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 768px) {
    .ykb-acc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ykb-acc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ykb-acc-card {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .10);
    transition: transform .2s, box-shadow .2s;
}

.ykb-acc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .12);
}

.ykb-acc-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.ykb-acc-card__head-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ykb-acc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #3b82f6, #7c3aed);
    box-shadow: 0 10px 16px rgba(0, 0, 0, .15);
}

.ykb-acc-icon--user {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 3px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8);
}

.ykb-acc-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px;
}

.ykb-acc-card__sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.ykb-acc-card__body {
    display: grid;
    gap: 10px;
    margin: 12px 0 10px;
}

.ykb-acc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
}

.ykb-acc-row--xs {
    font-size: 12px;
    color: #6b7280;
}

.ykb-acc-meta {
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    display: grid;
    gap: 6px;
}

.ykb-acc-icon--mail,
.ykb-acc-icon--shield,
.ykb-acc-icon--calendar {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    box-shadow: inset 0 0 0 2px #9ca3af;
}

.ykb-acc-icon--more {
    width: 16px;
    height: 16px;
    position: relative;
}

.ykb-acc-icon--more::before,
.ykb-acc-icon--more::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: #6b7280;
    border-radius: 9999px;
}

.ykb-acc-icon--more::before {
    top: 4px;
    box-shadow: 0 5px 0 0 #6b7280, 0 10px 0 0 #6b7280;
}

/* Dropdown (namespaced) */
.ykb-acc-dd-wrap {
    position: relative;
}

.ykb-acc-dd-btn {
    background: none;
    border: 0;
    padding: 4px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
}

.ykb-acc-dd-btn:hover {
    color: #111827;
    background: #f3f4f6;
}

.ykb-acc-dd {
    position: absolute;
    right: 0;
    top: 24px;
    width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    z-index: 60;
}

.is-hidden-acc {
    display: none !important;
}

.ykb-acc-dd__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    background: none;
    border: 0;
    color: #374151;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.ykb-acc-dd__item:hover {
    background: #f9fafb;
}

.ykb-acc-dd__item--danger {
    color: #b91c1c;
}

.ykb-acc-dd__item--danger:hover {
    background: #fef2f2;
}

/* Empty state */
.ykb-acc-empty {
    text-align: center;
    padding: 48px 12px;
}

.ykb-acc-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: #f3f4f6;
    margin: 0 auto 12px;
    box-shadow: inset 0 0 0 2px #e5e7eb;
}

.ykb-acc-empty__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* A11y */
.ykb-acc-text-sm {
    font-size: 12px;
}

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

/* ===== アカウント管理　編集画面 ====== */
.ykb-accedit {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2ff, #ffffff 40%, #f5f3ff);
    font-family: 'Instrument Sans', system-ui, sans-serif;
    color: #111827;
}

/* Header */
.ykb-accedit-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.ykb-accedit-header__inner {
    max-width: 1024px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.ykb-accedit-header__left,
.ykb-accedit-header__center,
.ykb-accedit-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ykb-accedit-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #3b82f6, #7c3aed);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

.ykb-accedit-logo__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.ykb-accedit-link {
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ykb-accedit-link:hover {
    color: #111827;
}

.ykb-accedit-link--danger {
    color: #dc2626;
}

.ykb-accedit-link--danger:hover {
    color: #b91c1c;
}

.ykb-accedit-icon--back {
    width: 16px;
    height: 16px;
    border: solid 2px currentColor;
    border-left: 0;
    border-top: 0;
    transform: rotate(135deg);
    border-radius: 2px;
}

.ykb-accedit-svg {
    display: block;
}

.ykb-accedit-svg--16 {
    width: 16px;
    height: 16px;
}

.ykb-accedit-svg--20 {
    width: 20px;
    height: 20px;
}

.ykb-accedit-svg--24 {
    width: 24px;
    height: 24px;
}

.ykb-accedit-svg--32 {
    width: 32px;
    height: 32px;
}

.ykb-accedit-svg--white {
    color: #fff;
}

.ykb-accedit-svg--blue {
    color: #2563eb;
}

/* Main */
.ykb-accedit-main {
    max-width: 1024px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.ykb-accedit-section {
    margin-bottom: 20px;
}

.ykb-accedit-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.ykb-accedit-muted {
    color: #6b7280;
}

/* Card */
.ykb-accedit-card {
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .10);
}

.ykb-accedit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width:1024px) {
    .ykb-accedit-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ykb-accedit-sec-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ykb-accedit-fields {
    display: grid;
    gap: 16px;
}

.ykb-accedit-field {
    display: grid;
    gap: 8px;
}

.ykb-accedit-label {
    font-size: 14px;
    color: #374151;
}

.ykb-accedit-required {
    color: #ef4444;
}

.ykb-accedit-input {
    width: 95%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    transition: border-color .2s, box-shadow .2s;
}

.ykb-accedit-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}

.ykb-accedit-pwdwrap {
    position: relative;
}

.ykb-accedit-error {
    color:red;
}

.ykb-accedit-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 0;
    background: #fff;
    box-shadow: 0 0 0 1px #e5e7eb inset;
    cursor: pointer;
}

.ykb-accedit-eye:hover {
    background: #f9fafb;
}

.ykb-accedit-eye::before,
.ykb-accedit-eye::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 10px;
    border: 2px solid #6b7280;
    border-radius: 20px / 12px;
    background: transparent;
}

.ykb-accedit-eye::after {
    width: 6px;
    height: 6px;
    border: 0;
    background: #6b7280;
    border-radius: 9999px;
}

.ykb-accedit-eye.is-open-accedit::before {
    border-color: #2563eb;
}

.ykb-accedit-eye.is-open-accedit::after {
    background: #2563eb;
}

/* password hint */
.ykb-accedit-hint {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 12px;
}

.ykb-accedit-hint h4 {
    color: #1d4ed8;
    font-size: 13px;
    margin-bottom: 6px;
}

.ykb-accedit-hint ul {
    margin: 0;
    padding-left: 16px;
    color: #1e40af;
    font-size: 12px;
}

/* account kv */
.ykb-accedit-divider {
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

.ykb-accedit-kv {
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.ykb-accedit-kv>div {
    display: flex;
    justify-content: space-between;
}

/* Footer actions */
.ykb-accedit-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.ykb-accedit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 16px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

.ykb-accedit-btn--green {
    color: #fff;
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .15);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.ykb-accedit-btn--green:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .18);
    filter: brightness(1.02);
}

.ykb-accedit-btn--ghost {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.ykb-accedit-btn--danger {
    background: #dc2626;
    color: #fff;
}

.ykb-accedit-btn--danger:hover {
    background: #b91c1c;
}

/* Overlay (saving) */
.ykb-accedit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 70;
}

.ykb-accedit-hidden {
    display: none !important;
}

.ykb-accedit-overlay__card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: min(92vw, 420px);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .2);
    text-align: center;
}

.ykb-accedit-overlay__icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
}

.ykb-accedit-circle {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(90deg, #34d399, #059669);
    animation: ykb-accedit-pulse 1.2s infinite ease-in-out;
}

@keyframes ykb-accedit-pulse {
    0% {
        transform: scale(1);
        opacity: .35
    }

    70% {
        transform: scale(1.2);
        opacity: .15
    }

    100% {
        transform: scale(1);
        opacity: .35
    }
}

.ykb-accedit-overlay__title {
    font-weight: 700;
    margin: 6px 0;
}

.ykb-accedit-overlay__text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.ykb-accedit-progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.ykb-accedit-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Modal (delete) */
.ykb-accedit-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.ykb-accedit-modal__content {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    width: min(92vw, 480px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .2);
}

.ykb-accedit-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: #fee2e2;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
}

.ykb-accedit-modal__title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ykb-accedit-modal__text {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.ykb-accedit-modal__actions {
    display: flex;
    gap: 10px;
}

.ykb-accedit-text-sm {
    font-size: 12px;
}

.password-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}
