:root {
  --tdhp-bg:#f5f7f7;--tdhp-card:#fff;--tdhp-text:#1f2937;--tdhp-muted:#6b7280;--tdhp-line:#d9e2e1;
  --tdhp-primary:#0f5c56;--tdhp-primary-soft:#e8f3f1;--tdhp-accent:#f4a20b;--tdhp-danger:#b42318;
  --tdhp-radius:18px;--tdhp-shadow:0 10px 30px rgba(15,23,42,.06)
}
.tdhp-app{font:inherit;color:var(--tdhp-text)}.tdhp-app *{box-sizing:border-box}
.tdhp-layout{display:grid;grid-template-columns:290px 1fr;min-height:100vh;background:var(--tdhp-bg)}
.tdhp-sidebar{background:#f8fbfa;border-right:1px solid var(--tdhp-line);padding:24px;position:sticky;top:0;height:100vh}
.tdhp-brand{display:flex;align-items:center;gap:12px;font-size:30px;font-weight:700;color:var(--tdhp-primary);margin-bottom:28px}
.tdhp-brand-badge{width:34px;height:34px;border-radius:50%;border:5px solid var(--tdhp-primary);border-left-color:transparent;transform:rotate(18deg)}
.tdhp-side-card,.tdhp-panel,.tdhp-auth-card,.tdhp-consultation-card,.tdhp-field-box{background:var(--tdhp-card);border:1px solid var(--tdhp-line);border-radius:20px;box-shadow:var(--tdhp-shadow)}
.tdhp-side-card{padding:14px;margin-bottom:16px}.tdhp-menu a{display:flex;align-items:center;gap:10px;padding:14px 12px;border-radius:14px;color:var(--tdhp-text);text-decoration:none;font-size:15px}
.tdhp-menu a:hover,.tdhp-menu a.active{background:var(--tdhp-primary-soft);color:var(--tdhp-primary);font-weight:600}.tdhp-btn{border:0;border-radius:16px;padding:14px 18px;font-size:15px;font-weight:600;cursor:pointer;transition:.2s ease;text-decoration:none;display:inline-block}
.tdhp-btn-primary{background:var(--tdhp-accent);color:#fff;width:100%}.tdhp-btn-outline{background:#fff;color:var(--tdhp-primary);border:2px solid var(--tdhp-primary)}.tdhp-btn-soft{background:#fff;color:var(--tdhp-primary);border:1px solid var(--tdhp-line)}.tdhp-btn-danger{background:#fff;color:var(--tdhp-danger);border:1px solid #f1c0c0}
.tdhp-content{padding:24px}.tdhp-topbar{display:flex;justify-content:flex-end;gap:16px;margin-bottom:20px}.tdhp-profile-box{background:var(--tdhp-card);border:1px solid var(--tdhp-line);border-radius:16px;padding:14px 16px;box-shadow:var(--tdhp-shadow);min-width:220px}.tdhp-service-box{min-width:260px;text-align:center;font-weight:600}
.tdhp-tabs{display:flex;gap:32px;margin-bottom:20px;color:var(--tdhp-muted);font-weight:600}.tdhp-tabs a{text-decoration:none;color:inherit;padding-bottom:12px}.tdhp-tabs a.active{color:var(--tdhp-primary);border-bottom:3px solid var(--tdhp-primary)}
.tdhp-consultation-card{border-left:5px solid var(--tdhp-primary);padding:22px;max-width:760px;margin-bottom:18px}.tdhp-doctor-row{display:flex;gap:16px;align-items:flex-start}.tdhp-doctor-row h3{margin:0;font-size:34px;line-height:1.1}.tdhp-avatar{width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,#dcefed,#f7f7f7);border:1px solid var(--tdhp-line);display:flex;align-items:center;justify-content:center;color:var(--tdhp-primary);font-weight:700;flex-shrink:0}.tdhp-meta{color:var(--tdhp-muted);margin-top:4px}.tdhp-desc{margin:22px 0;color:#4b5563}.tdhp-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tdhp-card-actions-single{grid-template-columns:1fr 1fr}.tdhp-empty{background:#fff;border:1px dashed var(--tdhp-line);padding:24px;border-radius:20px;max-width:760px}
.tdhp-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:920px;margin-bottom:24px}.tdhp-auth-card{padding:20px}.tdhp-auth-card h3{margin-top:0}.tdhp-auth-card label{display:block;font-size:13px;margin:10px 0 6px;font-weight:600;color:#4b5563}.tdhp-auth-card input{width:100%;padding:12px 14px;border:1px solid var(--tdhp-line);border-radius:14px;margin-bottom:6px}.tdhp-auth-card .tdhp-btn-primary{margin-top:10px}
.tdhp-overlay{position:fixed;inset:0;background:rgba(17,24,39,.36);display:none;align-items:center;justify-content:center;padding:20px;z-index:9999}.tdhp-overlay.open{display:flex}.tdhp-modal{width:min(1160px,96vw);max-height:94vh;overflow:auto;background:#f7f9f8;border-radius:24px;border:1px solid var(--tdhp-line);box-shadow:0 20px 60px rgba(15,23,42,.18)}.tdhp-response-box{width:min(820px,94vw)}
.tdhp-modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 28px 0;gap:16px}.tdhp-modal-head h2{margin:0}.tdhp-modal-subtitle{margin:8px 0 0;color:var(--tdhp-muted);font-size:14px;max-width:700px}.tdhp-modal-actions-head{display:flex;gap:10px;align-items:center}.tdhp-modal-body{padding:16px 28px 28px;display:grid;grid-template-columns:1fr 320px;gap:18px}
.tdhp-stepper{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.tdhp-stepper .pill{background:#fff;border:1px solid var(--tdhp-line);color:var(--tdhp-muted);border-radius:999px;padding:10px 14px;font-size:14px;font-weight:600}.tdhp-stepper .pill.active{color:var(--tdhp-primary);border-color:var(--tdhp-primary);background:var(--tdhp-primary-soft)}.tdhp-step-view{display:none}.tdhp-step-view.active{display:block}
.tdhp-field-box{padding:16px 18px;margin-bottom:14px}.tdhp-field-box label{display:block;font-size:13px;color:#4b5563;margin-bottom:8px;font-weight:600}.tdhp-field-box input,.tdhp-field-box select,.tdhp-field-box textarea{width:100%;border:0;outline:0;background:transparent;font-size:16px;color:var(--tdhp-text);font-family:inherit}.tdhp-field-box input[type=file]{border:1px dashed var(--tdhp-line);padding:14px;border-radius:14px;background:#fafcfc}.tdhp-field-box textarea{min-height:110px;resize:vertical}.tdhp-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tdhp-right-sticky{position:sticky;top:20px;align-self:start}.tdhp-action-panel{padding:16px}.tdhp-heading-sm{font-size:18px;font-weight:700;margin-bottom:8px}.tdhp-muted{color:var(--tdhp-muted);font-size:13px}.tdhp-summary-row{display:flex;justify-content:space-between;margin-bottom:10px}.tdhp-summary-row.total{padding-top:10px;border-top:1px solid var(--tdhp-line)}.tdhp-feedback{margin:14px 0;padding:10px 12px;border-radius:12px;display:none}.tdhp-feedback.error{display:block;background:#fee2e2;color:#991b1b}.tdhp-feedback.success{display:block;background:#dcfce7;color:#166534}
.tdhp-doctor-item{border:1px solid var(--tdhp-line);border-radius:18px;background:#fff;padding:16px;margin-bottom:14px;display:flex;justify-content:space-between;gap:16px;align-items:stretch}.tdhp-doctor-name{font-size:24px;font-weight:700}.tdhp-doctor-side{min-width:190px;display:flex;flex-direction:column;justify-content:space-between}.tdhp-chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.tdhp-chip{background:var(--tdhp-primary-soft);color:var(--tdhp-primary);padding:7px 10px;border-radius:999px;font-size:13px}.tdhp-price{text-align:right;font-weight:700;font-size:24px;white-space:nowrap}.tdhp-price-note{text-align:right;font-size:13px;color:var(--tdhp-muted);font-weight:500}.tdhp-select-wrap{text-align:right;margin-top:14px}
.tdhp-document-list{margin:14px 0}.tdhp-document-item{padding:12px;border:1px solid var(--tdhp-line);border-radius:14px;background:#fff;margin-bottom:10px}.tdhp-payment-check{display:flex!important;align-items:center;gap:8px;margin-top:12px;color:var(--tdhp-text)!important;font-size:14px!important}.tdhp-payment-check input{width:auto!important}.tdhp-response-content{white-space:pre-wrap;line-height:1.7}
.tdhp-admin-wrap{max-width:1200px}.tdhp-admin-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;background:#fff;border:1px solid #d9e2e1;border-radius:24px;padding:28px 30px;margin:20px 0;box-shadow:var(--tdhp-shadow)}.tdhp-admin-hero h1{margin:0 0 10px;color:#0f5c56}.tdhp-admin-hero p{margin:0;color:#475569;max-width:700px}.tdhp-admin-shortcodes{background:var(--tdhp-primary-soft);border:1px solid #cfe1de;border-radius:18px;padding:16px 18px;min-width:220px}.tdhp-admin-shortcodes span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#4b5563;margin-bottom:6px}.tdhp-admin-shortcodes code{background:#fff;color:#0f5c56;padding:8px 10px;border-radius:10px;font-size:16px}.tdhp-admin-cards{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin:20px 0}.tdhp-admin-card,.tdhp-admin-panel{background:#fff;border:1px solid #d9e2e1;border-radius:20px;box-shadow:var(--tdhp-shadow)}.tdhp-admin-card{padding:22px}.tdhp-admin-count{font-size:34px;font-weight:700;color:#0f5c56}.tdhp-admin-label{margin-top:8px;font-weight:700;color:#334155}.tdhp-admin-desc{color:#64748b;min-height:60px}.tdhp-admin-panel{padding:24px}
@media (max-width:980px){.tdhp-layout{grid-template-columns:1fr}.tdhp-sidebar{position:static;height:auto}.tdhp-modal-body,.tdhp-grid-2,.tdhp-card-actions,.tdhp-auth-grid{grid-template-columns:1fr}.tdhp-doctor-item{display:block}.tdhp-price,.tdhp-price-note,.tdhp-select-wrap{text-align:left}.tdhp-admin-cards{grid-template-columns:1fr}.tdhp-admin-hero{display:block}.tdhp-modal-actions-head{width:100%;justify-content:flex-end}}


.tdhp-layout{font-family:inherit}
.tdhp-sidebar{padding-top:20px}
.tdhp-user-card{padding:18px 20px;background:#fff;border:1px solid var(--tdhp-line)}
.tdhp-user-label{font-size:13px;color:var(--tdhp-muted);margin-bottom:6px}
.tdhp-user-name{font-size:26px;font-weight:700;color:var(--tdhp-primary);line-height:1.2}
.tdhp-tabs a{display:inline-flex;align-items:center;gap:8px}
.tdhp-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;border-radius:999px;background:#e8f3f1;color:var(--tdhp-primary);font-size:12px;font-weight:700}
.tdhp-doctor-main{display:flex;gap:16px;align-items:flex-start}
.tdhp-doctor-copy{flex:1;min-width:0}
.tdhp-doctor-photo-wrap,.tdhp-avatar-wrap{width:72px;flex:0 0 72px}
.tdhp-doctor-photo,.tdhp-avatar{width:72px;height:72px;border-radius:18px;object-fit:cover;display:flex;align-items:center;justify-content:center;background:var(--tdhp-primary-soft);color:var(--tdhp-primary);font-weight:700}
.tdhp-grid-2>div input,.tdhp-grid-2>div select{width:100%;border:0;outline:0;background:transparent;font-size:16px;color:var(--tdhp-text);font-family:inherit}
.tdhp-payment-demo{margin-top:12px;padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px dashed var(--tdhp-line);font-size:13px;color:var(--tdhp-muted)}
.tdhp-service-box{display:none}
@media (max-width:980px){.tdhp-user-name{font-size:22px}.tdhp-doctor-main{display:block}.tdhp-doctor-photo-wrap,.tdhp-avatar-wrap{margin-bottom:12px}}


.tdhp-step-view{display:none}
.tdhp-step-view.active,.tdhp-step-view.tdhp-guest-notice.active{display:block}
.tdhp-guest-notice .tdhp-field-box{padding:28px;text-align:center}
.tdhp-consultation-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.tdhp-patient-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.tdhp-patient-card{background:#f8fbff;border:1px solid var(--tdhp-line);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.tdhp-patient-card span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--tdhp-muted);font-weight:700}
.tdhp-patient-card strong{font-size:15px;color:var(--tdhp-text)}
.tdhp-card-actions{display:flex;gap:12px;flex-wrap:wrap}
.tdhp-report-wrap{display:grid;gap:16px}
.tdhp-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tdhp-report-grid-history{grid-template-columns:repeat(2,minmax(0,1fr))}
.tdhp-report-card{background:#f8fbff;border:1px solid var(--tdhp-line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:6px}
.tdhp-report-card span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--tdhp-muted);font-weight:700}
.tdhp-report-card strong{font-size:15px;color:var(--tdhp-text)}
.tdhp-response-content{white-space:pre-wrap;line-height:1.7;color:var(--tdhp-text)}
@media (max-width:980px){.tdhp-patient-grid,.tdhp-report-grid,.tdhp-report-grid-history{grid-template-columns:1fr}}

/* v018 fixes */
.tdhp-consultation-card{max-width:920px}
.tdhp-consultation-top{align-items:flex-start}
.tdhp-status-badge{flex-shrink:0}
.tdhp-patient-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.tdhp-patient-card{min-height:86px;justify-content:center}
.tdhp-patient-card strong{line-height:1.35;word-break:break-word}
.tdhp-card-actions .tdhp-btn{min-width:170px;text-align:center}
@media (max-width:1100px){.tdhp-patient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.tdhp-patient-grid{grid-template-columns:1fr}.tdhp-card-actions{flex-direction:column}.tdhp-card-actions .tdhp-btn{width:100%}}

/* v020 typography and alignment fixes */
.tdhp-patient-grid,.tdhp-report-grid{align-items:stretch}
.tdhp-patient-card,.tdhp-report-card{justify-content:flex-start;align-items:flex-start;min-height:96px}
.tdhp-card-label{display:block !important;margin:0 0 8px 0 !important;padding:0 !important;font-size:12px !important;line-height:1.2 !important;text-transform:uppercase;letter-spacing:.04em;color:var(--tdhp-muted);font-weight:700}
.tdhp-card-value{display:block !important;margin:0 !important;padding:0 !important;font-size:16px !important;line-height:1.45 !important;color:var(--tdhp-text);font-weight:700;word-break:break-word;white-space:normal}
.tdhp-report-grid .tdhp-report-card,.tdhp-patient-grid .tdhp-patient-card{background:#f8fbff}
@media (max-width:1100px){.tdhp-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.tdhp-report-grid{grid-template-columns:1fr}}
