:root {
  --ink: #17191b;
  --ink-soft: #30363a;
  --muted: #737b80;
  --line: #dbe3e7;
  --line-strong: #c9d5da;
  --white: #ffffff;
  --canvas: #f7f9fa;
  --cyan: #22a9cf;
  --cyan-dark: #168ba9;
  --cyan-soft: #e8f8fc;
  --green: #24aa63;
  --green-soft: #e8f7ee;
  --danger: #c54859;
  --danger-soft: #fff2f4;
  --warning: #a86900;
  --warning-soft: #fff7e8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --content: 1360px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; color: var(--ink); font-family: Arial, Helvetica, sans-serif; background: var(--white); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* BYYD header */
.site-header,
.login-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(var(--content), calc(100% - 56px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-word { color: var(--cyan); font-size: 31px; line-height: 1; letter-spacing: -2.5px; font-weight: 500; }
.brand-tag { color: var(--cyan-dark); border: 1px solid #a9dce8; border-radius: 4px; padding: 4px 7px 3px; font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.primary-navigation { display: flex; align-items: center; justify-content: center; gap: 28px; flex: 1; }
.nav-link { position: relative; padding: 29px 0 27px; font-size: 13px; color: #3a4145; transition: color .2s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--cyan-dark); }
.nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.user-role, .language-pill { color: #566068; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; background: var(--white); font-size: 11px; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-chip small { max-width: 140px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--cyan); font-size: 12px; font-weight: 700; }
.large-avatar { width: 44px; height: 44px; }
.header-logout { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #a9dce8; border-radius: 7px; padding: 10px 14px; color: var(--cyan-dark); background: #effafd; font-size: 11px; font-weight: 700; }
.header-logout:hover { background: var(--cyan); color: var(--white); border-color: var(--cyan); }
.menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--white); padding: 10px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

/* Main */
.main-content { width: min(var(--content), calc(100% - 56px)); min-height: calc(100vh - 154px); margin: 0 auto; padding: 52px 0 84px; }
.site-footer { border-top: 1px solid var(--line); background: #f9fbfc; }
.footer-inner { width: min(var(--content), calc(100% - 56px)); min-height: 92px; margin: 0 auto; display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 11px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); }
.footer-brand .brand-word { font-size: 25px; }
.footer-inner p { margin: 0; }

/* Hero */
.byyd-hero {
  position: relative;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  gap: 70px;
  align-items: center;
  padding: 44px 0 72px;
  overflow: hidden;
}
.byyd-hero::before {
  content: "";
  position: absolute;
  width: 880px;
  height: 360px;
  right: -210px;
  top: 70px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(232,248,252,.95), rgba(244,250,252,.1));
  transform: rotate(-8deg);
  z-index: -2;
}
.byyd-hero::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 210px;
  right: -160px;
  top: 270px;
  border: 1px solid rgba(34,169,207,.14);
  border-radius: 50%;
  transform: rotate(-8deg);
  z-index: -1;
}
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--cyan-dark); font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.hero-copy h1,
.page-head h1,
.detail-header h1,
.login-hero h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.055em;
}
.hero-copy h1 { font-size: clamp(58px, 6.2vw, 92px); line-height: .94; }
.cyan-text { color: var(--cyan); }
.green-text { color: var(--green); }
.hero-copy > p { max-width: 560px; margin: 28px 0 0; color: #5e686e; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border-radius: 7px;
  padding: 0 21px;
  font-size: 12px;
  font-weight: 700;
  transition: .2s ease;
}
.primary-button { border: 1px solid var(--cyan); color: var(--white); background: var(--cyan); }
.primary-button:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); }
.secondary-button { border: 1px solid var(--cyan); color: var(--cyan-dark); background: var(--cyan-soft); }
.secondary-button:hover { background: var(--cyan); color: var(--white); }
.ghost-button { border: 1px solid var(--line-strong); color: #536068; background: var(--white); }
.ghost-button:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.text-button { min-height: auto; padding: 8px 0; color: #475157; border-bottom: 1px solid #9faeb5; border-radius: 0; }
.text-button:hover { color: var(--cyan-dark); border-color: var(--cyan); }
.primary-button.full { width: 100%; }
.compact { min-height: 38px; padding: 0 14px; font-size: 10px; }

.hero-visual { position: relative; min-height: 440px; }
.orbit { position: absolute; border: 1px solid rgba(34,169,207,.22); border-radius: 50%; }
.orbit-one { width: 470px; height: 245px; right: 5%; top: 80px; transform: rotate(-12deg); }
.orbit-two { width: 340px; height: 340px; right: 13%; top: 27px; }
.visual-core { position: absolute; right: 23%; top: 145px; width: 155px; height: 155px; display: grid; place-content: center; text-align: center; color: var(--white); background: var(--cyan); border-radius: 50%; box-shadow: 0 28px 65px rgba(26,149,180,.26); }
.visual-core span { display: block; font-size: 46px; line-height: .9; font-weight: 700; }
.visual-core strong { display: block; margin-top: 9px; font-size: 10px; letter-spacing: .18em; }
.audience-card { position: absolute; width: 250px; min-height: 146px; padding: 23px 25px; border: 1px solid #d5e3e9; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 14px 42px rgba(35,69,84,.08); }
.audience-card strong { display: block; margin-top: 9px; font-size: 26px; letter-spacing: -.03em; }
.audience-card p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.audience-label { color: var(--cyan-dark); font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.audience-dot { position: absolute; width: 13px; height: 13px; right: 20px; top: 20px; border-radius: 50%; }
.cyan-dot { background: var(--cyan); }
.green-dot { background: var(--green); }
.card-top { left: 5%; top: 38px; }
.card-bottom { right: 0; bottom: 38px; }
.service-strip { position: absolute; right: 0; bottom: 28px; display: grid; grid-template-columns: auto auto; column-gap: 9px; align-items: center; padding: 13px 17px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.92); }
.service-strip strong { font-size: 10px; }
.service-strip small { grid-column: 2; margin-top: 3px; color: var(--muted); font-size: 8px; }
.service-indicator { grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.service-strip.online .service-indicator { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* Sections */
.section-block { padding: 82px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(28px, 3.6vw, 48px); line-height: 1; letter-spacing: -.045em; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.mini-label { display: block; color: var(--cyan-dark); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.text-link { color: var(--cyan-dark); font-size: 11px; font-weight: 700; }
.text-link:hover { color: var(--ink); }

.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.action-card { position: relative; min-height: 235px; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 24px; align-items: start; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: background .2s ease, color .2s ease; }
.action-card:hover { background: #f6fbfd; }
.action-card.accent-card { background: var(--cyan); color: var(--white); }
.action-card.accent-card:hover { background: var(--cyan-dark); }
.action-index { color: var(--cyan); font-size: 13px; font-weight: 700; }
.accent-card .action-index, .accent-card small, .accent-card p { color: rgba(255,255,255,.8); }
.action-card small { color: var(--cyan-dark); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.action-card h3 { margin: 16px 0 12px; font-size: 27px; letter-spacing: -.035em; }
.action-card p { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.action-card .arrow { font-size: 24px; color: var(--cyan); }
.accent-card .arrow { color: var(--white); }

.stats-band { display: grid; grid-template-columns: repeat(4,1fr); margin: 0 calc((100vw - min(var(--content), calc(100vw - 56px))) / -2); padding: 56px max(28px, calc((100vw - var(--content)) / 2)); color: var(--white); background: #191d20; }
.metric-card { min-height: 115px; padding: 10px 38px; border-left: 1px solid rgba(255,255,255,.18); }
.metric-card:first-child { border-left: 0; }
.metric-card strong { display: block; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; color: var(--cyan); }
.metric-card span { display: block; margin-top: 13px; color: #d0d6d9; font-size: 11px; }

.history-section { border-top: 0; }
.records-list { border-top: 1px solid var(--line); }
.record-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto 130px 22px; gap: 20px; align-items: center; min-height: 94px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: color .2s ease; }
.record-row:hover { color: var(--cyan-dark); }
.record-index { color: var(--cyan); font-size: 11px; font-weight: 700; }
.record-main strong { display: block; font-size: 14px; }
.record-main p { max-width: 700px; margin: 7px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.record-row time { color: var(--muted); font-size: 9px; text-align: right; }
.record-arrow { color: var(--cyan); font-size: 20px; }

/* General page headers */
.page-head,
.detail-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 28px 0 48px; border-bottom: 1px solid var(--line); }
.page-head h1,
.detail-header h1 { font-size: clamp(46px, 5.2vw, 74px); line-height: .98; }
.page-head p,
.detail-header p { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.compact-head { padding-top: 10px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--cyan-dark); font-size: 10px; font-weight: 700; }

/* Panels and forms */
.panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.65fr); gap: 26px; align-items: start; padding-top: 34px; }
.form-panel { padding: 34px; }
.guidance-panel { position: sticky; top: 108px; padding: 31px; background: #f5fafc; }
.guidance-panel h2, .team-list-panel h2, .result-toolbar h2 { margin: 12px 0 13px; font-size: 25px; letter-spacing: -.035em; }
.guidance-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.prompt-example { margin-top: 22px; padding: 18px; color: #344249; border-left: 3px solid var(--cyan); background: var(--white); font-size: 11px; line-height: 1.7; }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid #dbe7ec; color: #59666d; font-size: 10px; line-height: 1.5; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.form-grid { display: grid; gap: 20px; }
.two-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.three-columns { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field-wrap { min-width: 0; margin-bottom: 22px; }
.field-wrap label { display: block; margin-bottom: 9px; color: #424b50; font-size: 10px; font-weight: 700; }
.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  font-size: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-wrap textarea { min-height: 250px; resize: vertical; line-height: 1.6; }
.field-wrap input:focus, .field-wrap select:focus, .field-wrap textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,169,207,.1); }
.field-help { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.field-wrap ul.errorlist, .form-error { margin: 8px 0 0; padding: 10px 12px; list-style: none; color: #8d2d3b; border: 1px solid #efc6cc; border-radius: 6px; background: var(--danger-soft); font-size: 10px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.stack-form { display: grid; gap: 2px; }

/* History table */
.filter-bar { display: flex; align-items: end; gap: 14px; margin-top: 30px; padding: 22px; }
.filter-bar .field-wrap { margin: 0; min-width: 160px; }
.filter-bar .grow { flex: 1; }
.content-section { margin-top: 34px; }
.table-panel { overflow: hidden; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; }
th { color: var(--muted); background: #f8fafb; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
tbody tr:hover { background: #f8fcfd; }
.table-type { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.table-type b { color: var(--cyan); }
.table-prompt { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #535e64; }
.table-link { color: var(--cyan-dark); font-weight: 700; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px; }
.pagination a { color: var(--cyan-dark); }
.pagination span { color: var(--muted); font-size: 10px; }

/* Status */
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: #edf1f3; color: #5e676c; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-badge.success, .status-badge.completed { color: #147342; background: var(--green-soft); }
.status-badge.failed { color: #9c3342; background: var(--danger-soft); }
.status-badge.pending, .status-badge.running { color: #8b5e0c; background: var(--warning-soft); }
.status-badge.large { min-height: 34px; padding: 0 16px; font-size: 9px; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.55fr); gap: 24px; padding-top: 32px; align-items: start; }
.result-panel { overflow: hidden; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px; border-bottom: 1px solid var(--line); }
.result-toolbar h2 { margin-bottom: 0; }
.toolbar-actions { display: flex; gap: 9px; }
.result-text { padding: 32px; color: #2f373b; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-aside { display: grid; gap: 16px; }
.request-panel, .sources-panel, .warning-panel { padding: 24px; }
.request-panel p { max-height: 330px; margin: 14px 0 0; overflow: auto; color: #59666d; font-size: 10px; line-height: 1.7; }
.sources-list { display: grid; gap: 0; margin-top: 14px; }
.sources-list a { position: relative; display: block; padding: 14px 30px 14px 0; border-top: 1px solid var(--line); }
.sources-list a:first-child { border-top: 0; }
.sources-list strong, .sources-list small { display: block; overflow-wrap: anywhere; }
.sources-list strong { font-size: 10px; line-height: 1.45; }
.sources-list small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.sources-list a > span { position: absolute; right: 2px; top: 15px; color: var(--cyan); }
.warning-panel ul { margin: 14px 0 0; padding-left: 18px; color: #725b2b; font-size: 10px; line-height: 1.6; }
.error-panel { display: flex; gap: 16px; align-items: flex-start; margin-top: 30px; padding: 26px; background: var(--danger-soft); border-color: #efc9cf; }
.error-panel > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--white); background: var(--danger); font-weight: 700; }
.error-panel h2 { margin: 0 0 8px; }
.error-panel p { margin: 0; color: #7b3c46; font-size: 11px; }

/* Team */
.team-grid { display: grid; grid-template-columns: minmax(290px,.7fr) minmax(0,1.3fr); gap: 24px; padding-top: 34px; align-items: start; }
.team-list-panel { padding: 30px; }
.team-list { display: grid; }
.team-row { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-top: 1px solid var(--line); }
.team-row:first-child { border-top: 0; }
.team-info { flex: 1; min-width: 0; }
.team-info strong, .team-info small { display: block; }
.team-info strong { font-size: 12px; }
.team-info small { margin-top: 4px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.count-chip { display: grid; place-items: center; min-width: 35px; height: 35px; padding: 0 10px; border-radius: 50%; color: var(--white); background: var(--cyan); font-size: 11px; font-weight: 700; }

/* Messages and loading */
.messages { position: fixed; z-index: 80; top: 94px; right: 24px; width: min(430px, calc(100vw - 48px)); display: grid; gap: 9px; }
.message { padding: 14px 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 14px 35px rgba(36,63,75,.12); font-size: 10px; }
.message.success { border-color: #b9dfc9; background: var(--green-soft); }
.message.error { border-color: #efc4cb; background: var(--danger-soft); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.empty-state span { color: var(--cyan); font-size: 28px; }
.empty-state h3 { margin: 11px 0 6px; color: var(--ink); }
.empty-state p { margin: 0; font-size: 10px; }
.empty-state.compact { padding: 22px; border: 0; }
.loading-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(255,255,255,.84); backdrop-filter: blur(6px); }
.loading-overlay[hidden] { display: none; }
.loading-card { width: min(400px, calc(100vw - 34px)); padding: 34px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 22px 70px rgba(30,55,67,.14); }
.loading-card strong { display: block; }
.loading-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.spinner { width: 38px; height: 38px; display: inline-block; margin-bottom: 16px; border: 3px solid var(--cyan-soft); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.login-body { min-height: 100vh; background: var(--white); }
.login-topbar { position: relative; }
.login-layout { position: relative; min-height: calc(100vh - 79px); display: grid; grid-template-columns: minmax(0,1.15fr) minmax(390px,.65fr); align-items: center; gap: 80px; width: min(var(--content), calc(100% - 56px)); margin: 0 auto; padding: 70px 0; overflow: hidden; }
.login-layout::before { content: ""; position: absolute; z-index: -2; width: 900px; height: 350px; right: -280px; top: 90px; border-radius: 50%; background: var(--cyan-soft); transform: rotate(-10deg); }
.login-layout::after { content: ""; position: absolute; z-index: -1; width: 730px; height: 240px; right: -180px; top: 260px; border: 1px solid rgba(34,169,207,.2); border-radius: 50%; transform: rotate(-10deg); }
.login-hero h1 { font-size: clamp(58px, 6.8vw, 100px); line-height: .92; }
.login-hero > p { max-width: 570px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.login-stats { display: flex; gap: 50px; margin-top: 40px; }
.login-stats span { display: grid; grid-template-columns: auto auto; gap: 10px; align-items: end; color: var(--muted); font-size: 10px; }
.login-stats strong { color: var(--cyan); font-size: 34px; line-height: 1; }
.login-panel { display: flex; justify-content: flex-end; }
.login-card { width: min(430px,100%); padding: 38px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 18px 55px rgba(30,63,77,.1); }
.login-card h2 { margin: 13px 0 9px; font-size: 31px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 26px; color: var(--muted); font-size: 11px; line-height: 1.65; }

@media (max-width: 1180px) {
  .header-inner { gap: 18px; }
  .primary-navigation { gap: 17px; }
  .nav-link { font-size: 11px; }
  .user-role, .user-chip div { display: none; }
  .byyd-hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-copy h1 { font-size: 62px; }
  .stats-band { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 900px) {
  .header-inner { position: relative; min-height: 70px; }
  .menu-toggle { display: block; }
  .primary-navigation { position: absolute; left: 0; right: 0; top: 70px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 18px 45px rgba(30,55,66,.12); }
  .primary-navigation.open { display: flex; }
  .nav-link { padding: 12px 13px; border-radius: 6px; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--cyan-soft); }
  .header-actions { margin-left: 0; }
  .byyd-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .hero-visual { min-height: 390px; }
  .service-strip { left: 0; right: auto; bottom: 8px; }
  .action-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2,1fr); }
  .metric-card:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 30px; }
  .metric-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,.18); padding-top: 30px; }
  .workspace-grid, .detail-grid, .team-grid { grid-template-columns: 1fr; }
  .guidance-panel { position: static; }
  .login-layout { grid-template-columns: 1fr; gap: 45px; }
  .login-panel { justify-content: flex-start; }
  .login-card { width: min(520px,100%); }
}

@media (max-width: 680px) {
  .header-inner, .main-content, .footer-inner, .login-layout { width: min(100% - 32px, var(--content)); }
  .brand-tag { display: none; }
  .header-actions .avatar, .header-actions .user-chip, .user-role { display: none; }
  .header-logout { padding: 9px 11px; }
  .main-content { padding-top: 30px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 360px; }
  .visual-core { right: 18%; width: 125px; height: 125px; }
  .visual-core span { font-size: 36px; }
  .audience-card { width: 210px; min-height: 128px; padding: 19px; }
  .card-top { left: 0; }
  .card-bottom { right: 0; }
  .section-block { padding: 58px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .action-card { grid-template-columns: 42px minmax(0,1fr) auto; min-height: 210px; padding: 28px 22px; }
  .action-card h3 { font-size: 23px; }
  .stats-band { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .metric-card { padding-left: 20px; padding-right: 20px; }
  .record-row { grid-template-columns: 36px minmax(0,1fr) auto 18px; gap: 10px; }
  .record-row time { display: none; }
  .record-main p { max-width: 200px; }
  .page-head, .detail-header { align-items: flex-start; flex-direction: column; }
  .page-head h1, .detail-header h1 { font-size: 44px; }
  .two-columns, .three-columns { grid-template-columns: 1fr; }
  .form-panel, .guidance-panel, .team-list-panel { padding: 23px; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar .field-wrap { width: 100%; }
  .result-toolbar { align-items: flex-start; flex-direction: column; }
  .result-text { padding: 24px; font-size: 14px; }
  .team-row { align-items: flex-start; flex-wrap: wrap; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 24px 0; }
  .footer-brand { margin-right: 0; }
  .login-hero h1 { font-size: 48px; }
  .login-stats { gap: 25px; }
  .login-card { padding: 27px; }
  .toolbar-actions { flex-wrap: wrap; }
}
