/* Junchen: paper, ink and restrained vermilion. Presentation only. */
.friend-links { grid-column:1 / -1; border-top:1px solid #d6d9ca; padding-top:20px; }
.friend-links h2 { margin:0 0 12px; color:#314b3c; font-size:14px; font-weight:600; }
.friend-links-list { display:flex; flex-wrap:wrap; gap:12px; }
.friend-links-list a { display:inline-flex; align-items:center; gap:24px; min-height:44px; padding:10px 16px; box-sizing:border-box; border:1px solid #d6d9ca; border-radius:8px; color:#354c3d; background:#f2f3e9; text-decoration:none; }
.friend-links-list a:hover { background:#e8eddf; border-color:#85947b; }
.friend-links-list a:focus-visible { outline:2px solid #365443; outline-offset:3px; }
.ui-language-bar { display:flex; justify-content:flex-end; align-items:center; gap:12px; padding:10px max(20px,calc((100vw - 1216px)/2)); background:#f6f4ee; font-size:14px; }
.ui-language-bar select { min-height:40px; border:1px solid #aab49e; border-radius:8px; padding:6px 10px; background:#fffefa; font:inherit; color:#243d35; }
html[lang="th"] body { line-height:1.9; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] .brand { letter-spacing:normal; }
.tabs button, .image-actions button, .admin-modal-actions button { white-space:normal; height:auto; min-height:44px; }
.creation-guide { max-width: 1216px; margin: 0 auto; padding: 40px 32px 48px; border-top: 1px solid #d6d9ca; }
.creation-guide-heading > span { color: #8e4835; letter-spacing: .14em; font-size: 13px; }
.creation-guide-heading h2 { font-size: clamp(22px, 2.3vw, 30px); margin: 12px 0; }
.creation-guide-heading > p { color: #606959; margin: 0; }
.creation-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 32px 0 24px; }
.creation-guide-grid article { border-top: 2px solid #9ba98c; padding-top: 18px; }
.guide-number { font-size: 13px; letter-spacing: .08em; color: #67745c; }
.creation-guide h3 { font-size: 18px; line-height: 1.6; margin: 10px 0; }
.creation-guide-grid p { font-size: 15px; line-height: 1.9; color: #525d50; margin: 0; }
.creation-guide-flow { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 18px 20px; margin: 0; background: #e9eddf; border-radius: 8px; font-size: 14px; counter-reset: guide; }
.creation-guide-flow li { counter-increment: guide; }
.creation-guide-flow li::before { content: counter(guide) ". "; color: #68785b; }
.guide-scope { font-size: 13px; color: #656c62; line-height: 1.8; }
.creation-guide-warning { margin-top: 28px; padding: 20px 24px; background: #f4eadd; border-left: 3px solid #a35e40; border-radius: 0 8px 8px 0; }
.creation-guide-warning h3 { color: #78422c; margin-top: 0; }
.creation-guide-warning p { font-size: 14px; line-height: 1.9; color: #604f42; margin: 8px 0 0; }
@media (max-width: 800px) { .creation-guide { padding: 32px 20px; } .creation-guide-grid { grid-template-columns: 1fr; gap: 24px; } }
.seller-banner { background: #243e34; color: #fffbef; border-bottom: 3px solid #bb7356; }
.seller-banner-inner { max-width: 1280px; margin: auto; padding: 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; align-items: center; }
.seller-banner-kicker { color: #ddd6b7; font-size: 12px; letter-spacing: .18em; }
.seller-banner-title { margin: 5px 0 7px; font-family: "Noto Serif TC", "PMingLiU", serif; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.5; letter-spacing: .04em; }
.seller-banner-description { margin: 0; color: #e0e5da; font-size: 14px; line-height: 1.8; }
.seller-banner-service { border-left: 1px solid #6f8070; padding-left: 24px; }
.seller-cloud-label { color: #fff2d6; font-size: 14px; }
.seller-banner-service p { margin: 5px 0 8px; font-size: 16px; }
.seller-banner-service small { display: block; color: #d3dacb; font-size: 12px; line-height: 1.7; }
@media (max-width: 760px) { .seller-banner-inner { grid-template-columns: 1fr; padding: 20px; gap: 18px; } .seller-banner-service { border-left: 0; border-top: 1px solid #6f8070; padding: 14px 0 0; } }
.member-referral { max-width: 1216px; margin: 24px auto 0; padding: 20px 28px; background: #eeeee4; border: 1px solid #d6d9ca; border-radius: 12px; }
.member-referral h2 { font-size: 20px; margin: 0; }
.member-referral p { font-size: 14px; margin: 4px 0 12px; }
.referral-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.referral-fields label { font-size: 14px; }
.referral-control { display: flex; gap: 8px; align-items: center; }
.referral-control input { min-width: 0; width: 100%; padding: 10px; }
.referral-control button { flex-shrink: 0; }
@media (max-width: 900px) { .member-referral { margin: 20px 16px 0; padding: 20px; } .referral-fields { grid-template-columns: 1fr; } }
:root {
  --bg: #f6f4ee;
  --card: #fffefa;
  --text: #243d35;
  --muted: #656c62;
  --line: #dddcd1;
  --primary: #284f43;
  --primary-hover: #193b30;
  --soft: #eeeee4;
  --radius: 14px;
}
body { font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif; font-size: 16px; line-height: 1.65; background: var(--bg); }
#app { min-height: calc(100vh - 180px); }
.brand { font-size: 22px; letter-spacing: .06em; display: flex; align-items: center; gap: 12px; }
.brand::before { content: "駿"; display: grid; place-items: center; width: 34px; height: 38px; flex: 0 0 auto; background: #a34635; color: #fffaf0; border-radius: 5px; font: 22px "Noto Serif TC", "PMingLiU", serif; }
h1, h2 { font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif; letter-spacing: .06em; line-height: 1.45; }
.login-view { max-width: 1180px; min-height: calc(100vh - 180px); margin: auto; padding: 64px 40px; grid-template-columns: 1fr 440px; gap: 80px; }
.studio-intro { padding: 24px 0; }
.studio-kicker { color: #706f61; font-size: 12px; letter-spacing: .22em; }
.studio-intro h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 500; margin: 30px 0 24px; }
.studio-intro > p { color: var(--muted); max-width: 330px; line-height: 2; }
.studio-note { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 48px; }
.studio-note > span { border: 1px solid #a34635; color: #a34635; padding: 10px 7px; font-family: serif; writing-mode: vertical-rl; letter-spacing: .2em; }
.studio-note p { margin: 0; font-size: 14px; color: var(--muted); line-height: 2; }
.login-card { width: 100%; padding: 36px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 48px #243d3509; }
.login-card h1 { font-size: 28px; margin-top: 32px; }
.dashboard { min-height: calc(100vh - 180px); }
.topbar { background: var(--card); padding: 20px max(28px, calc((100vw - 1216px) / 2)); border-top: 4px solid var(--primary); }
.topbar-email { font-size: 14px; overflow-wrap: anywhere; }
.wallet-pill { background: #edf0e5; border: 1px solid #d7decc; color: #35543f; height: auto; min-height: 44px; font-size: 14px; }
.tabs { padding-top: 24px; gap: 12px; flex-wrap: wrap; }
.tab { border-radius: 0; padding: 12px 18px; border-bottom: 2px solid transparent; font-size: 15px; }
.tab.active { color: var(--primary); background: transparent; border-bottom-color: #a34635; }
.tab:hover:not(.active) { background: #eeeee4; }
.content { padding-top: 32px; }
.panel-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.panel-heading h2 { font-size: 28px; }
.generator-grid { gap: 28px; }
.card, .admin-section, .afc-card { background: var(--card); border-color: var(--line); border-radius: 14px; box-shadow: 0 5px 20px #243d3504; }
.card { padding: 28px; }
.result-card { border-top: 3px solid #9da98a; }
.empty-result { color: var(--muted); }
.empty-icon { background: #eeeee4; color: var(--primary); border-radius: 50%; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#generateForm select, #generateForm textarea, .afc-field textarea {
  background: #fffefa; border: 1px solid #cfD2c5; color: #243d35; border-radius: 8px; font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #577b63; outline-offset: 2px; box-shadow: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #a34635; outline-offset: 3px; }
button, .primary-button, .ghost-button { border-radius: 8px; }
.primary-button { background: var(--primary); color: white; min-height: 48px; height: auto; padding: 12px 20px; letter-spacing: .04em; }
.primary-button:hover:not(:disabled) { background: var(--primary-hover); }
.ghost-button { background: #eceee4; color: #354c3d; height: auto; min-height: 42px; padding: 10px 16px; }
button:disabled { opacity: .6; cursor: not-allowed; }
.upload-button { min-height: 72px; background: #f2f3e9; border: 1px dashed #85947b; color: #365443; }
.upload-button:hover { background: #e8eddf; }
.upload-description, .reference-counter { font-size: 14px; }
.reference-priority { font-size: 12px; }
.afc-model-card, .afc-template, .admin-member-card { background: #f7f7f0; border-color: #d8dccf; border-radius: 10px; }
.afc-model-card input[type="checkbox"], .afc-function-toggle input { accent-color: var(--primary); }
.admin-modal-card { background: var(--card); border: 1px solid var(--line); }
.admin-transaction-row { border-bottom-color: var(--line); }
.account-help, #workflowResearch { background: #f0f1e7; color: #4b5848; border-radius: 8px; }
.company-footer { max-width: 1216px; margin: 0 auto; padding: 30px 32px 36px; border-top: 1px solid #d6d9ca; display: grid; grid-template-columns: 260px 1fr; gap: 32px; color: #5e665b; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand strong { font-size: 18px; color: #314b3c; letter-spacing: .08em; }
.footer-brand span { font-size: 12px; letter-spacing: .14em; }
.company-details p { font-size: 14px; margin: 0 0 5px; overflow-wrap: anywhere; }
.company-details strong { font-weight: 500; }
@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; gap: 24px; max-width: 540px; padding: 36px 24px; }
  .studio-intro { padding: 0; }
  .studio-intro h2 { font-size: 30px; margin: 12px 0; }
  .studio-intro h2 br { display: none; }
  .studio-intro > p, .studio-note { display: none; }
  .generator-grid { grid-template-columns: 1fr; }
  .company-footer { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .topbar { padding: 18px; flex-wrap: wrap; gap: 16px; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .tabs { padding: 12px 12px 0; gap: 0; }
  .tab { padding: 10px 12px; font-size: 14px; }
  .content { padding: 24px 16px 40px; }
  .card, .login-card { padding: 24px 20px; }
  .panel-heading { align-items: flex-start; flex-wrap: wrap; }
  .panel-heading h2 { font-size: 24px; }
  .company-footer { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
