:root {
  --blue: #0033ff;
  --white: #f2f2f2;
  --black: #0f0f0f;
  --container: 1280px;
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --space-section: clamp(88px, 11vw, 156px);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  background: var(--white);
  color: var(--black);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body { margin: 0; min-width: 320px; background: var(--white); color: var(--black); }
body, button, input, textarea { font: inherit; }
body, button, input, textarea, h1, h2, h3, h4, p, span, strong, small, a, label {
  word-break: keep-all;
  overflow-wrap: break-word;
}
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(0, 51, 255, .32);
  outline-offset: 3px;
}

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid rgba(15, 15, 15, .12);
  transition: border-color 180ms ease;
}
.topbar.is-scrolled { border-bottom-color: rgba(15, 15, 15, .1); }
.topbar-inner {
  width: min(var(--container), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.topbar-brand-logo { width: 152px; height: auto; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.topbar-actions button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.topbar-actions button:hover { background: rgba(15, 15, 15, .06); }
.topbar-actions .nav-ai { background: var(--blue); color: var(--white); padding-inline: 20px; }
.topbar-actions .nav-ai:hover { background: rgba(0, 51, 255, .84); }

.page { min-height: calc(100vh - var(--header-height)); padding: 64px 24px 112px; }
.page.home { padding: 0; }
.button, button.button {
  min-height: 46px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { background: rgba(0, 51, 255, .84); }
.button.secondary { background: transparent; color: var(--black); border-color: rgba(15, 15, 15, .16); }
.button.secondary:hover { background: rgba(15, 15, 15, .05); border-color: rgba(15, 15, 15, .3); }
.button.large { min-height: 54px; padding-inline: 26px; font-size: 17px; }
.button.full { flex: 1; }
.button:disabled, button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.danger-button { border-style: dashed; }
.text-action { border: 0; background: transparent; padding: 10px 0; font-weight: 700; cursor: pointer; }
.text-action span { color: var(--blue); }

.home-hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 136px) 0 96px;
  text-align: center;
}
.eyebrow { margin-bottom: 18px; color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-hero-copy { max-width: 760px; margin: 0 auto 42px; }
.home-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(46px, 7.2vw, 92px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 820;
}
.home-hero-lead { max-width: 720px; margin: 0 auto; font-size: clamp(18px, 2vw, 23px); line-height: 1.6; color: rgba(15, 15, 15, .66); }
.home-upload {
  min-height: 360px;
  padding: 54px 24px;
  border: 1px solid rgba(15, 15, 15, .16);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(242, 242, 242, .72);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.home-upload:hover, .home-upload.is-dragging { border-color: var(--blue); box-shadow: none; }
.home-upload-mark { width: 54px; height: 54px; margin-bottom: 22px; display: grid; place-items: center; background: transparent; color: var(--blue); font-size: 26px; }
.home-upload h2 { margin-bottom: 10px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.home-upload p { margin-bottom: 24px; color: rgba(15, 15, 15, .58); }
.home-upload small { margin-top: 15px; color: rgba(15, 15, 15, .5); }
.home-quick-actions { margin-top: 22px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }

.home-section { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; padding: var(--space-section) 0; }
.section-heading { max-width: 780px; margin-bottom: 54px; }
.section-brand-logo { width: clamp(138px, 16vw, 190px); height: auto; margin-bottom: 18px; }
.capability-title-row { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); }
.capability-title-row .section-brand-logo { width: clamp(170px, 22vw, 280px); margin-bottom: 0; flex: 0 0 auto; }
.capability-title-row h2 { margin-bottom: 0; }
.section-brand-ai { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.section-brand-ai .section-brand-logo { margin-bottom: 0; }
.section-brand-ai span { color: var(--blue); font-size: 18px; font-weight: 820; letter-spacing: .08em; }
.section-heading h2, .server-copy h2, .home-final h1, .home-final h2 { margin-bottom: 20px; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -.055em; }
.section-heading > p:last-child, .server-copy > p { font-size: clamp(18px, 2vw, 22px); line-height: 1.65; color: rgba(15, 15, 15, .62); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(15, 15, 15, .16); }
.capability-grid article { min-height: 310px; padding: 34px 32px 30px 0; border-right: 1px solid rgba(15, 15, 15, .12); display: flex; flex-direction: column; align-items: flex-start; }
.capability-grid article + article { padding-left: 32px; }
.capability-grid article:last-child { border-right: 0; }
.capability-grid article > span { color: var(--blue); font-weight: 800; }
.capability-grid h3 { margin: auto 0 12px; font-size: 28px; letter-spacing: -.035em; }
.capability-grid p { min-height: 52px; color: rgba(15, 15, 15, .58); line-height: 1.65; }
.capability-grid button { border: 0; background: transparent; padding: 8px 0; font-weight: 750; cursor: pointer; }

.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 48px; }
.flow-steps article { padding: 30px; border-top: 1px solid rgba(15, 15, 15, .18); }
.flow-steps strong { display: block; margin-bottom: 48px; color: var(--blue); font-size: 42px; }
.flow-steps h3 { font-size: 22px; }
.flow-steps p { color: rgba(15, 15, 15, .58); }
.product-preview, .ai-product-preview {
  border-block: 1px solid rgba(15, 15, 15, .14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.share-preview { min-height: 410px; padding: 0 9% 70px; text-align: center; }
.preview-toolbar { min-height: 68px; margin: 0 -11% 68px; padding: 0 5%; border-bottom: 1px solid rgba(15, 15, 15, .1); display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.preview-code { font-size: clamp(56px, 9vw, 110px); font-weight: 820; letter-spacing: .08em; }
.share-preview > p { color: rgba(15, 15, 15, .56); }

.home-ai { width: 100%; max-width: none; padding-inline: max(24px, calc((100vw - var(--container)) / 2)); background: var(--black); color: var(--white); }
.home-ai .section-heading > p:last-child { color: rgba(242, 242, 242, .65); }
.ai-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(242, 242, 242, .24); }
.ai-how-grid article { min-height: 270px; padding: 30px 30px 30px 0; border-right: 1px solid rgba(242, 242, 242, .18); display: flex; flex-direction: column; align-items: flex-start; }
.ai-how-grid article + article { padding-left: 30px; }
.ai-how-grid article:last-child { border-right: 0; }
.ai-how-grid span { color: var(--blue); font-weight: 800; }
.ai-how-grid h3 { margin: auto 0 14px; color: var(--white); font-size: 25px; letter-spacing: -.03em; }
.ai-how-grid p { margin-bottom: 0; color: rgba(242, 242, 242, .62); line-height: 1.7; }
.ai-section-link { margin-top: 34px; padding: 12px 0; border: 0; background: transparent; color: var(--white); font-size: 18px; font-weight: 750; cursor: pointer; }
.ai-section-link span { margin-left: 6px; color: var(--blue); }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(15, 15, 15, .16); }
.trust-grid p { margin: 0; min-height: 190px; padding: 34px; border-right: 1px solid rgba(15, 15, 15, .12); display: flex; flex-direction: column; justify-content: space-between; }
.trust-grid p:last-child { border-right: 0; }
.trust-grid strong { font-size: 23px; }
.trust-grid span { color: rgba(15, 15, 15, .58); line-height: 1.55; }
.server-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.server-copy .button { margin-top: 18px; }
.server-preview { min-height: 420px; padding: 0 32px 32px; }
.server-preview .preview-toolbar { margin: 0 -32px 34px; padding-inline: 32px; }
.preview-files { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.preview-files span { min-height: 116px; padding: 20px; border-bottom: 1px solid rgba(15, 15, 15, .12); display: flex; align-items: center; gap: 12px; font-weight: 700; }
.preview-files img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.home-final { padding: var(--space-section) 24px; text-align: center; background: var(--blue); color: var(--white); }
.home-final--lead { min-height: calc(100svh - var(--header-height)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.home-final p { margin-bottom: 30px; color: rgba(242, 242, 242, .74); font-size: 20px; }
.home-final .button { background: var(--white); border-color: var(--white); color: var(--black); }
.site-footer { padding: 64px max(24px, calc((100vw - var(--container)) / 2)) 24px; background: var(--black); color: var(--white); }
.footer-inner { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(130px, 1fr)); gap: clamp(30px, 5vw, 76px); padding-bottom: 54px; }
.footer-brand > a { display: inline-block; margin-bottom: 14px; color: var(--white); font-size: 22px; font-weight: 820; letter-spacing: .08em; }
.footer-brand p, .footer-bottom p { margin: 0; color: rgba(242, 242, 242, .56); font-size: 13px; line-height: 1.65; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-group h2 { margin: 0 0 7px; color: rgba(242, 242, 242, .52); font-size: 12px; letter-spacing: .08em; }
.footer-group a, .footer-group button { padding: 0; border: 0; background: transparent; color: var(--white); font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; transition: color 180ms ease; }
.footer-group a:hover, .footer-group button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(242, 242, 242, .18); }

.policy-page { padding-block: clamp(64px, 9vw, 112px); }
.policy-document { width: min(860px, 100%); margin: 0 auto; }
.policy-document > .back-link { display: inline-block; margin-bottom: 52px; font-weight: 700; }
.policy-header { padding-bottom: 48px; border-bottom: 1px solid rgba(15, 15, 15, .16); }
.policy-header h1 { margin-bottom: 22px; font-size: clamp(42px, 7vw, 72px); line-height: 1.04; letter-spacing: -.055em; }
.policy-header > p:not(.eyebrow) { max-width: 700px; color: rgba(15, 15, 15, .62); font-size: clamp(18px, 2.3vw, 22px); line-height: 1.7; }
.policy-header dl { display: flex; gap: 30px; margin: 34px 0 0; }
.policy-header dl div { display: flex; gap: 9px; }
.policy-header dt { color: rgba(15, 15, 15, .5); }
.policy-header dd { margin: 0; font-weight: 650; }
.policy-content section, .policy-note { padding: 44px 0; border-bottom: 1px solid rgba(15, 15, 15, .13); }
.policy-content h2 { margin-bottom: 22px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.policy-content h3 { margin: 30px 0 10px; font-size: 19px; }
.policy-content p, .policy-content li, .policy-content dd { font-size: 17px; line-height: 1.85; }
.policy-content p, .policy-content ul { color: rgba(15, 15, 15, .72); }
.policy-content ul { padding-left: 1.35em; }
.policy-content li + li { margin-top: 6px; }
.policy-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.policy-facts { margin: 0; }
.policy-facts div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid rgba(15, 15, 15, .1); }
.policy-facts dt { font-weight: 750; }
.policy-facts dd { margin: 0; color: rgba(15, 15, 15, .68); }
.policy-note { margin-top: 44px; padding-inline: 28px; border: 1px solid rgba(15, 15, 15, .16); border-radius: var(--radius-md); }
.contact-placeholder { padding: 20px; border: 1px solid rgba(0, 51, 255, .28); border-radius: var(--radius-sm); color: var(--black) !important; font-weight: 750; }

/* Shared application surfaces */
.panel, .ai-assistant-shell, .ai-analysis-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 0;
  border-top: 1px solid rgba(15, 15, 15, .16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.panel-title { margin-bottom: 10px; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.05em; }
.panel-subtitle, .muted { color: rgba(15, 15, 15, .56); line-height: 1.6; }
.panel-head, .share-topline, .file-server-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.card { padding: 28px 0; border: 0; border-bottom: 1px solid rgba(15, 15, 15, .12); border-radius: 0; background: transparent; }
.card h3 { margin-bottom: 12px; font-size: 20px; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.share-grid, .form-grid { display: grid; gap: 24px; }
.code-display { color: var(--blue); font-size: clamp(50px, 8vw, 92px); font-weight: 820; letter-spacing: .09em; line-height: 1; }
.field-label { display: block; margin-bottom: 10px; font-weight: 750; }
.text-input, textarea, input { color: var(--black); caret-color: var(--blue); }
.text-input { width: 100%; min-height: 52px; border: 1px solid rgba(15, 15, 15, .17); border-radius: var(--radius-sm); padding: 0 16px; background: transparent; }
.status { padding: 16px 18px; border: 1px solid rgba(15, 15, 15, .16); border-radius: var(--radius-sm); line-height: 1.5; }
.status.error, .ai-analysis-error { border-left: 4px solid var(--blue); }
.back-link { border: 0; background: transparent; padding: 6px 0; margin-bottom: 20px; font-weight: 700; cursor: pointer; }

/* Send and receive */
.route-liquid-glass, .ai-analysis-glow { display: none; }
.ai-assistant-shell { max-width: 900px; }
.ai-assistant-logo { display: none; }
.ai-assistant-heading { margin-bottom: 34px; }
.ai-assistant-heading h1 { margin-bottom: 12px; font-size: clamp(40px, 6vw, 66px); letter-spacing: -.055em; }
.ai-assistant-heading p { color: rgba(15, 15, 15, .58); font-size: 18px; }
.ai-composer { padding: 22px; border: 1px solid rgba(15, 15, 15, .16); border-radius: var(--radius-md); transition: border-color 180ms ease; }
.ai-composer:focus-within, .ai-composer.dragover { border-color: var(--blue); }
.ai-assistant-input { width: 100%; min-height: 150px; border: 0; resize: vertical; background: transparent; font-size: 19px; line-height: 1.6; outline: 0; }
.ai-composer-toolbar { padding-top: 16px; border-top: 1px solid rgba(15, 15, 15, .1); }
.ai-composer-actions { display: flex; justify-content: space-between; gap: 12px; }
.ai-upload-button, .ai-send-button { min-height: 48px; border: 0; border-radius: var(--radius-sm); font-weight: 750; cursor: pointer; }
.ai-upload-button { padding: 0 18px; background: transparent; }
.ai-send-button { width: 48px; background: var(--blue); color: var(--white); font-size: 24px; }
.ai-file-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.ai-file-chip { padding: 8px 10px; border: 1px solid rgba(15, 15, 15, .14); border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.ai-file-chip button { border: 0; background: transparent; cursor: pointer; }
.mini-inputs { display: grid; grid-template-columns: repeat(6, minmax(48px, 76px)); gap: 10px; }
.digit-input { width: 100%; aspect-ratio: 1; border: 1px solid rgba(15, 15, 15, .18); border-radius: var(--radius-sm); background: transparent; text-align: center; font-size: 30px; font-weight: 750; }
.digit-input:focus { border-color: var(--blue); outline: 0; }

/* AI analysis */
.ai-analysis-page { padding-top: 64px; }
.ai-analysis-shell { max-width: 1060px; }
.ai-analysis-brand { display: none; }
.ai-analysis-shell::before { content: "AI 문서 분석"; display: block; margin-bottom: 12px; font-size: clamp(38px, 6vw, 66px); font-weight: 820; letter-spacing: -.055em; }
.ai-analysis-subtitle { margin-bottom: 34px; color: rgba(15, 15, 15, .58); font-size: 18px; }
.ai-analysis-composer { padding: 20px; border: 1px solid rgba(15, 15, 15, .16); border-radius: var(--radius-md); }
.ai-analysis-composer:focus-within { border-color: var(--blue); }
.ai-analysis-composer textarea { width: 100%; min-height: 170px; padding: 0; border: 0; background: transparent; resize: vertical; outline: 0; font-size: 18px; line-height: 1.65; }
.ai-analysis-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(15, 15, 15, .1); }
.ai-analysis-attach { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; font-weight: 750; cursor: pointer; }
.ai-analysis-limit { display: block; margin: 8px 0 0 14px; color: rgba(15, 15, 15, .48); }
.ai-analysis-submit { width: 50px; height: 50px; border: 0; border-radius: var(--radius-sm); background: var(--blue); color: var(--white); font-size: 25px; cursor: pointer; }
.ai-analysis-file { margin: 14px 0; padding: 12px; border: 1px solid rgba(15, 15, 15, .12); border-radius: var(--radius-sm); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; }
.ai-analysis-file small { color: rgba(15, 15, 15, .48); }
.ai-analysis-file button { border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.ai-analysis-feedback { min-height: 28px; margin: 16px 0; }
.ai-analysis-feedback p { margin: 0; padding: 12px 15px; border: 1px solid rgba(15, 15, 15, .14); border-radius: var(--radius-sm); }
.ai-analysis-spinner { width: 14px; height: 14px; margin-right: 9px; display: inline-block; border: 2px solid rgba(15, 15, 15, .16); border-top-color: var(--blue); border-radius: 50%; animation: spin 700ms linear infinite; }
.ai-analysis-prompts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ai-analysis-prompts button { min-height: 64px; padding: 10px 14px; border: 1px solid rgba(15, 15, 15, .14); border-radius: var(--radius-sm); background: transparent; font-weight: 750; cursor: pointer; }
.ai-analysis-prompts button:hover, .ai-analysis-prompts button.is-active { border-color: var(--blue); color: var(--blue); }
.ai-analysis-result { margin-top: 42px; padding-top: 34px; border-top: 1px solid rgba(15, 15, 15, .14); overflow-wrap: anywhere; }
.ai-analysis-result > h2 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.045em; }
.ai-analysis-downloads { margin-bottom: 32px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-analysis-downloads button { min-height: 42px; padding: 0 16px; border: 1px solid rgba(15, 15, 15, .16); border-radius: 10px; background: transparent; font-weight: 700; cursor: pointer; }
.ai-analysis-downloads small { color: rgba(15, 15, 15, .46); }
.ai-result-section { padding: 28px 0; border-top: 1px solid rgba(15, 15, 15, .1); }
.ai-result-section h3 { margin-bottom: 16px; font-size: 22px; }
.ai-result-section p, .ai-result-list { line-height: 1.72; }
.ai-result-list { margin: 0; padding-left: 22px; }
.ai-result-list li + li { margin-top: 13px; }
.ai-result-location { display: block; margin-top: 5px; color: rgba(15, 15, 15, .48); }
.ai-result-inferences { margin-top: 18px; padding: 28px; border: 1px solid var(--blue); border-radius: var(--radius-md); }
.ai-inference-list { display: grid; gap: 16px; }
.ai-inference-card { padding: 20px; border-left: 3px solid var(--blue); background: rgba(0, 51, 255, .04); }
.ai-inference-card h4 { margin: 14px 0 6px; }
.ai-inference-card h4:first-child { margin-top: 0; }
.ai-confidence { margin-top: 16px; }

/* File server */
.file-server-panel { max-width: 1180px; }
.file-server-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.file-server-form { margin: 20px 0; display: grid; gap: 16px; }
.file-server-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.stored-server { width: 100%; min-height: 82px; margin-top: 10px; padding: 14px; border: 1px solid rgba(15, 15, 15, .12); border-radius: var(--radius-sm); display: flex; align-items: center; gap: 14px; background: transparent; text-align: left; cursor: pointer; }
.stored-server:hover { border-color: var(--blue); }
.stored-server-icon { width: 34px; }
.stored-server span, .stored-server strong, .stored-server small { display: block; min-width: 0; }
.stored-server small { margin-top: 5px; color: rgba(15, 15, 15, .5); }
.file-server-toolbar { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-block: 1px solid rgba(15, 15, 15, .1); }
.file-server-upload-menu { position: absolute; top: 72px; left: 0; z-index: 10; width: 230px; padding: 8px; border: 1px solid rgba(15, 15, 15, .14); border-radius: var(--radius-sm); background: var(--white); box-shadow: 0 18px 40px rgba(15, 15, 15, .12); }
.file-server-upload-menu label { display: block; padding: 12px; border-radius: 8px; cursor: pointer; }
.file-server-upload-menu label:hover { background: rgba(15, 15, 15, .05); }
.file-server-breadcrumb { padding: 24px 0 14px; color: rgba(15, 15, 15, .5); }
.file-server-breadcrumb button { border: 0; background: transparent; font-weight: 700; cursor: pointer; }
.file-tree-section { border-top: 1px solid rgba(15, 15, 15, .16); border-bottom: 1px solid rgba(15, 15, 15, .16); overflow: hidden; }
.file-tree-root { padding: 18px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid rgba(15, 15, 15, .1); }
.file-tree-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid rgba(15, 15, 15, .08); }
.file-tree-row:last-child { border-bottom: 0; }
.file-tree-main { min-height: 68px; padding: 12px 18px; border: 0; display: flex; align-items: center; gap: 12px; background: transparent; text-align: left; cursor: pointer; min-width: 0; }
.file-tree-main img { width: 28px; }
.file-tree-folder-glyph { width: 24px; height: 24px; }
.file-tree-file-glyph { width: 28px; height: 28px; display: inline-flex; color: var(--blue); }
.duotone-icon { width: 28px; height: 28px; display: inline-block; flex: none; color: var(--blue); }
.file-thumb .duotone-icon, .file-server-file-thumb .duotone-icon { width: 34px; height: 34px; }
.ai-file-chip-icon { display: inline-flex; color: var(--blue); }
.ai-file-chip-icon .duotone-icon { width: 20px; height: 20px; }
.file-tree-file-copy { min-width: 0; }
.file-tree-file-copy strong, .file-tree-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-tree-file-copy small { margin-top: 4px; color: rgba(15, 15, 15, .48); }
.file-tree-actions, .file-server-file-actions { padding: 10px; display: flex; align-items: center; gap: 8px; }
.file-tree-delete { margin: 10px; border: 0; background: transparent; cursor: pointer; }
.file-server-empty { min-height: 180px; display: grid; place-items: center; border-block: 1px solid rgba(15, 15, 15, .12); }
.file-server-upload-panel { margin: 18px 0; padding: 18px; border: 1px solid rgba(15, 15, 15, .12); border-radius: var(--radius-sm); }
.file-server-upload-head, .file-server-upload-row { display: flex; justify-content: space-between; gap: 12px; }
.progress-wrap, .upload-loading-track { height: 6px; margin: 12px 0; border-radius: 10px; background: rgba(15, 15, 15, .1); overflow: hidden; }
.progress-bar, .upload-loading-fill { height: 100%; background: var(--blue); }
.file-server-drop-overlay { position: absolute; inset: 12px; border: 2px solid var(--blue); border-radius: var(--radius-lg); display: grid; place-content: center; gap: 8px; background: rgba(242, 242, 242, .94); text-align: center; }
.file-server-panel.file-server-drop-target { position: relative; }

/* Files, viewer, feedback */
.file-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.file-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.file-thumb { width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; color: var(--blue); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { min-width: 0; }
.file-meta strong, .file-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { margin-top: 5px; color: rgba(15, 15, 15, .5); }
.icon-btn { min-height: 38px; border: 1px solid rgba(15, 15, 15, .14); border-radius: 9px; background: transparent; cursor: pointer; }
.viewer iframe, .viewer video { width: 100%; min-height: 440px; border: 1px solid rgba(15, 15, 15, .12); border-radius: var(--radius-sm); }
.upload-loading-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(15, 15, 15, .56); }
.upload-loading-content { width: min(680px, 100%); padding: 34px; border-radius: var(--radius-md); background: var(--white); }
.upload-loading-line { display: flex; justify-content: space-between; }
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 500; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 14px 18px; border: 1px solid rgba(242, 242, 242, .18); border-radius: var(--radius-sm); background: var(--black); color: var(--white); box-shadow: 0 14px 40px rgba(15, 15, 15, .18); }
.modal-backdrop { position: fixed; inset: 0; z-index: 600; padding: 24px; display: grid; place-items: center; background: rgba(15, 15, 15, .58); }
.modal { width: min(520px, 100%); max-height: 88vh; overflow: auto; padding: 28px; border-radius: var(--radius-md); background: var(--white); }
.modal--preview { width: min(960px, 100%); }
.modal-preview img, .file-server-modal-preview img, .file-server-modal-preview video, .file-server-modal-preview iframe { width: 100%; max-height: 66vh; margin: 18px 0; object-fit: contain; border: 0; }
.qr-modal-box { margin: 20px auto; width: fit-content; padding: 16px; background: var(--white); }
.about-panel { max-width: 900px; }
.about-lead { font-size: 22px; line-height: 1.6; }
.about-copy { color: rgba(15, 15, 15, .68); line-height: 1.75; }
.about-closing { margin-top: 42px; font-size: 24px; font-weight: 750; }

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

@media (max-width: 900px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid article { border-bottom: 1px solid rgba(15, 15, 15, .12); }
  .server-section { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .ai-analysis-prompts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-height: 112px; --space-section: 82px; }
  .topbar-inner {
    width: calc(100% - 28px);
    padding: 10px 0 8px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 4px;
  }
  .topbar-brand-logo { width: 108px; }
  .topbar-actions { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .topbar-actions button { min-width: 0; min-height: 38px; padding: 0 4px; font-size: 12px; white-space: nowrap; }
  .topbar-actions .nav-ai { padding-inline: 4px; }
  .page { padding: 34px 14px 80px; }
  .home-hero, .home-section { width: calc(100% - 28px); }
  .home-hero { padding: 48px 0 74px; }
  .home-hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .home-hero-copy { width: 100%; margin-bottom: 30px; padding-inline: 8px; }
  .home-hero-lead { max-width: 36rem; font-size: 16px; line-height: 1.65; }
  .capability-title-row { align-items: center; flex-direction: row; gap: 8px; }
  .capability-title-row .section-brand-logo { width: clamp(118px, 34vw, 180px); }
  .capability-title-row h2 { font-size: clamp(28px, 9vw, 44px); }
  .home-upload { min-height: 310px; padding: 38px 18px; }
  .home-quick-actions { gap: 12px 24px; }
  .capability-grid, .flow-steps, .ai-how-grid, .trust-grid, .file-server-list-grid, .split, .file-gallery { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article + article { min-height: 230px; padding: 28px 0; border-right: 0; }
  .flow-steps { gap: 0; }
  .flow-steps article { padding-inline: 0; }
  .flow-steps strong { margin-bottom: 28px; }
  .share-preview { min-height: 330px; padding-bottom: 50px; }
  .preview-toolbar { margin-bottom: 50px; }
  .ai-product-preview { padding: 14px; }
  .ai-preview-input { align-items: flex-start; flex-direction: column; }
  .ai-how-grid article, .ai-how-grid article + article { min-height: 210px; padding: 26px 0; border-right: 0; border-bottom: 1px solid rgba(242, 242, 242, .18); }
  .ai-how-grid article:last-child { border-bottom: 0; }
  .trust-grid { gap: 0; }
  .trust-grid p { min-height: 150px; border-right: 0; border-bottom: 1px solid rgba(15, 15, 15, .1); }
  .server-preview { min-height: 350px; padding-inline: 18px; }
  .server-preview .preview-toolbar { margin-inline: -18px; padding-inline: 18px; }
  .preview-files { grid-template-columns: 1fr; }
  .preview-files span { min-height: 72px; }
  .site-footer { padding-inline: 20px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .policy-header dl { flex-direction: column; gap: 8px; }
  .policy-facts div { grid-template-columns: 1fr; gap: 5px; }
  .panel, .ai-assistant-shell, .ai-analysis-shell { padding: 24px 4px; }
  .panel-head, .share-topline, .file-server-header { flex-direction: column; }
  .button-row > .button { flex: 1 1 140px; }
  .mini-inputs { grid-template-columns: repeat(6, minmax(38px, 1fr)); gap: 5px; }
  .digit-input { font-size: 23px; border-radius: 9px; }
  .code-display { font-size: 48px; }
  .ai-analysis-prompts { grid-template-columns: 1fr 1fr; }
  .ai-analysis-prompts button { min-height: 58px; padding: 8px; font-size: 14px; }
  .ai-analysis-toolbar { align-items: center; }
  .ai-analysis-limit { max-width: 220px; }
  .file-server-actions, .file-server-toolbar { align-items: stretch; flex-direction: column; }
  .file-server-upload-menu { position: static; width: 100%; }
  .file-tree-row { grid-template-columns: minmax(0, 1fr); }
  .file-tree-actions { padding-top: 0; }
  .file-tree-branch { display: none; }
  .viewer iframe, .viewer video { min-height: 320px; }
  .toast-stack { inset: auto 14px 14px; }
  .toast { max-width: none; }
  .panel-title, .section-heading h2, .server-copy h2, .home-final h1, .home-final h2,
  .ai-assistant-heading h1, .ai-analysis-shell::before {
    font-size: clamp(30px, 9.5vw, 46px);
    line-height: 1.12;
  }
  .button, button.button, .topbar-actions button, .home-ai-modes button,
  .ai-analysis-prompts button, .stored-server, .file-tree-main {
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .topbar-actions button { font-size: 11px; letter-spacing: -.02em; }
  .home-hero { padding-top: 54px; }
  .home-upload h2 { font-size: 23px; }
  .home-final { padding-inline: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .ai-analysis-prompts { grid-template-columns: 1fr; }
  .ai-analysis-downloads button { flex: 1; }
  .ai-analysis-file { grid-template-columns: auto 1fr auto; }
  .ai-analysis-file small { display: none; }
}

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

@media print {
  .topbar, .toast-stack, .modal-backdrop { display: none !important; }
  .page { padding: 0; }
}
