.schedule-export-actions { margin: 12px 0; flex-wrap: wrap; }
.schedule-png-toolbar { margin: 20px 0 12px; flex-wrap: wrap; }
.schedule-png-image { display: block; width: 100%; height: auto; border: 1px solid #e5def0; border-radius: 12px; }
#schedule-png-preview { margin-top: 12px; }

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf9fd;
  --white: #fff;
  --ink: #251737;
  --muted: #655b73;
  --line: #eae3f2;
  --violet: #6022a2;
  --deep: #4b137d;
  --soft: #f3eaff;
  --shadow: 0 12px 32px #4020670b;
  font: 16px / 1.65 "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--deep); text-decoration: none; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #9858d3; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; vertical-align: middle; }
.ic { width: 21px; height: 21px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.shell { width: min(1180px, calc(100% - 72px)); margin: auto; }
.topbar { background: #ffffffc9; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; font-size: 1.19rem; white-space: nowrap; }
.brand img { width: 52px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.brand-label small { display: block; font-size: .67rem; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-align: right; line-height: 1.3; }
.top-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn {
  min-height: 44px; padding: 9px 16px; font-size: .9rem; font-weight: 700;
  border: 1px solid transparent; border-radius: 12px; display: inline-flex;
  justify-content: center; align-items: center; gap: 8px; line-height: 1.6;
  background: var(--soft); color: var(--deep); transition: background .16s, border-color .16s, box-shadow .16s;
}
.btn:hover { background: #ead9fa; }
.btn-primary { background: var(--violet); color: white; }
.btn-primary:hover { background: var(--deep); }
.btn-plain { border-color: var(--line); background: white; color: var(--ink); }
.btn-plain:hover { background: #f6f0fd; border-color: #dfceee; }
.btn-text { background: transparent; color: var(--deep); }
.btn-text:hover { background: var(--soft); }
.icon-button { display: grid; place-items: center; border: 0; border-radius: 10px; width: 41px; height: 41px; background: var(--soft); color: var(--deep); }
.icon-button:hover { background: #e8d8f6; }
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center;
  min-height: 418px; overflow: hidden; margin: 30px auto 0; border-radius: 30px;
  background: linear-gradient(112deg, #e9dbf9 0%, #f2e9ff 40%, #f8f2ff 83%);
  border: 1px solid #ecdff8;
}
.hero-copy { padding: 44px 51px 47px 15px; position: relative; z-index: 1; }
.hero h1 { font-weight: 850; font-size: clamp(2.45rem, 4.8vw, 4.42rem); line-height: 1.25; letter-spacing: -.058em; }
.hero h1 span { display: block; color: var(--violet); }
.hero p { max-width: 375px; margin: 19px 0 24px; color: #594968; line-height: 1.9; }
.hero .btn { padding-inline: 20px; min-height: 47px; }
.hero-art { position: relative; height: 100%; min-height: 390px; direction: rtl; }
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; top: 50%; left: 49%; border-radius: 50%; transform: translate(-50%, -50%);
  width: 365px; aspect-ratio: 1; border: 1px solid #ae79d64f;
}
.hero-art::after { width: 310px; background: #d7bbed50; border-color: #ae79d633; }
.art-stage { position: absolute; width: min(385px, 97%); height: 280px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.art-sheet {
  position: absolute; width: 75%; left: 12%; top: 15px; padding: 19px; border-radius: 21px;
  background: #fff; border: 1px solid #f4eaff; box-shadow: 0 19px 32px #50227523;
  transform: rotate(-8deg);
}
.art-sheet-head, .art-row, .art-chat, .item-main { display: flex; align-items: center; gap: 11px; }
.art-sheet-head { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.art-sheet-head strong { font-size: 1.032rem; }
.art-row { font-size: .83rem; margin-top: 8px; padding: 6px 8px; background: #f8f4fc; border-radius: 8px; }
.art-row b { font-weight: 650; }
.art-row small { font-size: .72rem; color: var(--muted); margin-inline-start: auto; white-space: nowrap; }
.tick { color: #6c349e; background: #eadef6; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; }
.tick .ic { width: 14px; height: 14px; }
.art-chat {
  position: absolute; left: 0; bottom: 4px; transform: rotate(6deg);
  background: #512280; color: #fff; padding: 11px 15px; border-radius: 14px;
  box-shadow: 0 12px 22px #5e268d38; max-width: 91%; font-size: .86rem; font-weight: 700;
}
.art-chat .ic { width: 19px; height: 19px; }
.spark { position: absolute; color: #7845a7; }
.spark.top { left: 5%; top: 18%; }
.spark.bottom { right: 6%; bottom: 15%; color: #955ab9; }
.spark .ic { width: 29px; height: 29px; }
.entry { margin: 32px auto 28px; scroll-margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.35rem; line-height: 1.4; letter-spacing: -.025em; }
.demo-tag { background: #f2ebf8; color: #694884; border-radius: 7px; padding: 4px 9px; font-size: .76rem; white-space: nowrap; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-card {
  display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; padding: 18px 16px; text-align: right;
  background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); transition: border-color .18s, transform .18s, box-shadow .18s;
}
.role-card:hover { transform: translateY(-2px); border-color: #bc9cda; box-shadow: 0 9px 25px #5a2d8521; }
.icon-tile { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; flex: none; background: #f0e5fc; color: #6625a3; }
.icon-tile.advisor { background: #eae3fa; color: #543595; }
.icon-tile.admin { background: #f5e8f6; color: #7d398c; }
.icon-tile.mini { width: 34px; height: 34px; border-radius: 10px; }
.icon-tile.mini .ic { width: 17px; height: 17px; }
.role-copy { min-width: 0; }
.role-copy strong { display: block; font-size: 1rem; }
.role-copy span { display: block; color: var(--muted); font-size: .875rem; }
.role-open { margin-inline-start: auto; font-size: .84rem; color: var(--violet); font-weight: 750; }
.foot { padding: 0 0 24px; }
.foot-inner { border-top: 1px solid var(--line); padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.channel-id { direction: ltr; unicode-bidi: isolate; font-size: .8rem; }
.panel-shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 26px; margin-bottom: 35px; }
.panel, .sidebar, .stat {
  background: white; border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow);
}
.sidebar { padding: 13px; }
.profile { display: flex; align-items: center; gap: 9px; padding: 8px 3px 16px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.profile strong { display: block; }
.profile .small { display: block; }
.nav-btn { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--ink); text-align: right; border-radius: 11px; padding: 10px 9px; font-size: .92rem; min-height: 44px; }
.nav-btn:hover, .nav-btn[aria-current="page"] { background: var(--soft); color: var(--deep); }
.nav-btn[aria-current="page"] { font-weight: 750; }
.nav-count { margin-inline-start: auto; padding: 1px 7px; border-radius: 7px; color: white; background: var(--violet); font-size: .75rem; }
.content { min-width: 0; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }
.page-title h1 { font-size: clamp(1.55rem, 4vw, 2.07rem); line-height: 1.34; letter-spacing: -.035em; }
.page-title p { margin-top: 3px; }
.panel { padding: 18px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 1.17rem; }
.overview { background: linear-gradient(115deg, #ece0fa, #faf4ff); border-color: #eadbf9; }
.overview .actions { margin-top: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.stat { padding: 15px; }
.stat strong { display: block; font-size: 1.6rem; color: var(--violet); line-height: 1.4; }
.stat span { font-size: .86rem; color: var(--muted); }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; }
.item + .item { border-top: 1px solid var(--line); }
.item-main { min-width: 0; }
.item strong { overflow-wrap: anywhere; display: block; }
.item .muted { overflow-wrap: anywhere; }
.status { padding: 3px 8px; border-radius: 8px; font-size: .78rem; background: #f1e7fb; color: var(--deep); white-space: nowrap; }
.status.read { color: #245742; background: #eaf4ee; }
.empty { padding: 25px 7px; color: var(--muted); text-align: center; }
.chat-grid { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 13px; }
.chat-grid.single { grid-template-columns: 1fr; }
.contacts { padding: 9px; align-self: start; }
.contacts .nav-btn { min-height: 47px; }
.chat-box { padding: 0; overflow: hidden; }
.chat-top { padding: 13px 15px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.chat-top small { display: block; }
.messages { height: min(49vh, 415px); min-height: 235px; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; background: #fcfaff; padding: 15px; }
.bubble { align-self: flex-end; max-width: 88%; min-width: 58px; padding: 8px 11px; border-radius: 13px 13px 13px 3px; background: white; border: 1px solid #e9e1f0; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.mine { align-self: flex-start; border-radius: 13px 13px 3px 13px; background: #eee1fc; border-color: #eee1fc; }
.bubble time { display: block; text-align: end; margin-top: 3px; font-size: .74rem; color: var(--muted); }
.compose { display: flex; align-items: end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.compose input { flex: 1; min-width: 0; }
.form-grid { display: grid; gap: 11px; margin-top: 13px; }
.restore-confirm { display: flex; align-items: flex-start; gap: 8px; }
.restore-confirm input { flex: none; width: 1.1rem; min-height: 1.1rem; padding: 0; margin-block-start: .28em; accent-color: var(--deep); }
.field { display: grid; gap: 5px; font-weight: 700; font-size: .9rem; }
.field small { font-weight: 400; font-size: .8rem; color: var(--muted); }
input, textarea, select { width: 100%; color: var(--ink); background: white; border: 1px solid #ded2e9; border-radius: 10px; padding: 9px 11px; min-height: 44px; }
textarea { resize: vertical; }
input[type=file] { font-size: .8rem; }
input::file-selector-button { font: inherit; border: 0; border-radius: 6px; padding: 5px 8px; color: var(--deep); background: var(--soft); margin-inline-end: 9px; cursor: pointer; }
.form-error { color: #922352; font-size: .87rem; }
.plan-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: 13px; margin: 13px 0; border-radius: 11px; background: #f9f5fd; }
dialog { width: min(510px, calc(100% - 34px)); max-height: 92vh; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 25px 95px #33234144; color: var(--ink); }
dialog::backdrop { background: #25133578; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dialog-head h2 { font-size: 1.25rem; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.toast { position: fixed; bottom: 16px; inset-inline: 0; width: fit-content; max-width: calc(100% - 30px); text-align: center; margin: auto; z-index: 5; color: white; background: #43235d; border-radius: 11px; padding: 9px 14px; box-shadow: var(--shadow); }
@media (max-width: 950px) {
  .hero-copy { padding-inline-start: 30px; }
  .hero { min-height: 375px; }
  .hero-art { min-height: 350px; }
  .shell { width: calc(100% - 42px); }
  .role-card { flex-wrap: wrap; min-height: 100%; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { min-height: 66px; gap: 8px; }
  .brand { gap: 6px; font-size: 1.04rem; }
  .brand img { width: 38px; height: 39px; }
  .brand-label small { font-size: .58rem; }
  .top-actions { gap: 4px; }
  .top-actions .btn { padding: 7px 8px; min-height: 40px; font-size: .78rem; }
  .hero { grid-template-columns: 1fr; margin-top: 15px; border-radius: 22px; }
  .hero-copy { padding: 24px 20px 0; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.4rem); letter-spacing: -.05em; }
  .hero p { margin: 9px 0 13px; }
  .hero .btn { min-height: 44px; }
  .hero-art { min-height: 249px; overflow: hidden; }
  .hero-art::before { width: 260px; }
  .hero-art::after { width: 214px; }
  .art-stage { width: min(334px, 91%); height: 225px; }
  .art-sheet { top: 9px; left: 13%; padding: 12px; }
  .art-sheet-head { padding-bottom: 6px; }
  .art-row { margin-top: 6px; padding-block: 4px; gap: 7px; }
  .art-chat { padding: 8px 10px; bottom: 5px; }
  .entry { margin-top: 24px; }
  .role-grid { grid-template-columns: 1fr; gap: 8px; }
  .role-card { padding: 12px; }
  .panel-shell { grid-template-columns: 1fr; margin-top: 12px; gap: 12px; }
  .sidebar { padding: 7px; display: flex; flex-wrap: wrap; }
  .sidebar .profile { display: none; }
  .sidebar .nav-btn { flex: 1; justify-content: center; white-space: nowrap; }
  .sidebar .nav-count { margin-inline-start: 0; }
  .chat-grid { grid-template-columns: 1fr; }
  .contacts { display: flex; gap: 5px; overflow: auto; }
  .contacts .nav-btn { justify-content: center; white-space: nowrap; }
  .foot-inner { flex-wrap: wrap; }
  .panel { padding: 13px; }
  .chat-box { padding: 0; }
}
@media (max-width: 380px) {
  .stats { gap: 5px; }
  .stat { padding: 9px; }
  .top-actions .optional-icon { display: none; }
  .item .btn { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}


.week-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 11px 0; text-align: center; }
.week-controls strong { font-size: .93rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.schedule-table { width: 100%; border-collapse: collapse; text-align: right; font-size: .89rem; }
.schedule-table th, .schedule-table td { padding: 9px 11px; text-align: right; vertical-align: middle; }
.schedule-table thead { color: var(--deep); background: #f5eefc; }
.schedule-table tbody tr + tr { border-top: 1px solid var(--line); }
.schedule-table tbody tr.today { background: #fcf8ff; }
.schedule-table tbody th { min-width: 92px; }
.schedule-table tbody td { min-width: 116px; overflow-wrap: anywhere; }
.schedule-table th span, .schedule-table td span, .schedule-table td strong { display: block; }
.schedule-table td:last-child:has(button) { min-width: 74px; width: 100px; }
.schedule-table .btn { min-height: 36px; padding: 3px 9px; }
.details-table { margin: 0; }
.plan-body + .table-wrap, .dialog-head + .table-wrap { margin: 12px 0; }
.schedule-editor { border: 1px solid var(--line); border-radius: 11px; padding: 8px 11px; background: #fcfaff; }
.schedule-editor summary { color: var(--deep); cursor: pointer; font-weight: 700; min-height: 32px; padding-block: 4px; }
.schedule-editor > label { margin-top: 8px; }
.week-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 9px 0 2px; }
.stat:has(strong:first-child) strong { overflow-wrap: anywhere; }
@media (max-width: 690px) {
  .week-controls .btn { min-height: 38px; padding: 5px 8px; font-size: .79rem; }
  .week-controls strong { font-size: .85rem; }
  .schedule-table th, .schedule-table td { padding: 8px; }
  .schedule-table tbody th { min-width: 74px; }
  .schedule-table tbody td { min-width: 93px; }
  .stats strong { font-size: clamp(1rem,4vw,1.6rem); }
}


:root { --paper:#f7f5f9; --ink:#231b29; --violet:#62269a; }
body.home-page { background:#f7f5f2; }
.public-bar { background:none; border:0; }
.public-bar .top-inner { min-height:91px; border-bottom:1px solid #e4dfe3; }
.brand-stamp { width:45px; height:45px; display:grid; place-items:center; border-radius:13px; background:#612992; flex:none; }
.brand .brand-stamp img { width:33px; height:33px; filter:brightness(0) invert(1); mix-blend-mode:normal; }
.public-nav a { color:#544b59; font-size:.9rem; font-weight:580; padding:10px; border-radius:10px; }
.public-nav a:hover { background:#eee7f2; }
.landing .hero { background:none; border:0; min-height:502px; margin-top:8px; overflow:visible; border-radius:0; }
.landing .hero-copy { padding:40px 0 40px 14px; }
.landing .hero h1 { font-size:clamp(3.4rem,7.4vw,6.5rem); line-height:1.16; font-weight:900; letter-spacing:-.065em;
  color:#2e173e; text-shadow:0 4px #e4d6e8; overflow-wrap:anywhere; }
.landing .hero p { color:#665b6a; }
.landing .hero .hero-headline { margin:0 0 9px; font-size:clamp(1.02rem,2vw,1.35rem); font-weight:620; }
.landing .hero .hero-intro { max-width:405px; margin:22px 0 24px; }
.hero-actions .btn-primary { background:#251b2b; padding:12px 20px; border-radius:13px; }
.hero-actions .btn-primary:hover { background:#4b2662; }
.brand-stage { min-height:435px; position:relative; isolation:isolate; display:grid; place-items:center; }
.brand-glow { width:91%; aspect-ratio:1.1; position:absolute; background:radial-gradient(ellipse,#e6d6edb5 0%,#e9def160 43%,transparent 70%); }
.brand-orbit { position:absolute; top:21%; width:92%; height:56%; border:1px solid #d9c8e3; border-radius:50%; transform:rotate(-22deg); }
.brand-base { position:absolute; top:71%; width:min(72%,360px); height:74px; border-radius:50%; background:linear-gradient(#fbf9fc,#eee7ef);
  border:1px solid #fff; box-shadow:0 9px 0 #ded5e4,0 18px 30px #5a2b601c; }
.brand-object { position:relative; width:min(63%,310px); aspect-ratio:1; display:grid; place-items:center; border-radius:26%; margin-top:-53px;
  background:linear-gradient(137deg,#a04cdf,#6d2897 57%,#542274); transform:rotate(-12deg); outline:1px solid #ffffff59; outline-offset:-5px;
  box-shadow:inset 0 1px 6px #fff9,5px 9px 0 #522071,15px 25px 38px #52207142; }
.brand-object img { width:76%; height:auto; filter:brightness(0) invert(1); }
.brand-note { position:absolute; display:inline-flex; align-items:center; gap:6px; border:1px solid #fff; border-radius:9px;
  color:#592776; padding:5px 10px; background:#fffffff2; font-size:.76rem; font-weight:700; box-shadow:0 6px 24px #50205d13; white-space:nowrap; }
.brand-note .ic { width:16px; height:16px; }
.note-first { left:3%; top:68%; transform:rotate(-8deg); }
.note-second { right:1%; top:23%; transform:rotate(8deg); }
.landing .entry { margin-top:0; }
.landing .entry h2 { font-size:1.7rem; font-weight:840; }
.landing .role-card { border-color:#e8dfea; background:#fffdfd; }
.fields-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.field-button { justify-content:flex-start; min-height:44px; font-size:.9rem; }
#calendar-picker { max-width:415px; }
.picker-month { display:flex; align-items:center; justify-content:space-between; gap:6px; margin:11px 0; }
.picker-month .btn { min-height:36px; padding:5px 8px; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin-bottom:12px; text-align:center; }
.weekday { color:var(--muted); padding:4px 0; font-size:.8rem; }
.day-option { min-height:37px; border:1px solid transparent; border-radius:9px; background:#f8f4fa; color:var(--ink); }
.day-option:hover { border-color:#a966c7; }
.day-option[aria-pressed=true] { background:var(--violet); color:white; }
.timed-section { border:1px solid var(--line); border-radius:12px; background:#faf6fc; padding:10px; }
.slot { display:grid; min-width:0; margin:9px 0; padding:10px; border:1px solid var(--line); border-radius:10px; background:white; gap:6px; }
.slot .btn-text { width:max-content; min-height:34px; }
.study-row { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.study-row + .study-row, .assigned-work + .assigned-work { border-top:1px solid var(--line); padding-top:6px; margin-top:6px; }
.assigned-work { white-space:normal; }
.study-row .btn { flex:none; }
.admin-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.admin-shortcuts .panel + .panel { margin-top:0; }
.admin-shortcuts .actions { margin-top:10px; }
.user-groups { display:grid; gap:12px; }
.user-groups .panel + .panel { margin-top:0; }
.learner-line { padding-inline-start:15px; }
.group-heading { border-bottom:1px solid var(--line); margin-bottom:5px; }
.ledger-table { margin:12px 0 0; }
.ledger-table .status, .ledger-detail .status { display:inline-block; margin:4px; }
.ledger-detail .fields-2 { margin:12px 0; }
.ledger-detail .fields-2 p { background:#f7effc; padding:9px; border-radius:9px; }
.ledger-detail .fields-2 strong { display:block; }
.ledger-detail h3 { font-size:1rem; margin:14px 0 4px; }
.overdue { background:#fae7ed; color:#8f2856; }
@media(max-width:800px) {
  .landing .hero { min-height:395px; }
  .brand-stage { min-height:350px; }
  .landing .hero h1 { font-size:clamp(2.9rem,8.2vw,5rem); }
}
@media(max-width:690px) {
  .public-bar .top-inner { min-height:67px; }
  .public-nav { display:none; }
  .brand-stamp { width:39px; height:39px; }
  .brand .brand-stamp img { width:28px; height:28px; }
  .landing .hero { margin-top:0; }
  .landing .hero-copy { padding:24px 4px 0; text-align:center; }
  .landing .hero .hero-intro { margin:11px auto 14px; }
  .hero-actions { justify-content:center; }
  .brand-stage { width:min(100%,435px); margin:auto; min-height:315px; }
  .brand-object { width:min(55%,225px); margin-top:-36px; }
  .brand-base { top:72%; height:51px; }
  .brand-note { padding:4px 6px; }
  .note-first { left:2%; top:65%; } .note-second { right:1%; top:24%; }
  .admin-shortcuts { grid-template-columns:1fr; }
}


:root { --paper:#faf8fe; --violet:#6630a1; --ink:#271d35; }
body.home-page { background:radial-gradient(ellipse at 18% 20%,#eee0ff 0,transparent 48%),#fbf8ff; }
.public-bar .top-inner { border-color:#e8dcf1; }
.admin-corner { background:transparent; color:#594965; font-size:.78rem; padding:4px 7px; min-height:32px; }
.admin-corner .ic { width:15px; height:15px; }
.landing .hero { min-height:505px; }
.landing .hero h1 { color:#3b1e58; text-shadow:none; line-height:1.19; }
.landing .hero .hero-headline { color:#694c85; font-size:1rem; margin-bottom:7px; }
.landing .public-roles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; max-width:390px; margin:24px 0 8px; }
.landing .public-roles .role-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px;
  min-height:140px; border-radius:22px; border:1px solid #ebe0f4; background:#fffcff; color:#3d2357;
  padding:12px 8px; box-shadow:0 7px 22px #44205212; }
.public-roles .role-card:hover { transform:translateY(-4px); border-color:#c8a4e1; box-shadow:0 11px 28px #44205224; }
.public-roles .icon-tile { width:68px; height:68px; border-radius:22px; color:#6931a4; background:#f1e3fd; }
.public-roles .icon-tile.advisor { background:#eae5ff; color:#592996; }
.public-roles .icon-tile .ic { width:40px; height:40px; }
.public-roles .role-copy strong { font-size:1.05rem; }
.hero-dot { position:absolute; width:13px; height:13px; border-radius:50%; background:#9463cb; opacity:.75; }
.hero-dot-one { top:27%; right:10%; }
.hero-dot-two { top:61%; left:7%; width:9px; height:9px; }
.brand-object { animation:brand-hover 6s ease-in-out infinite; }
.hero-dot { animation:dot-hover 5s ease-in-out infinite; }
.hero-dot-two { animation-delay:-2.5s; }
.public-roles .role-card:hover .icon-tile { animation:icon-lift .38s ease both; }
.panel-shell .content > .panel, .panel-shell .content > .page-title, dialog[open] { animation:panel-enter .22s ease-out both; }
@keyframes brand-hover { 0%,100% {transform:translateY(0) rotate(-12deg)} 50% {transform:translateY(-11px) rotate(-9deg)} }
@keyframes dot-hover { 0%,100% {transform:translateY(0)} 50% {transform:translateY(-7px)} }
@keyframes icon-lift { 50% {transform:translateY(-4px) rotate(-5deg)} }
@keyframes panel-enter { from {opacity:.25; transform:translateY(5px)} to {opacity:1; transform:translateY(0)} }
#modal:has(.time-form) { width:min(740px,calc(100% - 24px)); }
.time-form { gap:12px; }
.session-builder { display:grid; gap:8px; }
.session-rows { display:grid; gap:8px; }
.session-editor {
  display:grid; grid-template-columns:minmax(135px,1.6fr) minmax(90px,.8fr) minmax(90px,.8fr) minmax(88px,.65fr) 34px;
  align-items:end; column-gap:8px; row-gap:7px; min-width:0; margin:0; padding:9px;
  border:1px solid #ede1f6; border-radius:13px; background:#faf6fe;
}
.session-builder[data-kind="plan"] .session-editor { grid-template-columns:minmax(100px,1fr) minmax(115px,1.4fr) minmax(90px,.8fr) minmax(90px,.8fr) minmax(80px,.65fr) 34px; }
.session-editor input, .session-editor select { min-width:0; padding:8px 6px; }
.session-editor .slot-tests small { display:inline; font-size:.66rem; }
.session-editor .field { font-size:.83rem; }
.slot-remove { width:34px; height:38px; margin-bottom:3px; }
.add-session { justify-self:start; }
.plan-extras { border-top:1px solid var(--line); padding-top:7px; }
.plan-extras summary { cursor:pointer; color:#5e367d; }
.plan-extras label { margin-top:6px; }
.student-recipient { display:flex; align-items:center; gap:8px; }
.day-strip { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; margin:14px 0; }
.day-tab { position:relative; display:grid; gap:2px; min-width:0; padding:7px 3px; text-align:center; color:#4f3861; background:#faf5fe;
  border:1px solid #eee2f4; border-radius:11px; font-size:.78rem; }
.day-tab:hover,.day-tab[aria-pressed=true] { border-color:#ac82cd; }
.day-tab[aria-pressed=true] { background:#6b35a0; color:white; }
.day-done { position:absolute; top:1px; right:4px; font-size:.7rem; }
.day-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:12px 0; }
.day-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.day-section { padding:12px; min-width:0; border-radius:13px; border:1px solid #eee6f2; }
.day-section h3 { font-size:.94rem; margin-bottom:7px; color:#5c3178; }
.session-test { width:max-content; max-width:100%; padding:1px 6px; border-radius:6px; color:#654584; background:#f1eafa; margin-top:2px; }
.month-toolbar { display:flex; align-items:end; gap:9px; margin-bottom:10px; }
.month-toolbar .field { min-width:94px; }
.monthly-total { margin-inline-start:auto; color:#5c4967; font-size:.85rem; padding-bottom:7px; }
.monthly-person { display:flex; justify-content:space-between; align-items:center; gap:9px; flex-wrap:wrap; border-top:1px solid var(--line); padding:10px 0; }
.payment-toggle { display:flex; gap:4px; background:#f6f2f8; padding:3px; border-radius:11px; }
.payment-toggle .btn { background:transparent; color:#594962; min-height:35px; padding:5px 7px; font-size:.81rem; }
.payment-toggle .btn[aria-pressed=true] { background:#fff; color:#342440; box-shadow:0 1px 4px #32253e23; }
.payment-toggle .paid-option[aria-pressed=true] { background:#e7f6eb; color:#1e6136; }
.payment-toggle .ic { width:15px; height:15px; }
@media(max-width:690px) {
  .landing .public-roles { margin:15px auto 3px; }
  .landing .public-roles .role-card { min-height:107px; border-radius:16px; gap:5px; }
  .public-roles .icon-tile { width:56px; height:56px; border-radius:18px; }
  .public-roles .icon-tile .ic { width:32px; height:32px; }
  .landing .brand-stage { min-height:242px; }
  .landing .brand-base { top:72%; height:35px; }
  .landing .brand-object { width:min(47%,170px); }
  .session-editor,.session-builder[data-kind="plan"] .session-editor { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .slot-subject { grid-column:1/-1; }
  .slot-remove { justify-self:end; }
  .day-columns { grid-template-columns:1fr; }
  .day-strip { display:flex; overflow-x:auto; padding-bottom:3px; }
  .day-tab { flex:1 0 54px; }
  .monthly-total { text-align:end; font-size:.74rem; }
}
@media(prefers-reduced-motion:reduce) {
  .brand-object,.hero-dot,.public-roles .role-card .icon-tile,.panel-shell .content > .panel,.panel-shell .content > .page-title,dialog[open] { animation:none !important; }
}
.public-roles .role-card .icon-tile { animation:role-arrive .44s ease-out both; }
.public-roles .role-card:nth-child(2) .tile { animation-delay:80ms; }
@keyframes role-arrive { from {opacity:.65; transform:translateY(5px) scale(.94)} to {opacity:1; transform:none} }

.student-actions{margin-bottom:12px}.password-panel{max-width:495px}
