:root {
  --paper: #f8f9f5;
  --sidebar: #f0f2ec;
  --white: #fff;
  --ink: #252a24;
  --muted: #777d73;
  --faint: #a4aa9f;
  --line: #e1e5dc;
  --green: #53634e;
  --green-dark: #3e4d3a;
  --green-light: #e7ece2;
  --sand: #d8b68c;
  --danger: #a34c43;
  --sidebar-width: 278px;
  --shadow: 0 16px 48px rgba(41, 51, 36, .1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, textarea, select { color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid #aab8a1; outline-offset: 1px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; }
.boot { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: url("/assets/app-icon.webp") center / cover no-repeat var(--green); font-size: 0; }
.hidden { display: none !important; }

.login-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(440px, .92fr); background: #f7f8f4; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 64px; overflow: hidden; background: var(--green); color: #f9faf4; }
.login-story::after { content: "C"; position: absolute; right: -55px; bottom: -190px; color: rgba(255,255,255,.045); font: 620px/1 Georgia, serif; pointer-events: none; }
.login-art { position: relative; z-index: 1; justify-self: end; width: min(300px, 62%); margin: 24px 0 28px; border-radius: 20px; box-shadow: 0 28px 60px rgba(0, 0, 0, .28); }
.login-brand { display: flex; align-items: center; gap: 12px; font: 30px Georgia, serif; letter-spacing: -.5px; }
.login-brand small { font: 10px -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: 2.4px; opacity: .65; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.25); }
.login-quote { position: relative; z-index: 1; max-width: 490px; }
.login-quote h1 { margin: 0 0 22px; font: 400 clamp(38px, 4vw, 58px)/1.35 Georgia, "Songti SC", serif; letter-spacing: -1px; }
.login-quote p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.9; font-size: 15px; }
.login-foot { font-size: 11px; letter-spacing: 1px; opacity: .5; }
.login-form-side { display: grid; place-items: center; padding: 36px; }
.login-form { width: min(360px, 100%); }
.login-form .brand-mark { margin-bottom: 30px; }
.login-form h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.7px; }
.login-form > p { color: var(--muted); line-height: 1.7; margin: 0 0 32px; }
.field-label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 600; color: #596055; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; height: 49px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 0 45px 0 14px; }
.password-wrap button { position: absolute; right: 7px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); }
.primary-button { border: 0; border-radius: 9px; background: var(--green); color: white; min-height: 42px; padding: 0 18px; font-weight: 600; transition: background .18s, transform .18s; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:active { transform: translateY(1px); }
.login-submit { width: 100%; height: 48px; margin-top: 18px; }
.login-error { min-height: 22px; margin-top: 10px; color: var(--danger); font-size: 12px; }
.login-privacy { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 11px; margin-top: 28px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; min-width: 0; background: var(--sidebar); border-right: 1px solid var(--line); z-index: 20; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 20px 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font: 29px/1 Georgia, serif; letter-spacing: -.8px; }
.brand-label { font-size: 8px; letter-spacing: 2px; color: var(--muted); margin-top: 5px; }
.mobile-close { display: none !important; }
.new-chat { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 22px; padding: 0 14px; height: 43px; background: var(--green); color: #fff; border: 0; border-radius: 9px; font-size: 13px; font-weight: 600; }
.new-chat > span { display: flex; align-items: center; gap: 9px; }
.new-chat .shortcut { opacity: .5; font-size: 10px; font-weight: 400; }
.sidebar-scroll { min-height: 0; overflow-y: auto; padding: 0 10px 16px; scrollbar-width: thin; scrollbar-color: #d7dcd1 transparent; }
.nav-section { margin-bottom: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; margin: 0 0 7px; color: #888f83; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; }
.section-heading button { border: 0; background: transparent; padding: 3px; color: #7a8275; display: grid; place-items: center; border-radius: 4px; }
.section-heading button:hover { background: #e1e5db; }
.workspace-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; border: 0; border-radius: 8px; padding: 6px 8px 6px 10px; background: transparent; text-align: left; margin-bottom: 2px; }
.workspace-item:hover { background: rgba(255,255,255,.55); }
.workspace-item.active { background: #fff; box-shadow: 0 1px 3px rgba(41,51,36,.05); }
.workspace-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.workspace-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.workspace-count { color: var(--faint); font-size: 10px; }
.workspace-edit { display: grid; place-items: center; width: 25px; height: 25px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; opacity: 0; }
.workspace-item:hover .workspace-edit, .workspace-item.active .workspace-edit { opacity: 1; }
.chat-list-title { padding: 14px 10px 7px; color: #888f83; font-size: 10px; font-weight: 600; letter-spacing: 1.2px; }
.chat-item { position: relative; display: flex; align-items: center; gap: 9px; border-radius: 8px; min-height: 39px; padding: 0 4px 0 10px; color: #5e655a; }
.chat-item:hover { background: rgba(255,255,255,.55); }
.chat-item.active { background: #e4e9de; color: var(--ink); }
.chat-select { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; height: 39px; padding: 0; border: 0; background: transparent; text-align: left; }
.chat-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.chat-select .chat-generating { flex-shrink: 0; color: var(--green); font-size: 9px; font-weight: 600; }
.chat-select .chat-generating::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #8a9b7c; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.chat-delete { width: 27px; height: 27px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); opacity: 0; border-radius: 5px; }
.chat-item:hover .chat-delete { opacity: 1; }
.chat-delete:hover { color: var(--danger); background: #f8ece8; }
.empty-nav { padding: 14px 12px; color: var(--faint); font-size: 12px; line-height: 1.6; }
.sidebar-foot { padding: 13px 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: #dce2d5; color: var(--green); font: 20px Georgia, serif; }
.profile-copy { flex: 1; min-width: 0; }
.profile-copy strong { display: block; font-size: 12px; font-weight: 600; }
.profile-copy span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.icon-button:hover { background: rgba(83,99,78,.08); color: var(--ink); }
.main { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100dvh; background: var(--paper); }
.topbar { height: 66px; flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid rgba(225,229,220,.7); }
.menu-button { display: none; }
.topbar-title { min-width: 0; flex: 1; }
.topbar-title strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 5px; }
.topbar-text-button { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; }
.topbar-text-button:hover { background: var(--green-light); color: var(--green-dark); }
.model-select { height: 34px; max-width: 155px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 28px 0 10px; font-size: 11px; color: #4f574b; }
.model-select.effort-select { max-width: 88px; padding: 0 22px 0 8px; color: var(--green-dark); }
.conversation { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.conversation-inner { width: min(790px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 30px; }
.welcome { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 10px 0 24px; }
.welcome-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 16px; }
.welcome-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--green); }
.welcome h1 { margin: 0; font: 400 clamp(30px, 4vw, 43px)/1.35 Georgia, "Songti SC", "SimSun", serif; letter-spacing: -1px; }
.welcome h1 em { color: var(--green); font-style: normal; }
.welcome > p { color: var(--muted); line-height: 1.8; margin: 14px 0 30px; font-size: 14px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.skill-card { position: relative; min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.65); text-align: left; transition: border .18s, background .18s, transform .18s; }
.skill-card:hover { border-color: #b4c0ab; background: #fff; transform: translateY(-2px); }
.skill-card .skill-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--green-light); color: var(--green); margin-bottom: 11px; }
.skill-card strong { display: block; font-size: 13px; margin-bottom: 6px; }
.skill-card p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; padding-right: 8px; }
.skill-card > .icon { position: absolute; top: 20px; right: 16px; width: 14px; color: var(--faint); }
.all-skills { align-self: center; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--green); font-size: 11px; padding: 18px 12px 0; }
.welcome-links { display: flex; align-items: center; justify-content: center; gap: 4px; }
.welcome-links .all-skills:first-child { color: var(--green-dark); font-weight: 600; }
.message { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 13px; margin-bottom: 31px; }
.message-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e5e9df; color: var(--green); font: 17px Georgia, serif; }
.message.user .message-avatar { border-radius: 50%; background: #e8e1d7; color: #766856; }
.message-main { padding-top: 3px; min-width: 0; }
.message-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 11px; font-weight: 600; }
.message-meta time { font-size: 9px; color: var(--faint); font-weight: 400; }
.message-content { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.message.user .message-content { white-space: normal; color: #3f463c; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { margin: 0 0 13px; }
.message-content h1, .message-content h2, .message-content h3 { line-height: 1.45; margin: 24px 0 10px; letter-spacing: -.3px; }
.message-content h1 { font-size: 20px; }
.message-content h2 { font-size: 17px; }
.message-content h3 { font-size: 15px; }
.message-content ul, .message-content ol { padding-left: 22px; margin: 9px 0 15px; }
.message-content li { margin: 4px 0; padding-left: 2px; }
.message-content strong { font-weight: 650; color: #20291d; }
.message-content code { background: #e9ede4; padding: 2px 5px; border-radius: 4px; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.message-content pre { background: #293027; color: #eef1e9; border-radius: 10px; padding: 15px; overflow-x: auto; }
.message-content pre code { color: inherit; background: none; padding: 0; }
.message-content blockquote { margin: 13px 0; border-left: 3px solid #bdc9b3; padding: 4px 14px; color: var(--muted); }
.message-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 9px; }
.table-toolbar { display: flex; position: sticky; left: 0; justify-content: flex-end; min-width: fit-content; padding: 5px 8px; border-bottom: 1px solid var(--line); background: #fafbf8; }
.table-toolbar button { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border: 0; border-radius: 5px; background: transparent; color: var(--green); font-size: 10px; white-space: nowrap; }
.table-toolbar button:hover { background: var(--green-light); }
.message-content table { width: 100%; border-collapse: collapse; font-size: 12px; }
.message-content th { background: #edf0e8; text-align: left; font-weight: 600; }
.message-content th, .message-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 90px; vertical-align: top; }
.message-content tr:last-child td { border-bottom: 0; }
.message-actions { display: flex; gap: 3px; margin-top: 8px; opacity: 0; transition: opacity .15s; }
.message:hover .message-actions, .message-actions:focus-within { opacity: 1; }
.message-actions button { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); padding: 5px 7px; border-radius: 5px; font-size: 10px; }
.message-actions button:hover { background: var(--green-light); }
.skill-badge { display: inline-block; margin-left: 7px; padding: 2px 5px; border-radius: 4px; background: #eef1e8; color: var(--green); font-size: 8px; font-weight: 600; letter-spacing: .3px; vertical-align: 2px; }
.generated-image { display: block; width: fit-content; max-width: 100%; margin: 14px 0 18px; }
.generated-preview { display: block; overflow: hidden; border: 1px solid #dfe4d9; border-radius: 13px; background: #edf0e8; box-shadow: 0 8px 24px rgba(43,53,38,.08); }
.generated-preview img { display: block; width: auto; max-width: min(100%, 720px); max-height: 68vh; object-fit: contain; transition: transform .25s ease; }
.generated-preview:hover img { transform: scale(1.008); }
.generated-actions { display: flex; align-items: center; gap: 14px; padding: 9px 2px 0; }
.generated-actions a, .generated-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; background: transparent; color: var(--green); font-size: 10px; text-decoration: none; }
.generated-actions a:hover, .generated-actions button:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.message.user .generated-image { max-width: 320px; }
.message.user .generated-actions { display: none; }
.image-waiting { position: relative; display: flex; align-items: center; gap: 10px; width: min(420px, 100%); min-height: 82px; padding: 16px; overflow: hidden; border: 1px solid #dfe5d8; border-radius: 12px; background: linear-gradient(115deg, #f0f3eb, #faf9f3, #eef2e9); background-size: 200% 100%; animation: image-shimmer 2.4s ease infinite; }
.image-waiting-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: #fff; color: var(--green); box-shadow: 0 3px 10px rgba(43,53,38,.06); }
.image-waiting > span:nth-child(2) { flex: 1; }
.image-waiting strong { display: block; font-size: 12px; }
.image-waiting small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.image-waiting > i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); animation: thinking 1.2s infinite ease-in-out; }
.image-waiting > i:nth-last-child(2) { animation-delay: .15s; }
.image-waiting > i:last-child { animation-delay: .3s; }
@keyframes image-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.reference-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px 3px; }
.reference-item { position: relative; display: block; width: 62px; height: 62px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.reference-item img { width: 100%; height: 100%; border-radius: 7px; object-fit: cover; }
.reference-item button { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); box-shadow: 0 2px 5px rgba(0,0,0,.08); }
.reference-hint { color: var(--faint); font-size: 9px; }
.image-composer { border-color: #aebba4; box-shadow: 0 5px 20px rgba(68,88,58,.08); }
.image-mode-trigger { color: var(--green); }
.thinking { display: inline-flex; align-items: center; gap: 5px; height: 25px; color: var(--muted); }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: thinking 1.2s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: .15s; }
.thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes thinking { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.streaming-cursor::after { content: ""; display: inline-block; width: 6px; height: 15px; background: #93a389; margin-left: 4px; vertical-align: -2px; animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer-area { flex-shrink: 0; padding: 10px 24px 15px; background: var(--paper); }
.composer-wrap { width: min(790px, 100%); margin: 0 auto; }
.skill-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 7px 5px; padding: 5px 8px; border-radius: 6px; background: var(--green-light); color: var(--green-dark); font-size: 10px; }
.skill-chip button { display: grid; place-items: center; border: 0; background: transparent; padding: 0; color: inherit; }
.skill-chip .icon { width: 12px; height: 12px; }
.composer { border: 1px solid #d8ded2; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(43,53,38,.045); transition: border .2s, box-shadow .2s; }
.composer:focus-within { border-color: #aab8a0; box-shadow: 0 4px 20px rgba(43,53,38,.075); }
.composer textarea { display: block; resize: none; width: 100%; min-height: 54px; max-height: 180px; padding: 16px 17px 7px; border: 0; border-radius: 14px 14px 0 0; background: transparent; line-height: 1.6; font-size: 13px; }
.composer textarea:focus { outline: none; }
.composer-bottom { display: flex; align-items: center; padding: 6px 9px 9px 12px; gap: 8px; }
.skill-trigger { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); border-radius: 6px; font-size: 10px; }
.skill-trigger:hover { background: var(--green-light); color: var(--green); }
.composer-hint { flex: 1; text-align: right; color: var(--faint); font-size: 9px; padding-right: 5px; }
.send-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--green); color: #fff; }
.send-button.stop { background: #ecefe7; color: var(--green); }
.composer-note { margin: 8px 0 0; text-align: center; color: var(--faint); font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 100; transform: translate(-50%, 15px); padding: 10px 16px; border-radius: 8px; background: #2f372c; color: #fff; font-size: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(30,38,27,.32); backdrop-filter: blur(3px); }
.modal { width: min(440px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: var(--shadow); padding: 25px; }
.modal.wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.modal-head h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.4px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-group { margin-bottom: 18px; }
.form-group input, .form-group textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fafbf8; padding: 11px 12px; }
.form-group textarea { resize: vertical; min-height: 76px; }
.color-options { display: flex; gap: 10px; }
.color-option { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.color-option.selected { box-shadow: 0 0 0 2px var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.secondary-button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.danger-button { min-height: 40px; padding: 0 15px; border: 1px solid #ecd4cf; border-radius: 8px; background: #fff; color: var(--danger); margin-right: auto; }
.skill-library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skill-library-grid .skill-card { min-height: 140px; }
.skill-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.skill-fav-btn { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--faint); font-size: 12px; }
.skill-fav-btn:hover { background: var(--green-light); color: var(--green); }
.skill-tag { display: inline-block; padding: 2px 6px; border-radius: 10px; background: var(--green-light); color: var(--green-dark); font-size: 9px; margin-right: 4px; margin-bottom: 4px; }
.skill-modal-toolbar { display: flex; gap: 8px; margin: 0 0 14px; }
.skill-modal-toolbar input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf8; font-size: 12px; }
.skill-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.skill-tag-filter { padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--muted); font-size: 11px; }
.skill-tag-filter:hover { border-color: #b4c0ab; color: var(--ink); }
.skill-tag-filter.active { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.skill-modal-section { margin: 0 0 18px; }
.skill-modal-section strong { display: block; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.skill-group + .skill-group { margin-top: 26px; }
.skill-group-head { margin-bottom: 11px; }
.skill-group-head strong { display: block; margin-bottom: 4px; font-size: 13px; }
.skill-group-head span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.exhibition-visual { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; width: 100%; padding: 16px; border: 1px solid #d8dfd1; border-radius: 12px; background: linear-gradient(115deg, #eef2e8, #faf7ef); text-align: left; }
.exhibition-visual:hover { border-color: #aebba4; }
.exhibition-visual .skill-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #fff; color: var(--green); }
.exhibition-visual strong { display: block; margin-bottom: 5px; font-size: 13px; }
.exhibition-visual small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.exhibition-visual > .icon { color: var(--green); }
.exhibition-phases { display: flex; gap: 7px; margin: 18px 0 11px; }
.exhibition-phases span { flex: 1; padding: 7px 5px; border-radius: 6px; background: #f4f6f1; color: var(--muted); text-align: center; font-size: 9px; }
.exhibition-flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.exhibition-stage { position: relative; min-height: 103px; padding: 14px 14px 12px 51px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; transition: border .18s, transform .18s; }
.exhibition-stage:hover { border-color: #aebba4; transform: translateY(-1px); }
.stage-number { position: absolute; top: 15px; left: 14px; color: #a5af9e; font: 20px Georgia, serif; }
.stage-phase { position: absolute; top: 15px; right: 13px; color: var(--faint); font-size: 9px; }
.exhibition-stage strong { display: block; margin-bottom: 7px; font-size: 12px; }
.exhibition-stage p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.exhibition-stage > .icon { position: absolute; right: 12px; bottom: 12px; color: var(--faint); }
.exhibition-note { margin: 15px 2px 0; color: var(--faint); font-size: 9px; line-height: 1.7; }
.exhibition-mode-trigger { color: var(--green); }
.confirm-copy { color: var(--muted); line-height: 1.8; margin: 0; }
.sidebar-scrim { display: none; }

@media (max-width: 850px) {
  .login-page { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-form-side { padding: 28px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(310px, calc(100vw - 44px)); transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim.show { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(30,38,27,.28); }
  .mobile-close { display: inline-grid !important; }
  .menu-button { display: inline-grid; }
  .topbar { padding: 0 13px; height: 59px; gap: 6px; }
  .topbar-title span { display: none; }
  .topbar-text-button span { display: none; }
  .model-select { max-width: 125px; }
  .model-select.effort-select { max-width: 76px; }
  .conversation-inner { width: calc(100% - 30px); padding-top: 24px; }
  .composer-area { padding: 8px 12px max(10px, env(safe-area-inset-bottom)); }
  .composer-hint { display: none; }
  .skill-grid { gap: 8px; }
  .skill-card { padding: 14px; min-height: 118px; }
  .message { gap: 10px; grid-template-columns: 28px minmax(0, 1fr); }
  .message-avatar { width: 28px; height: 28px; }
  .message-actions { opacity: 1; }
}
@media (max-width: 480px) {
  .welcome h1 { font-size: 30px; }
  .welcome > p { margin-bottom: 22px; font-size: 12px; }
  .skill-card p { font-size: 10px; }
  .skill-card { min-height: 125px; }
  .skill-library-grid { grid-template-columns: 1fr; }
  .model-select { max-width: 112px; padding-left: 7px; font-size: 10px; }
  .topbar-actions { gap: 0; }
  .topbar-text-button { padding: 0 6px; }
  .message-content { font-size: 13px; }
  .attach-trigger span { display: none; }
  .composer-bottom { gap: 3px; padding-left: 6px; }
  .skill-trigger { padding: 0 6px; }
  .generated-actions { gap: 12px; }
  .image-waiting { padding: 12px; gap: 8px; }
  .image-waiting small { font-size: 9px; }
  .modal { padding: 20px; }
  .welcome-links { flex-wrap: wrap; }
  .exhibition-flow { grid-template-columns: 1fr; }
  .exhibition-visual { grid-template-columns: auto minmax(0, 1fr) auto; padding: 13px; }
  .exhibition-visual > .skill-badge { display: none; }
  .exhibition-phases { gap: 4px; }
  .exhibition-phases span { font-size: 8px; }
  .exhibition-stage { min-height: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
