@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
/* Baepl shared UI scale. Loaded after feature styles on every public surface. */
:root {
  --ui-font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --ui-text: 12px;
  --ui-small: 11px;
  --ui-title: 24px;
  --ui-section: 17px;
  --ui-card-title: 14px;
  --ui-gap: 12px;
  --ui-section-gap: 20px;
  --ui-panel: 18px;
  --ui-radius: 14px;
  --ui-control-radius: 10px;
  --ui-control: 42px;
  --ui-muted: #66705f;
}
body, body:has(.legal-shell) { font-family: var(--ui-font); font-size: var(--ui-text); line-height: 1.7; letter-spacing: -.25px; }
button, input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { word-break: keep-all; overflow-wrap: anywhere; }
p, label, small, .file-info, .pro-record, .account-strip { overflow-wrap: anywhere; }
.page-title, .legal-shell h1, .portfolio-hero h1, .work-top h1 { font-size: var(--ui-title); line-height: 1.45; letter-spacing: -.8px; margin: 8px 0 12px; }
.section-head h2, .form-panel>h2, .form-panel>h3, .profile-section>h3, .pro-next h2, .legal-shell h2, .work-panel h2 { font-size: var(--ui-section); line-height: 1.5; letter-spacing: -.5px; margin: 0 0 16px; }
.section-head h2 { margin: 0; }
.card h3, .integration h3, .pro-task h3, .pro-application h3, .pro-agenda-item h3, .pro-media h3, .application-row h3, .growth-notification h3 { font-size: var(--ui-card-title); line-height: 1.6; }
.sub, .pro-welcome p, .pro-task p, .pro-record p, .integration p, .file-info p, .application-row p, .pro-agenda-item p, .growth-notification p, .mode p, .chat-welcome p { font-size: var(--ui-text); line-height: 1.75; color: var(--ui-muted); }
.sub { margin: 8px 0 var(--ui-section-gap); }
.eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: 1.5px; margin: 0 0 8px; }
.footer-note, .field-help, .field small, .field-hint, .photo-feedback, .feed-caption, .card .org, .meta, .match-reasons, .file-card small, .pro-task small, .pro-record small, .pro-delivery, .pro-next-action span, .pro-agenda-date small, .pro-metrics span, .match-summary span, .chat-footer, .chat-footer button, .chat-message small, .pro-check, .pro-requirements details p, .pro-warning, .demo-note, .status-message, .legal-shell .muted, .join-steps { font-size: var(--ui-small); line-height: 1.7; }
.muted { opacity: 1; color: var(--ui-muted); }
.legal-footer, .auth-footer, .auth-footer details, .auth-footer summary, .existing-account p, .legal-shell footer { font-size: var(--ui-small); line-height: 1.75; color: var(--ui-muted); }
.section-head, .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: var(--ui-section-gap) 0 var(--ui-gap); }
.form-panel>.section-head:first-child, .manager-columns .section-head { margin-top: 0; }
.section-head>div { min-width: 0; flex: 1 1 220px; }
.section-head .eyebrow { margin-bottom: 6px; }
.section-head a, .section-head small, .text-link { font-size: var(--ui-small); line-height: 1.6; }
#main>.form-panel:first-child { margin-top: 0; }
.form-panel, .manager-columns .form-panel, .card, .pro-application, .pro-analysis, .growth-onboarding, .work-panel, .work-kpi { padding: var(--ui-panel); border-radius: var(--ui-radius); }
.form-panel>p:last-child, .legal-shell section>p:last-child { margin-bottom: 0; }
.attachment-panel, .pro-next, .profile-section { margin-top: var(--ui-section-gap); }
.profile-section { padding-top: var(--ui-section-gap); }
.grid, .manager-columns, .integration-grid, .pro-agenda, .pro-task-list { gap: var(--ui-gap); }
.manager-columns { grid-template-columns: repeat(2,minmax(0,1fr)); margin: var(--ui-section-gap) 0; }
.manager-columns>*, .pro-welcome>div, .pro-agenda-item>div, .pro-steps a { min-width: 0; }
.integration { padding: var(--ui-panel); border-radius: var(--ui-radius); }
.pro-welcome, .manager-hero { padding: 32px; border-radius: 20px; margin: var(--ui-section-gap) 0; }
.pro-welcome h2 { font-size: 24px; line-height: 1.5; letter-spacing: -.6px; }
.file-card, .application-row, .pro-task, .pro-agenda-item, .growth-notification { padding: 20px; border-radius: var(--ui-radius); gap: var(--ui-gap); }
.file-card b, .pro-record b { font-size: var(--ui-text); line-height: 1.65; }
.pro-record { padding: var(--ui-gap) 0; }
.pro-actions, .pro-shortcuts, .profile-shortcuts, .community-tabs, .community-toolbar, .filters { gap: 8px; }
.pro-shortcuts, .profile-shortcuts { margin: var(--ui-gap) 0 var(--ui-section-gap); }
.primary, .secondary, .pro-actions .primary, .pro-actions .secondary, .pro-shortcuts .secondary, .profile-shortcuts .secondary, .toolbar .primary, .auth-card .primary, .signup-button, .google, .legal-button, .legal-shell button { min-height: var(--ui-control); height: auto; padding: 11px 16px; border-radius: var(--ui-control-radius); font-size: var(--ui-text); line-height: 1.5; font-weight: 600; text-align: center; }
.primary, .secondary { white-space: normal; }
.chip, .pro-tabs button, .chat-suggestions .chip, .community-tabs button { min-height: 40px; padding: 9px 14px; font-size: var(--ui-small); line-height: 1.5; }
.badge { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 26px; padding: 4px 8px; font-size: 11px; line-height: 1.5; }
.card-top { flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-foot { gap: 12px; padding-top: 16px; flex-wrap: wrap; }
.card-foot b, .card-foot span { font-size: var(--ui-small); }
.card-foot span { white-space: normal; }
.bookmark, .close, .date-remove { min-width: 40px; min-height: 40px; }
.form-grid, .pro-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; align-items: start; }
.field, .pro-form .field { gap: 8px; margin: 0; font-size: var(--ui-text); line-height: 1.65; }
.field input:not([type=checkbox]):not([type=hidden]):not([type=file]), .field select, .auth-form input:not([type=checkbox]), .join-shell input:not([type=checkbox]) { height: var(--ui-control); min-height: var(--ui-control); border-radius: var(--ui-control-radius); font-size: 16px; padding: 10px 12px; }
.field textarea, .career-section textarea { padding: 12px; border-radius: var(--ui-control-radius); font-size: 16px; line-height: 1.75; }
.date-field legend { font-size: var(--ui-text); line-height: 1.65; margin-bottom: 8px; }
.date-field .date-parts select { padding-left: 8px; padding-right: 2px; }
.date-parts label, .time-parts label, .join-shell .date-row label { min-width: 0; }
.pro-form { gap: 20px; }
.form-panel>.field, .form-panel form>.field { margin-bottom: 20px; }
.form-panel .form-grid .field, .form-panel .form-grid .date-field { margin-bottom: 0; }
.form-panel>.primary, .form-panel form>.primary, .form-panel form .form-grid+.primary { margin-top: 20px; }
.consent, .pro-form .consent, .join-shell .check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--ui-text); line-height: 1.7; }
.consent input, .pro-form input[type=checkbox], .join-shell .check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #456522; }
.checks { gap: 8px; }
.checks label { min-height: 44px; font-size: var(--ui-small); }
.searchbar { gap: 8px; }
.searchbar input, .searchbar select { min-height: 44px; font-size: 16px; }
.searchbar:focus-within { outline: 2px solid #86aa5d; outline-offset: 3px; }
.chat-panel { border-radius: var(--ui-radius); }
.chat-history { height: 380px; padding: 20px; gap: 16px; }
.chat-message { font-size: var(--ui-text); line-height: 1.75; padding: 16px; }
.chat-suggestions, .chat-composer { padding: 16px 20px; }
.chat-suggestions { padding-bottom: 0; }
.chat-composer textarea { font-size: 16px; min-height: 64px; padding: 12px; }
.chat-composer .primary { min-width: 88px; }
.chat-footer { padding: 12px 20px; flex-wrap: wrap; }
.chat-references .secondary { font-size: var(--ui-small); min-height: 40px; }
.assistant-status { font-size: var(--ui-small); gap: 8px 12px; }
.gpt-consent-status { padding: 12px 16px; border-radius: var(--ui-control-radius); background: #f2fae8; font-size: var(--ui-text); color: #456522; }
.bottom-nav a>.nav-label { height: auto; min-height: 16px; line-height: 16px; }
.bottom-nav a>.nav-icon { width: 28px; height: 28px; }
.legal-footer { padding: 24px 20px; }
.auth-header, .legal-header { align-items: center; min-height: 80px; }
.legal-header a { color: inherit; font-size: var(--ui-text); }
.auth-stage { padding-top: 48px; }
.auth-card { max-width: 420px; border-radius: var(--ui-radius); padding: 32px; }
.auth-card h1 { font-size: 24px; line-height: 1.5; }
.auth-card .sub { margin: 12px 0 0; }
.auth-form label:not(.consent) { font-size: var(--ui-text); margin-top: 20px; }
.auth-form label:first-child { margin-top: 0; }
.auth-form input::placeholder { font-size: var(--ui-text); }
.input-action { width: 40px; height: 40px; top: 4px; }
.auth-card .primary { margin-top: 24px; }
.auth-card .links, .auth-card .links button, .existing-account button, .verification-edit, .verification-help { font-size: var(--ui-small); line-height: 1.7; }
.legal-shell { padding-top: 32px; }
.legal-shell section { padding: var(--ui-panel); border-radius: var(--ui-radius); margin: var(--ui-section-gap) 0; }
.join-shell { max-width: 640px; }
.join-shell .check small { display: block; font-size: var(--ui-small); color: var(--ui-muted); margin-top: 4px; }
.join-ai-consent { border: 1px solid #d6e6c4; border-radius: 12px; padding: 16px; background: #f6fbef; margin: 20px 0; }
.join-ai-consent .check { margin: 0; }
.join-ai-consent details { margin-top: 12px; font-size: var(--ui-small); }
.join-ai-consent summary { cursor: pointer; min-height: 32px; line-height: 1.7; }
.legal-warning { font-size: var(--ui-small); line-height: 1.75; padding: 16px; }
.legal-shell a:focus-visible, .legal-shell input:focus-visible, .legal-shell button:focus-visible, .legal-shell summary:focus-visible { outline: 2px solid #5b812e; outline-offset: 3px; }
.work-shell .work-panel, .work-shell .work-kpi { padding: var(--ui-panel); border-radius: var(--ui-radius); }
.work-shell input, .work-shell select, .work-shell textarea, .work-shell button { min-height: var(--ui-control); font-size: var(--ui-text); }
@media (max-width:1100px) {
  .manager-columns { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:980px) {
  .form-grid, .pro-form .form-grid { grid-template-columns: minmax(0,1fr); }
  .form-grid .full { grid-column: 1 / -1; }
}
@media (max-width:760px) {
  :root { --ui-title: 26px; --ui-section: 17px; --ui-panel: 20px; }
  .shell { padding: 24px 16px 32px; }
  .legal-footer { padding: 24px 16px calc(104px + env(safe-area-inset-bottom)); }
  .form-panel, .manager-columns .form-panel, .card, .pro-application, .integration, .pro-analysis { padding: var(--ui-panel); }
  .form-panel .section-head { margin-top: 0; }
  .section-head { align-items: flex-start; }
  .pro-application .section-head { gap: 12px; }
  .pro-welcome, .manager-hero { padding: var(--ui-panel); gap: 16px; }
  .pro-welcome h2 { font-size: 22px; }
  .pro-welcome p, .pro-welcome .pro-actions a, .manager-hero>div:first-child p { font-size: var(--ui-text); }
  .pro-shortcuts .secondary, .profile-shortcuts .secondary, .pro-actions .secondary, .pro-actions .primary { font-size: var(--ui-text); }
  .profile-shortcuts .secondary { flex: 1 1 140px; white-space: normal; }
  .pro-task, .pro-agenda-item, .file-card, .application-row, .growth-notification { padding: 16px; }
  .pro-task>button, .pro-task>a { font-size: var(--ui-text); }
  .pro-agenda-item { grid-template-columns: 60px minmax(0,1fr); }
  .pro-metrics, .match-summary.four { gap: 12px; }
  .pro-metrics>div, .match-summary>a { padding: 16px; }
  .pro-metrics strong, .match-summary b { font-size: 28px; line-height: 1.3; }
  .chat-history { height: min(360px,48dvh); min-height: 240px; padding: 16px; }
  .chat-message { font-size: var(--ui-text); padding: 12px 14px; }
  .chat-suggestions, .chat-composer { padding: 12px 16px; }
  .chat-suggestions { padding-bottom: 0; }
  .chat-suggestions .chip { font-size: var(--ui-small); min-height: 40px; }
  .chat-composer textarea { min-height: 56px; height: 56px; }
  .chat-composer .primary { min-width: 80px; height: 56px; font-size: var(--ui-text); padding: 10px; }
  .chat-footer { padding: 12px 16px; }
  .chat-welcome h2 { font-size: 20px; }
  .chat-welcome p { font-size: var(--ui-text); }
  .assistant-status, .assistant-status>a { font-size: var(--ui-small); }
  .header-actions .profile-pill { font-size: 12px; min-height: 40px; padding: 9px 12px; }
  .auth-stage { padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); }
  .auth-card { padding: var(--ui-panel); }
  .auth-card h1 { font-size: 22px; }
  .auth-header, .legal-header { min-height: 72px; height: auto; padding: 16px; }
  .legal-shell { padding: 24px 16px 40px; }
  .legal-shell section { padding: var(--ui-panel); }
  .portfolio-root { padding: 24px 16px 40px; }
  .portfolio-hero { gap: 20px; }
  .work-shell input, .work-shell select, .work-shell textarea { font-size: 16px; }
  #toast { bottom: calc(96px + env(safe-area-inset-bottom)); font-size: var(--ui-text); }
}
@media (max-width:420px) {
  :root { --ui-panel: 16px; }
  .pro-welcome { align-items: flex-start; }
  .pro-welcome img { width: 56px; height: 72px; }
  .pro-welcome .pro-actions { flex-direction: column; align-items: stretch; }
  .pro-steps a { padding: 12px; font-size: var(--ui-small); }
  .pro-steps { gap: 12px; }
  .portfolio-hero { flex-direction: column; }
  .chat-composer { flex-wrap: wrap; }
  .chat-composer textarea { flex-basis: 100%; }
  .chat-composer .primary { min-height: 44px; height: auto; }
  .searchbar input { flex-basis: 100%; }
  .searchbar select { flex: 1 1 110px; max-width: none; }
  .detail .actions>* { flex: 1 1 140px; }
  .pro-form .time-parts { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .pro-form .time-parts small { grid-column: 1 / -1; }
}

/* Secondary modules follow the same readable text scale. */
.manager-hero .eyebrow,.landing-intro .eyebrow{font-size:11px;letter-spacing:1.5px}
.growth-intro p:not(.eyebrow),.growth-metrics p,.growth-steps b,.task-list a,.event-line p,.pro-next-action,.pro-report-row,.pro-report-task,.install-steps p{font-size:var(--ui-text);line-height:1.75}
.growth-steps small,.growth-funnel small,.post p,.post small,.task-list small,.event-line small,.event-line>b small,.pro-steps b,.detail-grid small,.account-strip,.account-card,.compression-result p,.app-install-card small{font-size:var(--ui-small);line-height:1.7}
.growth-intro h2,.chat-welcome h2,.app-install-card h2{font-size:var(--ui-section);line-height:1.5}
.detail-grid div,.detail .description,.community-list .post h4,.pro-requirements b,.pro-evidence p{font-size:var(--ui-text);line-height:1.75}
.pro-agenda-item h3,.pro-application h3,.pro-task h3{margin:8px 0}
.form-panel+.form-panel{margin-top:var(--ui-section-gap)}

/* Compact workspace: modest text and whitespace, comfortable controls. */
.pro-welcome,.manager-hero{padding:22px;gap:16px;border-radius:16px}
.pro-welcome h2{font-size:20px;margin:10px 0 6px}
.pro-welcome p{margin:6px 0}
.pro-welcome>img{width:82px;height:82px}
.pro-actions{margin:10px 0}
.pro-task,.pro-agenda-item,.file-card,.application-row,.growth-notification{padding:16px;gap:12px}
.pro-steps a{padding:14px;font-size:12px;gap:8px}
.pro-metrics>div,.match-summary>a,.match-summary>div{padding:14px}
.pro-metrics strong,.match-summary b{font-size:24px}
.form-grid,.pro-form .form-grid{gap:16px 12px}.pro-form{gap:16px}
.field,.pro-form .field,.date-field legend{font-size:12px}
.form-panel>.field,.form-panel form>.field{margin-bottom:16px}
.form-panel .form-grid .field{margin-bottom:0}
.primary,.secondary,.pro-actions .primary,.pro-actions .secondary,.pro-shortcuts .secondary,.profile-shortcuts .secondary,.toolbar .primary,.auth-card .primary,.signup-button,.google,.legal-button,.legal-shell button{padding:9px 13px}
.badge{min-height:23px;font-size:10px;padding:3px 7px}
.chip,.pro-tabs button,.community-tabs button{min-height:36px;padding:7px 11px;font-size:11px}
.section-head,.toolbar{gap:10px}.footer-note{margin-top:18px}
.gpt-consent-status{padding:10px 12px}
.auth-card{max-width:380px;padding:24px}.auth-card h1{font-size:21px}
.header-actions .profile-pill{font-size:11px}
/* A left-aligned Baegom greeting and quiet bubbles, inspired by the supplied Q&A. */
.chat-panel{border-radius:20px;background:#f8faf8;box-shadow:none}
.chat-history{height:340px;padding:18px;gap:14px;background:#f8faf8}
.chat-welcome{display:flex;align-items:flex-start;gap:10px;text-align:left;margin:0;padding:0}
.chat-welcome>img{width:38px;height:38px;padding:6px;border-radius:50%;background:#eaf4df;flex:none}
.chat-welcome-bubble{max-width:360px;background:#fff;border:1px solid #eef0ea;border-radius:5px 18px 18px;padding:15px 16px;box-shadow:0 2px 5px #25302005}
.chat-welcome-bubble .baegom-name{font-size:10px;margin:0 0 8px;color:#66705f}
.chat-welcome-bubble p{font-size:12px;line-height:1.8;color:#485343;margin:0}
.chat-welcome-bubble p+p{margin-top:12px}
.chat-message{font-size:12px;line-height:1.8;padding:12px 14px;max-width:88%;border-color:#e9ede5;box-shadow:0 2px 5px #25302004}
.chat-message small{font-size:10px}.chat-speaker img{width:20px;height:20px}
.chat-message.user{background:#eef6e6;border-color:#e0ead6}
.chat-suggestions{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:12px 14px 0;gap:6px;border-top:1px solid #edf0ea;scrollbar-width:thin}
.chat-suggestions .chip{flex:none;min-height:36px;font-size:11px;padding:7px 11px;background:white}
.chat-composer{padding:12px 14px;gap:8px;flex-wrap:nowrap;align-items:flex-end}
.chat-composer textarea{height:46px;min-height:46px;flex-basis:auto;padding:10px 12px;font-size:14px;line-height:1.6;background:white}
.chat-composer .primary{height:46px;min-height:46px;min-width:58px;font-size:12px;padding:9px 12px}
.chat-footer{font-size:10px;padding:9px 14px;gap:8px}.chat-footer button{font-size:10px}
.chat-references .secondary{font-size:11px;min-height:36px;padding:7px 10px}
.assistant-status,.assistant-status>a{font-size:11px}
.push-guide{padding:12px 14px;border-radius:10px;background:#f6f9f1;border:1px solid #e3ebdb;margin:14px 0}
.push-guide p{margin:0;font-size:12px;line-height:1.8}.push-guide ol{font-size:12px;line-height:1.9;margin:10px 0 0;padding-left:20px}
.push-guide summary{font-size:12px;cursor:pointer}
@media(max-width:760px){
 .shell{padding-top:18px}.page-title{margin-top:6px;margin-bottom:8px}
 .pro-welcome,.manager-hero{padding:18px;gap:12px}.pro-welcome h2{font-size:18px}
 .pro-welcome>img{width:64px;height:76px}.pro-welcome p,.manager-hero>div:first-child p{font-size:12px}
 .manager-hero>div:first-child h1{font-size:25px}
 .pro-task,.pro-agenda-item,.file-card,.application-row,.growth-notification{padding:14px}
 .pro-task h3,.pro-agenda-item h3,.pro-application h3{font-size:14px}
 .pro-metrics strong,.match-summary b{font-size:24px}
 .form-panel,.manager-columns .form-panel,.card,.pro-application,.integration,.pro-analysis{padding:16px}
 .auth-card{padding:20px}.auth-card h1{font-size:21px}
 .chat-history{height:clamp(250px,39dvh,320px);min-height:0;padding:14px 12px}
 .chat-welcome{gap:8px}.chat-welcome>img{width:32px;height:32px;padding:5px}
 .chat-welcome-bubble{max-width:calc(100% - 40px);padding:13px 14px}
 .chat-welcome-bubble p,.chat-message{font-size:12px}.chat-message{padding:11px 12px;max-width:91%}
 .chat-suggestions{padding:10px 12px 0}.chat-suggestions .chip{font-size:11px;min-height:36px}
 .chat-composer{padding:10px 12px;flex-wrap:nowrap}.chat-composer textarea{font-size:16px;height:46px;min-height:46px;flex-basis:auto}
 .chat-composer .primary{height:46px;min-height:46px;min-width:56px;font-size:12px}
 .chat-footer{padding:8px 12px;font-size:10px}.chat-welcome .baegom-name{font-size:10px}
 .pro-shortcuts .secondary,.profile-shortcuts .secondary,.pro-actions .secondary,.pro-actions .primary{font-size:12px}
 .header-actions .profile-pill{font-size:11px}.assistant-status,.assistant-status>a{font-size:11px}
 .field input:not([type=checkbox]):not([type=hidden]):not([type=file]),.field select,.field textarea{font-size:16px}
}
@media(max-width:420px){.pro-welcome>img{width:52px;height:68px}.pro-welcome .pro-actions{flex-direction:row;flex-wrap:wrap}.pro-welcome .pro-actions>*{flex:1 1 115px}}

/* Notice cards open from their entire surface; independent actions stay distinct. */
[data-job-card]{cursor:pointer}[data-job-card]:hover{border-color:#bad49d}
[data-job-card] .title-button{padding:0;text-align:left;font-weight:inherit;width:100%}
#modal:has(.notice-match){width:min(760px,calc(100vw - 24px));padding:20px;max-height:calc(100dvh - 32px);overscroll-behavior:contain}
#modal:has(.notice-match) .modal-top{position:sticky;top:-20px;background:white;z-index:2;padding:8px 0;border-bottom:1px solid var(--line)}
#modal:has(.notice-match) .detail h2{font-size:20px;line-height:1.5;margin:12px 0}
#modal:has(.notice-match) .detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0;border-radius:10px}
#modal:has(.notice-match) .detail-grid>div{padding:10px 12px;font-size:12px;line-height:1.65;min-width:0}
#modal:has(.notice-match) .detail-grid small{font-size:10px;margin-bottom:3px}
#modal:has(.notice-match) .contact-value{grid-column:1 / -1}
.notice-match{font-size:11px;color:var(--ui-muted);line-height:1.7;margin:10px 0}
.notice-closed{font-size:11px;line-height:1.7;background:#f4f6f1;border-radius:8px;padding:10px 12px}
#modal:has(.notice-match) .description{font-size:12px;line-height:1.8;margin:16px 0}
#modal:has(.notice-match) .pro-analysis{padding:14px;margin:16px 0}
@media(max-width:760px){#modal:has(.notice-match){margin:auto;width:calc(100vw - 20px);padding:16px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:16px}#modal:has(.notice-match) .modal-top{top:-16px}#modal:has(.notice-match) .detail h2{font-size:18px}#modal:has(.notice-match) .detail-grid>div{padding:8px 10px}}

/* Shared compact UI scale, revision 42. */
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;margin-bottom:16px}.section-head>h2{margin:0;min-width:0;flex:1;font-size:17px;line-height:1.45}.section-head>div{min-width:0}.section-head .secondary,.section-head .primary{flex:none;margin:0;min-height:36px;font-size:12px;padding:8px 12px;border-radius:10px}.section-head .pro-actions{justify-content:flex-end;gap:8px}.form-panel>h2{font-size:17px;line-height:1.45}.form-panel .field{font-size:12px;gap:8px}.field input,.field select{min-height:42px;border-radius:10px}.form-panel .field select{font-size:13px;padding:10px 12px;height:44px}.form-panel p.sub,.form-panel p.field-help{font-size:12px;line-height:1.75}.pro-record{align-items:center;gap:12px}.pro-record>div:first-child{min-width:0;flex:1}.pro-record b{font-size:13px;overflow-wrap:anywhere}.pro-record .secondary{font-size:12px;min-height:36px;padding:8px 12px}
.chat-history{height:clamp(440px,58dvh,640px)}.chat-composer textarea,.chat-composer .primary{font-size:12px!important}.chat-composer textarea::placeholder{font-size:12px}.chat-composer textarea{resize:none}.chat-message p{white-space:pre-wrap;margin:6px 0 0}.coach-thread{display:flex;flex-direction:column;gap:12px;margin-top:20px}.coach-thread:empty{display:none}.coach-thread .user{align-self:flex-end}.coach-thread .assistant{align-self:flex-start}.coach-thread+.chat-composer{padding:16px 0 0}.coach-thread+.chat-composer textarea{flex:1;width:0}
#menu-toggle{display:flex;gap:6px;align-items:center;justify-content:center;background:#f4f8ee;border:1px solid #e2ead9;border-radius:10px;padding:8px 11px;min-height:36px;font-size:12px;color:#456522}.menu-collapsed .server-sidebar{display:none}.menu-collapsed .shell{grid-template-columns:minmax(0,1fr);max-width:1100px}
@media(max-width:760px){.chat-history{height:clamp(350px,52dvh,510px)}.section-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.section-head>h2{font-size:16px}.section-head .secondary{font-size:11px;padding:8px 10px;min-height:36px;white-space:normal;max-width:155px}.section-head .pro-actions{flex-wrap:wrap}.form-panel .field select{font-size:13px!important}#menu-toggle span{display:none}#menu-toggle{min-width:36px}.menu-open .server-sidebar{display:block;position:fixed;z-index:90;inset:76px auto calc(72px + env(safe-area-inset-bottom)) 0;width:min(280px,85vw);background:white;border-right:1px solid #e1e8d8;box-shadow:12px 0 24px #25302018;overflow:auto}.menu-open .server-sidebar aside{display:block;position:static;width:100%;padding:18px}.menu-open #sidenav{display:flex;flex-direction:column}.menu-open .server-sidebar .side-tip{margin-top:16px}}
