:root {
    --bg: #0b0f0e;
    --surface: #111715;
    --surface-2: #151c1a;
    --surface-3: #1a2320;
    --surface-warm: #1d1b15;
    --text: #f3f5ef;
    --text-soft: #aeb8b2;
    --text-muted: #77817b;
    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.15);
    --green: #b7f34a;
    --green-deep: #7fb51f;
    --green-soft: rgba(183, 243, 74, 0.12);
    --blue: #71b7ff;
    --orange: #ffad72;
    --purple: #b8a2ff;
    --red: #ff7e76;
    --sidebar: 248px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --font: "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 78% 8%, rgba(92, 132, 98, 0.09), transparent 28%),
        radial-gradient(circle at 22% 90%, rgba(183, 243, 74, 0.035), transparent 28%),
        var(--bg);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.18;
}

.ambient-one {
    top: -220px;
    right: 5%;
    background: #3d7150;
}

.ambient-two {
    bottom: -280px;
    left: 20%;
    background: #65891f;
    opacity: 0.08;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: var(--sidebar);
    padding: 28px 18px 20px;
    background: rgba(9, 13, 12, 0.88);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(24px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    background: #eef2e9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

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

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.side-nav {
    display: grid;
    gap: 5px;
    margin-top: 48px;
}

.nav-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr 8px;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 12px 13px;
    color: var(--text-muted);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-item:hover {
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
}

.nav-item.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--line);
}

.nav-icon {
    font-size: 1.05rem;
    text-align: center;
}

.nav-item > span:nth-child(2) {
    font-size: 0.82rem;
    font-weight: 600;
}

.nav-dot {
    width: 6px;
    height: 6px;
    background: transparent;
    border-radius: 50%;
}

.nav-item.active .nav-dot {
    background: var(--green);
    box-shadow: 0 0 12px rgba(183, 243, 74, 0.65);
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-insight {
    margin: 16px 4px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(183, 243, 74, 0.08), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(183, 243, 74, 0.12);
    border-radius: 15px;
}

.sidebar-insight p {
    margin: 9px 0 0;
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.65;
}

.eyebrow {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.profile-button {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background 160ms ease;
}

.profile-button:hover {
    background: rgba(255, 255, 255, 0.04);
}

.profile-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #19200f;
    background: var(--green);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

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

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

.profile-copy strong {
    font-size: 0.76rem;
    font-weight: 650;
}

.profile-copy small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.62rem;
}

.profile-more {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.workspace {
    min-height: 100vh;
    margin-left: var(--sidebar);
    padding: 0 clamp(26px, 4.2vw, 72px) 80px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    border-bottom: 1px solid var(--line);
}

.topbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 18px;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.topbar-date {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft);
    font-size: 0.72rem;
}

.topbar-date::before {
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    content: "";
}

.topbar-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.save-status {
    display: flex;
    gap: 7px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.66rem;
}

.save-status span {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
}

.quiet-button,
.shuffle-button,
.copy-button,
.icon-button {
    border: 1px solid var(--line);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.quiet-button {
    padding: 9px 13px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 10px;
    font-size: 0.68rem;
}

.quiet-button:hover,
.shuffle-button:hover,
.copy-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.065);
    border-color: var(--line-strong);
}

.view {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    animation: viewIn 280ms ease both;
}

.view.active {
    display: block;
}

@keyframes viewIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 60px;
    align-items: end;
    padding: clamp(50px, 7vw, 92px) 0 42px;
}

.view-heading h1 {
    max-width: 760px;
    margin: 13px 0 0;
    font-size: clamp(2.3rem, 4.6vw, 4.75rem);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 1.06;
}

.view-heading > p {
    max-width: 430px;
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.8;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.7fr);
    gap: 16px;
}

.focus-card,
.progress-card,
.topic-card,
.brief-main,
.brief-side,
.mandala-panel,
.strategy-detail,
.review-form,
.diagnosis-card,
.archive-panel,
.archive-stats article {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.focus-card {
    position: relative;
    min-height: 328px;
    overflow: hidden;
    padding: clamp(26px, 4vw, 42px);
    background:
        linear-gradient(120deg, rgba(183, 243, 74, 0.11), transparent 44%),
        radial-gradient(circle at 92% 12%, rgba(183, 243, 74, 0.14), transparent 33%),
        var(--surface);
    border-color: rgba(183, 243, 74, 0.18);
    border-radius: var(--radius-xl);
}

.focus-card::after {
    position: absolute;
    z-index: 0;
    top: -170px;
    right: -140px;
    width: 420px;
    height: 420px;
    background: repeating-radial-gradient(circle, rgba(183, 243, 74, 0.08) 0 1px, transparent 1px 22px);
    border-radius: 50%;
    content: "";
}

.focus-card > * {
    position: relative;
    z-index: 1;
}

.focus-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.focus-badge {
    display: inline-flex;
    padding: 7px 10px;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid rgba(183, 243, 74, 0.18);
    border-radius: 100px;
    font-size: 0.62rem;
    font-weight: 750;
}

.focus-time {
    color: var(--text-muted);
    font-size: 0.66rem;
}

.focus-kicker {
    display: block;
    margin-top: 38px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.focus-card h2 {
    max-width: 750px;
    margin: 10px 0 12px;
    font-size: clamp(1.65rem, 3vw, 2.75rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.18;
}

.focus-card p {
    max-width: 690px;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.75;
}

.focus-footer {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 28px;
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
    padding: 12px 17px;
    color: #10150c;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(183, 243, 74, 0.12);
    transition: transform 160ms ease, background 160ms ease;
}

.primary-button:hover {
    background: #c6fa65;
    transform: translateY(-1px);
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button.full {
    width: 100%;
}

.text-button {
    padding: 8px 0;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    font-size: 0.69rem;
    cursor: pointer;
}

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

.progress-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 328px;
    padding: 30px;
    background: var(--surface);
    border-radius: var(--radius-xl);
}

.progress-ring {
    display: grid;
    width: 116px;
    height: 116px;
    place-items: center;
    background: conic-gradient(var(--green) var(--progress), rgba(255,255,255,0.06) 0);
    border-radius: 50%;
    transition: background 300ms ease;
}

.progress-ring::before {
    position: absolute;
    width: 96px;
    height: 96px;
    background: var(--surface);
    border-radius: 50%;
    content: "";
}

.progress-ring div {
    position: relative;
    z-index: 1;
}

.progress-ring strong {
    font-size: 2.15rem;
    font-weight: 600;
    letter-spacing: -0.06em;
}

.progress-ring span {
    margin-left: 2px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.progress-card h3 {
    margin: 9px 0 7px;
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.progress-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.65;
}

.content-section {
    padding-top: 68px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -0.035em;
}

.section-note {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.action-list {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.action-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    min-height: 96px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    transition: background 160ms ease;
}

.action-item:last-child {
    border-bottom: 0;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.018);
}

.action-check {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: transparent;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    cursor: pointer;
    transition: all 160ms ease;
}

.action-check:hover {
    border-color: rgba(183, 243, 74, 0.48);
}

.action-item.done .action-check {
    color: #11170c;
    background: var(--green);
    border-color: var(--green);
}

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

.action-type {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.action-copy strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 620;
}

.action-copy p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    line-height: 1.55;
}

.action-duration {
    color: var(--text-muted);
    font-size: 0.64rem;
    white-space: nowrap;
}

.action-link {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--text-soft);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.action-item.done .action-copy strong,
.action-item.done .action-copy p {
    opacity: 0.46;
    text-decoration: line-through;
}

.shuffle-button,
.copy-button {
    padding: 9px 13px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 10px;
    font-size: 0.68rem;
}

.shuffle-button span {
    display: inline-block;
    margin-right: 5px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.topic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 292px;
    padding: 23px;
    text-align: left;
    background: var(--surface);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topic-card:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

.topic-card.selected {
    background: linear-gradient(150deg, rgba(183, 243, 74, 0.08), var(--surface) 58%);
    border-color: rgba(183, 243, 74, 0.38);
}

.topic-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.topic-kind {
    display: inline-flex;
    padding: 5px 8px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 0.57rem;
    font-weight: 750;
}

.topic-fit {
    color: var(--green);
    font-size: 0.62rem;
    font-weight: 700;
}

.topic-card h3 {
    margin: 28px 0 12px;
    font-size: clamp(1.08rem, 1.8vw, 1.36rem);
    font-weight: 620;
    letter-spacing: -0.035em;
    line-height: 1.45;
}

.topic-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.7;
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 24px;
}

.topic-meta span {
    padding: 4px 7px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    font-size: 0.58rem;
}

.production-section {
    padding-bottom: 10px;
}

.production-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
    gap: 14px;
}

.brief-main,
.brief-side {
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.brief-main {
    min-height: 390px;
    padding: clamp(24px, 3.5vw, 38px);
}

.brief-side {
    overflow: hidden;
}

.brief-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.brief-number {
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.fit-score {
    color: var(--green);
    font-size: 0.62rem;
}

.brief-main h3 {
    max-width: 780px;
    margin: 18px 0 24px;
    font-size: clamp(1.4rem, 2.5vw, 2.15rem);
    font-weight: 620;
    letter-spacing: -0.04em;
    line-height: 1.35;
}

.hook-box {
    padding: 16px 18px;
    background: var(--green-soft);
    border-left: 2px solid var(--green);
    border-radius: 0 10px 10px 0;
}

.hook-box span,
.brief-label {
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hook-box p {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 0.76rem;
    line-height: 1.7;
}

.outline-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: outline;
}

.outline-list li {
    position: relative;
    padding-left: 34px;
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.65;
    counter-increment: outline;
}

.outline-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 7px;
    content: counter(outline, decimal-leading-zero);
    font-size: 0.52rem;
}

.brief-block {
    padding: 25px;
    border-bottom: 1px solid var(--line);
}

.brief-block:last-child {
    border-bottom: 0;
}

.brief-block ul {
    display: grid;
    gap: 9px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
}

.brief-block li {
    position: relative;
    padding-left: 15px;
    color: var(--text-soft);
    font-size: 0.7rem;
    line-height: 1.55;
}

.brief-block li::before {
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    background: var(--green);
    border-radius: 50%;
    content: "";
}

.brief-block p {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.7;
}

.platform-note {
    background: rgba(113, 183, 255, 0.035);
}

/* Strategy */
.strategy-layout {
    display: grid;
    grid-template-columns: minmax(620px, 1.45fr) minmax(300px, 0.55fr);
    gap: 16px;
}

.mandala-panel,
.strategy-detail {
    background: var(--surface);
    border-radius: var(--radius-xl);
}

.mandala-panel {
    padding: clamp(20px, 3vw, 30px);
}

.mandala-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 22px;
    margin-bottom: 18px;
}

.mandala-legend span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.61rem;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.legend-dot.traffic { background: var(--orange); }
.legend-dot.trust { background: var(--blue); }
.legend-dot.conversion { background: var(--purple); }
.legend-dot.compound { background: var(--green); }

.mandala-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    gap: 7px;
}

.mandala-cell {
    position: relative;
    display: grid;
    min-height: 94px;
    padding: 10px;
    place-items: center;
    color: var(--text-soft);
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mandala-cell:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.mandala-cell::after {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 4px;
    height: 4px;
    background: var(--cell-color, var(--text-muted));
    border-radius: 50%;
    content: "";
    opacity: 0.75;
}

.mandala-cell[data-zone="traffic"] { --cell-color: var(--orange); }
.mandala-cell[data-zone="trust"] { --cell-color: var(--blue); }
.mandala-cell[data-zone="conversion"] { --cell-color: var(--purple); }
.mandala-cell[data-zone="compound"] { --cell-color: var(--green); }
.mandala-cell[data-zone="spine"] { --cell-color: #f3f5ef; }

.mandala-cell.core {
    color: #11170c;
    background: var(--green);
    border-color: var(--green);
    font-weight: 850;
}

.mandala-cell.core::after {
    background: #11170c;
}

.mandala-cell.recommended:not(.core) {
    background: rgba(183, 243, 74, 0.09);
    border-color: rgba(183, 243, 74, 0.34);
    box-shadow: inset 0 0 0 1px rgba(183, 243, 74, 0.03);
}

.mandala-cell.selected:not(.core) {
    color: var(--text);
    border-color: var(--green);
}

.strategy-detail {
    display: flex;
    flex-direction: column;
    padding: 32px;
}

.detail-index {
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.strategy-chip {
    align-self: flex-start;
    margin-top: 30px;
    padding: 6px 9px;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
}

.strategy-detail h2 {
    margin: 14px 0 10px;
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -0.045em;
}

.strategy-detail > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.8;
}

.detail-rule {
    margin: 30px 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.026);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.detail-rule span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.58rem;
}

.detail-rule strong {
    display: block;
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.7;
}

.strategy-detail .primary-button {
    margin-top: auto;
}

.spine-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.spine-grid article {
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.spine-grid span,
.spine-grid strong {
    display: block;
}

.spine-grid span {
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 0.58rem;
}

.spine-grid strong {
    color: var(--text-soft);
    font-size: 0.69rem;
    font-weight: 600;
}

/* Review */
.review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
    gap: 16px;
}

.review-form,
.diagnosis-card {
    padding: clamp(24px, 3.5vw, 36px);
    background: var(--surface);
    border-radius: var(--radius-xl);
}

.form-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 28px;
}

.form-head h2 {
    margin: 8px 0 0;
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.form-head > span {
    color: var(--text-muted);
    font-size: 0.62rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    margin-bottom: 24px;
}

.metric-grid label > span,
.profile-grid label > span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.67rem;
    font-weight: 550;
}

.input-with-unit {
    position: relative;
}

.input-with-unit input,
.profile-grid input,
.profile-grid select {
    width: 100%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.input-with-unit input {
    height: 48px;
    padding: 0 52px 0 14px;
}

.input-with-unit input:focus,
.profile-grid input:focus,
.profile-grid select:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(183, 243, 74, 0.48);
}

.input-with-unit em {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-style: normal;
    transform: translateY(-50%);
}

.diagnosis-card {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 90% 8%, rgba(113, 183, 255, 0.1), transparent 34%),
        var(--surface);
}

.diagnosis-icon {
    display: grid;
    width: 45px;
    height: 45px;
    margin-bottom: 34px;
    place-items: center;
    color: var(--blue);
    background: rgba(113, 183, 255, 0.08);
    border: 1px solid rgba(113, 183, 255, 0.16);
    border-radius: 13px;
    font-size: 1.1rem;
}

.diagnosis-card h2 {
    margin: 12px 0 10px;
    font-size: 1.65rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.diagnosis-card > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.75;
}

.diagnosis-metric,
.diagnosis-next {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.diagnosis-metric span,
.diagnosis-next span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.58rem;
}

.diagnosis-metric strong {
    font-size: 1.15rem;
    font-weight: 650;
}

.diagnosis-next p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.7rem;
    line-height: 1.7;
}

/* Archive */
.archive-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.archive-stats article {
    padding: 23px;
    background: var(--surface);
    border-radius: var(--radius-md);
}

.archive-stats span {
    display: block;
    color: var(--text-muted);
    font-size: 0.63rem;
}

.archive-stats strong {
    display: block;
    margin-top: 18px;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.06em;
}

.archive-stats small {
    margin-left: 4px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0;
}

.archive-panel {
    margin-top: 16px;
    padding: 28px;
    background: var(--surface);
    border-radius: var(--radius-xl);
}

.section-heading.compact {
    margin-bottom: 12px;
}

.history-list {
    display: grid;
}

.history-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.history-item:last-child {
    border-bottom: 0;
}

.history-date {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.history-copy strong,
.history-copy span {
    display: block;
}

.history-copy strong {
    font-size: 0.76rem;
    font-weight: 600;
}

.history-copy span {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.63rem;
}

.history-score {
    padding: 6px 9px;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
}

.empty-history {
    display: grid;
    min-height: 240px;
    place-items: center;
    color: var(--text-muted);
    text-align: center;
}

.empty-history div {
    max-width: 300px;
}

.empty-history strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.empty-history p {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.7;
}

/* Dialog */
.profile-dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    padding: 0;
    color: var(--text);
    background: #111715;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    box-shadow: 0 36px 120px rgba(0, 0, 0, 0.62);
}

.profile-dialog::backdrop {
    background: rgba(3, 6, 5, 0.78);
    backdrop-filter: blur(12px);
}

.profile-dialog form {
    padding: clamp(24px, 4vw, 38px);
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: start;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
    margin: 9px 0 7px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 650;
    letter-spacing: -0.045em;
}

.dialog-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.dialog-close {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    padding: 28px 0;
}

.profile-grid .full-field {
    grid-column: 1 / -1;
}

.profile-grid label small {
    color: var(--text-muted);
    font-weight: 400;
}

.profile-grid input,
.profile-grid select {
    height: 46px;
    padding: 0 13px;
}

.profile-grid select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.profile-grid option {
    color: var(--text);
    background: var(--surface);
}

.dialog-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.dialog-footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.62rem;
}

.toast {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 28px;
    padding: 11px 16px;
    color: #11170c;
    background: var(--green);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.4);
    font-size: 0.7rem;
    font-weight: 750;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

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

.mobile-header,
.mobile-nav {
    display: none;
}

@media (max-width: 1120px) {
    :root { --sidebar: 220px; }

    .strategy-layout {
        grid-template-columns: 1fr;
    }

    .strategy-detail {
        min-height: 340px;
    }

    .strategy-detail .primary-button {
        width: auto;
        align-self: flex-start;
    }

    .mandala-grid {
        grid-template-columns: repeat(5, minmax(82px, 1fr));
    }
}

@media (max-width: 900px) {
    body { padding-bottom: 74px; }

    .sidebar { display: none; }

    .mobile-header {
        position: sticky;
        z-index: 35;
        top: 0;
        display: flex;
        justify-content: space-between;
        gap: 18px;
        align-items: center;
        height: 62px;
        padding: 0 20px;
        background: rgba(9, 13, 12, 0.88);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(20px);
    }

    .mobile-brand {
        display: flex;
        gap: 9px;
        align-items: center;
        color: var(--text);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 650;
    }

    .mobile-brand img {
        width: 30px;
        height: 30px;
        object-fit: cover;
        background: #eef2e9;
        border-radius: 9px;
    }

    .icon-button {
        display: grid;
        width: 34px;
        height: 34px;
        padding: 0;
        place-items: center;
        color: var(--text-soft);
        background: rgba(255, 255, 255, 0.035);
        border-radius: 10px;
    }

    .workspace {
        margin-left: 0;
        padding-inline: 20px;
    }

    .topbar { display: none; }

    .mobile-nav {
        position: fixed;
        z-index: 50;
        left: 50%;
        bottom: 12px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: min(420px, calc(100vw - 24px));
        padding: 7px;
        background: rgba(17, 23, 21, 0.94);
        border: 1px solid var(--line-strong);
        border-radius: 17px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.52);
        backdrop-filter: blur(20px);
    }

    .mobile-nav button {
        display: grid;
        gap: 3px;
        padding: 6px 4px;
        color: var(--text-muted);
        background: transparent;
        border: 0;
        border-radius: 11px;
        font-size: 0.57rem;
    }

    .mobile-nav button span {
        font-size: 0.95rem;
    }

    .mobile-nav button.active {
        color: var(--text);
        background: rgba(255,255,255,0.055);
    }

    .view-heading {
        padding-top: 58px;
    }

    .hero-grid,
    .production-grid,
    .review-layout {
        grid-template-columns: 1fr;
    }

    .progress-card {
        display: grid;
        grid-template-columns: 116px 1fr;
        gap: 26px;
        align-items: center;
        min-height: auto;
    }
}

@media (max-width: 700px) {
    .workspace {
        padding-inline: 14px;
    }

    .view-heading {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 42px 4px 30px;
    }

    .view-heading h1 {
        font-size: clamp(2.1rem, 11vw, 3.15rem);
    }

    .view-heading > p {
        font-size: 0.76rem;
    }

    .focus-card,
    .progress-card,
    .mandala-panel,
    .strategy-detail,
    .review-form,
    .diagnosis-card,
    .archive-panel {
        border-radius: 20px;
    }

    .focus-card {
        min-height: 350px;
        padding: 24px;
    }

    .focus-kicker {
        margin-top: 34px;
    }

    .focus-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .progress-card {
        grid-template-columns: 92px 1fr;
        gap: 20px;
        padding: 22px;
    }

    .progress-ring {
        width: 92px;
        height: 92px;
    }

    .progress-ring::before {
        width: 76px;
        height: 76px;
    }

    .progress-ring strong {
        font-size: 1.7rem;
    }

    .content-section {
        padding-top: 54px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-note { display: none; }

    .action-item {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 108px;
        padding: 17px 15px;
    }

    .action-duration { display: none; }

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

    .topic-card {
        min-height: 240px;
    }

    .brief-main,
    .brief-block {
        padding: 22px;
    }

    .strategy-layout {
        display: block;
    }

    .mandala-panel {
        overflow-x: auto;
        padding: 16px;
    }

    .mandala-legend {
        min-width: 540px;
    }

    .mandala-grid {
        min-width: 540px;
    }

    .mandala-cell {
        min-height: 84px;
    }

    .strategy-detail {
        margin-top: 14px;
        padding: 24px;
    }

    .spine-grid,
    .archive-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid .full-field {
        grid-column: auto;
    }

    .dialog-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .dialog-footer .primary-button {
        width: 100%;
    }

    .history-item {
        grid-template-columns: 74px 1fr;
    }

    .history-score {
        display: none;
    }
}

@media (max-width: 430px) {
    .view-heading h1 {
        font-size: 2.25rem;
    }

    .focus-card h2 {
        font-size: 1.55rem;
    }

    .focus-card-head {
        align-items: flex-start;
    }

    .focus-time {
        text-align: right;
    }

    .section-heading h2 {
        font-size: 1.28rem;
    }

    .shuffle-button,
    .copy-button {
        padding-inline: 10px;
    }

    .archive-stats article {
        padding: 18px;
    }

    .archive-stats strong {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
