.ai-med-page [hidden] { display: none !important; }
.ai-med-shell { padding: clamp(24px, 4vw, 56px) clamp(20px, 5vw, 76px) 76px; }
.ai-med-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr); gap: clamp(30px, 7vw, 110px); align-items: center; padding: clamp(36px, 6vw, 76px); overflow: hidden; border: 1px solid rgba(62, 213, 173, .26); border-radius: 28px; background: linear-gradient(125deg, #0d3027, #0b1c17 56%, #0a1513); box-shadow: 0 30px 80px rgba(0, 0, 0, .2); }
.ai-med-hero::before { position: absolute; width: 600px; height: 600px; right: -230px; top: -360px; border: 1px solid rgba(62,213,173,.18); border-radius: 50%; box-shadow: 0 0 0 70px rgba(62,213,173,.025), 0 0 0 140px rgba(62,213,173,.018); content: ""; }
.ai-med-hero__copy, .ai-med-hero__status { position: relative; z-index: 1; }
.ai-med-hero h1 { margin: 0 0 20px; font-size: clamp(50px, 7vw, 94px); }
.ai-med-hero h1 span { color: var(--teal); }
.ai-med-hero__copy > p:not(.eyebrow) { max-width: 650px; color: var(--muted); line-height: 1.65; font-size: 16px; }
.ai-med-rules { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ai-med-rules span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4, 20, 15, .25); color: #d8f1e7; font-size: 12px; }
.ai-med-rules b { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: rgba(62,213,173,.18); color: var(--teal); font-size: 11px; }
.ai-med-hero__status { padding: 34px; border: 1px solid rgba(184, 224, 207, .22); border-radius: 20px; background: rgba(5, 18, 14, .58); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.ai-med-pulse { display: flex; align-items: end; gap: 5px; height: 28px; margin-bottom: 20px; }
.ai-med-pulse span { width: 4px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 14px rgba(62,213,173,.8); animation: ai-pulse 1.45s ease-in-out infinite; }
.ai-med-pulse span:nth-child(1) { height: 10px; }.ai-med-pulse span:nth-child(2) { height: 28px; animation-delay: .16s; }.ai-med-pulse span:nth-child(3) { height: 16px; animation-delay: .3s; }
@keyframes ai-pulse { 50% { transform: scaleY(.45); opacity: .55; } }
.ai-med-hero__status p { margin: 0 0 10px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .14em; }.ai-med-hero__status strong { display: block; margin-bottom: 14px; font-size: clamp(25px, 3vw, 39px); letter-spacing: -.045em; line-height: 1.04; }.ai-med-hero__status small { color: var(--muted); line-height: 1.55; }
.ai-med-workspace { display: grid; grid-template-columns: minmax(270px, .42fr) minmax(0, 1fr); gap: 18px; max-width: 1180px; margin: 24px auto 0; }
.ai-med-card { min-width: 0; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(17, 38, 31, .88), rgba(9, 23, 18, .92)); box-shadow: inset 0 1px rgba(255,255,255,.025); }.ai-med-card--account { grid-row: span 2; }.ai-med-card--result { grid-column: 2; }
.ai-med-card__header { display: flex; gap: 20px; align-items: start; justify-content: space-between; margin-bottom: 24px; }.ai-med-card__header .eyebrow { margin-bottom: 9px; }.ai-med-card h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }.ai-med-tag { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(62,213,173,.28); border-radius: 999px; color: var(--teal); background: rgba(62,213,173,.09); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ai-med-muted { color: var(--muted); font-size: 14px; line-height: 1.65; }.ai-med-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }.ai-med-loading span:first-child { width: 15px; height: 15px; border: 2px solid var(--line-strong); border-top-color: var(--teal); border-radius: 50%; animation: ai-spin .7s linear infinite; }@keyframes ai-spin { to { transform: rotate(360deg); } }.ai-med-server-note { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 15px 0 0; color: #a8c9bb; font-size: 12px; line-height: 1.5; }.ai-med-server-note > span { color: var(--teal); font-weight: 800; }.ai-med-server-note a, .ai-med-error a { color: var(--teal); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ai-med-user { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: center; }.ai-med-avatar { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, var(--teal), #2b9680); color: #062019; font-weight: 900; }.ai-med-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }.ai-med-user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.ai-med-user small { color: var(--muted); }.ai-med-verified { grid-column: 2; color: var(--teal); font-size: 11px; font-weight: 800; }.ai-med-text-button { margin-top: 18px; padding: 0; border: 0; border-bottom: 1px solid rgba(241,124,116,.42); background: none; color: #f4a19a; cursor: pointer; font-size: 12px; }.ai-med-error { color: #ffc3bd; font-size: 14px; line-height: 1.55; }
.ai-med-card label { display: block; margin-bottom: 9px; color: #d9eee5; font-size: 13px; font-weight: 750; }.ai-med-card textarea { display: block; width: 100%; resize: vertical; min-height: 170px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 13px; outline: none; background: rgba(4, 16, 12, .58); color: var(--text); line-height: 1.55; }.ai-med-card textarea:focus { border-color: rgba(62,213,173,.62); box-shadow: 0 0 0 4px rgba(62,213,173,.09); }.ai-med-card textarea::placeholder { color: #69857a; }.ai-med-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }.ai-med-form-footer small { max-width: 370px; color: var(--muted); line-height: 1.45; }.ai-med-card .button[disabled] { cursor: not-allowed; opacity: .46; filter: saturate(.45); }.button.is-loading { color: transparent; position: relative; }.button.is-loading::after { position: absolute; width: 15px; height: 15px; border: 2px solid rgba(7,49,38,.35); border-top-color: #073126; border-radius: 50%; content: ""; animation: ai-spin .7s linear infinite; }
.ai-med-copy { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700; }.ai-med-copy:hover { border-color: rgba(62,213,173,.55); color: var(--teal); }#procedureOutput { max-height: 680px; margin: 0; padding: 18px; overflow: auto; border: 1px solid rgba(62,213,173,.17); border-radius: 13px; background: rgba(3, 15, 11, .62); color: #d6efe4; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
@media (max-width: 820px) { .main-nav { gap: 13px; }.ai-med-hero, .ai-med-workspace { grid-template-columns: 1fr; }.ai-med-card--account, .ai-med-card--result { grid-column: auto; grid-row: auto; }.ai-med-form-footer { align-items: stretch; flex-direction: column; }.ai-med-form-footer .button { width: 100%; } }
@media (max-width: 600px) { .ai-med-shell { padding: 18px 14px 46px; }.ai-med-hero { padding: 30px 24px; border-radius: 20px; }.ai-med-hero__status { padding: 25px; }.main-nav { max-width: 100%; overflow-x: auto; }.site-header { gap: 16px; }.site-header .header-action { display: none; } }
