:root {
  --font-sans: Inter,"SF Pro Text","Segoe UI",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;

  --color-bg:#FBFAF8;
  --color-bg-elevated:#F5F3EF;
  --color-bg-soft:#FFFFFF;

  --color-surface:#FFFFFF;
  --color-surface-muted:#F6F2EC;
  --color-surface-strong:#EEE8DF;

  --color-text:#2A2621;
  --color-text-soft:#474038;
  --color-text-muted:#7B7267;
  --color-text-faint:#A2988B;

  --color-border:#E7DFD6;
  --color-border-soft:#F0E8DD;
  --color-border-strong:#D8CCBE;

  --color-primary:#6D5DF6;
  --color-primary-hover:#5C4DE8;
  --color-primary-soft:#F2EFFF;
  --color-primary-soft-strong:#E9E2D8;

  --color-success:#6E8F5E;
  --color-success-soft:#F1F7ED;

  --color-warning:#C89A5A;
  --color-warning-soft:#FBF3E7;

  --color-danger:#C46A5E;
  --color-danger-soft:#FAEEEB;

  --color-overlay:rgba(30,24,18,0.28);

  --color-shadow-xs:rgba(40,30,20,0.02);
  --color-shadow-sm:rgba(40,30,20,0.05);
  --color-shadow-md:rgba(40,30,20,0.08);
  --color-shadow-lg:rgba(40,30,20,0.12);

  --radius-sm:6px;
  --radius-md:8px;
  --radius-lg:10px;
  --radius-xl:12px;
  --radius-2xl:12px;
  --radius-pill:999px;

  --shadow-xs:0 1px 1px var(--color-shadow-xs);
  --shadow-sm:0 2px 6px var(--color-shadow-sm);
  --shadow-md:0 6px 16px var(--color-shadow-md);
  --shadow-lg:0 10px 24px var(--color-shadow-lg);

  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:14px;
  --space-5:18px;
  --space-6:20px;
  --space-7:24px;
  --space-8:28px;
  --space-9:32px;
  --space-10:36px;
  --space-12:42px;

  --text-xs:12px;
  --text-sm:14px;
  --text-md:16px;
  --text-lg:18px;
  --text-xl:22px;
  --text-2xl:28px;
  --text-3xl:36px;

  --line-xs:1.35;
  --line-sm:1.45;
  --line-md:1.55;
  --line-lg:1.65;
  --line-xl:1.2;

  --control-xs:34px;
  --control-sm:40px;
  --control-md:44px;
  --control-lg:48px;
  --control-xl:54px;

  --calendar-slot-height:42px;
  --calendar-header-height:62px;
  --calendar-header-height-mobile:54px;
  --calendar-sticky-z:20;
  --calendar-sticky-z-time:21;

  --calendar-header-bg:#F6EFE6;
  --calendar-header-bg-time:rgba(255,255,255,0.98);
  --calendar-header-bg-today:#EFE4D6;
  --calendar-header-shadow:0 1px 0 var(--cal-grid-line),0 8px 18px rgba(40,30,20,0.06);

  --container:1240px;
  --content:980px;
  --focus-ring:0 0 0 3px rgba(140,110,70,0.16);

  --cal-shell-border:#DED2C3;
  --cal-grid-bg:#FFFFFF;
  --cal-grid-soft:#F7F1E8;
  --cal-grid-cell:#FFFFFF;
  --cal-grid-line:#E7DBCC;
  --cal-grid-line-soft:#F2E8DC;

  --cal-chip-bg:#F4ECE2;
  --cal-chip-bg-hover:#ECE0D0;
  --cal-muted:#7B7267;

  --cal-success:#EDF5E8;
  --cal-success-soft:#F1F7ED;
  --cal-danger-soft:#FAEEEB;

  --cal-busy-a:#E8E1D8;
  --cal-busy-b:#FAF6F1;
  --cal-booked:#CBB79E;
  --cal-selected:#EBDCC9;

  --cal-event-primary:#5A5248;
  --cal-event-secondary:#9B8F80;

  --cal-busy-block-bg:rgba(215,205,190,0.5);
  --cal-busy-block-border:rgba(150,130,110,0.22);
  --cal-busy-block-text:#4F463C;
  --cal-busy-block-time:#7A6F63;
  --cal-busy-block-stripe:rgba(255,255,255,0.4);

  --calendar-cursor-clickable:pointer;
  --calendar-cursor-disabled:not-allowed;
  --calendar-cursor-static:default;

  --calendar-action-ring:inset 0 0 0 1px rgba(110,143,95,0.55);
  --calendar-action-ring-strong:inset 0 0 0 1px rgba(110,143,95,0.25),0 0 0 1px rgba(110,143,95,0.18);
  --calendar-action-ring-event:0 0 0 1px rgba(255,255,255,0.2),0 10px 24px rgba(40,30,20,0.10);
}

*,*::before,*::after{box-sizing:border-box;}
html{font-size:16px;-webkit-text-size-adjust:100%;scrollbar-gutter:stable;}
body{margin:0;min-height:100vh;font-family:var(--font-sans);font-size:var(--text-md);line-height:var(--line-lg);font-weight:400;color:var(--color-text);background:var(--color-bg);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-kerning:normal;}
.app-shell--hidden{opacity:0;visibility:hidden;}
.app-shell--visible{opacity:1;visibility:visible;transition:opacity .16s ease;}
.app-loader{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:var(--color-bg);opacity:1;visibility:visible;transition:opacity .16s ease,visibility .16s ease;}
.app-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none;}
.app-loader__brand{font-size:22px;font-weight:600;letter-spacing:-0.02em;color:var(--color-text);opacity:.6;}
button,input,select,textarea{font:inherit;color:inherit;}
textarea#tc-group-description{height:105px;}
button{padding:0;border:0;background:none;cursor:pointer;}
a{color:inherit;text-decoration:none;}
img,svg{display:block;max-width:100%;}
ul,ol{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4,h5,h6,p{margin:0;}
table{border-collapse:collapse;border-spacing:0;}
input::placeholder,textarea::placeholder{color:var(--color-text-faint);}
:focus-visible{outline:none;}
.is-hidden{display:none !important;}
.ui-container{width:100%;max-width:calc(var(--container) + var(--space-6) * 2);margin:0 auto;padding-left:var(--space-6);padding-right:var(--space-6);}
.ui-page{padding-top:var(--space-8);padding-bottom:var(--space-10);}
.ui-page__head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-6);}
.ui-page__head-meta{display:grid;gap:var(--space-2);}
.ui-section{margin-bottom:var(--space-8);}
.ui-stack{display:grid;gap:var(--space-4);}
.ui-stack--xs{gap:var(--space-2);}
.ui-stack--sm{gap:var(--space-3);}
.ui-stack--lg{gap:var(--space-6);}
.ui-grid{display:grid;gap:var(--space-4);}
.ui-grid--2{grid-template-columns:repeat(2,minmax(0,1fr));}
.ui-row{display:flex;align-items:center;gap:var(--space-3);}
.ui-row--between{justify-content:space-between;}
.ui-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);}
.ui-h2{font-size:var(--text-xl);line-height:1.25;font-weight:700;letter-spacing:-0.02em;color:var(--color-text);}
.ui-h3{font-size:var(--text-lg);line-height:1.35;font-weight:600;color:var(--color-text);}
.ui-text{font-size:var(--text-md);line-height:var(--line-lg);color:var(--color-text-soft);}
.ui-text-sm{font-size:var(--text-sm);line-height:var(--line-md);color:var(--color-text-soft);}
.ui-text-xs{font-size:var(--text-xs);line-height:var(--line-sm);color:var(--color-text-muted);}
.ui-text-muted{font-size:var(--text-sm);line-height:var(--line-md);color:var(--color-text-muted);}
.ui-label{display:inline-block;font-size:var(--text-sm);line-height:var(--line-sm);font-weight:700;color:var(--color-text-soft);}
.ui-help{font-size:var(--text-xs);line-height:var(--line-sm);color:var(--color-text-muted);}
.ui-link{color:var(--color-primary);font-weight:700;transition:color .18s ease;}
.ui-link:hover{color:var(--color-primary-hover);}
.ui-card{background:var(--color-surface);border:1px solid var(--color-border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;}
.ui-card__body{padding:16px;}
.ui-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-3);padding:16px;border-bottom:1px solid var(--color-border-soft);}
.ui-card__title{font-size:var(--text-lg);line-height:1.3;font-weight:700;color:var(--color-text);}
.ui-card__text{margin-top:var(--space-1);font-size:var(--text-sm);line-height:var(--line-md);color:var(--color-text-muted);}
.ui-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-width:0;height:var(--control-md);padding:0 18px;border:1px solid transparent;border-radius:8px;font-size:16px;line-height:1;font-weight:700;white-space:nowrap;transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    opacity .18s ease;}
.ui-btn:hover{transform:none;}
.ui-btn:active{transform:translateY(0);}
.ui-btn:focus-visible{box-shadow:var(--focus-ring);}
.ui-btn:disabled,.ui-btn.is-disabled{opacity:.58;cursor:default;pointer-events:none;transform:none;}
.ui-btn--primary{color:#fff;background:var(--color-primary);box-shadow:none;border-color:var(--color-primary);}
.ui-btn--primary:hover{background:var(--color-primary-hover);}
.ui-btn--secondary{background:var(--color-surface-muted);border-color:var(--color-border-strong);}
.ui-btn--secondary:hover{background:var(--color-surface-muted);border-color:var(--color-border-strong);box-shadow:none;}
.ui-btn--ghost{color:var(--color-text-muted);background:transparent;}
.ui-btn--ghost:hover{background:var(--color-surface-muted);color:var(--color-text);}
.ui-btn--danger{color:#fff;background:var(--color-danger);box-shadow:none;}
.ui-btn--danger:hover{background:#c95548;}
.ui-btn--sm{height:var(--control-sm);padding:0 14px;}
.ui-btn--lg{height:var(--control-lg);padding:0 22px;}
.ui-field{display:grid;gap:var(--space-2);}
.ui-input,.ui-select,.ui-textarea{width:100%;border:1px solid var(--color-border);border-radius:7px;background:var(--color-surface);color:var(--color-text);transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;}
.ui-input,.ui-select{height:var(--control-md);padding:0 16px;}
.ui-textarea{min-height:132px;padding:12px 14px;resize:vertical;}
.ui-input:hover,.ui-select:hover,.ui-textarea:hover{border-color:var(--color-border-strong);}
.ui-input:focus,.ui-select:focus,.ui-textarea:focus{outline:none;border-color:var(--color-primary);box-shadow:var(--focus-ring);}
.ui-badge{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 12px;border-radius:8px;font-size:var(--text-xs);line-height:1;font-weight:700;}
.ui-badge--neutral{background:var(--color-bg-soft);color:var(--color-text-soft);}
.ui-badge--success{background:var(--color-success-soft);color:#2F8F69;}
.ui-badge--warning{background:var(--color-warning-soft);color:#B8831F;}
.ui-badge--danger{background:var(--color-danger-soft);color:#B45353;}
.ui-table-wrap{overflow-x:auto;background:var(--color-surface);border:1px solid var(--color-border-soft);border-radius:10px;box-shadow:none;}
.ui-table{width:100%;min-width:720px;}
.ui-table th,.ui-table td{padding:16px 18px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--color-border-soft);font-size:var(--text-sm);}
.ui-table th{font-weight:700;color:var(--color-text-muted);background:var(--color-bg-soft);}
.ui-table td{color:var(--color-text-soft);}
.ui-table tbody tr:last-child td{border-bottom:0;}
.ui-table tbody tr:hover td{background:var(--color-bg-soft);}
.ui-empty{display:grid;gap:var(--space-2);padding:var(--space-8);text-align:center;background:var(--color-bg-soft);border:1px dashed var(--color-border-strong);border-radius:8px;}
.ui-empty__title{font-size:var(--text-lg);line-height:1.3;font-weight:700;color:var(--color-text);}
.ui-empty__text{font-size:var(--text-sm);line-height:var(--line-md);color:var(--color-text-muted);}
.ui-modal-backdrop{position:fixed;inset:0;z-index:1000;background:var(--color-overlay);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:var(--space-4);}
.ui-modal{width:100%;max-width:560px;background:rgba(250,247,242,0.94);border:1px solid var(--color-border-soft);border-radius:8px;box-shadow:var(--shadow-lg);}
.ui-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-3);padding:16px;}
.ui-modal__body{padding:0 16px 16px;}
.ui-modal__foot{display:flex;justify-content:flex-end;gap:var(--space-2);padding:0 16px 16px;}
.platform-header{position:fixed;left:0;right:0;top:0;z-index:1400;width:100%;background:#fff;border-bottom:1px solid var(--color-border-soft);}
.platform-header__inner{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px;}
.platform-header__brand{display:inline-flex;align-items:center;text-decoration:none;font-size:20px;line-height:1.1;font-weight:700;letter-spacing:-0.02em;color:var(--color-text);transition:opacity .18s ease,transform .18s ease;}
.platform-header__brand:hover{opacity:0.86;}
.platform-header__right{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;}
.platform-header__locale-wrap{position:relative;display:inline-flex;align-items:center;margin:0;}
.platform-header__locale{min-width:72px;height:40px;padding:0 36px 0 14px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);font:inherit;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 1px 2px rgba(16,24,40,0.04);appearance:none;-webkit-appearance:none;-moz-appearance:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;}
.platform-header__locale-wrap::after{content:"▼";position:absolute;right:16px;top:50%;transform:translateY(-52%);pointer-events:none;font-size:10px;color:var(--color-text-muted);}
.platform-header__locale:hover,.platform-header__locale:focus{border-color:var(--color-border-strong);background:var(--color-surface-muted);outline:none;}
.platform-header__domain,.platform-header__login,.platform-header__account-btn{height:40px;border-radius:8px;background:var(--color-surface);color:var(--color-text);text-decoration:none;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;}
.platform-header__domain:hover,.platform-header__login:hover,.platform-header__account-btn:hover{border-color:var(--color-border-strong);background:var(--color-surface-muted);}
.platform-header__domain:focus,.platform-header__login:focus,.platform-header__account-btn:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 4px rgba(135,107,71,0.12);}
.platform-header__domain{display:inline-flex;align-items:center;gap:8px;max-width:240px;padding:0 14px;}
.platform-header__domain-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:var(--color-text-soft);}
.platform-header__domain-icon{flex:0 0 auto;font-size:13px;color:var(--color-text-muted);}
.platform-header__login{display:inline-flex;align-items:center;justify-content:center;padding:0 16px;font-size:13px;font-weight:600;}
.platform-header__account{position:relative;}
.platform-header__account-btn{display:inline-flex;align-items:center;gap:8px;padding:0 14px 0 16px;cursor:pointer;font:inherit;}
.platform-header__account-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;}
.platform-header__account-arrow{font-size:12px;color:var(--color-text-muted);transition:transform .18s ease;}
.platform-header__account.is-open .platform-header__account-arrow{transform:rotate(180deg);}
.platform-header__menu{position:absolute;top:calc(100% + 10px);right:0;width:190px;padding:8px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);box-shadow:0 6px 16px rgba(27,24,20,0.08);}
.platform-header__menu-link{width:100%;min-height:42px;display:flex;align-items:center;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--color-text);text-decoration:none;text-align:left;font:inherit;font-size:14px;font-weight:500;cursor:pointer;transition:background .18s ease,color .18s ease;}
.platform-header__menu-link:hover{background:var(--color-surface-strong);}
.platform-header__menu-link--danger{color:#C95C5C;}
.platform-header__menu-link--danger:hover{background:var(--color-danger-soft);}
.tp-auth-screen,.student-auth-screen{padding:56px 0 72px;}
.tp-auth-wrap,.student-auth-wrap{width:100%;max-width:560px;margin:0 auto;}
.tp-auth-header{width:100%;}
.tp-auth-submit{width:100%;}
.tp-auth-footer{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;justify-content:center;}
.tp-auth-footer--inline{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;}
.tp-auth-alert{padding:14px 15px;border:1px solid var(--color-border);border-radius:8px;font-size:var(--text-sm);line-height:var(--line-md);}
.tp-auth-alert--error{background:var(--color-danger-soft);border-color:#f1cbc7;color:#B45353;}
.tp-auth-alert--success{background:var(--color-success-soft);border-color:#d9edc9;color:#2F8F69;}
.dashboard-shell__layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:var(--space-5);align-items:start;}
.dashboard-shell__sidebar{position:sticky;top:var(--space-6);}
.dashboard-shell__nav{display:grid;gap:10px;}
.dashboard-shell__nav-btn{width:100%;min-height:50px;padding:0 18px;display:flex;align-items:center;justify-content:flex-start;text-align:left;border:1px solid var(--color-border-soft);border-radius:7px;background:var(--color-surface);color:var(--color-text);font-size:var(--text-sm);font-weight:700;box-shadow:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;}
.dashboard-shell__nav-btn:hover{background:var(--color-surface-muted);border-color:var(--color-border);transform:none;}
.dashboard-shell__nav-btn:focus-visible{box-shadow:var(--focus-ring);}
.dashboard-shell__nav-btn.is-active{background:var(--color-primary-soft);border-color:var(--color-border-strong);color:var(--color-primary-hover);box-shadow:inset 0 0 0 1px rgba(108,157,207,0.05);}
.dashboard-shell__content{min-width:0;}
.dashboard-calendar{width:100%;}
.dashboard-calendar--teacher{display:flex;flex-direction:column;min-height:0;height:100%;}
.dashboard-calendar--teacher > .dashboard-calendar__modal{display:flex;flex-direction:column;min-height:0;height:100%;flex:1 1 auto;}
.dashboard-calendar__modal,.dashboard-calendar-modal{background:var(--color-surface);}
.dashboard-calendar__modal{border:1px solid var(--cal-shell-border);border-radius:8px;box-shadow:0 2px 8px rgba(27,24,20,0.05);overflow:hidden;}
.dashboard-calendar__modal-head{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;min-height:72px;padding:0 20px;border-bottom:1px solid var(--color-border-soft);}
.dashboard-calendar__modal-head--calendar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;flex:0 0 auto;}
.dashboard-calendar__modal-side{min-width:48px;min-height:1px;}
.dashboard-calendar__modal-side--left{justify-self:start;}
.dashboard-calendar__modal-side--right{justify-self:end;}
.dashboard-calendar__modal-title-wrap{display:flex;align-items:center;justify-content:center;min-width:0;text-align:center;}
.dashboard-calendar__modal-title{margin:0;text-align:center;font-size:24px;line-height:1.15;font-weight:700;color:var(--color-text);}
.dashboard-calendar__toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:14px 16px 10px;flex-wrap:wrap;flex:0 0 auto;}
.dashboard-calendar__toolbar-left{display:flex;align-items:flex-start;justify-content:flex-end;min-width:0;flex:1 1 auto;order:2;}
.dashboard-calendar__legend,.dashboard-calendar__range-nav,.dashboard-calendar-modal__foot-actions{display:flex;align-items:center;}
.dashboard-calendar__legend{gap:18px;flex-wrap:wrap;flex:0 0 auto;margin-left:0;margin-right:auto;align-self:flex-start;order:1;}
.dashboard-calendar__legend-item{display:inline-flex;align-items:center;gap:8px;color:var(--cal-muted);font-size:13px;line-height:1.3;font-weight:500;}
.dashboard-calendar__legend-dot{width:12px;height:12px;border-radius:8px;flex:0 0 auto;display:inline-block;border:1px solid var(--color-border-strong);}
.dashboard-calendar__legend-dot.is-available{background:var(--cal-success);border-color:var(--cal-success);}
.dashboard-calendar__legend-dot.is-unavailable{background:#F0ECE7;border-color:#E5DED5;}
.dashboard-calendar__legend-dot.is-busy{background:repeating-linear-gradient(45deg,var(--cal-busy-a) 0,var(--cal-busy-a) 2px,#f4f1eb 2px,#f4f1eb 6px);border-color:var(--cal-busy-a);}
.dashboard-calendar__legend-dot.is-booked{background:repeating-linear-gradient(45deg,var(--cal-booked) 0,var(--cal-booked) 2px,#eff8e8 2px,#eff8e8 6px);border-color:var(--cal-booked);}
.dashboard-calendar__today-chip{height:40px;padding:0 16px;border-radius:10px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;}
.dashboard-calendar__today-chip:hover,.dashboard-calendar__range-arrow:hover:not(:disabled){background:var(--cal-chip-bg-hover);}
.dashboard-calendar__today-chip-icon{width:16px;height:16px;}
.dashboard-calendar__range-nav{display:flex;align-items:center;justify-content:flex-end;gap:12px;width:auto;max-width:100%;flex-wrap:nowrap;}
.dashboard-calendar__range-shell{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:100%;}
.dashboard-calendar__range-center{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;text-align:center;}
.dashboard-calendar__range-arrow{width:40px;height:40px;border-radius:8px;font-size:24px;line-height:1;justify-content:center;}
.dashboard-calendar__range-arrow:disabled{opacity:.45;cursor:default;}
.dashboard-calendar__range-label{border:0;background:transparent;padding:0;color:var(--color-text);font-size:16px;font-weight:700;line-height:1.25;}
.dashboard-calendar__timezone{color:var(--cal-muted);font-size:12px;line-height:1.35;font-weight:600;}
.dashboard-calendar__timezone-trigger{border:0;background:transparent;padding:0;text-align:center;transition:color .18s ease;cursor:pointer;}
.dashboard-calendar__timezone-trigger:hover:not(:disabled),.dashboard-calendar__timezone-trigger:focus-visible{color:var(--color-primary);}
.dashboard-calendar__timezone-trigger:disabled{cursor:default;opacity:.6;}
.dashboard-calendar__date-native{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none;}
.dashboard-calendar__board{padding:8px 22px 0;overflow:hidden;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;}
.dashboard-calendar__viewport{position:relative;isolation:isolate;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--cal-grid-line);border-radius:8px;background:var(--cal-grid-bg);padding-bottom:0 !important;flex:1 1 auto;min-height:0;height:100%;}
.dashboard-calendar__viewport.is-scroll-hidden{scrollbar-width:none;-ms-overflow-style:none;}
.dashboard-calendar__viewport.is-scroll-hidden::-webkit-scrollbar{width:0;height:0;display:none;}
#tc-container{display:block;margin:0;padding:0;min-height:100%;}
.dashboard-calendar__events-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3;}
.dashboard-calendar__events-sub-layer{position:absolute;inset:0;pointer-events:none;}
.dashboard-calendar__events-sub-layer--busy{z-index:1;}
.dashboard-calendar__events-sub-layer--lessons{z-index:2;}
.dashboard-calendar__header-cell{position:sticky;top:0;z-index:var(--calendar-sticky-z);min-height:var(--calendar-header-height);padding:10px 8px 8px;border-right:1px solid var(--cal-grid-line);border-bottom:1px solid var(--cal-grid-line);background:var(--cal-grid-soft);background-clip:padding-box;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--cal-muted);text-align:center;}
.dashboard-calendar__header-cell.is-time{z-index:var(--calendar-sticky-z-time);align-items:flex-start;padding-left:16px;color:#8B95A7;font-size:14px;font-weight:700;}
.dashboard-calendar__header-cell.is-today{background:var(--color-primary-soft);}
.dashboard-calendar__header-weekday{display:block;font-size:12px;line-height:1.2;font-weight:700;letter-spacing:0.015em;}
.dashboard-calendar__header-date{display:block;margin-top:4px;color:var(--color-text-soft);font-size:20px;line-height:1.05;font-weight:700;}
.dashboard-calendar__time-cell{position:relative;min-height:var(--calendar-slot-height);border-right:1px solid var(--cal-grid-line);border-bottom:1px solid var(--cal-grid-line);background:var(--cal-grid-soft);display:flex;align-items:flex-start;justify-content:flex-end;padding-right:12px;}
.dashboard-calendar__time-label{display:inline-block;transform:translateY(-8px);color:#64748B;font-size:14px;line-height:1;font-weight:600;}
.dashboard-calendar__grid{display:grid;min-width:980px;background:var(--cal-grid-bg);position:relative;grid-auto-rows:var(--calendar-slot-height);margin:0;overflow:visible;align-content:start;isolation:isolate;}
.dashboard-calendar__cell{position:relative;height:42px;border:0;border-right:1px solid var(--cal-grid-line);border-bottom:1px solid var(--cal-grid-line);background:var(--cal-grid-cell);padding:0;transition:background-color .15s ease,box-shadow .15s ease,opacity .15s ease;}
.dashboard-calendar__cell.is-clickable{cursor:pointer !important;}
.dashboard-calendar__cell.is-blocked-unavailable,.dashboard-calendar__cell.is-blocked-past{cursor:not-allowed !important;}
.dashboard-calendar__cell.is-blocked-busy{cursor:default !important;}
.dashboard-calendar__cell.is-available,.dashboard-calendar__cell.is-available-start{background:var(--cal-success);}
.dashboard-calendar__cell.is-available-start{box-shadow:inset 0 0 0 1px rgba(122,172,64,0.14);}
.dashboard-calendar__cell.is-available-start:hover:not(.is-past){box-shadow:inset 0 0 0 1px rgba(70,111,27,0.18),0 0 0 1px rgba(149,205,86,0.12);}
.dashboard-calendar__cell.is-past{opacity:1 !important;background:var(--color-surface-strong) !important;cursor:not-allowed !important;}
.dashboard-calendar__cell.is-past.is-occupied{background:repeating-linear-gradient(45deg,#ddd6cc 0,#ddd6cc 2px,#f1ece6 2px,#f1ece6 7px) !important;}
.dashboard-calendar__cell.is-selected-slot{outline:2px solid var(--color-primary);outline-offset:-2px;box-shadow:inset 0 0 0 9999px rgba(135,107,71,0.12);z-index:2;}
.dashboard-calendar__cell:hover:not(.is-past){box-shadow:inset 0 0 0 1px rgba(135,107,71,0.16);}
.dashboard-calendar__cell-badge{position:absolute;top:4px;right:6px;font-size:11px;line-height:1;color:var(--color-text-faint);pointer-events:none;opacity:.9;}
.dashboard-calendar__cell.is-last-row,.dashboard-calendar__time-cell.is-last-row{border-bottom:0 !important;}
.dashboard-calendar__grid > .dashboard-calendar__cell.is-last-row,.dashboard-calendar__grid > .dashboard-calendar__time-cell.is-last-row{box-shadow:none !important;}
.dashboard-calendar__event--busy{background:
    linear-gradient(180deg,rgba(255,255,255,0.08),rgba(255,255,255,0)),
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 8px,
      var(--cal-busy-block-stripe) 8px,
      var(--cal-busy-block-stripe) 11px
    ),
    var(--cal-busy-block-bg);border:1px solid var(--cal-busy-block-border);box-shadow:inset 0 1px 0 rgba(255,255,255,0.16);color:var(--cal-busy-block-text);pointer-events:none;}
.dashboard-calendar__event--busy.is-past{opacity:.7;}
.dashboard-calendar__event-inner{display:flex;align-items:flex-start;gap:8px;width:100%;min-height:100%;padding:7px 8px;}
.dashboard-calendar__event-inner--busy{display:flex;flex-direction:column;justify-content:center;gap:3px;width:100%;height:100%;min-height:100%;padding:7px 9px;}
.dashboard-calendar__event-time{margin-top:4px;font-size:11px;line-height:1.1;opacity:.96;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dashboard-calendar__event-title--busy{color:var(--cal-busy-block-text);font-size:12px;line-height:1.15;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dashboard-calendar__event-time--busy{margin-top:0;color:var(--cal-busy-block-time);font-size:11px;line-height:1.1;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dashboard-calendar-modal__head{border-bottom:1px solid var(--color-border-soft);}
body.dashboard-calendar-is-selecting,body.dashboard-calendar-is-selecting *{user-select:none;}
.dashboard-calendar-modal-backdrop,

.teacher-calendar-layer{z-index:1200;}
.dashboard-calendar-modal{width:min(560px,calc(100vw - 24px));border-radius:8px;border:1px solid var(--cal-shell-border);box-shadow:0 6px 16px rgba(27,24,20,0.07);}
.dashboard-calendar-modal--compact{max-width:400px;width:100%;max-height:min(86vh,620px);display:flex;flex-direction:column;overflow:hidden;}
.dashboard-calendar-modal__head{padding:16px 16px 12px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.dashboard-calendar-modal__head-main{min-width:0;}
.dashboard-calendar-modal__body{padding:12px 14px;overflow-y:auto;}
.dashboard-calendar-modal__body--slot{padding-top:14px;}
.dashboard-calendar-modal__action-list{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));}
.dashboard-calendar-modal__choice{position:relative;display:block;cursor:pointer;margin:0;}
.dashboard-calendar-modal__choice input{position:absolute;opacity:0;inset:0;pointer-events:none;appearance:none;-webkit-appearance:none;}
.dashboard-calendar-modal__choice span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border-radius:8px;border:1px solid rgba(0,0,0,0.08);background:var(--color-surface);color:var(--color-text);font-weight:600;transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;user-select:none;box-shadow:none;background-image:none;}
.dashboard-calendar-modal__choice input:checked + span{background:rgba(135,107,71,0.10);border-color:rgba(135,107,71,0.32);color:var(--color-primary);box-shadow:inset 0 0 0 1px rgba(135,107,71,0.14);}
.dashboard-calendar-modal__choice input:focus-visible + span{outline:0;box-shadow:0 0 0 3px rgba(135,107,71,0.16);}
.dashboard-calendar-modal__choice input:disabled + span{opacity:.6;cursor:default;}
.dashboard-calendar-modal__repeat-wrap{margin-top:18px;}
.dashboard-calendar-modal__repeat-panel[hidden]{display:none !important;}
.dashboard-calendar-modal__repeat-panel{margin-top:14px;padding:16px;border:1px solid var(--color-border-soft);border-radius:8px;background:var(--color-surface-muted);}
.dashboard-calendar-modal__weekday{display:flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #e2dbd2;border-radius:8px;background:var(--color-surface);color:var(--color-text-soft);font-size:12px;font-weight:700;text-align:center;position:relative;overflow:hidden;}
.dashboard-calendar-modal__weekday input{position:absolute;inset:0;opacity:0;}
.dashboard-calendar-modal__weekday:has(input:checked){border-color:var(--color-border-strong);background:var(--color-primary-soft);color:var(--color-primary-hover);}
.dashboard-calendar-modal__dates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;}
.dashboard-calendar-modal__date-field{display:flex;flex-direction:column;gap:6px;}
.dashboard-calendar-modal__foot{padding:0 22px 22px;}
.dashboard-calendar-modal__foot-actions{justify-content:flex-end;gap:10px;}
.dashboard-calendar__timezone-picker-modal{width:min(420px,calc(100vw - 24px));max-width:420px;border-radius:8px;overflow:hidden;}
.dashboard-calendar__timezone-picker-body{padding-top:0;}
.dashboard-calendar__timezone-picker-copy{margin-bottom:14px;}
.dashboard-calendar__timezone-picker-note{margin:0 0 10px;color:var(--color-text);line-height:1.5;}
.dashboard-calendar__timezone-picker-note:last-child{margin-bottom:0;}
.dashboard-calendar__timezone-picker-select{width:100%;}
.dashboard-calendar__timezone-picker-status{margin-top:12px;}
.tp-student-profile__info{display:grid;gap:0;}
.tp-student-profile__info-row{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;padding:12px 0;border-bottom:1px solid var(--color-border-soft);}
.tp-student-profile__info-row:last-child{border-bottom:0;}
.tp-student-profile__info-label{color:var(--color-text-muted);font-size:var(--text-sm);line-height:var(--line-md);}
.tp-student-profile__info-value{min-width:0;word-break:break-word;color:var(--color-text);font-size:var(--text-sm);line-height:var(--line-md);font-weight:700;}
.tp-packages-overview{display:grid;gap:var(--space-3);}
.tp-packages-overview__item{padding:12px 14px;border:1px solid var(--color-border-soft);border-radius:8px;background:var(--color-bg-soft);}
.tp-packages-overview__value{margin-top:8px;font-size:28px;line-height:1.05;font-weight:700;color:var(--color-text);}
.tp-package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);}
.tp-package-card{min-width:0;}
.tp-package-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-3);}
.tp-package-card__head-main{display:grid;gap:4px;min-width:0;}
.tp-package-card__summary{min-width:0;word-break:break-word;color:var(--color-text-muted);}
.tp-package-card__tokens{margin-top:14px;}
.tp-package-token-grid{display:flex;flex-wrap:wrap;gap:10px;}
.tp-package-token{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 10px;border-radius:8px;border:1px solid #e2dbd2;background:var(--color-surface);color:var(--color-text);font-size:12px;font-weight:700;line-height:1;box-shadow:var(--shadow-xs);transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;}
.tp-package-token--add{background:var(--color-primary);border-color:var(--color-primary);color:#fff;font-size:18px;font-weight:800;box-shadow:none;}
.tp-package-token--add:hover{background:var(--color-primary-hover);}
.tp-package-token__text,.tp-package-token__minus{display:inline-flex;align-items:center;justify-content:center;transition:opacity .16s ease,transform .16s ease;}
.tp-package-token__minus{position:absolute;inset:0;opacity:0;font-size:18px;font-weight:800;}
.tp-package-token--removable:hover .tp-package-token__text{opacity:0;transform:scale(.9);}
.tp-package-token--removable:hover .tp-package-token__minus{opacity:1;transform:scale(1);}
.tp-package-editor{margin-top:14px;padding:16px;border:1px solid var(--color-border-soft);border-radius:8px;background:var(--color-bg-soft);}
.tp-package-editor__form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:12px;}
.tp-package-editor.is-hidden,.tp-package-editor__step.is-hidden{display:none;}
.teacher-calendar-layer{position:fixed;inset:0;pointer-events:none;}
.teacher-calendar-layer__backdrop{position:absolute;inset:0;background:rgba(15,23,42,0.06);opacity:1;transition:opacity .22s ease;pointer-events:auto;}
.teacher-calendar-layer__sheet{position:absolute;left:24px;right:24px;bottom:24px;top:var(--teacher-calendar-top,104px);border-radius:8px;box-shadow:0 6px 16px rgba(27,24,20,0.07);overflow:visible;pointer-events:auto;opacity:1;transform:translateY(0);transition:transform .22s ease,opacity .22s ease,box-shadow .22s ease;}
.teacher-calendar-layer__content{width:100%;height:100%;min-height:0;overflow:visible;}
.teacher-calendar-layer__content > #teacher-calendar-root,.teacher-calendar-layer__content > *{min-height:100%;}
.teacher-calendar-layer__nav-btn{position:absolute;top:12px;z-index:10;width:auto;height:auto;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;color:var(--color-text);font-size:32px;line-height:1;}
.teacher-calendar-layer__nav-btn:hover{background:transparent;color:var(--color-primary-hover);transform:none;}
.teacher-calendar-layer__nav-btn:focus-visible{box-shadow:none;}
.teacher-calendar-layer__nav-btn--back{left:25px;}
.teacher-calendar-layer__nav-btn--close{right:25px;}
.teacher-calendar-layer.is-closing .teacher-calendar-layer__backdrop{opacity:0;}
.teacher-calendar-layer.is-closing .teacher-calendar-layer__sheet{opacity:0;transform:translateY(18px);box-shadow:0 12px 36px rgba(15,23,42,0.08);}
.teacher-home-page__layout{align-items:start;}
.teacher-home-page__sidebar .ui-card__body{padding:var(--space-4);}
.teacher-home-page__nav{gap:8px;}
.teacher-overview{min-width:0;}
.teacher-overview-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.teacher-overview-summary__item{border:1px solid var(--color-border);background:var(--color-surface);border-radius:10px;padding:12px 14px;min-width:0;}
.teacher-overview-summary__label{font-size:12px;line-height:1.4;color:var(--color-text-muted);margin-bottom:4px;}
.teacher-overview-summary__value{font-size:17px;line-height:1.35;font-weight:700;color:var(--color-text);word-break:break-word;}
.teacher-overview-section-kicker{font-size:12px;line-height:1.4;font-weight:700;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:0.04em;}
.teacher-overview-next{border:1px solid var(--color-border);background:var(--color-surface);border-radius:8px;padding:18px;}
.teacher-overview-next__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;}
.teacher-overview-next__title-wrap{min-width:0;flex:1 1 auto;}
.teacher-overview-next__title{margin:6px 0 4px;font-size:21px;line-height:1.25;font-weight:700;color:var(--color-text);word-break:break-word;}
.teacher-overview-next__sub{font-size:14px;line-height:1.5;color:var(--color-text-muted);}
.teacher-overview-next__badges{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;flex:0 0 auto;}
.teacher-overview-next__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px;}
.teacher-overview-inline-meta{border:1px solid var(--color-border);background:var(--color-bg-soft);border-radius:8px;padding:10px 12px;min-width:0;}
.teacher-overview-inline-meta__label{display:block;font-size:12px;line-height:1.4;color:var(--color-text-muted);margin-bottom:4px;}
.teacher-overview-inline-meta__value{display:block;font-size:14px;line-height:1.45;color:var(--color-text);font-weight:600;word-break:break-word;}
.teacher-overview-panel{border:1px solid var(--color-border);background:var(--color-surface);border-radius:8px;padding:16px;}
.teacher-overview-panel__head{margin-bottom:12px;}
.teacher-overview-panel__head--between{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.teacher-overview-task-list{display:flex;flex-direction:column;gap:10px;}
.teacher-overview-task{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--color-border);border-radius:8px;padding:12px;background:var(--color-bg-soft);}
.teacher-overview-task__body{min-width:0;flex:1 1 auto;}
.teacher-overview-task__title{font-size:14px;line-height:1.4;font-weight:700;color:var(--color-text);margin-bottom:2px;word-break:break-word;}
.teacher-overview-task__text{font-size:13px;line-height:1.45;color:var(--color-text-muted);word-break:break-word;}
.teacher-overview-task__actions{flex:0 0 auto;display:flex;align-items:center;gap:8px;}
.teacher-overview-empty-inline{font-size:14px;line-height:1.5;color:var(--color-text-muted);padding:8px 0 2px;}
.teacher-overview-list{display:flex;flex-direction:column;gap:10px;}
.teacher-overview-row{display:grid;grid-template-columns:140px minmax(0,1fr) 170px auto;gap:12px;align-items:center;border:1px solid var(--color-border);border-radius:8px;padding:12px;background:var(--color-bg-soft);}
.teacher-overview-row__cell{min-width:0;}
.teacher-overview-row__main{font-size:13px;line-height:1.45;font-weight:700;color:var(--color-text);word-break:break-word;}
.teacher-overview-row__sub{font-size:12px;line-height:1.4;color:var(--color-text-muted);margin-top:2px;word-break:break-word;}
.dashboard-calendar-modal-backdrop{padding:24px;backdrop-filter:blur(2px);background:rgba(34,41,57,0.18);}
.dashboard-calendar-modal.dashboard-calendar-modal--selection{width:min(100%,400px);border:1px solid var(--color-border-soft);border-radius:8px;background:var(--color-surface);box-shadow:0 8px 18px rgba(27,24,20,0.08);overflow:hidden;}
.dashboard-calendar-modal__head.dashboard-calendar-modal__head--selection{padding:16px 16px 12px;border-bottom:1px solid #ece5dc;background:var(--color-surface);}
.dashboard-calendar-modal__title{margin:0;font-size:16px;line-height:1.2;font-weight:800;color:var(--color-text);}
.dashboard-calendar-modal__summary{margin-top:6px;font-size:13px;line-height:1.35;font-weight:600;color:var(--color-text-muted);}
.dashboard-calendar-modal__body.dashboard-calendar-modal__body--selection{padding:18px 22px 18px;background:var(--color-surface);}
.dashboard-calendar-modal__repeat-wrap{display:flex;flex-direction:column;gap:14px;}
.dashboard-calendar-modal__repeat-line{display:inline-flex;align-items:center;gap:10px;font-size:15px;line-height:1.35;font-weight:600;color:#3d3935;cursor:pointer;}
.dashboard-calendar-modal__repeat-line input{width:16px;height:16px;margin:0;}
.dashboard-calendar-modal__repeat-panel{padding:14px;border:1px solid var(--color-border-soft);border-radius:8px;background:var(--color-surface-muted);}
.dashboard-calendar-modal__weekday-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.dashboard-calendar-modal__weekday{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 10px;border:1px solid var(--color-border-soft);border-radius:8px;background:var(--color-surface);font-size:13px;line-height:1.2;font-weight:700;color:var(--color-text-soft);cursor:pointer;}
.dashboard-calendar-modal__weekday input{margin:0;}
.dashboard-calendar-modal__date-field{margin:0;}
.dashboard-calendar-modal__date-field .ui-label{margin-bottom:6px;font-size:12px;line-height:1.2;font-weight:700;color:var(--color-text-muted);}
.dashboard-calendar-modal__date-input{min-height:42px;border-radius:8px;}
.dashboard-calendar-modal__error{margin-top:16px;padding:12px 14px;border:1px solid #f0c8c8;border-radius:10px;background:var(--color-danger-soft);font-size:13px;line-height:1.4;font-weight:600;color:#B45353;}
.dashboard-calendar-modal__foot.dashboard-calendar-modal__foot--selection{padding:0 22px 22px;border-top:0;background:var(--color-surface);}
.dashboard-calendar-modal__foot-actions .ui-btn{min-width:112px;min-height:50px;border-radius:8px;font-size:15px;font-weight:800;}

.dashboard-calendar-modal__foot-actions .ui-btn--primary{border:1px solid var(--color-primary);background:var(--color-primary);color:#fff;box-shadow:none;}
.dashboard-calendar-modal__foot-actions .ui-btn--primary:hover{border-color:var(--color-primary-hover);background:var(--color-primary-hover);}
.dashboard-calendar-modal__foot-actions .ui-btn--secondary:hover{background:var(--color-surface-muted);}
button#tc-open-group-mode{width:105px;}
.dashboard-calendar__cell,.dashboard-calendar__event,.dashboard-calendar__range-arrow,.dashboard-calendar__today-chip,.teacher-calendar-layer__nav-btn{cursor:var(--calendar-cursor-static);}
.dashboard-calendar__cell.is-clickable,.dashboard-calendar__cell.is-available,.dashboard-calendar__cell.is-available-start,.dashboard-calendar__event--lesson,.dashboard-calendar__event--group,.dashboard-calendar__range-arrow:not(:disabled),.dashboard-calendar__today-chip,.teacher-calendar-layer__nav-btn,.dashboard-calendar__timezone-trigger:not(:disabled),.dashboard-shell__nav-btn,.ui-btn,button,[role="button"]{cursor:var(--calendar-cursor-clickable);}
.dashboard-calendar__cell.is-blocked-unavailable,.dashboard-calendar__cell.is-blocked-past,.dashboard-calendar__cell.is-past,.dashboard-calendar__range-arrow:disabled,.dashboard-calendar__timezone-trigger:disabled,.dashboard-calendar-modal__choice input:disabled + span,.ui-btn:disabled,.ui-btn.is-disabled,button:disabled,[aria-disabled="true"]{cursor:var(--calendar-cursor-disabled) !important;}
.dashboard-calendar__cell.is-blocked-busy,.dashboard-calendar__event--busy,.dashboard-calendar__event--busy *{cursor:var(--calendar-cursor-static) !important;}
.dashboard-calendar__cell.is-available,.dashboard-calendar__cell.is-available-start{cursor:var(--calendar-cursor-clickable) !important;}
.dashboard-calendar__cell.is-available:hover:not(.is-past):not(.is-blocked-unavailable):not(.is-blocked-past),.dashboard-calendar__cell.is-clickable:hover:not(.is-past):not(.is-blocked-unavailable):not(.is-blocked-past){box-shadow:var(--calendar-action-ring);}
.dashboard-calendar__cell.is-available-start:hover:not(.is-past):not(.is-blocked-unavailable):not(.is-blocked-past){box-shadow:var(--calendar-action-ring-strong);}
.dashboard-calendar__event--lesson,.dashboard-calendar__event--group{pointer-events:auto;transition:
    transform .16s ease,
    box-shadow .16s ease,
    opacity .16s ease,
    filter .16s ease;}
.dashboard-calendar__event--lesson:hover,.dashboard-calendar__event--group:hover{transform:none;box-shadow:var(--calendar-action-ring-event);filter:none;}
.dashboard-calendar__event--busy:hover{transform:none;filter:none;}
.dashboard-calendar__cell.is-past,.dashboard-calendar__cell.is-blocked-past,.dashboard-calendar__cell.is-blocked-unavailable{opacity:1 !important;}
.dashboard-calendar__cell.is-past::after,.dashboard-calendar__cell.is-blocked-past::after,.dashboard-calendar__cell.is-blocked-unavailable::after{content:"";position:absolute;inset:0;pointer-events:none;}
.dashboard-calendar__range-arrow,.dashboard-calendar__today-chip,.teacher-calendar-layer__nav-btn,.dashboard-shell__nav-btn,.ui-btn{user-select:none;}
.dashboard-calendar__cell.is-blocked-unavailable:hover,.dashboard-calendar__cell.is-blocked-past:hover,.dashboard-calendar__cell.is-past:hover,.dashboard-calendar__range-arrow:disabled:hover,.ui-btn:disabled:hover,.ui-btn.is-disabled:hover{transform:none;box-shadow:none;filter:none;}
.dashboard-calendar__event--busy,.dashboard-calendar__cell.is-blocked-busy{pointer-events:none;}
.dashboard-calendar__event--lesson *,.dashboard-calendar__event--group *{cursor:var(--calendar-cursor-clickable);}
.dashboard-calendar__event--busy *,.dashboard-calendar__cell.is-blocked-busy *{cursor:var(--calendar-cursor-static) !important;}
.ui-card:hover{border-color:var(--color-border-soft);box-shadow:var(--shadow-xs);}
.ui-table-wrap,.teacher-overview-panel,.teacher-overview-next,.teacher-overview-summary__item,.teacher-overview-row,.teacher-overview-task,.tp-packages-overview__item,.tp-package-editor{transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;}
.teacher-overview-panel:hover,.teacher-overview-next:hover,.teacher-overview-summary__item:hover,.teacher-overview-row:hover,.teacher-overview-task:hover,.tp-packages-overview__item:hover{border-color:var(--color-border);box-shadow:none;}
.ui-btn--primary{box-shadow:none;}
.ui-btn--primary:hover{box-shadow:none;}
.ui-btn--danger{box-shadow:none;}
.ui-btn--danger:hover{background:#F16464;box-shadow:none;}

.dashboard-shell__nav-btn.is-active{box-shadow:inset 0 0 0 1px rgba(135,107,71,0.06),0 8px 20px rgba(135,107,71,0.06);}
.dashboard-calendar__today-chip,.dashboard-calendar__range-arrow{background:var(--cal-chip-bg);border:1px solid var(--color-border-soft);}
.dashboard-calendar__today-chip:hover,.dashboard-calendar__range-arrow:hover:not(:disabled){border-color:var(--color-border);}
.dashboard-calendar__header-cell.is-today{box-shadow:inset 0 -1px 0 rgba(91,124,250,0.12);}
.dashboard-calendar-modal__focus-card--warning{background:var(--color-warning-soft);border-color:rgba(244,183,64,0.24);}
.dashboard-calendar-modal__focus-card--danger{background:var(--color-danger-soft);border-color:rgba(248,113,113,0.22);}

@media (max-width:1100px){
.tp-package-grid{grid-template-columns:1fr;}
.teacher-overview-row{grid-template-columns:120px minmax(0,1fr);}
.teacher-overview-row__cell--status,.teacher-overview-row__cell--actions{grid-column:span 2;}
}
@media (max-width:980px){.dashboard-calendar__toolbar{flex-direction:column;align-items:stretch;}
.dashboard-calendar__range-nav{width:100%;justify-content:space-between;}
.dashboard-calendar__range-center{flex:1 1 auto;}
}
@media (max-width:960px){.teacher-calendar-layer__sheet{left:16px;right:16px;bottom:16px;top:var(--teacher-calendar-top,88px);border-radius:8px;}
.teacher-calendar-layer__nav-btn{font-size:32px;}
}
@media (max-width:900px){.ui-grid--2{grid-template-columns:1fr;}
.ui-page__head{flex-direction:column;}
.dashboard-shell__layout{grid-template-columns:1fr;}
.dashboard-shell__sidebar,.teacher-home-page__sidebar{position:static;}
.dashboard-shell__nav{grid-template-columns:repeat(2,minmax(0,1fr));}
.teacher-home-page__sidebar .ui-card__body{padding:0;}
.teacher-home-page__nav{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:10px 12px;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.teacher-home-page__nav::-webkit-scrollbar{display:none;}
.teacher-home-page__nav .dashboard-shell__nav-btn{width:auto;min-width:0;min-height:40px;padding:0 14px;border-radius:8px;flex:0 0 auto;font-size:13px;border:none;box-shadow:none;}

.teacher-home-page{
  position:relative;
}

.teacher-home-page__mobile-nav{
  display:none !important;
}

.teacher-home-page__mobile-nav-inner{
  display:flex;
  align-items:stretch;
  gap:8px;
}

.teacher-home-page__mobile-nav-btn{
  flex:1 1 0;
  min-width:0;
  min-height:48px;
  padding:0 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--color-text-muted);
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease;
  -webkit-tap-highlight-color:transparent;
}

.teacher-home-page__mobile-nav-btn:hover{
  background:rgba(68,104,216,0.06);
  color:var(--color-text);
}

.teacher-home-page__mobile-nav-btn:focus-visible{
  box-shadow:var(--focus-ring);
}

.teacher-home-page__mobile-nav-btn.is-active{
  background:transparent;
  color:var(--color-primary-hover);
  box-shadow:inset 0 -2px 0 var(--color-primary);
  border-radius:0;
}

.teacher-home-page__mobile-nav-label{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media (max-width:900px){
  .teacher-home-page{
    padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));
  }

  .teacher-home-page__layout{
    grid-template-columns:1fr;
  }

  .teacher-home-page__sidebar{
    display:none;
  }

  .teacher-home-page__content{
    min-width:0;
  }

  .teacher-home-page__mobile-nav{
 display:block !important;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:80;
    padding:0 0 env(safe-area-inset-bottom,0px);
    background:rgba(250,247,242,0.94);
    border-top:1px solid var(--color-border-soft);
    box-shadow:0 -1px 4px rgba(27,24,20,0.04);

    -webkit-backdrop-filter:blur(10px);
  }

  .teacher-home-page__mobile-nav-inner{
    width:100%;
    max-width:none;
    margin:0;
    padding:8px 12px;
    gap:8px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    pointer-events:auto;
  }

  #teacher-platform-footer-root{
    padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));
  }
}
@media (min-width:901px){
  .teacher-home-page__mobile-nav{
    display:none !important;
  }
}
@media (max-width:640px){
  .teacher-home-page{
    padding-bottom:calc(68px + env(safe-area-inset-bottom,0px));
  }

  .teacher-home-page__mobile-nav-inner{
    padding:8px 10px;
    gap:6px;
  }

  .teacher-home-page__mobile-nav-btn{
    min-height:46px;
    padding:0 8px;
    border-radius:10px;
    font-size:12px;
  }

  #teacher-platform-footer-root{
    padding-bottom:calc(68px + env(safe-area-inset-bottom,0px));
  }
}

.teacher-overview-summary{grid-template-columns:1fr;}
.teacher-overview-next__head{flex-direction:column;}
.teacher-overview-next__badges{justify-content:flex-start;}
.teacher-overview-next__meta{grid-template-columns:1fr;}
.teacher-overview-task{flex-direction:column;align-items:flex-start;}
.teacher-overview-task__actions{width:100%;}
}
@media (max-width:760px){.dashboard-calendar{padding:5px;}
.dashboard-calendar--teacher{min-height:100dvh;height:100dvh;}
.dashboard-calendar--teacher > .dashboard-calendar__modal{min-height:100dvh;height:100dvh;}
.dashboard-calendar__modal-head{min-height:64px;padding:0 14px;}
.dashboard-calendar__modal-title{font-size:24px;}
.dashboard-calendar__toolbar{display:block;padding:14px 14px 10px;}
.dashboard-calendar__toolbar-left{width:100%;justify-content:center;}
.dashboard-calendar__legend{display:none !important;}
.dashboard-calendar__range-shell{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:100%;}
.dashboard-calendar__range-center{min-width:0;max-width:calc(100vw - 170px);}
.dashboard-calendar__range-label,.dashboard-calendar__timezone{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.dashboard-calendar__board{padding:8px 14px 0;flex:1 1 auto;min-height:0;margin-bottom:0 !important;}
.dashboard-calendar__grid{min-width:100%;}
.dashboard-calendar__grid.is-mobile-three-days{min-width:100%;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__header-cell{min-width:0;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__header-date{font-size:18px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__time-cell{padding-right:8px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__time-label{font-size:12px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__event{border-radius:8px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__event-inner{padding:6px;gap:6px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__event-inner--busy{padding:6px 7px;gap:2px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__event-title{font-size:11px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__event-time{font-size:10px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__event-title--busy{font-size:11px;}
.dashboard-calendar__grid.is-mobile-three-days .dashboard-calendar__event-time--busy{font-size:10px;}
.dashboard-calendar__legend-item{font-size:13px;}
.dashboard-calendar-modal-backdrop{padding:10px;align-items:flex-end;}
.dashboard-calendar-modal__dates{grid-template-columns:1fr;}
.dashboard-calendar-modal__foot-actions{justify-content:stretch;}
.dashboard-calendar-modal__foot-actions .ui-btn{flex:1 1 0;min-height:44px;}
.teacher-overview-row{grid-template-columns:1fr;}
.teacher-overview-row__cell--status,.teacher-overview-row__cell--actions{grid-column:auto;}
}
@media (max-width:767px){.platform-header__inner{min-height:64px;gap:14px;}
.platform-header__brand{font-size:18px;}
.platform-header__right{gap:8px;}
.platform-header__locale,.platform-header__login,.platform-header__account-btn,.platform-header__domain{height:38px;}
.platform-header__domain{max-width:180px;padding:0 12px;}
.platform-header__domain-text,.platform-header__account-name,.platform-header__login,.platform-header__locale{font-size:13px;}
.platform-header__menu{width:180px;right:0;}
.teacher-calendar-layer__backdrop{background:rgba(15,23,42,0.14);}
.teacher-calendar-layer__sheet{left:0;right:0;top:40px;bottom:0;border-radius:0;}
.teacher-calendar-layer__nav-btn{top:max(22px,env(safe-area-inset-top));font-size:32px;}
}
@media (max-width:640px){.ui-container{padding-left:var(--space-4);padding-right:var(--space-4);}
.ui-page{padding-top:var(--space-6);padding-bottom:var(--space-8);}
.platform-header__inner{align-items:flex-start;flex-direction:column;justify-content:center;padding:12px 0;}
.platform-header__right{width:100%;justify-content:flex-start;}
.platform-header__domain{max-width:100%;}
.platform-header__account-name{max-width:140px;}
.tp-auth-screen,.student-auth-screen{padding:26px 0 44px;}
.dashboard-shell__nav{grid-template-columns:1fr;}
.tp-student-profile__info-row{grid-template-columns:1fr;gap:4px;}
.tp-package-editor__form{grid-template-columns:1fr;}
.tp-package-token{min-width:38px;height:38px;font-size:11px;}
.tp-package-token--add{font-size:16px;}
.dashboard-calendar-modal-backdrop{padding:12px;align-items:flex-end;}
.dashboard-calendar-modal.dashboard-calendar-modal--selection{width:100%;border-radius:8px 22px 0 0;}
.dashboard-calendar-modal__head.dashboard-calendar-modal__head--selection{padding:18px 16px 14px;}
.dashboard-calendar-modal__body.dashboard-calendar-modal__body--selection{padding:16px;}
.dashboard-calendar-modal__foot.dashboard-calendar-modal__foot--selection{padding:0 16px 16px;}
.dashboard-calendar-modal__dates{grid-template-columns:1fr;}
.dashboard-calendar-modal__weekday-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.dashboard-calendar-modal__foot-actions{flex-direction:column;}
.dashboard-calendar-modal__foot-actions .ui-btn{width:100%;}
}
@media (hover:hover){.dashboard-calendar__cell.is-available:hover:not(.is-past):not(.is-blocked-unavailable):not(.is-blocked-past),.dashboard-calendar__cell.is-clickable:hover:not(.is-past):not(.is-blocked-unavailable):not(.is-blocked-past){box-shadow:var(--calendar-action-ring);}
.dashboard-calendar__event--lesson:hover,.dashboard-calendar__event--group:hover{transform:none;}
}
@media (hover:none){.dashboard-calendar__event--lesson:hover,.dashboard-calendar__event--group:hover,.dashboard-calendar__cell.is-available:hover,.dashboard-calendar__cell.is-clickable:hover{transform:none;filter:none;}
}
.dashboard-calendar__pending-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:4;}
.dashboard-calendar__cell.is-lesson-clickable{cursor:pointer !important;}
.dashboard-calendar__cell.is-selected-range{background:var(--color-warning-soft) !important;box-shadow:inset 0 0 0 1px rgba(244,183,64,0.34) !important;}

.dashboard-calendar__event{position:relative;z-index:2;margin:0;border:0;border-radius:8px;color:#fff;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;min-height:0;box-sizing:border-box;pointer-events:auto;text-align:left;transition:
    transform .16s ease,
    box-shadow .16s ease,
    opacity .16s ease,
    filter .16s ease;}
.dashboard-calendar__event:hover{transform:none;}
.dashboard-calendar__event:focus-visible{box-shadow:
    0 0 0 2px rgba(255,255,255,0.22),
    0 0 0 4px rgba(108,157,207,0.22);}
.dashboard-calendar__event--lesson{background:#009688;}
.dashboard-calendar__event--group{background:linear-gradient(180deg,#93A3B8 0%,#7B8BA3 100%);box-shadow:0 6px 16px rgba(123,139,163,0.14);}
.dashboard-calendar__event.is-past{opacity:.84;}
.dashboard-calendar__event.is-pending-move{box-shadow:
    inset 0 0 0 1px rgba(255,244,214,0.42),
    0 10px 24px rgba(244,183,64,0.12);}
.dashboard-calendar__event.is-pending-cancel{box-shadow:
    inset 0 0 0 1px rgba(254,226,226,0.44),
    0 10px 24px rgba(248,113,113,0.12);}
.dashboard-calendar__event-inner{display:flex;flex-direction:column;justify-content:flex-start;gap:8px;width:100%;min-height:100%;padding:8px 9px;}
.dashboard-calendar__event-inner--group{gap:8px;}
.dashboard-calendar__event-head{display:flex;align-items:flex-start;gap:8px;min-width:0;width:100%;}
.dashboard-calendar__event-main{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:3px;}
.dashboard-calendar__event-title{font-size:12px;line-height:1.2;font-weight:700;white-space:normal;overflow:visible;text-overflow:unset;word-break:break-word;overflow-wrap:anywhere;}
.dashboard-calendar__event-time{font-size:11px;line-height:1.1;opacity:.95;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(255,255,255,0.94);}
.dashboard-calendar__event-badges{display:flex;flex-wrap:wrap;gap:5px;min-width:0;margin-top:auto;}
.dashboard-calendar__event-badge{display:inline-flex;background: #9C27B0;align-items:center;justify-content:center;max-width:100%;min-height:18px;padding:0 7px;border-radius:8px;font-size:10px;line-height:1;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.08);}
@media (max-width:980px){.dashboard-calendar__event-badges{gap:4px;}
.dashboard-calendar__event-badge{padding:0 6px;}
}
@media (max-width:760px){.dashboard-calendar__event{border-radius:8px;}
.dashboard-calendar__event-inner{padding:6px 7px;gap:5px;}
.dashboard-calendar__event-title{font-size:11px;}
.dashboard-calendar__event-time{font-size:10px;}
.dashboard-calendar__event-badge{min-height:16px;padding:0 6px;font-size:9px;}
}
.dashboard-calendar-modal--lesson-sheet{width:min(520px,calc(100vw - 20px));max-width:520px;max-height:min(100dvh - 20px,760px);display:flex;flex-direction:column;overflow:hidden;border-radius:8px;}
.dashboard-calendar-modal__sr-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap;}
.dashboard-calendar-modal__sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px 16px 12px;overscroll-behavior:contain;}
.dashboard-calendar-modal__sheet-foot{flex:0 0 auto;padding:12px 16px 16px;border-top:1px solid var(--color-border-soft);background:rgba(250,247,242,0.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
.dashboard-calendar-modal__content-stack{display:grid;gap:12px;}
.dashboard-calendar-modal__status-chip{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 12px;border-radius:8px;font-size:12px;line-height:1;font-weight:800;white-space:nowrap;}
.dashboard-calendar-modal__status-chip-icon{font-size:13px;line-height:1;}
.dashboard-calendar-modal__focus-card{padding:14px;border-radius:8px;border:1px solid var(--color-border-soft);display:grid;gap:12px;}
.dashboard-calendar-modal__focus-card--warning{background:var(--color-warning-soft);border-color:rgba(215,161,70,0.22);}
.dashboard-calendar-modal__focus-card--danger{background:var(--color-danger-soft);border-color:rgba(215,101,88,0.2);}
.dashboard-calendar-modal__focus-card-head{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start;}
.dashboard-calendar-modal__focus-card-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.65);font-size:18px;line-height:1;}
.dashboard-calendar-modal__focus-card-copy{min-width:0;display:grid;gap:3px;}
.dashboard-calendar-modal__focus-card-title{font-size:14px;line-height:1.2;font-weight:800;color:var(--color-text);}
.dashboard-calendar-modal__focus-card-text{font-size:13px;line-height:1.35;font-weight:600;color:var(--color-text-soft);word-break:break-word;}
.dashboard-calendar-modal__focus-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.dashboard-calendar-modal__info-strip{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border-radius:10px;font-size:13px;line-height:1.3;font-weight:700;}
.dashboard-calendar-modal__info-strip--soft{background:var(--color-primary-soft);color:var(--color-primary-hover);}
.dashboard-calendar-modal__info-strip-icon{flex:0 0 auto;font-size:14px;}
.dashboard-calendar-modal__info-strip-text{min-width:0;word-break:break-word;}
.dashboard-calendar-modal__icon-action{min-height:84px;padding:12px 10px;border:1px solid var(--color-border);border-radius:8px;background:rgba(255,255,255,0.92);display:grid;gap:8px;place-items:center;text-align:center;transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;}
.dashboard-calendar-modal__icon-action:hover{transform:translateY(-1px);border-color:var(--color-border-strong);background:var(--color-surface-muted);}
.dashboard-calendar-modal__icon-action:focus-visible{box-shadow:var(--focus-ring);}
.dashboard-calendar-modal__icon-action-icon{font-size:20px;line-height:1;color:var(--color-text);}
.dashboard-calendar-modal__icon-action-label{font-size:12px;line-height:1.2;font-weight:800;color:var(--color-text);}
.dashboard-calendar-modal__member-meta-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.dashboard-calendar-modal__mini-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:8px;background:var(--color-surface);border:1px solid var(--color-border-soft);font-size:11px;line-height:1;font-weight:800;color:var(--color-text-soft);}
.dashboard-calendar-modal__sheet-foot .dashboard-calendar-modal__foot-actions{display:flex;justify-content:flex-end;gap:10px;}
@media (max-width:760px){.ui-modal-backdrop.dashboard-calendar-modal-backdrop{align-items:flex-end;padding:8px;}
.dashboard-calendar-modal--lesson-sheet{width:100%;max-width:none;max-height:calc(100dvh - 8px);border-radius:8px 20px 0 0;}
.dashboard-calendar-modal__sheet-body{padding:12px 14px 10px;}
.dashboard-calendar-modal__sheet-foot{padding:10px 14px 14px;}
.dashboard-calendar-modal__icon-action{min-height:74px;padding:10px 8px;border-radius:8px;}
.dashboard-calendar-modal__icon-action-icon{font-size:18px;}
.dashboard-calendar-modal__icon-action-label{font-size:11px;}
.dashboard-calendar-modal__focus-actions{gap:8px;}
.dashboard-calendar-modal__sheet-foot .dashboard-calendar-modal__foot-actions{display:grid;grid-template-columns:1fr;}
.dashboard-calendar-modal__sheet-foot .ui-btn{width:100%;}
}
@media (max-width:420px){.dashboard-calendar-modal__status-chip{width:100%;justify-content:center;}
.dashboard-calendar-modal__focus-actions{grid-template-columns:1fr;}
}
.dashboard-calendar-modal--lesson-sheet{width:min(100%,520px);}
.dashboard-calendar-modal__sheet-body--compact{padding:16px 16px 12px;}
.dashboard-calendar-modal__content-stack--compact{display:flex;flex-direction:column;gap:10px;}
.dashboard-calendar-modal__compact-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--ui-border,#e5e7eb);}
.dashboard-calendar-modal__compact-hero-main{min-width:0;flex:1 1 auto;}
.dashboard-calendar-modal__compact-hero-title{font-size:16px;line-height:1.3;font-weight:600;color:var(--ui-text,#111827);word-break:break-word;}
.dashboard-calendar-modal__compact-hero-meta{margin-top:4px;font-size:13px;line-height:1.35;color:var(--ui-text-soft,#6b7280);}
.dashboard-calendar-modal__compact-hero-side{display:flex;align-items:center;gap:6px;flex:0 0 auto;}
.dashboard-calendar-modal__compact-text{font-size:13px;line-height:1.45;color:var(--ui-text,#111827);background:var(--ui-bg-soft,#f8fafc);padding:10px 12px;white-space:pre-wrap;word-break:break-word;}
.dashboard-calendar-modal__compact-section{display:flex;flex-direction:column;gap:8px;}
.dashboard-calendar-modal__compact-section-title{font-size:12px;line-height:1.3;font-weight:600;color:var(--ui-text-soft,#6b7280);}
.dashboard-calendar-modal__person-list{display:flex;flex-direction:column;gap:6px;}
.dashboard-calendar-modal__person-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:8px 10px;border:1px solid var(--ui-border,#e5e7eb);border-radius:8px;background:var(--ui-bg,#fff);}
.dashboard-calendar-modal__person-row-main{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.dashboard-calendar-modal__person-row-name{font-size:14px;line-height:1.35;font-weight:500;color:var(--ui-text,#111827);word-break:break-word;}
.dashboard-calendar-modal__person-row-actions{flex:0 0 auto;display:flex;align-items:center;gap:6px;}
.dashboard-calendar-modal__icon-btn{width:30px;height:30px;min-width:30px;border:1px solid var(--ui-border,#d1d5db);border-radius:8px;background:var(--ui-bg,#fff);color:var(--ui-text,#111827);display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,opacity .15s ease;}
.dashboard-calendar-modal__icon-btn:hover{background:var(--ui-bg-soft,#f8fafc);}
.dashboard-calendar-modal__icon-btn:disabled{opacity:.6;cursor:default;}
.dashboard-calendar-modal__icon-btn--approve{color:#0f766e;border-color:rgba(15,118,110,.24);background:rgba(15,118,110,.06);}
.dashboard-calendar-modal__icon-btn--approve:hover{background:rgba(15,118,110,.1);}
.dashboard-calendar-modal__icon-btn--deny{color:#b45309;border-color:rgba(180,83,9,.24);background:rgba(180,83,9,.06);}
.dashboard-calendar-modal__icon-btn--deny:hover{background:rgba(180,83,9,.1);}
.dashboard-calendar-modal__text-btn-danger{border:none;background:transparent;padding:0;font-size:13px;line-height:1.2;font-weight:500;color:#b91c1c;cursor:pointer;}
.dashboard-calendar-modal__text-btn-danger:hover{text-decoration:underline;}
.dashboard-calendar-modal__compact-empty{padding:10px 12px;border:1px dashed var(--ui-border,#d1d5db);border-radius:8px;font-size:13px;line-height:1.4;color:var(--ui-text-soft,#6b7280);background:var(--ui-bg-soft,#f8fafc);}
.dashboard-calendar-modal__compact-row{display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 10px;border:1px solid var(--ui-border,#e5e7eb);border-radius:8px;background:var(--ui-bg,#fff);}
.dashboard-calendar-modal__compact-row--video-edit{align-items:center;}
.dashboard-calendar-modal__compact-row-label{flex:0 0 auto;font-size:13px;line-height:1.3;font-weight:600;color:var(--ui-text-soft,#6b7280);}
.dashboard-calendar-modal__compact-row-value{min-width:0;flex:1 1 auto;font-size:13px;line-height:1.35;color:var(--ui-text,#111827);}
.dashboard-calendar-modal__compact-video-link{min-width:0;flex:1 1 auto;font-size:13px;line-height:1.35;}
.dashboard-calendar-modal__compact-video-input{min-width:0;flex:1 1 auto;}
.dashboard-calendar-modal__compact-footer-actions{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.dashboard-calendar-modal__compact-footer-actions .ui-btn{min-width:0;}
.dashboard-calendar-modal__sheet-foot .dashboard-calendar-modal__compact-footer-actions .ui-btn:first-child{flex:1 1 auto;}
.dashboard-calendar-modal__sheet-foot .dashboard-calendar-modal__compact-footer-actions .ui-btn:last-child{flex:0 0 auto;}
.dashboard-calendar-modal__mini-badge{display:inline-flex;align-items:center;gap:4px;min-height:22px;padding:0 8px;border-radius:8px;font-size:11px;line-height:1;font-weight:600;border:1px solid transparent;white-space:nowrap;}
.dashboard-calendar-modal__mini-badge--default{color:var(--ui-text-soft,#4b5563);background:#f3f4f6;border-color:#e5e7eb;}
.dashboard-calendar-modal__mini-badge--warning{color:#b45309;background:rgba(180,83,9,.08);border-color:rgba(180,83,9,.18);}
.dashboard-calendar-modal__error{margin-top:4px;font-size:12px;line-height:1.35;color:#b91c1c;}
@media (max-width:640px){.dashboard-calendar-modal--lesson-sheet{width:min(100%,100vw - 20px);}
.dashboard-calendar-modal__sheet-body--compact{padding:14px 14px 10px;}
.dashboard-calendar-modal__compact-hero{gap:8px;}
.dashboard-calendar-modal__compact-hero-title{font-size:15px;}
.dashboard-calendar-modal__person-row{align-items:flex-start;}
.dashboard-calendar-modal__person-row,.dashboard-calendar-modal__compact-row--video-edit{flex-direction:column;}
.dashboard-calendar-modal__person-row-actions,.dashboard-calendar-modal__compact-video-input{width:100%;}
.dashboard-calendar-modal__compact-row{flex-wrap:wrap;}
.dashboard-calendar-modal__compact-footer-actions{flex-direction:column-reverse;align-items:stretch;}
.dashboard-calendar-modal__sheet-foot .dashboard-calendar-modal__compact-footer-actions .ui-btn:first-child,.dashboard-calendar-modal__sheet-foot .dashboard-calendar-modal__compact-footer-actions .ui-btn:last-child{flex:1 1 auto;}
}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell{position:relative;}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell.is-reschedule-available{background:#fff1df !important;box-shadow:inset 0 0 0 1px rgba(215,161,70,0.16);}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell.is-reschedule-available:hover:not(.is-past):not(.is-occupied){background:#ffe8c7 !important;box-shadow:
    inset 0 0 0 1px rgba(215,161,70,0.28),
    0 0 0 1px rgba(215,161,70,0.12);}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell.is-reschedule-preview,
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell.is-reschedule-preview-invalid,
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell.is-reschedule-anchor{z-index:5;}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__events-layer{z-index:2;}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__pending-layer{z-index:3;}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__event.is-reschedule-source{opacity:.42;filter:saturate(.82);pointer-events:none;box-shadow:
    inset 0 0 0 1px rgba(255,244,214,0.28),
    0 10px 24px rgba(57,45,32,0.12);}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell.is-occupied:not(.is-lesson-clickable),
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell[data-available="0"]{cursor:not-allowed !important;}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__cell.is-past{opacity:1;cursor:not-allowed !important;}
.ui-input-wrap{position:relative;display:flex;align-items:center;}
.ui-input--with-action{padding-right:52px;}
.ui-input-wrap .ui-input{padding-right:52px;}
.ui-input-wrap__toggle{position:absolute;right:6px;top:50%;width:40px;height:40px;margin-top:-20px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--color-text-muted);transition:background-color .18s ease,color .18s ease,opacity .18s ease;}
.ui-input-wrap__toggle:hover{background:var(--color-surface-muted);color:var(--color-text-soft);}
.ui-input-wrap__toggle:focus-visible{box-shadow:var(--focus-ring);}
.ui-input-wrap__toggle-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;}
.ui-input-wrap__toggle-icon svg{width:20px;height:20px;}
.ui-field.has-error .ui-label{color:#c84f44;}
.ui-input.is-invalid,
.ui-select.is-invalid,
.ui-textarea.is-invalid,
.ui-input-wrap.is-invalid .ui-input{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,0.12);}
.ui-input.is-invalid:hover,
.ui-select.is-invalid:hover,
.ui-textarea.is-invalid:hover,
.ui-input-wrap.is-invalid .ui-input:hover{border-color:#ef4444;}
.ui-input.is-invalid:focus,
.ui-select.is-invalid:focus,
.ui-textarea.is-invalid:focus,
.ui-input-wrap.is-invalid .ui-input:focus{border-color:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,0.14);}
.tp-field-error{color:#d14343;font-size:13px;line-height:1.35;font-weight:500;}
.tp-auth-alert{display:flex;align-items:flex-start;gap:12px;}
.tp-auth-alert__icon{flex:0 0 auto;width:20px;height:20px;margin-top:1px;color:currentColor;}
.tp-auth-alert__icon svg{width:20px;height:20px;}
.tp-auth-alert__content{min-width:0;flex:1 1 auto;}
.tp-auth-caps{color:#b26b1d;}
@media (max-width:640px){.platform-header__inner{min-height:64px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;}
.platform-header__brand{flex:0 1 auto;min-width:0;font-size:20px;line-height:1;}
.platform-header__right{width:auto;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:8px;min-width:0;}
.platform-header__locale-wrap{flex:0 0 auto;}
.platform-header__locale{min-width:58px;width:58px;height:36px;padding:0 24px 0 10px;font-size:12px;}
.platform-header__locale-wrap::after{right:10px;font-size:10px;}
.platform-header__domain{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;}
.platform-header__domain-icon{font-size:14px;color:var(--color-text);}
.platform-header__account-btn{width:36px;min-width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:0;background: #f7f7f6;border-radius:50%;}
.platform-header__account-name,
  .platform-header__account-arrow{display:none;}
.platform-header__account-avatar{width:26px;height:26px;font-size:17px;}
.platform-header__login-icon{display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;}
.platform-header__menu{top:calc(100% + 8px);right:0;width:172px;}
}
.dashboard-calendar-modal.dashboard-calendar-modal--selection .dashboard-calendar-modal__action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;border:1px solid var(--color-border-soft);border-radius:8px;background:#f7f4ef;}
.dashboard-calendar-modal.dashboard-calendar-modal--selection .dashboard-calendar-modal__choice{margin:0;}
.dashboard-calendar-modal.dashboard-calendar-modal--selection .dashboard-calendar-modal__choice span{min-height:40px;border:0;border-radius:10px;background:transparent;color:var(--color-text-muted);font-size:14px;line-height:1;font-weight:700;box-shadow:none;}
.dashboard-calendar-modal.dashboard-calendar-modal--selection .dashboard-calendar-modal__choice input:checked + span{background:var(--color-surface);color:var(--color-text);box-shadow:0 1px 2px rgba(41,47,56,0.06);border:0;}
.dashboard-calendar-modal.dashboard-calendar-modal--selection .dashboard-calendar-modal__choice input:focus-visible + span{box-shadow:
    0 0 0 3px rgba(135,107,71,0.12),
    0 1px 2px rgba(41,47,56,0.06);}
.dashboard-calendar-modal.dashboard-calendar-modal--selection .dashboard-calendar-modal__choice:not(:has(input:checked)) span:hover{color:#4f4943;background:rgba(255,255,255,0.45);}
.ui-card{border-radius:var(--radius-lg);}
.ui-table-wrap{border-radius:var(--radius-lg);}
.ui-empty{border-radius:var(--radius-lg);}
.ui-modal{border-radius:var(--radius-xl);}
.ui-input,
.ui-select,
.ui-textarea{border-radius:var(--radius-md);}
.dashboard-shell__nav-btn{border-radius:var(--radius-md);}
.dashboard-calendar__modal{border-radius:var(--radius-lg);}
.dashboard-calendar__viewport{border-radius:var(--radius-sm);}
.dashboard-calendar__grid{grid-auto-rows:var(--calendar-slot-height);}
.dashboard-calendar__time-cell{min-height:var(--calendar-slot-height);}
.dashboard-calendar__cell{height:var(--calendar-slot-height);}
.dashboard-calendar__event{border-radius: 15px 0 15px 0;
    border: solid 1px #edf5e8;}
.dashboard-calendar-modal,
.dashboard-calendar__timezone-picker-modal{border-radius:var(--radius-xl);}
.dashboard-calendar-modal__choice span,
.dashboard-calendar-modal__weekday,
.dashboard-calendar-modal__date-input{border-radius:var(--radius-md);}
.tp-packages-overview__item,.tp-package-editor{border-radius:var(--radius-lg);}
.teacher-calendar-layer__sheet{border-radius:8px;}
@media (max-width:760px){.dashboard-calendar__grid{grid-auto-rows:var(--calendar-slot-height);}
.dashboard-calendar__cell{height:var(--calendar-slot-height);}
}
.dashboard-calendar--teacher,
.dashboard-calendar--student{min-height:0;height:100%;display:flex;flex-direction:column;}
.dashboard-calendar--teacher > .dashboard-calendar__modal,
.dashboard-calendar--student > .dashboard-calendar__modal{min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden;}
.dashboard-calendar--student .dashboard-calendar__modal-head,
.dashboard-calendar--student .dashboard-calendar__toolbar{position:relative;z-index:6;flex:0 0 auto;}
.dashboard-calendar--teacher .dashboard-calendar__board,
.dashboard-calendar--student .dashboard-calendar__board{min-height:0;flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden;}
.dashboard-calendar--teacher .dashboard-calendar__viewport,
.dashboard-calendar--student .dashboard-calendar__viewport{position:relative;isolation:isolate;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;flex:1 1 auto;}
.dashboard-calendar--teacher .dashboard-calendar__grid,
.dashboard-calendar--student .dashboard-calendar__grid{position:relative;overflow:visible;align-content:start;}
.dashboard-calendar--teacher .dashboard-calendar__events-layer,
.dashboard-calendar--teacher .dashboard-calendar__pending-layer,
.dashboard-calendar--student .dashboard-calendar__events-layer,
.dashboard-calendar--student .dashboard-calendar__pending-layer{position:absolute;left:0;right:0;bottom:0;top:var(--calendar-header-height);overflow:hidden;pointer-events:none;}
.dashboard-calendar--teacher .dashboard-calendar__events-layer,
.dashboard-calendar--student .dashboard-calendar__events-layer{z-index:2;}
.dashboard-calendar--teacher .dashboard-calendar__pending-layer,
.dashboard-calendar--student .dashboard-calendar__pending-layer{z-index:3;}
.dashboard-calendar--teacher .dashboard-calendar__header-cell,
.dashboard-calendar--student .dashboard-calendar__header-cell{position:sticky;top:0;z-index:var(--calendar-sticky-z);background:var(--calendar-header-bg)}
.dashboard-calendar--teacher .dashboard-calendar__header-cell.is-time,
.dashboard-calendar--student .dashboard-calendar__header-cell.is-time{z-index:var(--calendar-sticky-z-time);}
.dashboard-calendar--teacher .dashboard-calendar__header-cell.is-today,
.dashboard-calendar--student .dashboard-calendar__header-cell.is-today{background:var(--calendar-header-bg-today);}
.dashboard-calendar--teacher .dashboard-calendar__event,.dashboard-calendar--student .dashboard-calendar__event{z-index:1;}
@media (max-width:760px){.dashboard-calendar--teacher .dashboard-calendar__events-layer,
  .dashboard-calendar--teacher .dashboard-calendar__pending-layer,
  .dashboard-calendar--student .dashboard-calendar__events-layer,
  .dashboard-calendar--student .dashboard-calendar__pending-layer{top:var(--calendar-header-height-mobile);}
}
.student-booking-mini-cards{display:grid;grid-template-columns:1fr;gap:10px;}
.student-booking-mini-card{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);text-align:left;transition:all .18s ease;}
.student-booking-mini-card.is-available{cursor:pointer;}
.student-booking-mini-card.is-available:hover{border-color:var(--color-primary);background:var(--color-primary-soft);transform:translateY(-1px);}
.student-booking-mini-card.is-disabled{opacity:.7;background:var(--color-surface-muted);border-color:var(--color-border-soft);cursor:default;}
.student-booking-mini-card__top{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;}
.student-booking-mini-card__title{font-size:14px;font-weight:600;color:var(--color-text);}
.student-booking-mini-card__duration{font-size:12px;color:var(--color-text-muted);}
.student-booking-mini-card__desc{font-size:12px;color:var(--color-text-soft);}
.dashboard-calendar__event--pending-target{background:var(--color-warning-soft);border:1px solid rgba(215,161,70,0.4);box-shadow:0 4px 12px rgba(215,161,70,0.15);color:var(--color-text);}
.dashboard-calendar__event--pending-target .dashboard-calendar__event-title{color:var(--color-text);}
.dashboard-calendar__event--pending-target .dashboard-calendar__event-time{color:var(--color-text-muted);}
.dashboard-calendar__event--pending-target .dashboard-calendar__event-badge{background:rgba(215,161,70,0.14);color:#a06e1f;border-color:rgba(215,161,70,0.22);}
.dashboard-calendar-modal__description-section{gap:10px;}
.dashboard-calendar-modal__description-box{display:flex;flex-direction:column;gap:8px;}
.dashboard-calendar-modal__compact-text--clamp-5{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;}
.dashboard-calendar-modal__description-toggle{padding:0;border:none;background:none;color:inherit;font:inherit;font-weight:500;cursor:pointer;font-size:12px;text-align:center;text-decoration:underline;}
.dashboard-calendar__reschedule-preview-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:4;}
.dashboard-calendar__pending-layer{z-index:5;}
.dashboard-calendar__reschedule-preview-block{border-radius:8px;background:rgba(255,189,89,0.34);box-shadow:
    inset 0 0 0 1px rgba(215,161,70,0.42),
    0 0 0 1px rgba(215,161,70,0.10);}
.dashboard-calendar__reschedule-preview-block.is-invalid{background:rgba(255,120,120,0.18);box-shadow:
    inset 0 0 0 1px rgba(215,101,88,0.42),
    0 0 0 1px rgba(215,101,88,0.10);}
.dashboard-calendar__grid.is-reschedule-mode .dashboard-calendar__event.is-reschedule-source{opacity:.42;pointer-events:none;}
.dashboard-calendar__event-time.dashboard-calendar__event-time--busy{color:#475569;}
.teacher-overview-panel--priority{border:1px solid var(--ui-border,#d9e1ec);border-radius:8px;background:var(--ui-surface,#ffffff);padding:18px;}
.teacher-overview-panel__head--between{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px;}
.teacher-overview-section-kicker{font-size:13px;line-height:1.3;font-weight:700;letter-spacing:0.04em;text-transform:uppercase;color:var(--ui-text-muted,#6f7f95);}
.teacher-overview-panel__counter{min-width:28px;height:28px;padding:0 8px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--ui-surface-muted,#f3f6fb);border:1px solid var(--ui-border,#d9e1ec);font-size:13px;font-weight:700;color:var(--ui-text,#243042);}

.teacher-overview-task{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--ui-border,#d9e1ec);border-radius:8px;background:var(--ui-surface-subtle,#f8fafc);}
.teacher-overview-task__body{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;gap:4px;}
.teacher-overview-task__title{font-size:22px;line-height:1.2;color:var(--ui-text,#1f2a3d);}
.teacher-overview-task__text{font-size:16px;line-height:1.35;color:var(--ui-text-muted,#607089);}
.teacher-overview-task__text strong{font-weight:700;color:var(--ui-text,#243042);}
.teacher-overview-task__text:last-of-type{font-weight:600;color:var(--ui-text,#334155);}
.teacher-overview-task__actions{flex:0 0 auto;display:flex;align-items:center;gap:10px;}
.teacher-overview-task__actions .ui-btn{min-width:140px;height:42px;padding:0 18px;border-radius:10px;font-size:15px;font-weight:700;}
.teacher-overview-empty-inline{padding:18px;border:1px dashed var(--ui-border,#d9e1ec);border-radius:8px;background:var(--ui-surface-subtle,#f8fafc);font-size:15px;line-height:1.45;color:var(--ui-text-muted,#6b7b8f);}
.teacher-overview-task .tp-auth-alert{margin-top:6px;}
@media (max-width:980px){.teacher-overview-task{align-items:flex-start;flex-direction:column;}
.teacher-overview-task__actions{width:100%;}
.teacher-overview-task__actions .ui-btn{flex:1 1 0;min-width:0;}
}
@media (max-width:640px){.teacher-overview-panel--priority{padding:14px;border-radius:8px;}
.teacher-overview-task{padding:14px;border-radius:8px;gap:14px;}
.teacher-overview-task__title{font-size:18px;}
.teacher-overview-task__text{font-size:14px;}
.teacher-overview-task__actions .ui-btn{width:100%;min-width:0;}
}
.tp-students-list{display:flex;flex-direction:column;}
.tp-students-row{position:relative;padding:12px 14px;border-bottom:1px solid var(--color-border-soft);cursor:pointer;transition:background-color .18s ease,box-shadow .18s ease;}
.tp-students-row:last-child{border-bottom:0;}
.tp-students-row:hover{background:var(--color-surface-muted);}
.tp-students-row:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--color-primary-soft-strong);}
.tp-students-row__main{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);min-width:0;}
.tp-students-row__identity{min-width:0;flex:1 1 auto;display:flex;align-items:center;gap:14px;}
.tp-students-row__avatar{width:44px;height:44px;border-radius:999px;background:var(--color-primary-soft);color:var(--color-primary-hover);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex:0 0 auto;}
.tp-students-row__meta{min-width:0;display:grid;gap:4px;}
.tp-students-row__name{font-size:var(--text-md);line-height:1.35;font-weight:700;color:var(--color-text);word-break:break-word;}
.tp-students-row__subline{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;color:var(--color-text-muted);font-size:var(--text-sm);line-height:var(--line-md);}
.tp-students-row__email{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tp-students-row__dot{color:var(--color-text-faint);flex:0 0 auto;}
.tp-students-row__timezone{color:var(--color-text-soft);}
.tp-students-row__side{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex:0 0 auto;}
.tp-students-row__menu{position:relative;flex:0 0 auto;}
.tp-students-row__menu-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:180px;z-index:30;}
.tp-students-row__menu-body{padding:8px;}
.tp-students-row__menu-action{width:100%;justify-content:flex-start;}
.tp-students-row__menu-action--danger{color:var(--color-danger);}
.tp-students-packages{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;}
.tp-students-packages__total{min-height:36px;padding:0 12px;border-radius:8px;background:var(--color-surface-muted);border:1px solid var(--color-border-soft);display:inline-flex;align-items:center;gap:8px;color:var(--color-text-soft);flex:0 0 auto;}
.tp-students-packages__total-label{color:var(--color-text-muted);font-size:var(--text-xs);line-height:1.2;font-weight:600;white-space:nowrap;}
.tp-students-packages__total-value{color:var(--color-text);font-size:var(--text-sm);line-height:1;font-weight:700;white-space:nowrap;}
.tp-students-packages__list{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.tp-students-packages__item{min-height:36px;padding:0 12px;border-radius:8px;border:1px solid var(--color-border-soft);background:var(--color-surface);display:inline-flex;align-items:center;gap:8px;}
.tp-students-packages__item-label{color:var(--color-text-muted);font-size:var(--text-xs);line-height:1.2;font-weight:600;white-space:nowrap;}
.tp-students-packages__item-value{color:var(--color-text);font-size:var(--text-sm);line-height:1;font-weight:700;white-space:nowrap;}
.tp-students-add{display:flex;justify-content:flex-start;}
.tp-students-modal--create{max-width:720px;max-height:calc(100vh - 32px);overflow:auto;}
.tp-students-modal--delete{max-width:520px;}
.tp-students-modal__grid{align-items:start;}
@media (max-width:1100px){.tp-students-row__main{align-items:flex-start;flex-direction:column;}
.tp-students-row__side{width:100%;justify-content:space-between;}
.tp-students-packages{justify-content:flex-start;}
.tp-students-packages__list{justify-content:flex-start;}
}
@media (max-width:720px){.tp-students-row{padding:16px;}
.tp-students-row__identity{align-items:flex-start;}
.tp-students-row__subline{gap:6px;}
.tp-students-row__email{white-space:normal;overflow:visible;text-overflow:unset;word-break:break-word;}
.tp-students-row__side{flex-direction:column;align-items:flex-start;}
.tp-students-packages__total{order:-1;}
.tp-students-modal__grid{grid-template-columns:1fr;}
}
.tenant-public-home{padding:40px 0 56px;}
.tenant-public-home__avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;background:var(--color-surface-strong);border:1px solid var(--color-border-soft);}
.tenant-public-home__avatar img{display:block;width:100%;height:100%;object-fit:cover;}
.tenant-public-home__avatar--fallback{display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1;font-weight:700;color:var(--color-text);}
.tenant-public-home__status{padding:12px 14px;border-radius:10px;border:1px solid var(--color-border-soft);background:var(--color-surface);font-size:14px;line-height:1.5;}
.tenant-public-home__status--warning{background:var(--color-warning-soft);border-color:rgba(201,137,26,0.18);color:#9a6e1c;}
.tenant-public-home__status--error{background:var(--color-danger-soft);border-color:rgba(209,67,67,0.14);color:#b44a4a;}
.tenant-public-home .dashboard-calendar--public{min-width:0;width:100%;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__modal{overflow:hidden;width:100%;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__modal-title{font-size:24px;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__board{padding:8px 16px 0;}
.tenant-public-home .dashboard-calendar__viewport--public{width:100%;overflow-y:auto !important;overflow-x:hidden !important;}
.tenant-public-home .dashboard-calendar__grid--public{min-width:0 !important;width:100% !important;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__header-cell,
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__time-cell,
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__cell{min-width:0;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__header-cell{position:sticky;top:0;z-index:6;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__header-cell.is-time{position:sticky;left:0;top:0;z-index:8;background:var(--cal-grid-soft);}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__time-cell{position:sticky;left:0;z-index:5;background:var(--cal-grid-soft);}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__header-date{font-size:18px;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__header-weekday{font-size:12px;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__time-label{font-size:12px;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__event-title--busy{font-size:11px;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__event-time--busy{font-size:10px;}
.tenant-public-home .dashboard-calendar--public.is-expanded{position:fixed;inset:16px;z-index:1200;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__modal{width:100%;height:calc(100dvh - 32px);box-shadow:var(--shadow-lg);}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__board{flex:1 1 auto;min-height:0;padding:8px 12px 0;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__viewport--public{height:100% !important;max-height:none !important;overflow-x:hidden !important;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__modal-head{min-height:64px;padding:0 14px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__toolbar{padding:14px 14px 10px;gap:14px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__modal-title{font-size:22px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__legend{gap:12px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__legend-item{font-size:13px;}
@media (max-width:760px){.tenant-public-home{padding:24px 0 40px;}
.tenant-public-home__avatar{width:56px;height:56px;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__board{padding:8px 8px 0;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__header-date{font-size:16px;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__header-weekday{font-size:11px;}
.tenant-public-home .dashboard-calendar__grid--public .dashboard-calendar__time-label{font-size:11px;}
.tenant-public-home .dashboard-calendar--public.is-expanded{inset:8px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__modal{height:calc(100dvh - 16px);}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__modal-title{font-size:18px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__toolbar{padding:12px 10px 8px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__range-nav{gap:8px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__range-label{font-size:15px;}
.tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__today-chip,
  .tenant-public-home .dashboard-calendar--public.is-expanded .dashboard-calendar__range-arrow{height:36px;}
}
.tenant-public-home .teacher-calendar-layer--public{position:relative;inset:auto;pointer-events:none;}
.tenant-public-home .teacher-calendar-layer--public .teacher-calendar-layer__backdrop{opacity:0;pointer-events:none;}
.tenant-public-home .teacher-calendar-layer--public .teacher-calendar-layer__sheet{position:relative;inset:auto;top:auto;left:auto;right:auto;bottom:auto;border-radius:0;box-shadow:none;background:transparent;pointer-events:auto;}
.tenant-public-home .teacher-calendar-layer--public .teacher-calendar-layer__content{min-height:0;}
.tenant-public-home .teacher-calendar-layer--public .teacher-calendar-layer__nav-btn{display:none;}
.tenant-public-home .dashboard-calendar--public.is-inline{min-width:0;width:100%;}
.tenant-public-home .dashboard-calendar--public.is-inline .dashboard-calendar__modal{width:100%;}
.tenant-public-home .dashboard-calendar--public.is-inline .dashboard-calendar__viewport--public{overflow-y:auto;overflow-x:hidden;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__header-cell{position:sticky;top:0;z-index:8;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__header-cell.is-time{z-index:9;}
.tenant-public-home .teacher-calendar-layer--public.is-open{position:fixed;inset:0;z-index:1200;pointer-events:auto;}
.tenant-public-home .teacher-calendar-layer--public.is-open .teacher-calendar-layer__backdrop{opacity:1;pointer-events:auto;background:rgba(15,23,42,0.06);}
.tenant-public-home .teacher-calendar-layer--public.is-open .teacher-calendar-layer__sheet{position:absolute;left:24px;right:24px;bottom:24px;top:var(--teacher-calendar-top,104px);background:#ffffff;border-radius:8px;box-shadow:0 6px 16px rgba(27,24,20,0.07);overflow:hidden;pointer-events:auto;}
.tenant-public-home .teacher-calendar-layer--public.is-open .teacher-calendar-layer__nav-btn{display:block;}
.tenant-public-home .teacher-calendar-layer--public.is-open .teacher-calendar-layer__content{width:100%;height:100%;min-height:0;}
.tenant-public-home .dashboard-calendar--public.is-fullscreen{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;}
.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__modal{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;border:0;border-radius:8px;box-shadow:none;}
.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__board{flex:1 1 auto;min-height:0;}
.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__viewport--public{height:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__grid--public{min-width:0;}
@media (max-width:900px){.tenant-public-home .teacher-calendar-layer--public.is-open .teacher-calendar-layer__sheet{left:12px;right:12px;bottom:12px;top:84px;}
}
@media (max-width:760px){.tenant-public-home .teacher-calendar-layer--public.is-open .teacher-calendar-layer__sheet{left:0;right:0;bottom:0;top:68px;border-radius:8px 16px 0 0;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__modal-title{font-size:22px;}
}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__viewport--public{position:relative;overflow-y:auto;overflow-x:hidden;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__grid{position:relative;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__header-cell{position:sticky;top:0;z-index:20;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__header-cell.is-time{z-index:21;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__events-layer{z-index:3;}
.tenant-public-home .dashboard-calendar--public .dashboard-calendar__events-sub-layer--busy{z-index:1;}

.teacher-overview-skeleton{
  display:grid;
  gap:16px;
}

.teacher-overview-skeleton__grid{
  display:grid;
  gap:16px;
}

.teacher-overview-skeleton__grid--top{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.teacher-overview-skeleton__grid--bottom{
  grid-template-columns:minmax(0,1.45fr) minmax(320px,0.95fr);
}

.teacher-overview-skeleton__card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--color-border-soft);
  border-radius:8px;
  background:var(--color-surface);
}

.teacher-overview-skeleton__card::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(68,104,216,0.04) 45%,rgba(255,255,255,0.55) 50%,rgba(68,104,216,0.04) 55%,rgba(255,255,255,0) 100%);
  animation:teacherSkeletonShimmer 1.35s ease-in-out infinite;
}

.teacher-overview-skeleton__card--hero{
  min-height:160px;
}

.teacher-overview-skeleton__card--panel{
  min-height:168px;
}

.teacher-overview-skeleton__card--list{
  min-height:320px;
}

.teacher-overview-skeleton__card--side{
  min-height:320px;
}

@keyframes teacherSkeletonShimmer{
  100%{
    transform:translateX(100%);
  }
}

@media (max-width:1100px){
  .teacher-overview-skeleton__grid--bottom{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  .teacher-overview-skeleton__grid--top{
    grid-template-columns:1fr;
  }

  .teacher-overview-skeleton__card--hero{
    min-height:140px;
  }

  .teacher-overview-skeleton__card--panel{
    min-height:144px;
  }

  .teacher-overview-skeleton__card--list,
  .teacher-overview-skeleton__card--side{
    min-height:220px;
  }
.dashboard-calendar__cell {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  border-radius: 0;
}

.dashboard-calendar__cell:focus,
.dashboard-calendar__cell:focus-visible,
.dashboard-calendar__cell:active {
  outline: none !important;
  box-shadow: none !important;
}

@media (hover: none) {
  .dashboard-calendar__cell:hover,
  .dashboard-calendar__cell.is-clickable:hover,
  .dashboard-calendar__cell.is-available:hover,
  .dashboard-calendar__cell.is-available-start:hover,
  .dashboard-calendar__cell:active,
  .dashboard-calendar__cell:focus,
  .dashboard-calendar__cell:focus-visible {
    box-shadow: none !important;
    outline: none !important;
  }
}
}
.dashboard-shell__nav-btn,
.teacher-home-page__mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dashboard-shell__nav-btn-text,
.teacher-home-page__mobile-nav-label {
  display: inline-block;
}

.dashboard-shell__nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6b3d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.teacher-home-page__sidebar--chat .ui-card__body{
  padding:var(--space-4);
}

.teacher-chat-sidebar{
  display:grid;
  gap:12px;
  min-width:0;
}

.teacher-chat-sidebar__head{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.teacher-chat-sidebar__back{
  flex:0 0 auto;
}

.teacher-chat-sidebar__head-main{
  min-width:0;
}

.teacher-chat-sidebar__list{
  display:grid;
  gap:8px;
  min-width:0;
}

.teacher-chat-sidebar__item{
  width:100%;
  display:grid;
  gap:8px;
  
  border:1px solid var(--color-border-soft);
  border-radius:8px;
  background:var(--color-surface);
  text-align:left;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.teacher-chat-sidebar__item:hover{
  background:var(--color-surface-muted);
  border-color:var(--color-border);
}

.teacher-chat-sidebar__item.is-active{
  background:var(--color-primary-soft);
  border-color:var(--color-border-strong);
  box-shadow:inset 0 0 0 1px rgba(99,102,241,0.08);
}

.teacher-chat-sidebar__item-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.teacher-chat-sidebar__item-title{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:var(--text-sm);
  line-height:1.35;
  font-weight:700;
  color:var(--color-text);
}

.teacher-chat-sidebar__item-time{
  flex:0 0 auto;
  font-size:var(--text-xs);
  line-height:1.2;
  color:var(--color-text-muted);
}

.teacher-chat-sidebar__item-preview{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:var(--text-sm);
  line-height:1.4;
  color:var(--color-text-muted);
}

.teacher-chat-sidebar__item-badge{
  flex:0 0 auto;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:var(--color-primary);
  color:#fff;
}

.teacher-chat-page{
  min-width:0;
}

.teacher-chat-page .ui-card__body{
  padding:16px;
}

.teacher-chat-page__thread{
  min-width:0;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
}

.teacher-chat-page__thread-head{
  padding-bottom:12px;
  border-bottom:1px solid var(--color-border-soft);
}

.teacher-chat-page__thread-head-main{
  display:grid;
  gap:4px;
  min-width:0;
}

.teacher-chat-page__thread-subtitle{
  min-height:20px;
}

.teacher-chat-page__messages{
  flex:1 1 auto;
  min-height:320px;
  max-height:62vh;
  overflow-y:auto;
  display:grid;
  gap:10px;
  padding:12px 4px 0 0;
}

.teacher-chat-page__message{
  display:flex;
}

.teacher-chat-page__message.is-own{
  justify-content:flex-end;
}

.teacher-chat-page__message-bubble{
  max-width:min(78%,640px);
  display:grid;
  gap:6px;
  padding:12px 14px;
  border:1px solid var(--color-border-soft);
  border-radius:10px;
  background:var(--color-bg-soft);
}

.teacher-chat-page__message-text{
  font-size:var(--text-sm);
  line-height:1.55;
  color:var(--color-text);
  white-space:pre-wrap;
  word-break:break-word;
}

.teacher-chat-page__message-time{
  font-size:var(--text-xs);
  line-height:1.2;
  color:var(--color-text-faint);
}

.teacher-chat-page__composer{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--color-border-soft);
  display:grid;
  gap:10px;
}

.teacher-chat-page__textarea{
  min-height:96px;
}

.teacher-chat-page__composer-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.teacher-chat-page__empty{
  padding:24px;
}

@media (max-width:900px){
  .teacher-home-page__sidebar--chat{
    display:none;
  }

  .teacher-chat-page__messages{
    max-height:none;
    min-height:280px;
  }

  .teacher-chat-page__message-bubble{
    max-width:100%;
  }
}

.teacher-chat-sidebar__item {
  position: relative;
  align-items: stretch;
}

.teacher-chat-sidebar__item-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.teacher-chat-sidebar__item:has(.teacher-chat-sidebar__item-badge) .teacher-chat-sidebar__item-title {
  font-weight: 700;
}

.teacher-chat-sidebar__item:has(.teacher-chat-sidebar__item-badge):not(.is-active) {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.22);
}

.teacher-chat-sidebar__item-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-chat-page__messages {
  scroll-behavior: smooth;
}

.teacher-chat-page__message {
  display: flex;
  margin-bottom: 8px;
}

.teacher-chat-page__message.is-own {
  justify-content: flex-end;
}

.teacher-chat-page__message.is-new .teacher-chat-page__message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  background: #f1f1f1;
  color: #111;
}

.teacher-chat-page__textarea {
  resize: vertical;
  min-height: 96px;
}

.teacher-chat-page__composer.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.teacher-chat-page__thread-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-chat-sidebar__item {
  width: 100%;
  padding: 10px 17px;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}

.teacher-chat-sidebar__item:hover {
  transform: translateY(-1px);
}

.teacher-chat-sidebar__item.is-active {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.08);
}

.teacher-chat-sidebar__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teacher-chat-sidebar__item-row + .teacher-chat-sidebar__item-row {
  margin-top: 6px;
}

.teacher-chat-sidebar__item-title {
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.teacher-chat-sidebar__item-time {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ui-text-muted, #64748b);
}

.teacher-chat-sidebar__item-preview {
  min-width: 0;
  font-size: 13px;
  color: var(--ui-text-muted, #64748b);
}

.dashboard-shell__nav-badge--chat {
  background: #2563eb;
  color: #fff;
}

.teacher-chat-sidebar__item-badge,.dashboard-shell__nav-badge--chat {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

input,select,textarea{accent-color:var(--color-primary);}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}
.teacher-chat-page{
  min-width:0;
}

.teacher-chat-page__thread{
  min-width:0;
  display:block;
  flex:none;
  min-height:0;
  height:auto;
  overflow:visible;
}

.teacher-chat-page__thread--single{
  display:block;
  min-height:0;
  height:auto;
  overflow:visible;
}

.teacher-chat-page__thread-head{
  display:none !important;
}

.teacher-chat-page__messages{
  display:grid;
  gap:10px;
  min-height:0;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding:12px 0 0;
  scroll-behavior:auto;
}

.teacher-chat-page__message{
  display:flex;
}

.teacher-chat-page__message.is-own{
  justify-content:flex-end;
}

.teacher-chat-page__message-bubble{
  max-width:min(78%,640px);
  display:grid;
  gap:6px;
  padding:12px 14px;
  border:1px solid var(--color-border-soft);
  border-radius:10px;
  background:var(--color-bg-soft);
}

.teacher-chat-page__message-text{
  white-space:pre-wrap;
  word-break:break-word;
}

.teacher-chat-page__message-time{
  font-size:12px;
  line-height:1.2;
  color:var(--color-text-faint);
}

.teacher-chat-page__message.is-own .teacher-chat-page__message-time{
  color:rgba(255,255,255,0.72);
}

.teacher-chat-page__composer{
  position:static;
  margin-top:16px;
  padding:0;
  background:transparent;
  border:0;
}

.teacher-chat-page__composer-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}

.teacher-chat-page__textarea{
  min-height:120px;
  resize:vertical;
}

.teacher-home-page__content,.dashboard-shell__content,.teacher-chat-page,.student-chat-page{
  min-height:0;
  height:auto;
  overflow:visible;
}

@media (max-width:900px){
  .teacher-chat-page__message-bubble{
    max-width:100%;
  }
}

.teacher-chat-page{
  min-width:0;
  padding-bottom:24px;
}

.teacher-chat-page__thread,
.teacher-chat-page__thread--single{
  min-width:0;
  display:block;
  min-height:0;
  height:auto;
  overflow:visible;
}

.teacher-chat-page__thread-head{
  display:none !important;
}

.teacher-chat-page__messages{
  display:grid;
  gap:10px;
  min-height:0;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding:12px 0 120px;
}

.teacher-chat-page__message{
  display:flex;
}

.teacher-chat-page__message.is-own{
  justify-content:flex-end;
}

.teacher-chat-page__message-bubble{
  max-width:min(78%,640px);
  display:grid;
  gap:6px;
  padding:12px 14px;
  border:1px solid var(--color-border-soft);
  border-radius:10px;
  background:var(--color-bg-soft);
}

.teacher-chat-page__message.is-own .teacher-chat-page__message-bubble {
  background: #fff;
}

.teacher-chat-page__message-text{
  white-space:pre-wrap;
  word-break:break-word;
}

.teacher-chat-page__message-time{
  font-size:12px;
  line-height:1.2;
  color:var(--color-text-faint);
}

.teacher-chat-page__message.is-own .teacher-chat-page__message-time{
  color:rgba(255,255,255,0.72);
}

.teacher-chat-page__composer{
  position:sticky;
  bottom:0;
  z-index:20;
  margin-top:16px;
  padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(to top,var(--color-bg) 78%,rgba(247,247,246,0));
  border:0;
}

.teacher-chat-page__composer-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}

.teacher-chat-page__textarea{
  min-height:110px;
  resize:vertical;
  background:var(--color-surface);
}

.teacher-home-page__content,.dashboard-shell__content,.teacher-chat-page,.student-chat-page{
  min-height:0;
  height:auto;
  overflow:visible;
}

@media (max-width:900px){
  .teacher-chat-page__messages{
    padding-bottom:132px;
  }

  .teacher-chat-page__message-bubble{
    max-width:100%;
  }

  .teacher-chat-page__composer{
    padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
  }
}

.teacher-chat-page__bottom-anchor{
  display:block;
  width:100%;
  height:1px;
}

.teacher-chat-picker{display:grid;gap:16px;padding:8px 0;}
.teacher-chat-picker__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;}
.teacher-chat-page__composer[hidden]{display:none !important;}
@media (max-width: 740px){.teacher-chat-picker__grid{grid-template-columns:1fr;}}
.teacher-chat-page__thread-head{display:block !important;padding-bottom:12px;border-bottom:1px solid var(--color-border-soft);margin-bottom:12px;}
.teacher-chat-picker{display:grid;gap:16px;}
.teacher-chat-picker__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.teacher-chat-picker__card{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--color-border-soft);border-radius:12px;background:var(--color-surface);text-align:left;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;}
.teacher-chat-picker__card:hover{background:var(--color-surface-muted);border-color:var(--color-border);transform:translateY(-1px);}
.teacher-chat-picker__card:disabled{opacity:.7;cursor:default;transform:none;}
.teacher-chat-picker__avatar{width:48px;height:48px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:var(--color-primary-soft);color:var(--color-primary-hover);font-size:18px;font-weight:700;}
.teacher-chat-picker__card-body{min-width:0;display:grid;gap:8px;}
.teacher-chat-picker__card-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;}
.teacher-chat-picker__card-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm);line-height:1.35;font-weight:700;color:var(--color-text);}
.teacher-chat-picker__card-time{flex:0 0 auto;font-size:var(--text-xs);line-height:1.2;color:var(--color-text-muted);}
.teacher-chat-picker__card-preview{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm);line-height:1.4;color:var(--color-text-muted);}
.teacher-chat-picker__badge{flex:0 0 auto;min-width:22px;height:22px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--color-primary);color:#fff;font-size:12px;line-height:1;font-weight:700;}
.teacher-chat-picker__empty{grid-column:1 / -1;}
@media (max-width:900px){.teacher-chat-picker__grid{grid-template-columns:1fr;}}
html,
body{
  max-width:100%;
  overflow-x:hidden;
}

#app,
#platformHeader{
  max-width:100%;
}

.platform-header{
  position:sticky;
  top:0;
  z-index:120;
  background:rgba(255,255,255,0.96);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}

.dashboard-shell__nav-btn{
  gap:12px;
}

.dashboard-shell__nav-icon{
  width:22px;
  height:22px;
  min-width:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:currentColor;
}

.dashboard-shell__nav-icon svg{
  width:22px;
  height:22px;
}

.dashboard-shell__nav-btn-text,
.teacher-home-page__mobile-nav-label{
  min-width:0;
}

@media (max-width:900px){
  .ui-container{
    padding-left:14px;
    padding-right:14px;
  }

  .platform-header{
    position:sticky;
    top:0;
    z-index:130;
  }

  .teacher-home-page{
    padding-top:14px;
    padding-bottom:calc(78px + env(safe-area-inset-bottom,0px));
  }

  .teacher-home-page__content,
  .dashboard-shell__content,
  .ui-card,
  .ui-table-wrap,
  .dashboard-calendar,
  .teacher-chat-page{
    min-width:0;
    max-width:100%;
  }

  .teacher-home-page__mobile-nav{
    display:block !important;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:140;
    padding:0 0 env(safe-area-inset-bottom,0px);
    background:rgba(255,255,255,0.96);
    border-top:1px solid var(--color-border-soft);
    box-shadow:0 -8px 26px rgba(15,23,42,0.08);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
  }

  .teacher-home-page__mobile-nav-inner{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    width:100%;
    padding:7px 8px 17px;
    gap:2px;
  }

  .teacher-home-page__mobile-nav-btn{
    position:relative;
    min-height:58px;
    padding:6px 4px 5px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    border-radius:14px;
    color:var(--color-text-muted);
    font-size:11px;
    line-height:1.15;
    font-weight:800;
  }

  .teacher-home-page__mobile-nav-btn .dashboard-shell__nav-icon{
    width:23px;
    height:23px;
    min-width:23px;
  }

  .teacher-home-page__mobile-nav-btn .dashboard-shell__nav-icon svg{
    width:23px;
    height:23px;
  }

  .teacher-home-page__mobile-nav-btn.is-active{
    color:var(--color-primary-hover);
    box-shadow:none;
    border-radius:14px;
  }

  .teacher-home-page__mobile-nav-btn .dashboard-shell__nav-badge{
    position:absolute;
    top:5px;
    right:18%;
    min-width:18px;
    height:18px;
    padding:0 5px;
    font-size:10px;
  }

  .teacher-home-page__mobile-nav-label{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .ui-row,
  .ui-actions,
  .ui-page__head{
    max-width:100%;
  }
}

@media (max-width:640px){
  .ui-container{
    padding-left:10px;
    padding-right:10px;
  }

  .ui-page{
    padding-top:18px;
  }

  .platform-header__inner{
    min-height:58px;
    padding:9px 0;
  }

  .ui-h2{
    font-size:20px;
  }

  .ui-card__body,
  .ui-card__head{
    padding:14px;
  }

  .ui-table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .ui-table{
    min-width:560px;
  }
}
:root{
  --platform-header-height:68px;
}

.platform-header{
  position:fixed;
  left:0;
  right:0;
  top:0;
  z-index:1400;
  width:100%;
  background:#fff;
  border-bottom:1px solid var(--color-border-soft);
}

body{
  padding-top:var(--platform-header-height);
}

.platform-header__inner{
  min-height:var(--platform-header-height);
}

.teacher-calendar-layer{
  z-index:1200;
}

.teacher-calendar-layer__sheet{
  top:calc(var(--platform-header-height) + 16px);
}

@media (max-width:767px){
  :root{
    --platform-header-height:60px;
  }

  .platform-header__inner{
    min-height:60px;
    padding:8px 0;
  }

  .teacher-calendar-layer__sheet{
    top:var(--platform-header-height);
  }
}
.tenant-public-home .teacher-calendar-layer--public.is-open,
.tenant-public-home .teacher-calendar-layer--public.is-open .teacher-calendar-layer__sheet,
.tenant-public-home .teacher-calendar-layer--public.is-open .teacher-calendar-layer__content,
.tenant-public-home .dashboard-calendar--public.is-fullscreen,
.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__modal,
.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__board{
  min-height:0;
  overflow:hidden;
}

.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__viewport--public{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  height:100% !important;
  max-height:none !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__viewport--public::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

.tenant-public-home .dashboard-calendar--public.is-fullscreen #public-cal-grid-root,
.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__grid--public{
  overflow:visible !important;
}

.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__header-cell{
  position:sticky !important;
  top:0 !important;
  z-index:30 !important;
  transform:none !important;
  will-change:auto !important;
  background:var(--calendar-header-bg, var(--cal-grid-soft));
}

.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__header-cell.is-time{
  z-index:31 !important;
}

.tenant-public-home .dashboard-calendar--public.is-fullscreen .dashboard-calendar__header-cell.is-today{
  background:var(--calendar-header-bg-today, var(--color-primary-soft));
}

.student-decision-task{
  align-items:center;
  gap:18px;
  border-radius:10px;
  background:#f8fafc;
}

.student-decision-task__main{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width:0;
  flex:1 1 auto;
}

.student-decision-task__icon{
  width:38px;
  height:38px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:#eef2ff;
  color:#4f46e5;
}

.student-decision-task__icon svg{
  width:20px;
  height:20px;
  display:block;
  fill:currentColor;
}

.student-decision-task__body{
  gap:5px;
}

.student-decision-task__topline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 10px;
  min-width:0;
}

.student-decision-task__title{
  margin:0;
}

.student-decision-task__source{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  background:#eef2f7;
  color:#607089;
  font-size:13px;
  line-height:1;
  font-weight:700;
}

.student-decision-task__meta{
  font-size:15px;
  line-height:1.35;
  color:#607089;
}

.student-decision-task__time{
  font-size:16px;
  line-height:1.35;
  font-weight:800;
  color:#243042;
}

.student-decision-task__note{
  font-size:14px;
  line-height:1.35;
  color:#607089;
}

.student-decision-task__actions{
  align-self:center;
}

@media (max-width:980px){
  .student-decision-task{
    align-items:stretch;
  }

  .student-decision-task__main{
    width:100%;
  }

  .student-decision-task__actions{
    align-self:stretch;
  }
}

@media (max-width:560px){
  .student-decision-task{
    gap:12px;
  }

  .student-decision-task__main{
    gap:10px;
  }

  .student-decision-task__icon{
    width:34px;
    height:34px;
  }

  .student-decision-task__icon svg{
    width:18px;
    height:18px;
  }

  .student-decision-task__source{
    font-size:12px;
  }

  .student-decision-task__meta,
  .student-decision-task__note{
    font-size:13px;
  }

  .student-decision-task__time{
    font-size:14px;
  }
}

.student-decision-task__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.student-decision-task__icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  flex: 0 0 auto;
}

/* Чат учителя и ученика: общий скролл страницы, поле ввода в видимой зоне */
.teacher-chat-page,
.student-chat-page{
  min-width:0;
  min-height:0;
  height:auto;
  overflow:visible !important;
}

.teacher-chat-page__thread,
.teacher-chat-page__thread--single{
  min-width:0;
  display:block !important;
  min-height:0;
  height:auto !important;
  overflow:visible !important;
}

.teacher-chat-page__thread-head{
  display:block !important;
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid var(--color-border-soft);
}

.teacher-chat-page__messages{
  display:block !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding:0 !important;
  scroll-behavior:auto !important;
}

.teacher-chat-page__messages [data-messages-container="1"]{
  display:grid;
  gap:10px;
  min-width:0;
}

.teacher-chat-page__message{
  display:flex;
  margin:0 !important;
}

.teacher-chat-page__message.is-own{
  justify-content:flex-end;
}

.teacher-chat-page__message-bubble{
  max-width:min(72%,640px);
}

.teacher-chat-page__message.is-own .teacher-chat-page__message-bubble{
  background:var(--color-surface);
}

.teacher-chat-page__bottom-anchor{
  display:block;
  width:100%;
  height:1px;
}

.teacher-chat-page__composer{
  position:sticky !important;
  bottom:0;
  z-index:40;
  margin-top:16px !important;
  padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px)) !important;
  border:0 !important;
  background:linear-gradient(to top,var(--color-bg) 84%,rgba(247,247,246,0)) !important;
}

.teacher-chat-page__composer[hidden]{
  display:none !important;
}

.teacher-chat-page__textarea{
  min-height:82px !important;
  max-height:140px;
  resize:vertical;
  background:var(--color-surface);
}

.teacher-chat-page__composer-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}

@media (min-width:901px){
  .teacher-home-page__layout{
    align-items:start;
  }

  .teacher-home-page__sidebar--chat{
    position:sticky !important;
    top:88px;
    align-self:start;
    max-height:calc(100vh - 104px);
    overflow:auto;
  }

  .teacher-home-page__sidebar--chat .ui-card__body{
    max-height:none;
    overflow:visible;
  }
}

@media (max-width:900px){
  .teacher-chat-page__thread-head{
    margin-bottom:10px;
  }

  .teacher-chat-page__message-bubble{
    max-width:88%;
  }

  .teacher-chat-page__textarea{
    min-height:76px !important;
  }

  .teacher-chat-page__composer{
    padding-bottom:calc(10px + env(safe-area-inset-bottom,0px)) !important;
  }
}

@media (min-width:901px){
  .teacher-home-page__layout,
  .student-home-page__layout{
    grid-template-columns:270px minmax(0,1fr);
    align-items:start;
    position:relative;
  }

  .teacher-home-page__sidebar,
  .student-home-page__sidebar{
    position:fixed !important;
    top:calc(var(--platform-header-height,68px) + 28px) !important;
    left:max(var(--space-6),calc((100vw - (var(--container) + var(--space-6) * 2)) / 2 + var(--space-6))) !important;
    width:270px;
    height:auto;
    max-height:calc(100vh - var(--platform-header-height,68px) - 48px);
    overflow:visible !important;
    align-self:start;
    z-index:90;
  }

  .teacher-home-page__content,
  .student-home-page__main{
    grid-column:2;
    min-width:0;
  }

  .teacher-home-page__sidebar .ui-card__body,
  .student-home-page__sidebar .ui-card__body{
    overflow:visible;
  }

  .teacher-home-page__sidebar--chat{
    overflow:visible !important;
  }

  .teacher-home-page__sidebar--chat .ui-card__body{
    overflow:hidden;
    max-height:calc(100vh - var(--platform-header-height,68px) - 48px);
  }

  .teacher-chat-sidebar{
    display:flex;
    flex-direction:column;
    min-height:0;
    max-height:calc(100vh - var(--platform-header-height,68px) - 80px);
  }

  .teacher-chat-sidebar__head{
    flex:0 0 auto;
  }

  .teacher-chat-sidebar__list{
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding-right:2px;
  }
}


@media (max-width:900px){
  .teacher-home-page__content.is-chat-tab .teacher-chat-page__composer,
  .student-home-page__main.is-chat-tab .teacher-chat-page__composer{
    bottom:calc(var(--chat-mobile-nav-offset, 84px) + env(safe-area-inset-bottom,0px)) !important;
  }
}



.teacher-chat-page__composer-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 12px auto 10px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.2;
}

.teacher-chat-page__composer-loader[hidden] {
  display: none !important;
}

.teacher-chat-page__composer-loader-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.teacher-chat-page__composer-loader-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: .35;
  animation: teacher-chat-loader-dot 1s infinite ease-in-out;
}

.teacher-chat-page__composer-loader-dots i:nth-child(2) {
  animation-delay: .14s;
}

.teacher-chat-page__composer-loader-dots i:nth-child(3) {
  animation-delay: .28s;
}

@keyframes teacher-chat-loader-dot {
  0%, 80%, 100% {
    opacity: .28;
    transform: translateY(0);
  }

  40% {
    opacity: .9;
    transform: translateY(-3px);
  }
}

@media (max-width: 900px) {
  .teacher-chat-page__composer-loader {
    position: sticky;
    bottom: calc(var(--teacher-mobile-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 88px);
    z-index: 42;
    margin-top: 10px;
    margin-bottom: 8px;
  }
}
.teacher-overview-task--new-lesson {
  background: #f0fdf4;
  border-color: #bbf7d0;
  border-left: 4px solid #22c55e;
}

.teacher-overview-task--new-lesson:hover {
  background: #ecfdf5;
}
.student-decision-task--new-lesson .student-decision-task__icon {
  background: #dcfce7;
  color: #16a34a;
}

.teacher-chat-sidebar__item {
  text-align: left;
  gap: 4px;
}

.teacher-chat-sidebar__item-row {
  align-items: center;
  gap: 8px;
}

.teacher-chat-sidebar__item-title {
  font-weight: 600;
}

.teacher-chat-sidebar__item-meta {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ui-text-muted);
}

/* Чат: статус отправки и прочтения последнего своего сообщения */
.teacher-chat-page__message{
  flex-direction:column;
  align-items:flex-start;
}

.teacher-chat-page__message.is-own{
  align-items:flex-end;
  justify-content:flex-start;
}

.teacher-chat-page__message-status{
  display:block;
  width:auto;
  max-width:min(72%,640px);
  margin-top:4px;
  padding:0 4px;
  font-size:12px;
  line-height:1.25;
  color:var(--ui-muted,#7a8494);
}

.teacher-chat-page__message.is-own .teacher-chat-page__message-status{
  text-align:right;
}

.teacher-chat-page__message[data-local-status="sending"] .teacher-chat-page__message-status{
  opacity:.78;
}

.teacher-chat-page__message[data-local-status="error"] .teacher-chat-page__message-status{
  color:var(--ui-danger,#b42318);
}

/* Chat: system package request card */
.teacher-chat-page__message--system-package {
  align-self: stretch;
  max-width: 760px;
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
}

.teacher-chat-page__message--system-package .teacher-chat-page__system-card {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 18px;
  padding: 14px 16px;
  color: #1e3a8a;
}

.teacher-chat-page__system-kicker {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 6px;
}

.teacher-chat-page__system-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.teacher-chat-page__system-text {
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
  margin-bottom: 10px;
}

.teacher-chat-page__system-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-chat-page__system-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
}
