:root {
  --ink: #102b26;
  --muted: #667873;
  --line: #dce7e3;
  --paper: #f4f7f5;
  --white: #fff;
  --green: #087f5b;
  --green-dark: #075c45;
  --mint: #dff5ec;
  --amber: #8a5a08;
  --shadow: 0 18px 55px rgba(18, 57, 48, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-header { height: 76px; padding: 0 clamp(20px, 4vw, 64px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 28px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(15px); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 160px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: white; box-shadow: 0 8px 20px rgba(8,127,91,.2); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.5px; }
.brand small { display: block; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.main-nav { display: flex; align-self: stretch; gap: 3px; }
.nav-item { position: relative; padding: 0 17px; border: 0; background: transparent; color: #60716c; font-size: 14px; cursor: pointer; }
.nav-item::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); transform: scaleX(0); transition: transform .2s; }
.nav-item:hover, .nav-item.active { color: var(--ink); font-weight: 750; }
.nav-item.active::after { transform: scaleX(1); }
.nav-group { position: relative; display: flex; align-self: stretch; }
.nav-group-toggle { position: relative; padding: 0 17px; border: 0; color: #60716c; background: transparent; cursor: pointer; font-size: 14px; }
.nav-group-toggle span { display: inline-block; margin-left: 3px; transition: transform .2s; }
.nav-group:hover .nav-group-toggle, .nav-group.open .nav-group-toggle, .nav-group.has-active .nav-group-toggle { color: var(--ink); font-weight: 750; }
.nav-group.open .nav-group-toggle span { transform: rotate(180deg); }
.nav-group.has-active .nav-group-toggle::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
.nav-submenu { position: absolute; top: calc(100% - 6px); left: 0; z-index: 30; width: 250px; padding: 9px; display: none; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 18px 45px rgba(18,57,48,.16); }
.nav-group:hover .nav-submenu, .nav-group:focus-within .nav-submenu, .nav-group.open .nav-submenu { display: grid; }
.nav-submenu .nav-item { width: 100%; min-height: 50px; padding: 9px 11px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; border-radius: 9px; text-align: left; }
.nav-submenu .nav-item::after { display: none; }
.nav-submenu .nav-item:hover, .nav-submenu .nav-item.active { background: var(--mint); }
.nav-submenu .nav-item span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--green); font-size: 10px; font-weight: 900; }
.nav-submenu .nav-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.nav-submenu .nav-item.nav-item-wrap { min-height: 62px; }
.nav-submenu .nav-item.nav-item-wrap b { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.35; }
.vba-code-converter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.vba-code-input-card, .vba-code-result-card { padding: 24px; min-width: 0; }
.vba-code-textarea { width: 100%; min-height: 470px; margin-top: 12px; padding: 16px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; color: #d9f7ec; background: #102b26; font: 13px/1.65 Consolas, monospace; tab-size: 4; }
.vba-converter-actions { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 16px; }
.vba-converter-actions label { flex: 1; }
.vba-converter-actions select { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.vba-code-analysis { min-height: 74px; margin: 12px 0; padding: 12px 14px; border-radius: 10px; color: var(--muted); background: #f5faf8; font-size: 13px; line-height: 1.55; }
.vba-code-analysis ul { margin: 7px 0 0; padding-left: 20px; color: #8a5a08; }
.vba-converted-output { min-height: 470px; max-height: 650px; overflow: auto; white-space: pre; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 980px) { .vba-code-converter-grid { grid-template-columns: 1fr; } }
.package-link-panel { max-width: 720px; padding: 36px; text-align: center; }
.lodging-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.lodging-summary article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.lodging-summary strong { display: block; color: var(--green); font-size: 30px; line-height: 1; }
.lodging-summary span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.lodging-layout { display: grid; grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.lodging-manual-panel, .lodging-list-panel { padding: 24px; min-width: 0; }
.lodging-form { display: grid; gap: 14px; }
.lodging-form label, .lodging-filters label { color: var(--muted); font-size: 12px; font-weight: 750; }
.lodging-form input, .lodging-form textarea, .lodging-filters input, .lodging-filters select { width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
.lodging-form textarea { resize: vertical; }
.lodging-date-fields, .lodging-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lodging-filters { margin-bottom: 14px; }
.lodging-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.lodging-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 13px; }
.lodging-table th { padding: 11px 12px; background: #f1f8f5; color: var(--muted); text-align: left; white-space: nowrap; font-size: 11px; }
.lodging-table td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.lodging-table tbody tr:hover { background: #fbfdfc; }
.lodging-table .date-primary { color: var(--green-dark); font-weight: 800; white-space: nowrap; }
.lodging-table .lodging-name { min-width: 150px; font-weight: 750; }
.lodging-source { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.lodging-source.manual { background: #fff3d6; color: var(--amber); }
.lodging-row-actions { display: flex; gap: 6px; margin-top: 6px; }
.lodging-row-actions button { padding: 3px 6px; border: 0; color: var(--green-dark); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.lodging-row-actions button.danger { color: #c0392b; }
.empty-cell { padding: 40px !important; color: var(--muted); text-align: center; }
@media (max-width: 980px) { .lodging-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .lodging-summary { grid-template-columns: 1fr; } .lodging-date-fields, .lodging-filters { grid-template-columns: 1fr; } }
.server-status { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.server-status i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #18a875; box-shadow: 0 0 0 4px #e3f7ef; }
.logout-form { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.logout-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; cursor: pointer; font-size: 11px; }
.logout-button:hover { color: var(--green); border-color: var(--green); }
.header-login { margin-left: auto; color: var(--green-dark); text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 8px 12px; }
main { min-height: calc(100vh - 136px); }
.tab-panel { display: none; max-width: 1440px; margin: 0 auto; padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 76px); animation: rise .3s ease-out; }
.tab-panel.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.hero-carousel { position: relative; height: clamp(280px, 41vw, 520px); margin-bottom: clamp(44px, 6vw, 76px); overflow: hidden; border-radius: 26px; background: #0b3028; box-shadow: 0 24px 70px rgba(8, 57, 45, .18); }
.carousel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.025); transition: opacity .75s ease, transform 1.8s ease; pointer-events: none; }
.carousel-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .8s ease; }
.carousel-slide::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(3, 28, 22, .78)); }
.carousel-slide figcaption { position: absolute; left: clamp(20px, 4vw, 52px); bottom: clamp(26px, 5vw, 54px); z-index: 2; max-width: 70%; color: white; font-size: clamp(20px, 3vw, 38px); font-weight: 850; letter-spacing: -.035em; text-shadow: 0 3px 18px rgba(0,0,0,.3); transition: transform .35s; }
.hero-carousel:hover .carousel-slide.active img { transform: scale(1.045); filter: saturate(1.08) brightness(.92); }
.hero-carousel:hover .carousel-slide.active figcaption { transform: translateY(-5px); }
.carousel-dots { position: absolute; right: clamp(18px, 3vw, 40px); bottom: clamp(22px, 4vw, 42px); z-index: 4; display: flex; gap: 7px; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); cursor: pointer; transition: .25s; }
.carousel-dot.active { width: 27px; background: white; }
.hero-grid { min-height: 610px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.home-intro { max-width: 900px; margin: 0 auto clamp(42px,6vw,72px); text-align: center; }
.home-intro h1 { font-size: clamp(45px,6vw,78px); }
.home-intro .hero-copy { margin-inline: auto; }
.home-cta { display: flex; justify-content: center; gap: 10px; }
.home-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 22px; }
.home-benefits article { min-height: 230px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.home-benefits strong { color: var(--green); font-size: 13px; letter-spacing: .12em; }
.home-benefits h2 { margin: 24px 0 12px; font-size: 21px; }
.home-benefits p { margin: 0; color: var(--muted); line-height: 1.8; }
.book-showcase { margin: 22px 0; padding: clamp(26px,3.5vw,46px); display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); align-items: center; gap: clamp(26px,4vw,60px); overflow: hidden; background: linear-gradient(135deg,#f9fcfb,#edf7f3); }
.book-showcase-copy h2 { margin: 12px 0 16px; font-size: clamp(28px,4vw,48px); letter-spacing: -.045em; }
.book-showcase-copy > p:not(.eyebrow) { max-width: 610px; color: var(--muted); line-height: 1.85; }
.book-counter { display: inline-flex; margin-top: 18px; padding: 8px 15px; border-radius: 99px; color: var(--green-dark); background: white; box-shadow: 0 8px 24px rgba(8,57,45,.08); font-size: 12px; }
.book-randomizer { position: relative; width: min(100%,380px); height: clamp(300px,25vw,350px); justify-self: center; overflow: hidden; border: 1px solid rgba(8,127,91,.12); border-radius: 20px; background: rgba(255,255,255,.68); perspective: 1200px; }
.book-slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transform: translateX(25px) rotateY(-7deg) scale(.93); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.book-slide.active { z-index: 2; opacity: 1; transform: translateX(0) rotateY(0) scale(1); pointer-events: auto; }
.book-slide a { position: absolute; inset: 8% 14%; display: flex; align-items: center; justify-content: center; outline-offset: 8px; }
.book-slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px 13px 13px 5px; filter: saturate(.9); box-shadow: -12px 18px 40px rgba(11,48,40,.23); transition: transform .45s ease, filter .45s ease, box-shadow .45s ease; }
.book-randomizer:hover .book-slide.active img { transform: translateY(-8px) rotateY(-3deg) scale(1.025); filter: saturate(1.08); box-shadow: -18px 28px 55px rgba(11,48,40,.3); }
.book-glow { position: absolute; left: 15%; right: 5%; bottom: 2%; height: 22%; border-radius: 50%; background: rgba(70,181,143,.16); filter: blur(35px); }
.home-feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 22px 0; }
.home-feature-grid button { min-height: 150px; padding: 25px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 10px 32px rgba(18,57,48,.06); cursor: pointer; text-align: left; transition: .2s; }
.home-feature-grid button:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 18px 42px rgba(8,127,91,.12); }
.home-feature-grid button > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: white; background: linear-gradient(135deg,#18a87c,#087052); font-weight: 900; }
.home-feature-grid h3 { margin: 0 0 8px; font-size: 19px; }
.home-feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.home-feature-grid i { color: var(--green); font-size: 24px; font-style: normal; }
.home-closing { margin-top: 24px; padding: clamp(32px,5vw,58px); display: flex; justify-content: space-between; align-items: center; gap: 30px; color: white; background: linear-gradient(135deg,#103c32,#087052); }
.home-closing h2 { margin: 6px 0 10px; font-size: clamp(24px,3vw,38px); }
.home-closing p { margin: 0; color: #c9e4da; }
.home-closing .eyebrow { color: #79dcb8; }
.home-closing .button { flex: 0 0 auto; color: var(--green-dark); background: white; }
.ai-workspace-layout { display: grid; grid-template-columns: minmax(250px,.65fr) minmax(480px,1.35fr); gap: 20px; align-items: stretch; margin-bottom: 22px; }
.ai-manual-workspace { display: grid; grid-template-columns: minmax(260px,.62fr) minmax(480px,1.38fr); gap: 20px; align-items: stretch; margin-bottom: 22px; }
.ai-service-panel { padding: clamp(25px,3vw,38px); }
.ai-service-panel h2 { margin-top: 0; }
.ai-service-panel p { color: var(--muted); line-height: 1.7; }
.ai-service-panel .ai-links { margin-top: 24px; }
.ai-service-choices { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-service-choices label { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfdfc; cursor: pointer; }
.ai-service-choices label:has(input:checked) { color: var(--green-dark); border-color: var(--green); background: var(--mint); }
.eyebrow { margin: 0 0 16px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: 2.2px; }
h1 { margin: 0; font-size: clamp(40px, 5.7vw, 76px); line-height: 1.08; letter-spacing: -.055em; }
h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 640px; margin: 26px 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.ai-links { display: flex; flex-wrap: wrap; gap: 9px; }
.ai-links a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; text-decoration: none; font-size: 13px; }
.ai-links a:hover { border-color: var(--green); color: var(--green); }
.ai-chat-shell { display: grid; grid-template-columns: minmax(220px,.32fr) minmax(0,1fr); gap: 18px; align-items: start; }
.ai-history-panel { position: sticky; top: 88px; min-height: 620px; box-shadow: none; }
.ai-conversation-list { max-height: 430px; margin: 15px 0; display: grid; gap: 7px; overflow: auto; }
.ai-conversation-list button { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; cursor: pointer; text-align: left; }
.ai-conversation-list button:hover,.ai-conversation-list button.active { border-color: var(--green); background: var(--mint); }
.ai-conversation-list strong,.ai-conversation-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-conversation-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.external-ai-links { margin-top: 18px; color: var(--green-dark); font-size: 12px; }
.external-ai-links summary { cursor: pointer; font-weight: 800; }
.external-ai-links .ai-links { margin-top: 10px; }
.ai-chat-panel { min-width: 0; }
.ai-messages { min-height: 390px; max-height: 620px; margin-bottom: 18px; padding: 20px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #f7faf9; }
.ai-welcome { min-height: 345px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.ai-welcome strong { color: var(--ink); font-size: 24px; }
.ai-message { max-width: 88%; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: white; box-shadow: 0 5px 16px rgba(18,57,48,.05); }
.ai-message.user { margin-left: auto; color: white; background: var(--green); }
.ai-message strong { display: block; margin-bottom: 7px; font-size: 11px; }
.ai-message pre { min-height: 0; margin: 0; color: inherit; font: inherit; line-height: 1.7; white-space: pre-wrap; }
.answer-studio { margin-top: 30px; }
.answer-studio-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 26px; }
.answer-studio-head h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.045em; }
.answer-studio-head h2 + p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.save-status { padding: 7px 11px; border-radius: 99px; color: var(--green); background: var(--mint); white-space: nowrap; font-size: 11px; font-weight: 800; }
.answer-studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.answer-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.answer-preview { position: relative; min-width: 0; min-height: 510px; overflow: auto; padding: clamp(28px, 4vw, 54px); border: 1px solid var(--line); border-radius: 14px; color: #182622; background: white; box-shadow: inset 0 0 0 8px #f5f8f7; }
.answer-preview-label { position: absolute; right: 18px; top: 16px; color: #97a49f; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.answer-preview h2 { margin: 0 0 8px; padding-right: 70px; font-size: 29px; letter-spacing: -.035em; }
.answer-preview-date { margin: 0 0 28px; color: #798783; font-size: 11px; }
.answer-preview pre { min-height: 0; margin: 0; overflow: visible; white-space: pre-wrap; word-break: break-word; color: #2d3b37; font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif; font-size: 14px; line-height: 1.8; }
.answer-export-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.url-export-studio { margin-top: 24px; padding: clamp(24px,3vw,38px); }
.url-export-studio h2 { margin: 0 0 9px; font-size: clamp(24px,3vw,36px); letter-spacing: -.04em; }
.url-export-studio h2 + p { margin: 0; color: var(--muted); line-height: 1.7; }
.url-export-form { margin-top: 22px; display: grid; grid-template-columns: minmax(220px,.55fr) minmax(360px,1.45fr); gap: 14px; }
.export-button { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; cursor: pointer; text-align: left; }
.export-button:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(8,127,91,.08); }
.export-button strong { width: 44px; height: 32px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--green); font-size: 11px; }
.export-button.pdf strong { background: #c94d4d; }
.export-button.jpg strong { background: #b17b20; }
.export-button span { font-size: 12px; font-weight: 750; }
.panel, .workspace-card { border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.extract-workspace { min-height: 290px; padding: clamp(30px,5vw,64px); display: grid; grid-template-columns: 92px minmax(280px,1fr) auto auto; align-items: center; gap: 22px; }
.extract-mark { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 22px; color: white; background: linear-gradient(145deg,#16a77b,#07684d); box-shadow: 0 16px 35px rgba(8,127,91,.2); font-size: 24px; font-weight: 900; }
.extract-copy h2 { margin: 0 0 9px; font-size: 26px; }
.extract-copy p { margin: 0 0 10px; color: var(--muted); line-height: 1.7; }
.extract-copy small { color: var(--green-dark); font-weight: 750; }
.extract-workspace > label { margin: 0; white-space: nowrap; }
.extract-result { grid-column: 2 / -1; min-height: 48px; padding: 13px 16px; border-radius: 10px; color: var(--muted); background: #f3f7f5; }
.extract-result.working { color: var(--amber); }
.extract-result.success { color: var(--green-dark); background: var(--mint); }
.extract-result.error { color: #9a3434; background: #fde9e7; }
.office-extract-panel > .notice { margin-top: 18px; }
.workspace-card { padding: clamp(24px, 4vw, 40px); }
.card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 17px; font-weight: 800; }
.badge, .phase { padding: 7px 10px; border-radius: 99px; color: var(--green); background: var(--mint); font-size: 11px; font-weight: 800; }
label { display: block; margin-top: 16px; color: #42534f; font-size: 12px; font-weight: 750; }
select, textarea, input[type="text"], .structure-panel input { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; color: var(--ink); padding: 12px 13px; outline: none; }
input[type="password"] { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; color: var(--ink); padding: 12px 13px; outline: none; }
textarea { resize: vertical; line-height: 1.6; }
select:focus, textarea:focus, input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,127,91,.1); }
.button-row { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; font-weight: 800; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.ghost { color: var(--ink); background: #edf3f0; }
.full-button { width: 100%; margin-top: 22px; }
.flash { margin-bottom: 18px; padding: 13px 16px; border-radius: 10px; color: #8a3030; background: #fde9e7; font-size: 13px; font-weight: 700; }
.flash.success { color: var(--green-dark); background: var(--mint); }
.global-flashes { position: fixed; top: 82px; left: 50%; z-index: 45; width: min(620px, calc(100% - 32px)); transform: translateX(-50%); }
.global-flashes .flash { box-shadow: 0 10px 30px rgba(24,48,41,.14); }
.board-compose { width: 100%; max-width: none; min-height: 360px; margin-bottom: 26px; padding: clamp(34px,4vw,48px); }
.board-list { display: grid; gap: 20px; }
.board-post { position: relative; min-height: 240px; padding: clamp(34px,4vw,48px); }
.board-compose > label, .board-post form > label { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 18px; width: 100%; margin-top: 18px; font-size: 14px; }
.board-compose > label > input:not([type="file"]), .board-compose > label > textarea, .board-post form > label > input:not([type="file"]), .board-post form > label > textarea { display: block; width: 100%; min-width: 0; min-height: 52px; margin: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--ink); background: #fbfdfc; }
.board-compose > label > textarea, .board-post form > label > textarea { min-height: 190px; }
.board-compose > label > input[type="file"], .board-post form > label > input[type="file"], input[type="file"] { 
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfc;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #f6f8fa;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
input[type="file"]::file-selector-button:hover {
  background: #eaeef2;
  border-color: #afb8c1;
}
.board-post h2 { margin: 0 0 12px; font-size: 21px; }
.board-post small { display: block; margin-top: 15px; color: var(--muted); }
.post-content { white-space: pre-wrap; word-break: break-word; line-height: 1.8; }
.inline-delete { display: inline-block; margin: 10px 0 0 10px; }
.resource-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.resource-actions form { margin-left: auto; }
.empty-board { color: var(--muted); text-align: center; }
.private-board-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 26px; align-items: start; }
.private-board-layout > .board-compose { position: static; }
.board-compose fieldset, .private-post fieldset { min-height: 92px; margin: 10px 0 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; }
.board-compose legend, .private-post legend { padding: 0 6px; font-size: 12px; font-weight: 800; }
.radio-label { display: inline-flex; align-items: center; gap: 6px; margin: 0 18px 0 0; }
.radio-label input { width: auto; margin: 0; }
.private-board-layout .board-compose > label, .private-post form > label { grid-template-columns: 105px minmax(0,1fr); }
.private-post { min-height: 520px; }
.request-access { margin-bottom: 24px; padding: 26px 32px; }
.request-access h2 { margin: 0 0 5px; }
.request-access > div { display: grid; grid-template-columns: minmax(160px,.45fr) minmax(220px,.8fr) auto; align-items: end; gap: 12px; }
.request-access label { margin: 0; }
.request-access input { display: block; width: 100%; min-height: 47px; margin-top: 7px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }
.request-access .button { min-height: 47px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.section-head h1 { font-size: clamp(38px, 5vw, 62px); }
.section-head h1 + p { margin: 14px 0 0; color: var(--muted); }
.phase.live { color: white; background: var(--green); }
.tool-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.panel { padding: clamp(24px, 3vw, 36px); }
.panel h2 { margin: 0 0 10px; font-size: 19px; }
.upload-panel { min-height: 390px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border-style: dashed; box-shadow: none; }
.upload-panel p { margin: 3px 0 24px; color: var(--muted); font-size: 13px; }
.upload-icon { width: 66px; height: 66px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 18px; color: white; background: var(--green); font-weight: 900; letter-spacing: -.05em; }
.file-input, input[type="file"].file-input { display: none !important; position: fixed !important; top: -9999px !important; left: -9999px !important; width: 0 !important; height: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.file-result { min-height: 22px; margin-top: 18px; color: var(--green); font-size: 13px; font-weight: 750; }
.care-progress { width: min(280px, 90%); margin-top: 18px; }
.care-progress span { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: var(--mint); }
.care-progress span::after { content: ""; display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--green); animation: care-loading 1.1s ease-in-out infinite alternate; }
.care-progress small { display: block; margin-top: 8px; color: var(--muted); }
@keyframes care-loading { from { transform: translateX(-20%); } to { transform: translateX(155%); } }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.check-grid label { margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; font-size: 13px; }
.check-grid input { margin-right: 7px; accent-color: var(--green); }
.notice { margin-top: 22px; padding: 15px 17px; border-radius: 11px; color: #53645f; background: #eef3f1; font-size: 12px; line-height: 1.65; }
.notice.amber { color: var(--amber); background: #fff6dd; }
.care-report { margin-top: 16px; }
.care-success, .care-error { padding: 15px 17px; border-radius: 11px; font-size: 12px; line-height: 1.6; }
.care-success { color: var(--green-dark); background: var(--mint); }
.care-error { color: #9b3636; background: #fde9e7; font-weight: 700; }
.care-success strong, .care-success small { display: block; }
.care-success small { margin-top: 3px; word-break: break-all; }
.care-success ul { margin: 10px 0 0; padding-left: 18px; }
.care-success p { margin: 8px 0 0; }
.status-list { list-style: none; padding: 0; margin: 24px 0; }
.status-list li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.status-list li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: #edf2f0; font-weight: 800; }
.status-list li.done > span { color: white; background: var(--green); }
.status-list strong, .status-list small { display: block; }
.status-list small { margin-top: 3px; color: var(--muted); }
.ribbon-preview-panel { margin-bottom: 20px; padding: 22px; }
.ribbon-preview-panel .card-heading small { color: var(--muted); font-size: 11px; font-weight: 600; }
.office-window { overflow: hidden; border: 1px solid #cbd4d1; border-radius: 10px; background: #f7f8f8; box-shadow: inset 0 1px white; }
.office-tabs { height: 42px; display: flex; align-items: end; gap: 3px; padding: 0 13px; border-bottom: 1px solid #cbd4d1; background: #f0f2f1; }
.office-tabs > span, .office-tab { padding: 10px 16px 9px; border: 0; color: #4e5b58; background: transparent; font-size: 12px; }
.office-tab.active { color: var(--green-dark); border-bottom: 3px solid var(--green); background: white; font-weight: 800; }
.office-ribbon { position: relative; min-height: 112px; padding: 5px 6px 0; background: white; overflow-x: auto; }
.preview-groups { min-height: 105px; display: flex; align-items: stretch; }
.preview-group { min-width: max-content; padding: 3px 5px 18px; position: relative; border-right: 1px solid #d8dfdc; }
.preview-group.has-launcher { padding-right: 18px; }
.preview-controls { min-height: 78px; display: flex; align-items: stretch; gap: 1px; }
.preview-empty { margin: auto; color: #8a9995; font-size: 13px; }
.preview-group-label { position: absolute; left: 4px; right: 4px; bottom: 3px; border-top: 1px solid #e1e5e4; color: #6e7976; text-align: center; font-size: 9px; }
.preview-control { position: relative; width: 72px; min-width: 72px; max-width: 72px; min-height: 78px; flex: 0 0 72px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 4px 5px; border: 1px solid transparent; border-radius: 4px; color: #34443f; background: transparent; cursor: grab; }
.preview-control:hover, .preview-control.selected { border-color: #9ccdbd; background: #e9f7f1; }
.preview-control:active { cursor: grabbing; }
.preview-control > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: white; background: linear-gradient(135deg, #16a77b, #087354); font-size: 18px; box-shadow: 0 3px 8px rgba(8,127,91,.16); }
.preview-control strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.preview-control i { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 9px; }
.preview-control.editBox { width: 82px; min-width: 82px; max-width: 82px; flex-basis: 82px; }
.preview-control.editBox > span { width: 68px; height: 24px; border: 1px solid #aebbb7; color: #7b8985; background: white; box-shadow: none; }
.preview-control.checkBox { width: 72px; min-width: 72px; flex-direction: row; }
.preview-control.checkBox > span { width: 24px; height: 24px; font-size: 14px; }
.preview-control.separator { width: 9px; min-width: 9px; max-width: 9px; flex-basis: 9px; padding: 5px 3px; cursor: grab; }
.preview-control.separator::before { content: ""; width: 1px; height: 66px; background: #b9c2bf; box-shadow: 1px 0 rgba(255,255,255,.8); }
.preview-control.separator > span, .preview-control.separator > strong { display: none; }
.preview-dialog-launcher { position: absolute; right: 3px; bottom: 1px; width: 13px; height: 13px; padding: 0; display: grid; place-items: center; border: 0; color: #56635f; background: transparent; font-size: 11px; line-height: 1; cursor: pointer; }
.preview-dialog-launcher:hover, .preview-dialog-launcher.selected { color: var(--green); background: var(--mint); }
.dragging { opacity: .38 !important; }
.builder-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; overflow: visible; padding-bottom: 4px; }
.builder-grid:not(:has(.control-editor:not([hidden]))) { grid-template-columns: minmax(0,1fr); }
.control-palette { display: block; box-shadow: none; }
.control-palette h2 { margin-bottom: 5px; }
.palette-structure, .palette-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px; }
.palette-structure { margin: 14px 0 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.palette-structure button { color: white; border-color: var(--green) !important; background: var(--green) !important; font-weight: 850; text-align: center !important; }
.control-palette button { padding: 11px 12px; text-align: left; white-space: nowrap; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.control-palette button:hover { color: var(--green); border-color: var(--green); background: var(--mint); }
.text-button { border: 0; color: var(--green); background: none; cursor: pointer; font-size: 12px; font-weight: 800; }
.text-button.danger { margin-left: 8px; color: #a14141; }
.ribbon-controls { max-height: 360px; margin-top: 14px; padding-right: 3px; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 6px; overflow-y: auto; overflow-x: hidden; }
.structure-compact { display: grid; gap: 8px; margin-bottom: 10px; }
.structure-compact-row { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr) auto; gap: 7px; align-items: end; }
.structure-compact-row label { margin: 0; font-size: 11px; }
.structure-compact-row select, .structure-compact-row input { min-width: 0; padding: 8px 9px; border-radius: 9px; }
.structure-compact-row .text-button { min-height: 36px; padding: 6px 4px; }
@media (max-width: 760px) {
  .structure-compact-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .structure-compact-row .text-button { grid-column: 2; justify-self: end; min-height: auto; }
  .split-part-grid { grid-template-columns: minmax(0,1fr); }
}
.button.compact { min-height: 38px; padding: 8px 11px; }
.gallery-type-dialog { width: min(460px,calc(100vw - 30px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(10,34,28,.28); }
.gallery-type-dialog::backdrop { background: rgba(12,28,24,.48); }
.gallery-type-dialog form { padding: 26px; display: grid; gap: 12px; }
.gallery-type-dialog h2, .gallery-type-dialog p { margin: 0 0 5px; }
.gallery-type-dialog .text-button { justify-self: end; }
.control-row { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 6px; align-items: center; background: #fbfdfc; cursor: grab; }
.control-row.selected { border-color: var(--green); background: var(--mint); box-shadow: 0 0 0 2px rgba(8,127,91,.08); }
.control-row > div { min-width: 0; flex: 1; }
.drag-handle { color: #9aaba6; font-size: 13px; letter-spacing: -3px; }
.control-row strong, .control-row small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.control-row small { display: block; color: var(--muted); margin-top: 2px; font-size: 9px; }
.control-row button { border: 0; color: #a14141; background: transparent; cursor: pointer; }
.control-editor { min-width: 0; }
.gallery-kind-field { margin: 10px 0 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; }
.gallery-kind-field[hidden], .split-part-field[hidden] { display: none !important; }
.gallery-kind-field legend { padding: 0 6px; color: var(--green-dark); font-size: 12px; font-weight: 850; }
.gallery-kind-field .radio-label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.split-part-field { margin: 10px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfc; }
.split-part-field legend { padding: 0 6px; color: var(--green-dark); font-size: 12px; font-weight: 850; }
.split-part-grid { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,1fr) auto auto; gap: 8px; align-items: end; }
.split-part-grid label { margin: 0; }
.split-part-grid .text-button { min-height: 38px; padding: 6px 4px; }
.mso-input-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.mso-input-row .button { min-height: 43px; margin-top: 7px; }
.imagemso-alphabet { display: grid; grid-template-columns: repeat(26,32px); grid-auto-rows: 48px; gap: 3px; margin: 7px 0; overflow-x: auto; }
.imagemso-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.imagemso-heading strong { color: #42534f; font-size: 12px; }
.imagemso-alphabet button { width: 32px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--green-dark); background: white; cursor: pointer; font-size: 12px; line-height: 1; font-weight: 900; }
.imagemso-alphabet button:hover, .imagemso-alphabet button.active { color: white; border-color: var(--green); background: var(--green); }
.imagemso-results { max-height: 390px; margin: 8px 0 14px; padding-right: 4px; display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 6px; overflow: auto; }
.imagemso-results button { min-width: 0; min-height: 68px; padding: 6px 4px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; cursor: pointer; }
.imagemso-results button:hover, .imagemso-results button.selected { border-color: var(--green); background: var(--mint); box-shadow: 0 0 0 2px rgba(8,127,91,.08); }
.imagemso-results button small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; text-align: center; }
.imagemso-finder-panel { padding: 24px; }
.imagemso-finder-panel .imagemso-results { max-height: 620px; margin-bottom: 0; }
.mso-swatch { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: transparent; font-size: 9px; font-weight: 900; }
.mso-swatch img { max-width: 32px; max-height: 32px; object-fit: contain; }
@media (max-width: 980px) { .imagemso-results { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 620px) { .imagemso-results { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.imagemso-loader { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfa; }
.imagemso-loader summary { cursor: pointer; color: var(--green-dark); font-size: 12px; font-weight: 800; }
.preview-control > span img { max-width: 34px; max-height: 34px; object-fit: contain; }
.preview-control > span b { font-size: 10px; }
.editor-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prompt-actions { display: flex; gap: 8px; margin-top: 10px; }
.ribbon-ai-copilot { margin: 14px 0; padding: 16px; border: 1px solid #9ccdbd; border-radius: 12px; background: #f1faf6; }
.ribbon-ai-answer { min-height: 160px; max-height: 430px; margin: 12px 0; padding: 14px; border-radius: 9px; color: #dff5ec; background: #102b26; }
.ai-open { color: var(--green-dark); background: var(--mint); text-decoration: none; }
.code-editor { min-height: 220px; color: #c9eee1; border-color: #214b41; background: #102b26; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
.code-editor:focus { border-color: #77dfb7; box-shadow: 0 0 0 3px rgba(119,223,183,.12); }
.output-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.xml-panel { min-width: 0; background: #102b26; color: #dff5ec; }
.xml-panel .text-button { color: #77dfb7; }
.code-output-panel { min-width: 0; background: #17242a; color: #e3eff1; }
.code-output-panel .text-button { color: #77dfb7; }
.code-output-panel pre { color: #d8e9ed; }
.builder-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.ribbon-filebar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; background: #17242a; color: #e3eff1; }
.ribbon-filebar label, .ribbon-filebar .filebar-item { margin: 0; min-width: 160px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ribbon-filebar select { color: #e3eff1; border-color: #40545c; background: #22343b; }
.ribbon-filebar .form-help { margin-left: auto; color: #a9bcc2; }
.compact-check { display: block; margin: 16px 0 10px; color: var(--muted); font-size: 12px; }
.xml-editor { width: 100%; min-height: 440px; resize: vertical; }
pre { min-height: 440px; margin: 0; overflow: auto; white-space: pre-wrap; color: #c9eee1; font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.65; }
#converter-preview-content { min-height: unset; background: #1a2320 !important; color: #a3e635 !important; padding: 20px; border-radius: 10px; font-family: Consolas, "Cascadia Code", monospace; font-size: 14px; line-height: 1.6; max-height: 480px; }
.user-layout { display: grid; grid-template-columns: minmax(260px, .6fr) minmax(520px, 1.4fr); gap: 22px; align-items: start; }
.user-create-form { position: sticky; top: 100px; }
.form-help { color: var(--muted); font-size: 12px; line-height: 1.6; }
.user-list { display: grid; gap: 14px; }
.user-card { position: relative; padding-bottom: 25px; }
.user-card.inactive { opacity: .62; }
.user-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.user-fields small { color: var(--muted); font-weight: 500; }
.delete-button { position: absolute; left: 34px; bottom: 36px; border: 0; color: #a14141; background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.delete-button:disabled { color: #aeb9b5; cursor: not-allowed; }
.auth-page { min-height: 100vh; background: #e8f0ed; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); }
.auth-visual { position: relative; min-height: 560px; overflow: hidden; background: #062f24; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,26,20,.14), rgba(2,26,20,.7)); }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual > div { position: absolute; left: clamp(36px, 6vw, 90px); bottom: clamp(45px, 8vw, 100px); z-index: 2; color: white; }
.auth-visual h1 { font-size: clamp(44px, 5vw, 72px); }
.auth-visual h1 em { color: #7ee4bd; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 84px); background: white; }
.auth-heading { margin: 70px 0 30px; }
.auth-heading h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.04em; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
footer { height: 60px; padding: 0 clamp(20px, 4vw, 64px); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
#toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 99px; color: white; background: #173d34; opacity: 0; pointer-events: none; transition: .2s; font-size: 13px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) {
  .app-header { height: auto; min-height: 68px; flex-wrap: wrap; padding-block: 14px; }
  .menu-toggle { display: block; }
  .server-status { display: none; }
  .logout-form { margin-left: 0; }
  .main-nav { display: none; order: 3; width: 100%; flex-direction: column; }
  .main-nav.open { display: flex; }
  .nav-item { min-height: 44px; text-align: left; border-radius: 8px; }
  .nav-item.active { background: var(--mint); }
  .nav-item::after { display: none; }
  .nav-group { width: 100%; display: block; }
  .nav-group-toggle { width: 100%; min-height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 8px; text-align: left; }
  .nav-group.has-active .nav-group-toggle { background: var(--mint); }
  .nav-group.has-active .nav-group-toggle::after { display: none; }
  .nav-submenu { position: static; width: 100%; margin: 4px 0 8px; padding: 5px 5px 5px 16px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; }
  .nav-group:hover:not(.open) .nav-submenu { display: none; }
  .nav-group:not(.open) .nav-submenu { display: none; }
  .nav-group.open .nav-submenu { display: grid; }
  .hero-grid, .tool-grid { grid-template-columns: 1fr; }
  .extract-workspace { grid-template-columns: 72px minmax(0,1fr); }
  .extract-mark { width: 64px; height: 64px; border-radius: 17px; font-size: 19px; }
  .extract-workspace > label, .extract-workspace > button, .extract-result { grid-column: 1 / -1; width: 100%; }
  .home-benefits { grid-template-columns: 1fr; }
  .ai-chat-shell { grid-template-columns: 1fr; }
  .ai-history-panel { position: static; min-height: 0; }
  .book-showcase { grid-template-columns: 1fr; }
  .ai-workspace-layout { grid-template-columns: 1fr; }
  .ai-manual-workspace { grid-template-columns: 1fr; }
  .answer-studio-grid { grid-template-columns: 1fr; }
  .user-layout { grid-template-columns: 1fr; }
  .private-board-layout { grid-template-columns: 1fr; }
  .private-board-layout > .board-compose { position: static; }
  .request-access > div { grid-template-columns: 1fr; }
  .user-create-form { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 330px; }
  .auth-card { min-height: 560px; }
  .builder-grid { grid-template-columns: minmax(0,1fr); }
  .output-grid { grid-template-columns: 1fr; }
}
@media (min-width: 981px) and (max-width: 1450px) {
  .app-header { gap: 10px; padding-inline: 18px; }
  .brand { min-width: 125px; }
  .nav-item { padding-inline: 9px; font-size: 12px; }
  .server-status { display: none; }
}
@media (max-width: 620px) {
  .tab-panel { padding-top: 42px; }
  h1 { font-size: 39px; }
  .section-head { align-items: start; flex-direction: column; }
  .check-grid, .builder-grid { grid-template-columns: 1fr; }
  .user-fields { grid-template-columns: 1fr; }
  .hero-carousel { height: 300px; border-radius: 18px; }
  .carousel-slide figcaption { max-width: 85%; padding-right: 30px; }
  .builder-grid { overflow-x: visible; }
  .editor-two-column { grid-template-columns: 1fr; }
  .prompt-actions, .builder-actions { flex-direction: column; }
  .answer-studio-head { flex-direction: column; }
  .answer-export-actions { grid-template-columns: 1fr; }
  .url-export-form { grid-template-columns: 1fr; }
  .home-feature-grid { grid-template-columns: 1fr; }
  .home-cta, .home-closing { align-items: stretch; flex-direction: column; }
  .board-compose > label, .board-post form > label, .private-board-layout .board-compose > label, .private-post form > label { grid-template-columns: 1fr; gap: 7px; }
  .board-compose, .board-post { min-height: 0; padding: 25px 20px; }
  footer { height: auto; padding-block: 20px; align-items: start; flex-direction: column; gap: 6px; }
}
@media (max-width: 760px) {
  .split-part-grid { grid-template-columns: minmax(0,1fr); }
}
.prompt-heading { margin: 20px 0 8px; align-items: center; }
.prompt-editor { min-height: 420px; line-height: 1.65; font-family: Consolas, "Noto Sans KR", monospace; }

/* 엑셀 파일 비교 전용 스타일 */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.compare-report-panel { margin-top: 24px; padding: 28px; border-radius: 20px; background: white; border: 1px solid var(--line); }
.compare-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.stat-badge { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: #fbfdfc; min-width: 140px; display: flex; flex-direction: column; gap: 4px; }
.stat-badge strong { font-size: 13px; color: var(--ink); }
.stat-badge span { font-size: 18px; font-weight: 800; color: var(--green); }
.stat-badge small { font-size: 11px; color: var(--muted); }
.stat-badge.has-diff { border-color: #d9534f; background: #fff5f5; }
.stat-badge.has-diff strong { color: #d9534f; font-size: 15px; }
.stat-badge.no-diff { border-color: var(--green); background: var(--mint); }
.stat-badge.no-diff strong { color: var(--green-dark); font-size: 15px; }
.stat-badge.highlight-green span { color: #28a745; }
.stat-badge.highlight-red span { color: #d9534f; }
.stat-badge.highlight-amber span { color: #d97706; }

.compare-sheet-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.compare-tab-btn { padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: .2s; }
.compare-tab-btn:hover { border-color: var(--green); }
.compare-tab-btn.active { border-color: var(--green); background: var(--green); color: white; }
.compare-tab-btn .diff-dot { color: #f59e0b; font-size: 12px; }
.compare-tab-btn.active .diff-dot { color: #fef08a; }
.compare-tab-btn .same-dot { color: #10b981; font-size: 13px; }
.compare-tab-btn.active .same-dot { color: white; }

.compare-sheet-panel { display: none; }
.compare-sheet-panel.active { display: block; animation: rise .25s ease-out; }
.sheet-meta-bar { display: flex; gap: 20px; padding: 12px 18px; border-radius: 10px; background: #f3f7f5; margin-bottom: 18px; font-size: 13px; color: var(--green-dark); flex-wrap: wrap; }
.schema-diff-card, .cell-diff-card { margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; }
.schema-diff-card h4, .cell-diff-card h4 { margin: 0 0 14px; font-size: 15px; color: var(--ink); }

.diff-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.diff-table th { background: #087052; color: white; padding: 10px 12px; text-align: left; font-weight: 600; }
.diff-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); background: white; }
.diff-table tr:hover td { background: #f9fbf9; }
.diff-table .old-val { color: #c53030; background: #fff5f5; font-family: monospace; }
.diff-table .new-val { color: #22543d; background: #f0fff4; font-family: monospace; font-weight: 600; }
.type-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: bold; }
.type-tag.modified { background: #fef3c7; color: #92400e; }
.type-tag.added { background: #dcfce7; color: #166534; }
.type-tag.deleted { background: #fee2e2; color: #991b1b; }
.clean-notice { padding: 20px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-weight: 600; margin: 0; text-align: center; }
.table-responsive { max-height: 480px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }

/* 상호변환기 (Data Converter) 스타일 */
.converter-mode-switch { display: flex; gap: 12px; margin-bottom: 24px; }
.mode-tab-btn { flex: 1; padding: 14px 20px; font-size: 15px; font-weight: 700; border: 2px solid var(--line); border-radius: 14px; background: white; color: var(--ink); cursor: pointer; transition: .2s; }
.mode-tab-btn:hover { border-color: var(--green); }
.mode-tab-btn.active { border-color: var(--green); background: var(--mint); color: var(--green-dark); }
.converter-panel { display: none; }
.converter-panel.active { display: block; animation: rise .25s ease-out; }

/* 수식 코드변환기 전용 스타일 */
.preset-formula-btn { padding: 6px 12px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; background: #f4f8f6; color: var(--green-dark); cursor: pointer; transition: .2s; }
.preset-formula-btn:hover { border-color: var(--green); background: var(--mint); }
.formula-tab-btn { flex: 1; padding: 12px 16px; font-size: 14px; font-weight: 700; border: 2px solid var(--line); border-radius: 12px; background: white; color: var(--ink); cursor: pointer; transition: .2s; }
.formula-tab-btn:hover { border-color: var(--green); }
.formula-tab-btn.active { border-color: var(--green); background: #087052; color: white; }
.formula-result-card { display: none; margin-top: 14px; padding: 22px; border-radius: 16px; }
.formula-result-card.active { display: block; animation: rise .25s ease-out; }
.code-block-display { background: #1a2320; color: #a3e635; padding: 20px; border-radius: 10px; font-family: Consolas, monospace; font-size: 14px; line-height: 1.6; overflow: auto; max-height: 480px; white-space: pre-wrap; word-break: break-all; }
