.mhc-portal,
.mhc-summary,
.mhc-login-card {
	--mhc-border: #dfe8ef;
	--mhc-soft: #f5f8fb;
	--mhc-muted: #637687;
	--mhc-danger: #c24149;
	--mhc-warning: #a86606;
	--mhc-radius: 20px;
	box-sizing: border-box;
	color: #172b3b;
	font-family: inherit;
	line-height: 1.75;
}
.mhc-portal *, .mhc-summary *, .mhc-login-card * { box-sizing: border-box; }
.mhc-portal { max-width: 1320px; margin: 24px auto; }
.mhc-hero {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
	padding: clamp(25px, 3vw, 38px); border-radius: 27px;
	background: linear-gradient(135deg, var(--mhc-navy) 0%, #0c496d 62%, var(--mhc-primary) 100%);
	color: #fff; box-shadow: 0 18px 45px rgba(8,43,72,.17); overflow: hidden; position: relative;
}
.mhc-hero::after { content:""; position:absolute; width:280px; height:280px; border:48px solid rgba(255,255,255,.06); border-radius:50%; left:-65px; top:-90px; }
.mhc-hero > * { position: relative; z-index: 1; }
.mhc-hero h1 { color:#fff; font-size:clamp(28px,3vw,36px); line-height:1.4; margin:4px 0 8px; }
.mhc-hero p { max-width:650px; margin:0; color:rgba(255,255,255,.8); font-size:13px; }
.mhc-eyebrow { display:block; color:var(--mhc-accent); font-size:12px; font-weight:800; letter-spacing:.02em; }
.mhc-hero__meta { min-width:245px; display:grid; gap:8px; padding:16px 18px; border:1px solid rgba(255,255,255,.16); border-radius:15px; background:rgba(255,255,255,.08); backdrop-filter:blur(6px); }
.mhc-hero__meta span { color:rgba(255,255,255,.74); font-size:11px; }
.mhc-hero__meta strong { color:#fff; font-size:12px; }
.mhc-case-switcher { display:flex; gap:8px; overflow:auto; padding:14px 2px 0; scrollbar-width:thin; }
.mhc-case-switcher a { white-space:nowrap; color:var(--mhc-navy); background:#eef4f8; padding:7px 13px; border-radius:999px; text-decoration:none; font-size:12px; }
.mhc-case-switcher a.is-active { background:var(--mhc-navy); color:#fff; }
.mhc-readonly-banner { margin-top:13px; padding:11px 14px; border:1px solid #ead9a6; border-radius:11px; background:#fff8df; color:#775a08; font-size:12px; font-weight:700; }
.mhc-tabs { display:flex; gap:5px; overflow-x:auto; margin:22px 0 18px; padding:6px; border:1px solid var(--mhc-border); border-radius:15px; background:#fff; box-shadow:0 6px 22px rgba(8,43,72,.05); scrollbar-width:thin; }
.mhc-tabs button { appearance:none; border:0; background:transparent; color:#4f6475; padding:10px 14px; border-radius:10px; white-space:nowrap; cursor:pointer; font-family:inherit; font-weight:700; }
.mhc-tabs button:hover { background:#f1f6f9; color:var(--mhc-navy); }
.mhc-tabs button.is-active { background:var(--mhc-navy); color:#fff; box-shadow:0 5px 14px rgba(8,43,72,.18); }
.mhc-tabs button span { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; margin-right:6px; padding:0 5px; border-radius:99px; background:var(--mhc-accent); color:var(--mhc-navy); font-size:10px; }
.mhc-panel[hidden] { display:none !important; }
.mhc-panel { animation:mhcFade .2s ease; }
@keyframes mhcFade { from { opacity:.35; transform:translateY(3px); } to { opacity:1; transform:none; } }
.mhc-notice { margin:0 0 14px; padding:12px 15px; border-radius:11px; font-weight:700; }
.mhc-notice.is-success { background:#e9f7ef; color:#176b43; border:1px solid #bde5cc; }
.mhc-notice.is-error { background:#fff0f1; color:#9e2830; border:1px solid #f2c4c7; }
.mhc-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:15px; }
.mhc-metrics article, .mhc-stat { background:#fff; border:1px solid var(--mhc-border); border-radius:var(--mhc-radius); padding:18px; box-shadow:0 7px 25px rgba(8,43,72,.045); }
.mhc-metrics span, .mhc-stat span { display:block; color:var(--mhc-muted); font-size:12px; margin-bottom:6px; }
.mhc-metrics strong, .mhc-stat strong { display:block; color:var(--mhc-navy); font-size:16px; line-height:1.55; }
.mhc-feature-card { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; margin:0 0 15px; border-radius:var(--mhc-radius); background:linear-gradient(115deg,#f7fbff,#eaf6ff); border:1px solid #cce6f7; }
.mhc-feature-card h2 { margin:2px 0; color:var(--mhc-navy); font-size:21px; }
.mhc-feature-card p { margin:0; color:var(--mhc-muted); }
.mhc-two-column { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.mhc-section-card, .mhc-calendar, .mhc-roadmap, .mhc-tasks, .mhc-messages, .mhc-notifications { background:#fff; border:1px solid var(--mhc-border); border-radius:var(--mhc-radius); padding:clamp(16px,2.5vw,26px); box-shadow:0 7px 25px rgba(8,43,72,.045); }
.mhc-section-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; }
.mhc-section-head h2 { margin:0; color:var(--mhc-navy); font-size:19px; }
.mhc-section-head p { margin:3px 0 0; color:var(--mhc-muted); font-size:13px; }
.mhc-section-head > button:not(.mhc-button) { border:0; background:none; color:var(--mhc-primary); cursor:pointer; font-family:inherit; font-weight:700; }
.mhc-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:8px 17px; border:1px solid transparent; border-radius:11px; text-decoration:none !important; font-family:inherit; font-weight:800; line-height:1.4; cursor:pointer; transition:.15s ease; }
.mhc-button:hover { transform:translateY(-1px); }
.mhc-button:disabled { opacity:.6; cursor:wait; transform:none; }
.mhc-button--primary { background:var(--mhc-primary); color:#fff !important; box-shadow:0 6px 16px rgba(15,117,188,.2); }
.mhc-button--ghost { background:#fff; color:var(--mhc-navy) !important; border-color:var(--mhc-border); }
.mhc-button--small { min-height:35px; padding:6px 12px; color:var(--mhc-primary) !important; border-color:#c9e2f4; background:#f3faff; font-size:12px; }
.mhc-muted { color:var(--mhc-muted); margin:10px 0; }
.mhc-compact-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.mhc-compact-list li { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px; padding:10px 0; border-bottom:1px dashed var(--mhc-border); }
.mhc-compact-list li:last-child { border-bottom:0; }
.mhc-compact-list strong { color:#253c4d; font-size:13px; }
.mhc-compact-list small { grid-column:2; color:var(--mhc-muted); font-size:11px; }
.mhc-status { display:inline-flex; align-items:center; width:max-content; padding:3px 9px; border-radius:999px; background:#eaf0f4; color:#536a7b; font-size:10px; font-weight:800; }
.mhc-status--active, .mhc-status--in_progress, .mhc-status--rescheduled { background:#e4f2fb; color:#0b649c; }
.mhc-status--completed, .mhc-status--approved { background:#e3f5ea; color:#187349; }
.mhc-status--submitted, .mhc-status--scheduled { background:#fff4d6; color:#8d5a00; }
.mhc-status--needs_revision, .mhc-status--cancelled, .mhc-status--no_show { background:#ffeaec; color:#a63038; }
.mhc-calendar { margin-bottom:15px; }
.mhc-calendar__head { display:grid; grid-template-columns:90px 1fr 90px; align-items:center; gap:10px; margin-bottom:15px; }
.mhc-calendar__head h2 { margin:0; text-align:center; color:var(--mhc-navy); font-size:20px; }
.mhc-calendar__head a { text-align:center; padding:6px 8px; border-radius:9px; background:var(--mhc-soft); color:var(--mhc-primary); text-decoration:none; font-size:12px; font-weight:700; }
.mhc-calendar__weekdays, .mhc-calendar__grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; }
.mhc-calendar__weekdays { margin-bottom:7px; }
.mhc-calendar__weekdays span { text-align:center; color:var(--mhc-muted); font-size:11px; font-weight:800; }
.mhc-calendar__grid > article, .mhc-calendar__grid > .is-empty { min-height:92px; border:1px solid #e5edf2; border-radius:11px; padding:8px; background:#fbfdfe; overflow:hidden; }
.mhc-calendar__grid article > strong { display:flex; align-items:center; justify-content:center; width:27px; height:27px; border-radius:50%; color:var(--mhc-navy); font-size:12px; }
.mhc-calendar__grid article > span { display:block; overflow:hidden; margin-top:4px; padding:3px 5px; border-radius:6px; background:#e5f4ff; color:#075d96; font-size:9px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.mhc-calendar__grid article > button { display:block; width:100%; margin-top:5px; padding:2px 3px; border:0; border-radius:6px; background:transparent; color:var(--mhc-primary); font-family:inherit; font-size:8px; cursor:pointer; }
.mhc-calendar__grid article > button:hover { background:#eaf5fc; }
.mhc-calendar__grid article.has-event { border-color:#afd7ef; background:#f5fbff; }
.mhc-calendar__grid article.has-note { box-shadow:inset 0 -3px var(--mhc-accent); }
.mhc-calendar__grid article.is-today > strong { background:var(--mhc-accent); color:var(--mhc-navy); }
.mhc-session-list { display:grid; gap:9px; }
.mhc-session-row { display:grid; grid-template-columns:105px 1fr auto; gap:15px; align-items:center; padding:13px; border:1px solid #e8eef2; border-radius:13px; }
.mhc-session-row h3 { margin:0; color:var(--mhc-navy); font-size:15px; }
.mhc-session-row p { margin:3px 0 7px; color:var(--mhc-muted); font-size:12px; }
.mhc-session-summary { margin:8px 0; padding:8px 10px; border-radius:8px; background:#f4f8fa; font-size:12px; }
.mhc-session-summary p { margin:2px 0; }
.mhc-date-chip { padding:8px; text-align:center; border-radius:10px; background:var(--mhc-soft); }
.mhc-date-chip strong, .mhc-date-chip span { display:block; }
.mhc-date-chip strong { color:var(--mhc-navy); font-size:11px; }
.mhc-date-chip span { color:var(--mhc-primary); font-weight:800; }
.mhc-roadmap > ol { list-style:none; margin:0; padding:0; position:relative; }
.mhc-roadmap > ol::before { content:""; position:absolute; top:20px; bottom:20px; right:20px; width:3px; background:#dce7ee; border-radius:3px; }
.mhc-step { display:grid; grid-template-columns:42px 1fr; gap:14px; position:relative; padding-bottom:20px; }
.mhc-step__number { display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; background:#fff; border:3px solid #cddbe5; color:#607887; font-weight:900; z-index:1; }
.mhc-step--active .mhc-step__number { border-color:var(--mhc-primary); background:var(--mhc-primary); color:#fff; box-shadow:0 0 0 5px rgba(15,117,188,.11); }
.mhc-step--completed .mhc-step__number { border-color:var(--mhc-success); background:var(--mhc-success); color:#fff; }
.mhc-step__body { border:1px solid var(--mhc-border); border-radius:15px; padding:17px; background:#fff; }
.mhc-step__head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.mhc-step__head h3 { margin:5px 0 0; color:var(--mhc-navy); font-size:17px; }
.mhc-step__head > span { color:var(--mhc-muted); font-size:11px; white-space:nowrap; }
.mhc-step__body > p { color:var(--mhc-muted); margin:8px 0; font-size:13px; }
.mhc-step details { border-top:1px dashed var(--mhc-border); padding-top:9px; }
.mhc-step summary { color:var(--mhc-primary); cursor:pointer; font-size:12px; font-weight:800; }
.mhc-step__details { padding-top:10px; }
.mhc-week + .mhc-week { margin-top:23px; }
.mhc-week > h3 { margin:0 0 11px; color:var(--mhc-navy); font-size:15px; }
.mhc-task-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.mhc-task-card { border:1px solid var(--mhc-border); border-right:4px solid #bbc9d3; border-radius:14px; padding:17px; background:#fff; }
.mhc-task-card--submitted { border-right-color:var(--mhc-accent); }
.mhc-task-card--approved { border-right-color:var(--mhc-success); }
.mhc-task-card--needs_revision { border-right-color:var(--mhc-danger); }
.mhc-task-card--in_progress { border-right-color:var(--mhc-primary); }
.mhc-task-card__head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mhc-task-card__head time { color:var(--mhc-muted); font-size:10px; }
.mhc-task-card h3 { color:var(--mhc-navy); margin:10px 0 5px; font-size:16px; }
.mhc-task-card > p { color:#536978; font-size:13px; }
.mhc-feedback, .mhc-client-note { margin-top:10px; padding:10px 12px; border-radius:10px; background:#f3f7fa; font-size:12px; }
.mhc-feedback { background:#fff6e2; border:1px solid #f2dfa8; }
.mhc-feedback strong, .mhc-client-note strong { color:var(--mhc-navy); }
.mhc-feedback p, .mhc-client-note p { margin:3px 0 0; }
.mhc-task-action { margin-top:13px; padding-top:13px; border-top:1px dashed var(--mhc-border); }
.mhc-task-action textarea { width:100%; }
.mhc-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.mhc-portal input[type="text"], .mhc-portal textarea, .mhc-portal select { width:100%; max-width:none; border:1px solid #cfdce5; border-radius:10px; background:#fff; padding:10px 12px; color:#233c4d; font-family:inherit; line-height:1.7; box-shadow:none; }
.mhc-portal input:focus, .mhc-portal textarea:focus, .mhc-portal select:focus { outline:2px solid rgba(15,117,188,.18); border-color:var(--mhc-primary); }
.mhc-portal label { display:block; color:#405868; font-size:12px; font-weight:700; margin-bottom:10px; }
.mhc-portal label input, .mhc-portal label textarea { margin-top:4px; }
.mhc-daily-layout { align-items:start; }
.mhc-daily-layout > .mhc-section-card:only-child { grid-column:1/-1; }
.mhc-daily-form-card { position:sticky; top:20px; }
.mhc-note-list { display:grid; gap:10px; }
.mhc-note-list article { border:1px solid #e5edf2; border-radius:12px; padding:13px; background:#fbfdfe; }
.mhc-note-list header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mhc-note-list header strong { color:var(--mhc-navy); font-size:12px; }
.mhc-note-list time { color:var(--mhc-muted); font-size:10px; }
.mhc-note-list ol { margin:8px 18px 8px 0; padding:0; color:#385061; font-size:12px; }
.mhc-note-list p { margin:7px 0 0; color:#536978; font-size:12px; }
.mhc-thread { display:flex; flex-direction:column; gap:10px; max-height:650px; overflow:auto; padding:6px 2px 15px; }
.mhc-message { max-width:min(82%,720px); }
.mhc-message > div { padding:12px 15px; border-radius:15px; background:#eff4f7; color:#2d4657; font-size:13px; }
.mhc-message.is-mine { align-self:flex-start; }
.mhc-message.is-mine > div { background:var(--mhc-primary); color:#fff; border-bottom-left-radius:4px; }
.mhc-message.is-theirs { align-self:flex-end; }
.mhc-message.is-theirs > div { border-bottom-right-radius:4px; }
.mhc-message footer { display:flex; align-items:center; gap:8px; padding:3px 6px; color:var(--mhc-muted); font-size:9px; }
.mhc-message footer button { border:0; background:none; padding:0; color:var(--mhc-primary); font-family:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.mhc-message-form { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:end; padding-top:15px; border-top:1px solid var(--mhc-border); }
.mhc-message-form textarea { min-height:80px; resize:vertical; }
.mhc-notification-list { display:grid; gap:9px; }
.mhc-notification-list article { display:grid; grid-template-columns:9px 1fr; gap:11px; padding:13px; border:1px solid #e5edf2; border-radius:12px; }
.mhc-notification-list article.is-unread { background:#f2f9fe; border-color:#c8e5f6; }
.mhc-notification-dot { width:8px; height:8px; margin-top:9px; border-radius:50%; background:#b8c7d1; }
.mhc-notification-list .is-unread .mhc-notification-dot { background:var(--mhc-primary); box-shadow:0 0 0 4px rgba(15,117,188,.11); }
.mhc-notification-list h3 { margin:0; color:var(--mhc-navy); font-size:14px; }
.mhc-notification-list p { margin:3px 0; color:var(--mhc-muted); font-size:12px; }
.mhc-notification-list time { color:#8495a1; font-size:10px; }
.mhc-empty-inline { padding:26px; text-align:center; border:1px dashed #cbd9e2; border-radius:13px; color:var(--mhc-muted); background:#fafcfd; }
.mhc-summary { padding:20px; background:linear-gradient(145deg,#fff,#f6fafc); border:1px solid var(--mhc-border); border-radius:20px; box-shadow:0 9px 30px rgba(8,43,72,.07); }
.mhc-summary__head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:15px; }
.mhc-summary h3 { margin:3px 0 0; color:var(--mhc-navy); font-size:19px; }
.mhc-summary__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:13px; }
.mhc-stat { padding:12px; border-radius:12px; box-shadow:none; }
.mhc-stat strong { font-size:13px; }
.mhc-badge { display:inline-flex; padding:4px 9px; border-radius:999px; font-size:10px; font-weight:800; }
.mhc-badge--attention { color:#755000; background:#fff0bd; }
.mhc-login-card, .mhc-empty { display:grid; justify-items:center; gap:8px; padding:clamp(30px,6vw,64px); text-align:center; border:1px dashed #cbdbe5; border-radius:20px; background:#f9fbfd; }
.mhc-login-card h2, .mhc-empty h2 { margin:0; color:var(--mhc-navy); }
.mhc-login-card p, .mhc-empty p { margin:0 0 8px; color:var(--mhc-muted); }
.mhc-empty__icon { display:flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%; background:#e7f4fc; color:var(--mhc-primary); font-size:28px; }
@media (max-width: 900px) {
	.mhc-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.mhc-two-column, .mhc-task-grid { grid-template-columns:1fr; }
	.mhc-daily-form-card { position:static; }
}
@media (max-width: 700px) {
	.mhc-portal { margin:12px auto; }
	.mhc-hero { align-items:stretch; flex-direction:column; padding:25px 20px; border-radius:19px; }
	.mhc-hero__meta { min-width:0; }
	.mhc-tabs { margin-top:14px; border-radius:12px; }
	.mhc-tabs button { padding:9px 11px; font-size:12px; }
	.mhc-feature-card { align-items:stretch; flex-direction:column; }
	.mhc-calendar { padding:12px; overflow:hidden; }
	.mhc-calendar__grid, .mhc-calendar__weekdays { gap:3px; }
	.mhc-calendar__grid > article, .mhc-calendar__grid > .is-empty { min-height:62px; padding:4px; border-radius:7px; }
	.mhc-calendar__grid article > strong { width:22px; height:22px; font-size:10px; }
	.mhc-calendar__grid article > span { padding:2px 3px; font-size:0; }
	.mhc-calendar__grid article > span::before { content:"جلسه"; font-size:8px; }
	.mhc-calendar__head { grid-template-columns:62px 1fr 62px; }
	.mhc-calendar__head h2 { font-size:16px; }
	.mhc-calendar__head a { font-size:10px; padding:5px 3px; }
	.mhc-session-row { grid-template-columns:82px 1fr; }
	.mhc-session-row > .mhc-button { grid-column:1/-1; }
	.mhc-step__head { flex-direction:column; }
	.mhc-step__head > span { white-space:normal; }
	.mhc-message { max-width:92%; }
	.mhc-message-form { grid-template-columns:1fr; }
	.mhc-summary__grid { grid-template-columns:1fr; }
}
@media (max-width: 440px) {
	.mhc-metrics { grid-template-columns:1fr; }
	.mhc-summary__head, .mhc-section-head { align-items:flex-start; flex-direction:column; }
	.mhc-roadmap > ol::before { right:16px; }
	.mhc-step { grid-template-columns:34px 1fr; gap:9px; }
	.mhc-step__number { width:34px; height:34px; }
}
@media (prefers-reduced-motion: reduce) {
	.mhc-panel, .mhc-button { animation:none; transition:none; }
}
