/* ToolKit — shared visual system. Legacy module styles are deliberately not loaded. */
:root {
  --canvas: #f7f8fa;
  --paper: #fff;
  --ink: #252d32;
  --muted: #737b84;
  --line: #e8ebed;
  --green: #245c4c;
  --green-dark: #194536;
  --mint: #edf4ef;
  --sidebar: 244px;
  --app-font: "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body.sph-app {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--app-font);
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: var(--green-dark);
}
button,
input,
select,
textarea {
  font: inherit;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
p {
  color: var(--muted);
}
a,
button {
  transition:
    background 0.16s,
    color 0.16s,
    box-shadow 0.16s;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9abc9e;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  background: white;
  padding: 12px 20px;
  border: 2px solid var(--green);
}
.skip-link:focus {
  top: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.1;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  width: 40px;
  height: 43px;
  border-radius: 12px;
}
.brand-mark svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.3;
}
.brand-caption {
  display: block;
  font-size: 8px;
  letter-spacing: 1.45px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--paper);
  border-right: 1px solid var(--line);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 31px 21px 15px;
  overflow-y: auto;
}
.sidebar .brand {
  margin-left: 7px;
  margin-bottom: 34px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 31px;
}
.workspace-label svg {
  margin-left: auto;
  width: 14px;
}
.workspace-dot {
  height: 7px;
  width: 7px;
  background: #87ab95;
  border-radius: 50%;
}
.nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.25px;
  color: #8c9298;
  margin: 0 12px 12px;
}
.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #747b80;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 5px;
  font-size: 13px;
  min-height: 44px;
  font-weight: 500;
}
.sidebar .nav-link:hover {
  background: #f6f8f7;
  color: var(--green);
}
.sidebar .nav-link.is-active {
  background: #eaf2ed;
  color: #2f604b;
  font-weight: 650;
}
.nav-active-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 34px;
}
.sidebar-tip {
  background: #f7f8f4;
  border: 1px solid #eef0e8;
  border-radius: 12px;
  padding: 17px 16px;
  margin: 0 0 23px;
  position: relative;
}
.sidebar-tip strong {
  display: block;
  font-size: 12px;
  margin: 11px 0 7px;
}
.tip-icon {
  color: #7a9567;
  font-size: 22px;
}
.sidebar-tip p {
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.sidebar-tip a {
  font-size: 11px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
}
.sidebar-tip a span {
  font-size: 15px;
}
.logout {
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
}
.sidebar-footer {
  font-size: 9px;
  color: #959a9e;
  border-top: 1px solid var(--line);
  padding: 18px 10px 0;
  margin-top: 14px;
}
.workspace-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 0 39px;
  margin-left: var(--sidebar);
  gap: 16px;
}
.header-context {
  color: #94999e;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-context strong {
  color: #505860;
  font-weight: 500;
}
.breadcrumb-separator {
  padding: 0 13px;
  color: #c3c7ca;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-date {
  color: #7a828a;
  font-size: 12px;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e9eee4;
  border: 3px solid #fff;
  outline: 1px solid #e8ebe5;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  color: #647453;
}
.icon-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
}
.menu-toggle {
  display: none;
}
.sidebar-overlay {
  display: none;
}
.app-content {
  max-width: 1770px;
  margin-left: var(--sidebar);
  padding: 35px 39px 20px;
  min-height: calc(100vh - 78px);
}
.app-content:focus {
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading h1 {
  margin: 7px 0 9px;
}
.page-heading p {
  font-size: 12px;
  margin: 0;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.65px;
  color: #848e91;
}
.greeting-spark {
  color: #c6a971;
  font-size: 31px;
  margin-left: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 7px;
  font-weight: 600;
  min-height: 42px;
  white-space: normal;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary,
.btn-success {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}
.btn-outline-primary,
.btn-secondary {
  background: #fff;
  border: 1px solid #dce3df;
  color: var(--green);
}
.btn-outline-primary:hover,
.btn-secondary:hover {
  background: #edf3ef;
  color: var(--green);
  border-color: #b6c6bc;
}
.btn-warning,
.btn-info {
  color: #435b4b;
  background: #eff3ee;
  border: 1px solid #e0e7de;
}
.btn-danger {
  color: #a43f44;
  background: #fff5f4;
  border: 1px solid #f0d9d8;
}
.btn-danger:hover {
  background: #b54549;
  border-color: #b54549;
  color: #fff;
}
.btn-sm {
  font-size: 11px;
  padding: 6px 10px;
  min-height: 34px;
}
.welcome-banner {
  border: 1px solid #e2e9dc;
  background: #eef2e7;
  border-radius: 14px;
  min-height: 284px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  overflow: hidden;
  margin-bottom: 23px;
}
.welcome-copy {
  padding: 30px 34px;
  position: relative;
  z-index: 2;
}
.banner-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #658069;
  font-weight: 650;
}
.banner-label > span {
  width: 5px;
  height: 5px;
  background: #7e9a73;
  border-radius: 50%;
}
.welcome-copy h2 {
  font-size: 36px;
  line-height: 1.16;
  font-weight: 550;
  color: #304838;
  margin: 16px 0 12px;
  letter-spacing: -1.5px;
}
.welcome-copy h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #5d7b50;
}
.welcome-copy p {
  font-size: 11px;
  line-height: 1.85;
  color: #7d8a77;
}
.btn-banner {
  background: white;
  color: #39583d;
  border: 1px solid #dbe3d5;
  font-size: 12px;
  padding: 9px 13px;
  min-height: 36px;
}
.btn-banner:hover {
  background: #f9fcf7;
  border-color: #b7cbb0;
}
.planner-art {
  position: relative;
  min-height: 290px;
  isolation: isolate;
}
.art-orbit {
  position: absolute;
  border: 1px solid #dce4d4;
  border-radius: 50%;
  width: 315px;
  height: 315px;
  top: -10px;
  left: 8%;
}
.orbit-two {
  width: 380px;
  height: 380px;
  top: -41px;
  left: 0;
}
.art-planner {
  position: absolute;
  background: #fffef9;
  border: 1px solid #e3e3d7;
  border-radius: 12px;
  width: 238px;
  right: 19%;
  top: 36px;
  padding: 19px;
  transform: rotate(-7deg);
  box-shadow: 0 12px 25px #4f633317;
  z-index: 2;
}
.art-planner-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 17px;
  color: #4c614d;
}
.art-planner-head span {
  color: #b8c0b0;
  letter-spacing: 2px;
}
.art-days,
.art-dates {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #9d9e91;
}
.art-dates {
  font-size: 12px;
  margin: 6px 0 15px;
  color: #737b69;
}
.art-dates > span {
  padding: 6px 0;
}
.art-dates .selected {
  background: #71865f;
  color: white;
  border-radius: 7px;
}
.art-task {
  display: flex;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid #eff0e9;
  align-items: center;
}
.art-check {
  font-style: normal;
  background: #eef1e4;
  border: 1px solid #cad5b7;
  color: #718a5a;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.art-check.hollow {
  background: white;
}
.art-task strong {
  display: block;
  font-size: 9px;
  font-weight: 550;
  color: #5a6652;
}
.art-task span {
  display: block;
  font-size: 8px;
  color: #9c9f93;
  margin-top: 2px;
}
.art-progress {
  height: 4px;
  background: #edf0e7;
  margin-top: 6px;
  border-radius: 4px;
}
.art-progress span {
  display: block;
  background: #a5b786;
  width: 64%;
  height: 100%;
  border-radius: 4px;
}
.art-note {
  position: absolute;
  background: #f7e8be;
  padding: 18px 15px 24px;
  right: 3%;
  top: 49px;
  transform: rotate(11deg);
  width: 145px;
  height: 164px;
  box-shadow: 0 7px 20px #77682410;
  border-radius: 3px;
}
.art-note > span {
  font-size: 6px;
  letter-spacing: 0.8px;
  color: #a28e57;
}
.art-note p {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: #81713e;
  margin-top: 13px;
}
.note-line {
  height: 3px;
  background: #e6d5a1;
  margin: 8px 0;
  width: 85%;
  border-radius: 3px;
}
.note-line.short {
  width: 55%;
}
.art-pill {
  position: absolute;
  bottom: 29px;
  right: 5%;
  font-size: 9px;
  letter-spacing: 0.2px;
  background: #fff;
  padding: 11px 17px;
  border: 1px solid #e4e6dc;
  border-radius: 9px;
  transform: rotate(3deg);
  z-index: 4;
  box-shadow: 0 4px 12px #5264450a;
}
.art-pill > span {
  color: #718860;
  background: #eef4e8;
  border-radius: 50%;
  padding: 3px 6px;
  margin-right: 7px;
}
.art-spark {
  position: absolute;
  color: #a9bb8d;
  font-size: 38px;
}
.spark-one {
  left: 4%;
  top: 25px;
}
.spark-two {
  right: 6%;
  bottom: 60px;
  font-size: 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin: 0 0 27px;
}
.stat-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  padding: 19px 19px 16px;
  display: block;
  min-width: 0;
  color: var(--ink);
}
a.stat-card:hover {
  border-color: #c8d7cd;
  box-shadow: 0 3px 12px #234d3a07;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 11px;
  color: #737b82;
}
.stat-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.stat-icon svg {
  height: 16px;
  width: 16px;
}
.peach {
  background: #faf0e9;
  color: #ca9873;
}
.lavender {
  background: #f1eff8 !important;
  color: #9b89b9 !important;
}
.yellow {
  background: #faf5e5;
  color: #bba154;
}
.mint {
  background: #edf4ee;
  color: #71937c;
}
.stat-value {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -1px;
  display: block;
  margin: 5px 0;
}
.stat-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #959ba1;
}
.stat-caption > span {
  font-size: 16px;
}
.progress-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.progress-stat > span {
  color: #8c9e8d;
  font-size: 10px;
}
.progress-track {
  background: #edf1ee;
  border-radius: 6px;
  height: 5px;
  margin: 11px 0 8px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #749b7e;
  border-radius: 6px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-bottom: 26px;
}
.academic-alert-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 72px;
  margin: 0 0 20px;
  padding: 14px 18px;
  color: #394b43;
  background: #f5f8ef;
  border: 1px solid #dfe8d5;
  border-radius: 12px;
  box-shadow: var(--surface-shadow);
}
.academic-alert-summary:hover {
  color: #244d3d;
  border-color: #c9dac0;
  transform: translateY(-1px);
}
.academic-alert-icon,
.alert-kind-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #4e745f;
  background: #e4eee0;
}
.academic-alert-icon svg,
.alert-kind-icon svg {
  width: 21px;
  height: 21px;
}
.academic-alert-summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.academic-alert-summary strong {
  font-size: 14px;
}
.academic-alert-summary small {
  color: #65746d;
  font-size: 12px;
}
.academic-alert-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.academic-alert-action svg {
  width: 16px;
  height: 16px;
}
.alert-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.alert-overview > div {
  display: grid;
  gap: 2px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.alert-overview strong {
  color: var(--green);
  font: 600 27px/1 var(--app-font);
}
.alert-overview span {
  color: var(--muted);
  font-size: 12px;
}
.academic-alert-group {
  margin-bottom: 18px;
}
.academic-alert-group .panel-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.academic-alert-group .panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.academic-alert-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 13px 22px;
  color: var(--ink);
  border-bottom: 1px solid #f0f1f2;
}
.academic-alert-row:last-child {
  border-bottom: 0;
}
.academic-alert-row:hover {
  color: var(--ink);
  background: #fafbf9;
}
.academic-alert-group.overdue .alert-kind-icon {
  color: #9b514c;
  background: #f8e8e5;
}
.academic-alert-group.today .alert-kind-icon {
  color: #8a6b2d;
  background: #f8f0d9;
}
.alert-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.alert-copy small {
  color: #77817c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.alert-copy strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.alert-copy span,
.academic-alert-row time {
  color: var(--muted);
  font-size: 12px;
}
.academic-alert-row time {
  text-transform: capitalize;
  white-space: nowrap;
}
.alert-empty {
  padding: 46px 24px;
  text-align: center;
}
.alert-empty .empty-icon {
  margin-inline: auto;
}
.alert-empty h2 {
  margin: 14px 0 7px;
  font-size: 20px;
}
.alert-empty p {
  margin: 0 auto 18px;
  max-width: 520px;
  color: var(--muted);
}
.alert-explanation {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 23px;
}
.panel-heading h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.25px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-heading > a {
  font-size: 10px;
  color: #939a9f;
  white-space: nowrap;
}
.panel-heading > a:hover {
  color: var(--green);
}
.panel-heading > a span {
  margin-left: 8px;
}
.count-badge {
  background: #f3f5f3;
  border-radius: 5px;
  font-size: 10px;
  color: #899288;
  min-width: 20px;
  text-align: center;
  padding: 3px 5px;
}
.task-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 23px;
  border-top: 1px solid #f0f1f2;
  color: var(--ink);
}
.task-row:hover,
.event-row:hover {
  background: #fafbf9;
}
.task-circle {
  width: 16px;
  height: 16px;
  border: 1.5px solid #dfe4e1;
  border-radius: 5px;
  flex-shrink: 0;
}
.task-row-copy {
  min-width: 0;
  flex: 1;
}
.task-row-copy strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.task-row-copy > span {
  font-size: 9px;
  color: #91999e;
  display: block;
  margin-top: 3px;
}
.priority {
  font-size: 9px;
  font-weight: 550;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.priority-1 {
  background: #edf4ed;
  color: #708975;
}
.priority-2 {
  background: #fbf5e9;
  color: #a68c56;
}
.priority-3 {
  background: #fbefeb;
  color: #bf826b;
}
.row-arrow {
  width: 14px;
  color: #a7adaa;
}
.panel-add {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  color: #8b958b;
}
.panel-add svg {
  width: 14px;
  height: 14px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 23px;
  color: var(--ink);
  border-top: 1px solid #f0f1f2;
}
.event-date {
  width: 42px;
  padding: 5px;
  border: 1px solid #e9ece7;
  border-radius: 7px;
  background: #fafbf8;
  text-align: center;
  flex-shrink: 0;
}
.event-date small {
  display: block;
  text-transform: uppercase;
  font-size: 8px;
  color: #96a085;
}
.event-date strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 550;
  color: #667158;
}
.event-row > div > strong {
  font-size: 11px;
  font-weight: 550;
  display: block;
  overflow-wrap: anywhere;
}
.event-row > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #959ca2;
  margin-top: 4px;
}
.event-row svg {
  width: 11px;
  height: 11px;
}
.empty-state {
  padding: 27px 24px 29px;
  text-align: center;
}
.empty-state h3 {
  font-size: 15px;
  margin: 12px 0 7px;
}
.empty-state p {
  font-size: 11px;
  max-width: 310px;
  margin: 0 auto 17px;
}
.empty-state a {
  font-size: 11px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  background: #f0f5f0;
  border-radius: 12px;
  color: #7e9b80;
  margin: 0 auto;
}
.empty-state .btn {
  padding: 8px 12px;
  min-height: 35px;
  font-size: 10px;
}
.empty-state.compact {
  padding: 27px 22px;
}
.notes-section > .panel-heading {
  padding: 0 0 16px;
}
.notes-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.note-preview {
  display: block;
  position: relative;
  border: 1px solid #e8e6db;
  background: #faf9f3;
  border-radius: 10px;
  padding: 19px 22px;
  min-height: 144px;
}
.note-preview:nth-child(2) {
  background: #f4f6f8;
  border-color: #e4e9ee;
}
.note-preview .eyebrow {
  font-size: 8px;
  color: #a2a190;
  letter-spacing: 0.7px;
}
.note-preview h3 {
  font-size: 13px;
  margin: 10px 0 7px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.note-preview p {
  font-size: 10px;
  line-height: 1.85;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.note-arrow {
  position: absolute;
  right: 18px;
  top: 16px;
  color: #a8ab9e;
}
.new-note {
  border: 1px dashed #d5ddd6;
  background: transparent;
  text-align: center;
  padding: 21px;
}
.new-note-icon {
  font-size: 24px;
  line-height: 1;
  color: #879888;
}
.new-note h3 {
  margin-top: 10px;
}
.new-note:hover {
  background: #eef4ee;
}
.page-footer {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  font-size: 9px;
  color: #9ca2a6;
}
.page-footer > a {
  margin-left: auto;
  color: #8a9496;
}
.form-control,
.form-select {
  border: 1px solid #dce3df;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  padding: 11px 13px;
  border-radius: 7px;
  min-height: 43px;
  box-shadow: none;
}
.form-control:focus,
.form-select:focus {
  border-color: #8aaa93;
  box-shadow: 0 0 0 3px #edf3ed;
}
.form-control::placeholder {
  color: #a0a7ab;
  font-size: 13px;
}
.form-control[readonly] {
  background: #f8faf8;
  color: #7c8680;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label,
label.control-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #55645c;
  margin-bottom: 7px;
}
.form-check label {
  display: inline-block;
}
.form-control-color {
  max-width: 85px;
  padding: 5px;
}
.text-danger,
.field-validation-error {
  font-size: 12px;
  color: #ad4149 !important;
  display: block;
  margin-top: 5px;
}
.validation-summary-valid {
  display: none;
}
.input-validation-error {
  border-color: #cb7b7b;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.form-grid > * { min-width: 0; }
.form-text,
.text-muted {
  color: var(--muted) !important;
  font-size: 12px;
}
.alert {
  font-size: 13px;
  border-radius: 8px;
  padding: 14px 18px;
}
.alert-success {
  color: #355e42;
  background: #edf5ed;
  border-color: #d9e8d8;
}
.alert-danger {
  background: #fdf1ef;
  color: #9b4a49;
  border-color: #edd8d4;
}
.editor-page {
  max-width: 1200px;
}
.editor-page > h1,
.editor-page > h2,
.editor-page .content > h2 {
  font-size: 29px;
  margin: 5px 0 25px;
}
.editor-page form:not(.inline-form) {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
  max-width: 800px;
}
.editor-page .col-md-4,
.editor-page .col-md-6 {
  width: 100%;
}
.editor-page form .btn {
  margin-right: 8px;
}
.editor-page textarea {
  min-height: 140px;
}
.editor-page .note-editor textarea {
  min-height: 0;
}
.editor-page form .form-group:last-child {
  margin-bottom: 0;
}
.editor-page .card-body {
  padding: 0;
}
.editor-page .form-check {
  padding-left: 25px;
}
.editor-page .form-check-input {
  margin-left: -24px;
}
.editor-page hr {
  display: none;
}
.app-content > .container,
.app-content .main,
.app-content .content,
.app-content .contenthome {
  position: static;
  width: auto;
  max-width: none;
  min-height: 0;
  left: auto;
  margin: 0;
  padding: 0;
  background: none;
}
.table {
  font-size: 12px;
  background: white;
  margin: 0;
  color: var(--ink);
  vertical-align: middle;
}
.table th {
  font-size: 10px;
  letter-spacing: 0.3px;
  font-weight: 600;
  color: #89928d;
  background: #fafbf9;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 17px 20px;
  border-color: #eef1ee;
  max-width: 340px;
  overflow-wrap: anywhere;
}
.table td strong {
  font-weight: 600;
}
.table td .subtext {
  display: block;
  color: #959c98;
  font-size: 10px;
  margin-top: 4px;
}
.table .row-actions {
  display: flex;
  gap: 7px;
  white-space: nowrap;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table-responsive {
  overflow-x: auto;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.toolbar .form-control,
.toolbar .form-select {
  min-width: 180px;
  max-width: 300px;
}
.toolbar label {
  font-size: 12px;
  color: var(--muted);
}
.search-form {
  display: flex;
  gap: 9px;
  flex: 1;
}
.search-form input {
  max-width: 340px;
}
.status-chip {
  font-size: 10px;
  background: #eef2f5;
  color: #71808c;
  border-radius: 5px;
  padding: 4px 8px;
  white-space: nowrap;
}
.status-chip.complete {
  background: #eaf4e9;
  color: #6b8a68;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.note-card:nth-child(3n + 1) {
  border-top: 3px solid #d4dcbe;
}
.note-card:nth-child(3n + 2) {
  border-top: 3px solid #dccba1;
}
.note-card:nth-child(3n + 3) {
  border-top: 3px solid #cdc6e1;
}
.note-card h2 {
  font-size: 17px;
  margin: 16px 0 10px;
  overflow-wrap: anywhere;
}
.note-card p {
  font-size: 12px;
  overflow-wrap: anywhere;
  flex: 1;
}
.note-card .row-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.note-card .row-actions button {
  margin-left: auto;
}
.text-button {
  border: 0;
  background: none;
  color: #af7575;
  font-size: 11px;
  min-height: 32px;
  padding: 4px;
}
.note-body {
  line-height: 1.9;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.note-body p {
  color: var(--ink);
}
.note-body blockquote {
  border-left: 3px solid #b8cbae;
  padding-left: 15px;
}
.note-document {
  padding: 30px;
  max-width: 850px;
}
.fc {
  padding: 4px 22px 24px;
}
.fc-toolbar {
  padding: 20px 0 16px;
}
.fc-toolbar h2 {
  font-size: 19px;
  text-transform: capitalize;
}
.fc button {
  background: white;
  border: 1px solid #e2e7e3;
  box-shadow: none;
  text-shadow: none;
  font-size: 11px;
  height: 34px;
  color: #69756a;
}
.fc-state-active,
.fc-state-down {
  background: #eaf2e8 !important;
  color: var(--green) !important;
}
.fc th {
  font-weight: 550;
  text-transform: uppercase;
  font-size: 10px;
  color: #8a978b;
  padding: 12px 0;
}
.fc td,
.fc th {
  border-color: #e7ebe6;
}
.fc-day-number {
  font-size: 11px;
  color: #7c887e;
  padding: 9px !important;
}
.fc-unthemed td.fc-today {
  background: #f1f5e9;
}
.fc-event {
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  padding: 4px 6px;
  margin: 2px 4px !important;
}
.fc-scroller {
  min-height: 350px;
}
.calendar-help {
  padding: 14px 23px;
  margin: 0;
  color: #929b94;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.card-body {
  padding: 26px;
}
.card-title {
  font-size: 12px;
  color: #8a938d;
  letter-spacing: 0;
}
.card-text {
  font-size: 14px;
  color: var(--ink);
}
.topbar,
.toggle {
  display: none;
}
.badge {
  font-weight: 500;
}
.auth-main {
  min-height: 100vh;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #eef2e7;
  padding: 46px 54px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  border: 1px solid #dce5d1;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  bottom: -290px;
  left: -240px;
  pointer-events: none;
}
.auth-story .brand {
  position: relative;
  z-index: 1;
}
.auth-story-copy {
  margin: auto 0;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.auth-story .eyebrow {
  color: #78906f;
}
.auth-story h1 {
  font-size: clamp(35px, 3.8vw, 58px);
  line-height: 1.18;
  margin: 22px 0 22px;
  font-weight: 550;
  letter-spacing: -2px;
  color: #334e39;
}
.auth-story h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #7f9365;
}
.auth-story-copy > p {
  font-size: 13px;
  line-height: 1.9;
  color: #7e8d78;
}
.auth-mini-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fffdfa;
  border: 1px solid #e6e8d9;
  border-radius: 12px;
  box-shadow: 0 8px 18px #44572c06;
  padding: 22px;
  max-width: 405px;
  transform: rotate(-3deg);
  margin: 48px 0 0 9px;
}
.mini-check {
  background: #edf2df;
  color: #819064;
  font-size: 17px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.auth-mini-card strong {
  font-size: 11px;
  display: block;
  color: #616c54;
}
.auth-mini-card div > span {
  font-size: 10px;
  color: #9aa08d;
  display: block;
  margin-top: 4px;
}
.mini-spark {
  color: #d4bb7f;
  font-size: 28px;
  margin-left: auto;
}
.auth-story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #86997a;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  z-index: 1;
}
.auth-story-footer > span:last-child {
  font-size: 46px;
  font-weight: 400;
}
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 45px 40px 25px;
  min-width: 0;
}
.auth-form-wrap {
  width: 100%;
  max-width: 360px;
  margin: auto;
}
.auth-form-wrap h2 {
  font-size: 31px;
  line-height: 1.25;
  margin: 13px 0 12px;
}
.auth-form-wrap > p {
  font-size: 12px;
  margin-bottom: 30px;
}
.auth-form-wrap .eyebrow {
  font-size: 8px;
}
.auth-form-wrap .form-group {
  margin-bottom: 22px;
}
.auth-form-wrap .form-control {
  min-height: 47px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 76px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 5px;
  bottom: 5px;
  background: transparent;
  border: 0;
  font-size: 10px;
  color: #71836f;
  padding: 0 9px;
}
.auth-submit {
  width: 100%;
  justify-content: space-between;
  padding: 13px 18px;
  margin-top: 5px;
}
.auth-switch {
  text-align: center;
  font-size: 11px !important;
  color: #99a09b;
  margin-top: 27px !important;
  margin-bottom: 35px !important;
}
.auth-switch a {
  font-weight: 600;
  margin-left: 3px;
}
.auth-support {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  text-align: center;
}
.auth-support span {
  display: block;
  color: #a0a79f;
  font-size: 10px;
}
.auth-support a {
  display: block;
  font-size: 10px;
  color: #7a8b76;
  margin-top: 8px;
}
.auth-copyright {
  font-size: 11px;
  color: #a0a7a1;
  margin-top: 35px;
}
.register-form {
  max-width: 390px;
}
.register-form .form-group {
  margin-bottom: 14px;
}
.register-form h2 {
  font-size: 28px;
}
.register-form > p {
  margin-bottom: 21px;
}
.register-form .auth-switch {
  margin: 20px 0 0 !important;
}
.register-form .form-control {
  min-height: 42px;
}
.chat-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 24px;
  background: #fafbf9;
}
.chat-message {
  max-width: 78%;
  padding: 15px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.chat-message.right {
  background: #eaf1e5;
  border-color: #dce8d5;
  align-self: flex-end;
}
.chat-message p {
  color: var(--ink);
  margin-bottom: 5px;
  white-space: pre-wrap;
}
.timestamp {
  font-size: 10px;
  color: #92a08a;
}
.chat-message img,
.chat-message video {
  max-width: 100%;
  max-height: 240px;
  border-radius: 7px;
  display: block;
  margin-top: 10px;
}
.message-options {
  display: flex;
  justify-content: flex-end;
  font-size: 10px;
  gap: 10px;
}
.message-options form {
  margin: 0;
}
.message-options .btn-link {
  font-size: 10px;
  min-height: 25px;
  padding: 3px;
  color: #86917f;
}
.message-composer {
  padding: 24px;
  border-top: 1px solid var(--line);
}
.message-composer textarea {
  min-height: 90px;
}
.message-composer .composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.theme-card {
  padding: 22px;
}
.theme-swatch {
  height: 65px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 17px;
}
.theme-card h2 {
  font-size: 17px;
}
.theme-card p {
  font-size: 12px;
}
.theme-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.theme-actions form {
  margin: 0;
}
.theme-page-heading {
  max-width: 1080px;
}
.theme-editor {
  max-width: 1080px !important;
}
.theme-editor .validation-summary-valid {
  display: none;
}
.theme-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: stretch;
}
.theme-controls {
  min-width: 0;
}
.theme-color-control {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-color-control .form-control-color {
  width: 76px;
  height: 48px;
  max-width: none;
  padding: 5px;
  cursor: pointer;
}
.theme-color-control output {
  color: #43534c;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.theme-live-preview {
  min-height: 360px;
  padding: 28px;
  border: 1px solid #dfe6e1;
  border-radius: 14px;
  background: #edf4ef;
  transition: background-color 0.18s;
}
.theme-preview-card {
  max-width: 360px;
  margin: 52px auto 0;
  padding: 25px;
  border: 1px solid rgb(37 45 50 / 10%);
  border-radius: 13px;
  background: white;
  box-shadow: 0 14px 30px rgb(25 69 54 / 9%);
}
.theme-preview-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: #edf4ef;
  color: var(--green);
}
.theme-preview-card h2 {
  margin: 22px 0 8px;
  font: inherit;
  font-size: 1.15em;
  font-weight: 700;
}
.theme-preview-card p {
  margin-bottom: 18px;
  color: #55625c;
  font: inherit;
  font-size: 0.9em;
}
.theme-preview-meta {
  color: #596760;
  font-size: 0.8em;
  font-weight: 600;
}
.theme-editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .theme-builder {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .theme-live-preview {
    min-height: 310px;
  }
  .theme-editor-actions .btn {
    flex: 1;
  }
}
dl {
  font-size: 13px;
}
dt {
  font-weight: 600;
  color: #829080;
}
dd {
  margin-bottom: 18px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.contact-card {
  padding: 25px;
}
.contact-card h2 {
  font-size: 18px;
  margin: 17px 0 6px;
}
.contact-card p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.contact-card .avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.contact-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.conversation-type {
  display: inline-block;
  margin: 16px 0 0;
  color: #738077;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.contact-card .conversation-type + h2 {
  margin-top: 7px;
}
.group-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 62%, #f1f6ee);
}
.group-card::after {
  position: absolute;
  width: 110px;
  height: 110px;
  right: -45px;
  top: -45px;
  border-radius: 50%;
  background: rgb(95 125 82 / 8%);
  content: "";
}
.group-avatar {
  display: grid !important;
  place-items: center;
  background: #e7f0e2 !important;
  color: var(--green);
}
.group-avatar svg {
  width: 21px;
  height: 21px;
}
.member-stack {
  display: flex;
  margin-top: 18px;
  padding-left: 7px;
}
.member-stack span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: -7px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #edf2e9;
  color: #43534c;
  font-size: 10px;
  font-weight: 750;
}
.group-builder {
  max-width: 820px;
  padding: 32px;
}
.search-field {
  position: relative;
}
.search-status {
  display: block;
  min-height: 20px;
  padding-top: 6px;
  color: #718079;
  font-size: 11px;
}
.user-search-results {
  display: grid;
  gap: 7px;
  max-height: 290px;
  overflow-y: auto;
}
.user-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.user-result:hover,
.user-result:focus-visible {
  border-color: #9eb294;
  background: #f7faf5;
}
.user-result .avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.user-result strong,
.user-result small {
  display: block;
}
.user-result small {
  margin-top: 3px;
  color: #748079;
  font-size: 10px;
}
.add-user {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.selected-members-wrap {
  margin: 24px 0;
  padding: 18px;
  border-radius: 11px;
  background: #f5f7f3;
}
.selection-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
}
.selection-heading span {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dfeadc;
}
.selected-members {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 5px;
  border: 1px solid #d9e2d5;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
}
.mini-avatar {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e7f0e2;
  color: var(--green);
  font-size: 9px;
}
.member-chip button {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6f7b74;
  cursor: pointer;
}
.member-chip button:hover { background: #eef1ec; }
.conversation-detail {
  max-width: 820px;
  padding: 28px;
}
.detail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.detail-header h2 { margin: 0; }
.privacy-note { color: #748079; font-size: 12px; }
.group-member-list {
  display: grid;
  gap: 8px;
}
.group-member {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.group-member .avatar { width: 38px; height: 38px; font-size: 12px; }
.group-member strong,
.group-member small { display: block; }
.group-member small { margin-top: 3px; color: #7b8780; font-size: 12px; }
.role-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f0e3;
  color: #4e6743;
  font-size: 11px;
  font-weight: 750;
}
.conversation-detail .form-actions { margin-top: 25px; }
.conversation-detail .form-actions form { margin: 0; }
.chat-panel { overflow: hidden; }
.message-author {
  display: block;
  margin-bottom: 5px;
  color: #4f7043;
  font-size: 12px;
}
.compact-form { max-width: 620px; padding: 28px; }
@media (max-width: 680px) {
  .group-builder,
  .conversation-detail { padding: 20px; }
  .detail-header { display: block; }
  .privacy-note { display: block; margin-top: 5px; }
  .group-member { grid-template-columns: auto 1fr; }
  .role-badge { grid-column: 2; justify-self: start; }
  .user-result { grid-template-columns: auto 1fr; }
  .add-user { grid-column: 2; }
}
.note-editor {
  border-radius: 8px !important;
  border-color: #dce3df !important;
}
.note-toolbar {
  background: #f8faf7 !important;
}
.note-editable {
  font-size: 14px !important;
}
.note-editable p {
  color: var(--ink);
}
@media (min-width: 1600px) {
  .app-content {
    padding: 42px 55px;
  }
  .academic-alert-summary {
    align-items: flex-start;
  }
  .academic-alert-action {
    font-size: 0;
  }
  .alert-overview {
    grid-template-columns: 1fr;
  }
  .academic-alert-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 16px;
  }
  .academic-alert-row time {
    grid-column: 2;
  }
  .academic-alert-row > .row-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .welcome-banner {
    min-height: 320px;
  }
  .welcome-copy {
    padding: 35px 45px;
  }
  .welcome-copy h2 {
    font-size: 42px;
  }
  .planner-art {
    transform: scale(1.1);
    transform-origin: center;
  }
  .stat-card {
    padding: 22px;
  }
  .stat-top {
    font-size: 13px;
  }
  .stat-caption {
    font-size: 11px;
  }
  .task-row-copy strong,
  .event-row > div > strong {
    font-size: 13px;
  }
  .task-row-copy > span,
  .event-row > div > span {
    font-size: 11px;
  }
  .task-row,
  .event-row {
    padding: 18px 24px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 218px;
  }
  .sidebar {
    padding: 27px 15px 15px;
  }
  .app-content {
    padding: 28px 26px;
  }
  .workspace-header {
    padding: 0 26px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-top {
    font-size: 10px;
  }
  .planner-art {
    transform: scale(0.9);
    transform-origin: right center;
  }
  .welcome-copy {
    padding: 28px;
  }
  .welcome-copy h2 {
    font-size: 32px;
  }
  .dashboard-columns {
    gap: 16px;
  }
  .task-row {
    padding: 14px 18px;
  }
  .notes-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-story {
    padding: 35px;
  }
  .auth-mini-card {
    padding: 17px;
  }
}
@media (max-width: 960px) {
  .welcome-banner {
    grid-template-columns: 1fr 0.8fr;
  }
  .planner-art {
    transform: scale(0.75);
    transform-origin: right center;
  }
  .art-planner {
    right: 6%;
  }
  .art-note {
    right: -14%;
  }
  .stat-caption {
    font-size: 8px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-top {
    font-size: 12px;
  }
  .stat-caption {
    font-size: 10px;
  }
  .notes-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-story {
    padding: 30px;
  }
  .auth-form-panel {
    padding: 35px 25px;
  }
  .auth-story h1 {
    font-size: 38px;
  }
  .auth-story-copy > p br {
    display: none;
  }
  .auth-mini-card {
    transform: none;
    margin-left: 0;
  }
  .mini-spark {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 244px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #15221b66;
    border: 0;
    z-index: 35;
  }
  .workspace-header {
    margin-left: 0;
    height: 65px;
    padding: 0 20px;
  }
  .menu-toggle {
    display: grid;
  }
  .header-date {
    display: none;
  }
  .header-right {
    gap: 10px;
  }
  .header-context {
    font-size: 11px;
  }
  .app-content {
    margin-left: 0;
    padding: 25px 20px;
  }
  .page-heading {
    margin-bottom: 22px;
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .btn {
    font-size: 10px;
    padding: 9px 11px;
    min-height: 36px;
    margin-top: 19px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .welcome-banner {
    min-height: 256px;
  }
  .welcome-copy {
    padding: 24px;
  }
  .welcome-copy h2 {
    font-size: 31px;
  }
  .planner-art {
    transform: scale(0.75);
  }
  .notes-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 24px;
    min-height: 200px;
  }
  .auth-story .brand {
    font-size: 22px;
  }
  .auth-story .brand-mark {
    height: 34px;
    width: 34px;
  }
  .auth-story .brand-caption {
    font-size: 7px;
  }
  .auth-story-copy {
    padding: 30px 0 2px;
  }
  .auth-story h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin: 12px 0;
  }
  .auth-story h1 br {
    display: none;
  }
  .auth-story-copy > p {
    font-size: 12px;
    margin: 0;
  }
  .auth-story-copy > p br {
    display: none;
  }
  .auth-mini-card,
  .auth-story-footer {
    display: none;
  }
  .auth-form-panel {
    padding: 34px 25px;
  }
  .auth-form-wrap {
    max-width: 420px;
  }
  .auth-form-wrap h2 {
    font-size: 28px;
  }
  .auth-copyright {
    margin-top: 28px;
  }
  .editor-page form:not(.inline-form) {
    padding: 21px;
  }
  .fc {
    padding: 0 12px 15px;
  }
  .fc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
  }
  .fc-toolbar:after {
    display: none;
  }
  .fc-toolbar .fc-center {
    width: 100%;
    order: -1;
    text-align: left;
  }
  .fc-toolbar h2 {
    font-size: 18px;
  }
  .fc button {
    font-size: 10px;
    padding: 0 8px;
  }
  .panel-heading {
    padding: 19px;
  }
  .fc-day-grid-event {
    font-size: 9px;
    padding: 2px;
  }
  .page-footer {
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .app-content {
    padding: 22px 15px;
  }
  .workspace-header {
    padding: 0 15px;
  }
  .welcome-banner {
    display: block;
  }
  .welcome-copy {
    padding: 25px;
  }
  .welcome-copy h2 {
    font-size: 33px;
  }
  .planner-art {
    display: none;
  }
  .welcome-copy p {
    font-size: 12px;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 15px 13px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-caption {
    font-size: 8px;
  }
  .stat-value {
    font-size: 29px;
  }
  .notes-preview-grid,
  .notes-grid,
  .contact-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading > .btn {
    font-size: 9px;
    gap: 5px;
  }
  .page-heading > .btn svg {
    width: 13px;
  }
  .task-row {
    gap: 9px;
    padding: 15px;
  }
  .task-row .row-arrow {
    display: none;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .chat-message {
    max-width: 92%;
  }
  .message-composer {
    padding: 17px;
  }
  .message-composer .composer-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .page-footer {
    font-size: 8px;
  }
  .auth-story h1 {
    font-size: 30px;
  }
}

/* Consistent supporting forms */
.compact-page-heading { max-width: 760px; margin: -6px auto 22px; text-align: center; }
.compact-page-heading .detail-back-link { margin-bottom: 24px; }
.compact-page-heading .eyebrow { display: block; }
.compact-page-heading h1 { margin: 7px 0 8px; font-size: clamp(29px, 4vw, 40px); }
.compact-page-heading p { margin: 0 auto; max-width: 560px; font-size: 11px; }
.compact-form-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .55fr); gap: 18px; max-width: 920px; margin: 0 auto; align-items: start; }
.compact-form-card { padding: clamp(24px, 4vw, 36px); border-radius: 18px; }
.compact-form-card--centered,
.message-edit-card { max-width: 720px; margin-inline: auto; }
.compact-form-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 13px; background: #e9f4ee; color: #28664f; }
.compact-form-icon i { font-size: 20px; }
.compact-form-actions { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e6ebe8; }
.optional-label { margin-left: 5px; padding: 3px 6px; border-radius: 999px; background: #f0f3f1; color: #7b8881; font-size: 8px; font-weight: 600; }
.compact-help-card { padding: 25px; border-radius: 18px; background: linear-gradient(145deg, #eef7f2, #fff); }
.compact-help-card > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; background: #dceee5; color: #28664f; }
.compact-help-card h2 { margin-bottom: 8px; font-size: 14px; }
.compact-help-card p,
.compact-help-card li { color: #64736b; font-size: 9px; line-height: 1.7; }
.compact-help-card ol { margin: 17px 0 0; padding-left: 18px; }
.message-edit-card { padding: clamp(24px, 4vw, 38px); border-radius: 18px; }
.message-edit-meta { display: flex; justify-content: flex-end; margin-bottom: 17px; color: #76837c; font-size: 9px; }
.message-edit-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: #f1f4f2; }
.current-attachment { display: grid; gap: 12px; margin: 19px 0; padding: 16px; border: 1px solid #e1e8e4; border-radius: 13px; background: #fafcfb; }
.current-attachment h2 { margin: 3px 0 0; font-size: 12px; }
.current-attachment img,
.current-attachment video { width: 100%; max-height: 280px; border-radius: 10px; object-fit: contain; background: #eef1ef; }
.message-file-drop { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 16px; border: 1px dashed #abc5b8; border-radius: 12px; background: #f7fbf9; color: #2f634e; cursor: pointer; }
.message-file-drop > i { font-size: 20px; }
.message-file-drop strong,
.message-file-drop small { display: block; }
.message-file-drop strong { font-size: 10px; }
.message-file-drop small { color: #7a8881; font-size: 8px; }
@media (max-width: 760px) {
  .compact-form-layout { grid-template-columns: 1fr; }
  .compact-form-actions { align-items: stretch; flex-direction: column; }
  .compact-form-actions .btn { width: 100%; }
}

/* Privacy */
.privacy-hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; max-width: 980px; margin: -6px auto 20px; padding: clamp(24px, 4vw, 38px); border: 1px solid #dce7e1; border-radius: 20px; background: radial-gradient(circle at 88% 8%, #deede5, transparent 28%), #fff; }
.privacy-hero .detail-back-link { grid-column: 1 / -1; }
.privacy-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: #dfeee6; color: #26634c; }
.privacy-icon i { font-size: 24px; }
.privacy-hero h1 { margin: 6px 0 7px; font-size: clamp(29px, 4vw, 42px); }
.privacy-hero p { max-width: 650px; margin: 0; font-size: 11px; }
.privacy-layout { display: grid; grid-template-columns: minmax(250px, .58fr) minmax(0, 1.42fr); gap: 18px; max-width: 980px; margin: 0 auto; align-items: start; }
.privacy-summary { position: sticky; top: 20px; padding: 25px; border-radius: 17px; background: linear-gradient(145deg, #eef7f2, #fff); }
.privacy-summary h2 { margin: 8px 0 10px; font-size: 17px; }
.privacy-summary > p { font-size: 10px; line-height: 1.75; }
.privacy-summary > div { display: flex; gap: 10px; margin-top: 18px; padding-top: 17px; border-top: 1px solid #dfe8e3; }
.privacy-summary > div > i { color: #2d684f; }
.privacy-summary strong,
.privacy-summary small { display: block; }
.privacy-summary strong { color: #384b41; font-size: 10px; }
.privacy-summary small { color: #718078; font-size: 8px; }
.privacy-content { padding: clamp(22px, 4vw, 34px); border-radius: 17px; }
.privacy-content section { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid #e6ebe8; }
.privacy-content section:first-child { padding-top: 0; border-top: 0; }
.privacy-content section > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eaf4ef; color: #28634d; font-size: 9px; font-weight: 800; }
.privacy-content h2 { margin: 3px 0 6px; font-size: 14px; }
.privacy-content p { margin: 0; color: #5b6a62; font-size: 10px; line-height: 1.75; }
@media (max-width: 760px) {
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-summary { position: static; }
  .privacy-hero { grid-template-columns: 1fr; }
}

/* 2026 experience refinement: clearer hierarchy, larger targets and consistent detail pages */
.sidebar .brand { margin-bottom: 42px; }
.sidebar .nav-label { margin-top: 0; }
.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #53675e;
  font-size: 11px;
  font-weight: 700;
}
.detail-back-link:hover { color: var(--green); }

/* Apuntes */
.notes-library-tools { overflow: hidden; }
.notes-library-summary { background: #fbfcfb; }
.notes-area-list { gap: 32px; }
.notes-area-section {
  padding: 20px;
  border: 1px solid #e5ebe7;
  border-radius: 18px;
  background: rgb(255 255 255 / 52%);
}
.notes-area-heading { margin-bottom: 18px; }
.notes-area-icon { box-shadow: inset 0 0 0 1px #dceae3; }
.notes-drag-hint {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #dce7e1;
  border-radius: 999px;
  background: #fff;
}
.note-priority-control { display: flex; align-items: center; gap: 5px; }
.note-drag-handle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #77857e;
  cursor: grab;
  touch-action: none;
}
.note-drag-handle:hover,
.note-drag-handle:focus-visible { border-color: #cfe0d7; background: #eef6f2; color: var(--green); }
.note-drag-handle:active { cursor: grabbing; }
.note-priority-number {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f4f2;
  color: #52645b;
  font-size: 10px;
  font-weight: 800;
}
.note-library-card.is-dragging {
  opacity: .62;
  transform: rotate(1deg) scale(1.015);
  border-color: #6f9f8b;
  box-shadow: 0 22px 48px rgb(31 70 54 / 18%);
}
.notes-library-grid.is-saving { opacity: .76; pointer-events: none; }
.note-detail-hero {
  margin: -8px 0 22px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid #dce8e1;
  border-radius: 22px;
  background: radial-gradient(circle at 90% 10%, rgb(175 215 196 / 34%), transparent 28%), linear-gradient(135deg, #f1f8f4, #fff 70%);
}
.note-detail-hero__content { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 20px; }
.note-detail-hero h1 { max-width: 820px; margin: 12px 0 14px; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; }
.note-detail-kicker,
.note-detail-kicker span,
.note-detail-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.note-detail-kicker { color: #63746b; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.note-detail-kicker span { color: #28614d; }
.note-detail-kicker time::before { content: "·"; margin-right: 9px; color: #9aa69f; }
.note-detail-badges span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 9px;
  border: 1px solid #dce7e1; border-radius: 999px; background: rgb(255 255 255 / 80%); color: #53645c; font-size: 10px; font-weight: 700;
}
.note-detail-badges .is-accent { border-color: #b9dacb; background: #e8f5ef; color: #1f684f; }
.note-detail-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .62fr); gap: 20px; align-items: start; }
.note-detail-layout .note-document { max-width: none; min-height: 420px; padding: clamp(26px, 5vw, 58px); border: 1px solid #e0e7e3; border-top: 4px solid #78aa94; border-radius: 18px; box-shadow: 0 15px 40px rgb(34 65 52 / 6%); }
.note-document__label { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; padding-bottom: 15px; border-bottom: 1px solid #e9eeeb; color: #76837c; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.note-body { color: #33423b; font-size: 15px; line-height: 1.9; }
.note-body mark { padding: .08em .2em; border-radius: 3px; background: #fff0a8; color: inherit; }
.note-detail-sidebar { display: grid; gap: 14px; }
.note-context-card,
.note-linked-context { padding: 20px; border-radius: 16px; }
.note-context-card h2,
.note-linked-context h2 { margin: 0 0 14px; font-size: 14px; }
.note-context-card dl { margin: 0; }
.note-context-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid #ebefed; }
.note-context-card dt,
.note-context-card dd { margin: 0; font-size: 10px; }
.note-context-card dt { color: #7b8780; }
.note-context-card dd { color: #34483e; font-weight: 750; text-align: right; }
.note-context-card .note-tags { margin: 0; }
.note-context-card .note-tags a { padding: 6px 9px; border: 1px solid #dfe9e3; border-radius: 999px; background: #f5faf7; font-size: 10px; }
.note-linked-context { border: 1px solid #d7e7df; background: linear-gradient(145deg, #eef7f2, #fff); }
.note-linked-context h2 { margin: 8px 0; }
.note-linked-context p { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 10px; }
.note-linked-context .context-status { display: inline-flex; margin-bottom: 16px; padding: 5px 8px; border-radius: 999px; background: #fff; color: #33634f; font-size: 9px; font-weight: 700; }
.note-linked-context .btn { width: 100%; }
.note-danger-zone { display: grid; gap: 6px; padding: 12px 4px 0; }
.note-danger-zone .btn { width: 100%; }
.note-danger-zone p { margin: 0; text-align: center; font-size: 9px; }

/* Apariencia */
.appearance-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: -8px 0 18px; padding: clamp(26px, 4vw, 44px);
  border: 1px solid #dbe7e1; border-radius: 22px; background: radial-gradient(circle at 78% 12%, #dcecdf 0, transparent 26%), linear-gradient(135deg, #f0f7f3, #fff 72%);
}
.appearance-hero h1 { margin: 10px 0 9px; font-size: clamp(31px, 4.5vw, 48px); }
.appearance-hero p { max-width: 670px; margin: 0; font-size: 13px; }
.appearance-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 38px; }
.appearance-benefits article { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e2e9e5; border-radius: 14px; background: #fff; }
.appearance-benefits article > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #edf5f1; color: #2e6953; }
.appearance-benefits strong { display: block; color: #34443c; font-size: 11px; }
.appearance-benefits p { margin: 2px 0 0; font-size: 9px; }
.appearance-section { margin-bottom: 38px; }
.section-heading-inline { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading-inline h2 { margin: 4px 0 0; font-size: 21px; }
.section-heading-inline > p,
.section-count { margin: 0; color: #7a8780; font-size: 10px; }
.section-count { padding: 5px 9px; border-radius: 999px; background: #edf2ef; }
.theme-preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.theme-preset-card { position: relative; display: grid; min-height: 170px; padding: 20px; overflow: hidden; border: 1px solid #dfe7e2; border-radius: 17px; background: #fff; color: #33483e; }
.theme-preset-card::after { content: ""; position: absolute; right: -26px; top: -34px; width: 120px; height: 120px; border-radius: 50%; background: #e2f0e8; }
.theme-preset-card.preset-reading::after { background: #eee5cc; }
.theme-preset-card.preset-comfort::after { background: #e5e5da; }
.theme-preset-card:hover { transform: translateY(-2px); border-color: #a9c8b9; box-shadow: 0 14px 34px rgb(38 69 56 / 9%); color: var(--green); }
.theme-preset-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eff6f2; color: #2e6a53; }
.theme-preset-card strong { align-self: end; margin-top: 24px; font-size: 14px; }
.theme-preset-card p { margin: 4px 0 12px; font-size: 10px; }
.theme-preset-card > span:last-child { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; }
.theme-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.theme-showcase-card { overflow: hidden; border: 1px solid #dfe6e2; border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgb(39 64 53 / 5%); }
.theme-showcase-card.is-current { border-color: #75a991; box-shadow: 0 0 0 2px rgb(75 139 111 / 10%), 0 12px 30px rgb(39 72 57 / 8%); }
.theme-mini-preview { display: grid; grid-template-columns: 54px 1fr; min-height: 145px; background: var(--theme-bg, #f7f8fa); font-family: var(--theme-font, "Segoe UI", sans-serif); font-size: var(--theme-size, 14px); line-height: var(--theme-line, 1.6); border-bottom: 1px solid #e5e9e6; }
.theme-mini-preview .mini-sidebar { background: #fff; border-right: 1px solid #e0e6e2; }
.theme-mini-preview > div { margin: 18px; padding: 15px; border: 1px solid #e2e8e4; border-radius: 10px; background: #fff; }
.theme-mini-preview i { display: block; width: 28px; height: 7px; margin-bottom: 15px; border-radius: 999px; background: #8db7a7; }
.theme-mini-preview b { display: block; max-width: 150px; overflow: hidden; color: #2b3932; font-size: .72em; text-overflow: ellipsis; white-space: nowrap; }
.theme-mini-preview p { height: 5px; margin: 10px 0 0; border-radius: 999px; background: #e1e7e3; }
.theme-mini-preview p:last-child { width: 66%; }
.theme-showcase-body { padding: 19px; }
.theme-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.theme-title-row h3 { margin: 0 0 3px; }
.theme-title-row p,
.theme-showcase-body > p { margin: 0; font-size: 9px; }
.theme-showcase-body > p { min-height: 34px; margin-top: 12px; }
.current-theme-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 999px; background: #e6f3ec; color: #22634c; font-size: 8px; font-weight: 800; white-space: nowrap; }
.theme-feature-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 34px; margin: 9px 0; }
.theme-feature-row span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #e4e9e6; border-radius: 999px; color: #68766e; font-size: 8px; }
.theme-feature-row span > i { width: 9px; height: 9px; border: 1px solid #ccd5d0; border-radius: 50%; background: var(--chip-color, #fff); }
.theme-actions { align-items: center; }
.theme-actions .theme-delete-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #efdddd; border-radius: 8px; background: #fff8f7; color: #a54c45; }
.theme-actions .theme-delete-button:hover { background: #ae4745; color: #fff; }
.theme-actions button:disabled { opacity: .72; cursor: default; }
.theme-editor { border-radius: 20px; }
.theme-controls { padding: clamp(22px, 4vw, 38px); }
.theme-control-section { margin-bottom: 24px; }
.theme-control-heading { display: flex; align-items: center; gap: 11px; margin: 8px 0 16px; padding-top: 16px; border-top: 1px solid #e7ece9; }
.theme-control-section .theme-control-heading { padding-top: 0; border-top: 0; }
.theme-control-heading > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eaf4ef; color: #28634d; font-size: 9px; font-weight: 800; }
.theme-control-heading h2,
.theme-control-heading p { margin: 0; }
.theme-control-heading h2 { font-size: 13px; }
.theme-control-heading p { font-size: 9px; }
.theme-preset-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.theme-preset-buttons button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border: 1px solid #dce5e0; border-radius: 9px; background: #fff; color: #4d5e55; font-size: 9px; font-weight: 700; }
.theme-preset-buttons button:hover { border-color: #85af9c; background: #f4f9f6; color: var(--green); }
.theme-preset-buttons i { width: 12px; height: 12px; border: 1px solid #c9d4ce; border-radius: 50%; }
.theme-preview-browser { display: flex; align-items: center; gap: 5px; margin: 14px -2px 0; padding: 9px 11px; border-radius: 9px 9px 0 0; background: #dfe6e2; }
.theme-preview-browser i { width: 6px; height: 6px; border-radius: 50%; background: #8ea097; }
.theme-preview-browser span { margin-left: 5px; color: #6c7a73; font-size: 8px; }
.theme-readability-status { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px; border: 1px solid #cde2d7; border-radius: 10px; background: #edf7f2; color: #2a6b51; }
.theme-readability-status > i { font-size: 17px; }
.theme-readability-status span { display: grid; }
.theme-readability-status strong { font-size: 9px; }
.theme-readability-status small { color: #63766c; font-size: 8px; }
.theme-readability-status.is-warning { border-color: #e7d3a5; background: #fff8e6; color: #81621e; }

/* Perfil */
.profile-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; padding: clamp(23px, 4vw, 38px); border-radius: 20px; background: radial-gradient(circle at 82% 16%, #e2f0e8 0, transparent 26%), #fff; }
.profile-avatar-large { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 94px; height: 94px; border: 5px solid #fff; border-radius: 28px; background: #dfece5; box-shadow: 0 0 0 1px #dae4de, 0 10px 25px rgb(35 70 55 / 10%); color: #285d49; font-size: 25px; font-weight: 800; overflow: visible; }
.profile-avatar-large img { width: 100%; height: 100%; border-radius: 23px; object-fit: cover; }
.profile-presence { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: #47a878; }
.profile-hero__identity { flex: 1; min-width: 0; }
.profile-hero__identity h1 { margin: 5px 0 4px; font-size: clamp(28px, 4vw, 40px); }
.profile-hero__identity > p { margin: 0 0 11px; font-size: 11px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-badges span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #f2f4f3; color: #607067; font-size: 9px; font-weight: 700; }
.profile-badges .is-active { background: #e7f4ed; color: #27674f; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr); gap: 18px; align-items: start; }
.profile-main,
.profile-aside { display: grid; gap: 18px; }
.profile-section,
.profile-contact-card,
.profile-share-card { padding: 24px; border-radius: 17px; }
.profile-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
.profile-section-heading > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #edf5f1; color: #2a664f; }
.profile-section-heading h2,
.profile-section-heading p { margin: 0; }
.profile-section-heading h2 { font-size: 14px; }
.profile-section-heading p { margin-top: 2px; font-size: 9px; }
.profile-biography { min-height: 85px; margin: 0; padding: 18px; border: 1px solid #e8ecea; border-radius: 12px; background: #fafbfa; color: #4c5d54; font-size: 11px; line-height: 1.8; }
.profile-data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; }
.profile-data-grid div { padding: 13px 0; border-top: 1px solid #e8ecea; }
.profile-data-grid dt { margin-bottom: 4px; color: #7e8983; font-size: 9px; }
.profile-data-grid dd { margin: 0; color: #35483e; font-size: 11px; font-weight: 700; }
.profile-contact-card h2,
.profile-share-card h2 { font-size: 14px; }
.profile-contact-card > a,
.profile-contact-card > div { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #e8ecea; color: #34463d; }
.profile-contact-card > a > span,
.profile-contact-card > div > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #eef5f1; color: #2b6750; }
.profile-contact-card small,
.profile-contact-card strong { display: block; }
.profile-contact-card small { color: #818b86; font-size: 8px; }
.profile-contact-card strong { overflow-wrap: anywhere; font-size: 10px; }
.profile-share-card { background: linear-gradient(145deg, #eef6f2, #fff); }
.profile-share-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 17px; border-radius: 12px; background: #dceee5; color: #26644c; }
.profile-share-card p { font-size: 10px; }
.profile-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px dashed #a9c7b8; border-radius: 10px; background: #fff; }
.profile-id span { color: #6d7b74; font-size: 9px; }
.profile-id strong { color: #235d47; font-size: 16px; letter-spacing: .08em; }
.profile-edit-heading { margin-bottom: 20px; }
.profile-edit-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.profile-photo-panel { position: sticky; top: 20px; display: grid; justify-items: center; padding: 28px 22px; text-align: center; }
.profile-photo-panel h2 { margin: 18px 0 5px; font-size: 14px; }
.profile-photo-panel p { font-size: 9px; }
.profile-file-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin: 9px 0 7px; padding: 8px 12px; border: 1px solid #cddbd4; border-radius: 8px; background: #fff; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.profile-photo-panel small { color: #89938e; font-size: 8px; overflow-wrap: anywhere; }
.profile-form-panel { padding: clamp(22px, 4vw, 38px); }
.profile-form-panel section + section { margin-top: 26px; }
.form-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.form-section-heading > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eaf4ef; color: #28634d; font-size: 9px; font-weight: 800; }
.form-section-heading h2,
.form-section-heading p { margin: 0; }
.form-section-heading h2 { font-size: 13px; }
.form-section-heading p { font-size: 9px; }
.form-grid--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group--full { grid-column: 1 / -1; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 76px; }
.password-field button { position: absolute; right: 5px; top: 5px; min-height: 34px; padding: 5px 9px; border: 0; border-radius: 7px; background: #edf3ef; color: var(--green); font-size: 9px; font-weight: 700; }
.profile-form-actions { display: flex; align-items: center; gap: 9px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5eae7; }
.profile-form-actions > span { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #7c8982; font-size: 8px; }

/* Detalle de calendario */
.event-detail-hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding: clamp(24px, 4vw, 38px); overflow: hidden; border-radius: 20px; }
.event-detail-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--event-color); }
.event-detail-hero .detail-back-link { grid-column: 1 / -1; }
.event-detail-main { display: flex; align-items: center; gap: 17px; }
.event-detail-icon { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--event-color) 14%, white); color: var(--event-color); }
.event-detail-icon i { font-size: 23px; }
.event-detail-main h1 { margin: 5px 0 3px; font-size: clamp(27px, 4vw, 40px); }
.event-detail-main p { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 10px; }
.event-color-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--event-color); }
.event-detail-actions { display: flex; gap: 8px; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); gap: 18px; margin-top: 18px; align-items: start; }
.event-description-card,
.event-schedule-card { padding: 25px; border-radius: 17px; }
.event-description { min-height: 150px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #e7ece9; color: #4c5d54; font-size: 12px; line-height: 1.8; white-space: pre-line; }
.event-schedule-card h2 { margin: 0 0 17px; font-size: 14px; }
.event-time-row { display: flex; align-items: center; gap: 11px; }
.event-time-row > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--event-color) 12%, white); color: var(--event-color); }
.event-time-row small,
.event-time-row strong { display: block; }
.event-time-row small { color: #7b8881; font-size: 8px; }
.event-time-row strong { color: #33473d; font-size: 10px; }
.event-time-line { width: 1px; height: 20px; margin-left: 18px; border-left: 1px dashed #cfd9d3; }
.event-duration { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; margin-top: 18px; padding: 11px; border-radius: 10px; background: #f5f7f6; color: #67766e; font-size: 9px; }
.event-duration strong { color: #30463b; }

@media (max-width: 900px) {
  .note-detail-layout,
  .profile-layout,
  .profile-edit-layout,
  .event-detail-grid { grid-template-columns: 1fr; }
  .profile-photo-panel { position: static; }
  .theme-preset-grid { grid-template-columns: 1fr; }
  .profile-photo-panel { display: flex; align-items: center; justify-content: flex-start; gap: 18px; text-align: left; }
  .profile-photo-panel .profile-avatar-large { width: 76px; height: 76px; }
}
@media (max-width: 700px) {
  .notes-area-section { margin-inline: -6px; padding: 14px; }
  .note-detail-hero__content,
  .appearance-hero,
  .profile-hero,
  .event-detail-main { align-items: stretch; flex-direction: column; }
  .note-detail-hero__content .btn,
  .appearance-hero .btn,
  .profile-hero > .btn { width: 100%; }
  .appearance-benefits { grid-template-columns: 1fr; }
  .theme-preset-buttons,
  .form-grid--2 { grid-template-columns: 1fr; }
  .form-group--full { grid-column: auto; }
  .event-detail-hero { grid-template-columns: 1fr; }
  .event-detail-actions { flex-wrap: wrap; }
  .event-detail-actions .btn { flex: 1; }
  .profile-data-grid { grid-template-columns: 1fr; }
  .profile-form-actions { align-items: stretch; flex-direction: column; }
  .profile-form-actions > span { margin-left: 0; }
}
@media (max-width: 480px) {
  .profile-photo-panel { display: grid; justify-items: center; text-align: center; }
  .section-heading-inline { align-items: flex-start; flex-direction: column; }
  .theme-actions { display: grid; grid-template-columns: 1fr 1fr auto; }
  .theme-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Readability and compact laptop navigation. */
.page-heading p,
.auth-form-wrap > p,
.auth-story-copy > p {
  font-size: 13px;
  color: #758078;
}
.stat-caption,
.task-row-copy > span,
.event-row > div > span,
.note-preview p {
  font-size: 11px;
  color: #79847b;
}
.stat-top,
.task-row-copy strong,
.event-row > div > strong {
  font-size: 12px;
}
.panel-heading > a,
.panel-add,
.panel-heading > a:hover {
  font-size: 11px;
  color: #6d8070;
}
.auth-support span,
.auth-support a,
.auth-switch {
  font-size: 12px !important;
}
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #dce3d9 transparent;
}
@media (max-height: 820px) and (min-width: 761px) {
  .sidebar {
    padding-top: 22px;
  }
  .sidebar .brand {
    margin-bottom: 24px;
  }
  .workspace-label {
    margin-bottom: 22px;
  }
  .sidebar-tip {
    display: none;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .sidebar .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
@media (max-width: 480px) {
  .stat-caption {
    font-size: 10px;
  }
  .stat-top {
    font-size: 11px;
  }
  .task-row-copy strong,
  .event-row > div > strong {
    font-size: 12px;
  }
  .task-row-copy > span {
    font-size: 10px;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Accessibility baseline and student-focused interface refinements. */
:root {
  --muted: #5f6b66;
  --focus: #c79022;
  --surface-shadow: 0 12px 32px rgb(25 69 54 / 7%);
}
body.sph-app {
  font-size: 15px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="-1"]:focus-visible {
  outline-color: var(--focus);
  outline-offset: 3px;
}
.brand-caption {
  font-size: 12px;
  letter-spacing: 0.65px;
  color: #59645f;
}
.workspace-label,
.sidebar-tip strong,
.sidebar-tip p,
.sidebar-tip a,
.sidebar-footer,
.header-date {
  font-size: 12px;
}
.nav-label,
.eyebrow,
.banner-label {
  font-size: 12px;
  color: #53635d;
}
.sidebar .nav-link {
  color: #4f5c57;
  font-size: 14px;
}
.sidebar-footer,
.header-context {
  color: #5e6864;
}
.header-context {
  font-size: 13px;
}
.avatar,
.icon-button,
.btn,
.password-toggle {
  min-width: 44px;
  min-height: 44px;
}
.btn,
.btn-sm,
.btn-banner {
  font-size: 13px;
}
.page-heading p,
.welcome-copy p,
.auth-form-wrap > p,
.auth-story-copy > p {
  color: var(--muted);
  font-size: 14px;
}
.page-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}
.welcome-banner,
.panel,
.stat-card,
.note-card,
.card,
.editor-page form:not(.inline-form) {
  box-shadow: var(--surface-shadow);
}
.welcome-banner,
.panel,
.card,
.editor-page form:not(.inline-form) {
  border-radius: 14px;
}
.stat-card,
.note-card,
.note-preview {
  border-radius: 12px;
}
.stat-top,
.task-row-copy strong,
.event-row > div > strong {
  font-size: 13px;
  color: #3e4945;
}
.stat-caption,
.progress-stat > span,
.task-row-copy > span,
.event-row > div > span,
.note-preview p,
.empty-state p,
.empty-state a,
.panel-heading > a,
.panel-add,
.calendar-help {
  color: #596760;
  font-size: 12px;
}
.panel-heading h2,
.empty-state h3,
.note-preview h3 {
  font-size: 16px;
}
.count-badge,
.priority,
.status-chip,
.event-date small,
.note-preview .eyebrow {
  font-size: 12px;
}
.panel-add,
.task-row,
.event-row {
  min-height: 48px;
}
.page-footer {
  color: #59645f;
  font-size: 12px;
}
.footer-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.footer-links a,
.auth-copyright a,
.accessibility-page p a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.form-control,
.form-select {
  min-height: 46px;
  font-size: 15px;
}
.form-control::placeholder,
.form-group label,
label.control-label,
.form-text,
.text-muted,
.text-danger,
.field-validation-error {
  font-size: 13px;
}
.form-control::placeholder {
  color: #68736e;
}
.form-group label,
label.control-label {
  color: #43534c;
  font-size: 14px;
}
.table {
  font-size: 13px;
}
.table th,
.table td .subtext,
.card-title,
.fc th,
.fc-day-number,
.fc-event,
.fc button,
.timestamp,
.message-options,
.message-options .btn-link {
  font-size: 12px;
}
.text-button,
.note-card .row-actions {
  font-size: 12px;
}
.auth-form-wrap .eyebrow,
.auth-story-footer,
.auth-copyright {
  font-size: 12px;
}
.auth-story-footer {
  color: #52644d;
}
.auth-mini-card strong,
.auth-mini-card div > span,
.auth-support span,
.auth-support a,
.auth-switch,
.password-toggle {
  font-size: 12px !important;
}
.auth-copyright {
  color: #5e6964;
}
.notification:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.public-main {
  min-height: 100vh;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 12% 8%, rgb(204 221 205 / 42%), transparent 30%),
    var(--canvas);
}
.accessibility-page {
  width: min(1080px, 100%);
  margin: 0 auto;
}
.accessibility-hero {
  padding: 34px clamp(24px, 5vw, 58px) 48px;
  border: 1px solid #dce6dd;
  border-radius: 20px;
  background: linear-gradient(135deg, #f1f6ef 0%, #ffffff 72%);
  box-shadow: var(--surface-shadow);
}
.accessibility-hero-copy {
  max-width: 760px;
  padding-top: 58px;
}
.accessibility-hero h1 {
  margin: 10px 0 15px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  color: #274c3d;
}
.accessibility-hero p {
  max-width: 690px;
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: #4f6058;
}
.accessibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.accessibility-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--surface-shadow);
}
.accessibility-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green);
}
.accessibility-card h2,
.accessibility-support h2 {
  margin-bottom: 10px;
  font-size: 20px;
}
.accessibility-card p,
.accessibility-support p,
.accessibility-footer p {
  margin: 0;
  color: #56635d;
  font-size: 14px;
  line-height: 1.8;
}
.accessibility-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 34px;
  border: 1px solid #e5dfc9;
  border-radius: 14px;
  background: #fbf7e9;
}
.accessibility-support > div {
  max-width: 700px;
}
.accessibility-support .btn {
  flex-shrink: 0;
}
.accessibility-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 0;
}
.accessibility-footer .btn svg {
  transform: rotate(180deg);
}
kbd {
  padding: 2px 7px;
  border: 1px solid #bcc7c1;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f7f9f8;
  color: #293730;
  font: 600 0.85em var(--app-font);
}
@media (max-width: 760px) {
  .page-heading {
    flex-direction: column;
  }
  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .page-heading > .page-actions .btn {
    flex: 1 1 auto;
    margin-top: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
  .page-heading p,
  .welcome-copy p {
    font-size: 14px;
  }
  .eyebrow,
  .brand-caption {
    font-size: 12px;
  }
  .stat-top,
  .stat-caption {
    font-size: 12px;
  }
  .public-main {
    padding: 20px 15px 30px;
  }
  .accessibility-hero {
    padding: 24px 22px 34px;
    border-radius: 14px;
  }
  .accessibility-hero-copy {
    padding-top: 42px;
  }
  .accessibility-hero h1 {
    font-size: 38px;
  }
  .accessibility-hero p {
    font-size: 16px;
  }
  .accessibility-grid {
    grid-template-columns: 1fr;
  }
  .accessibility-support,
  .accessibility-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .accessibility-footer p {
    text-align: center;
  }
  .footer-links {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .page-actions .btn {
    flex-basis: calc(50% - 5px);
  }
  .page-actions .btn-primary {
    flex-basis: 100%;
  }
  .page-footer {
    font-size: 12px;
  }
  .accessibility-card,
  .accessibility-support {
    padding: 24px 20px;
  }
}
@media (forced-colors: active) {
  * {
    box-shadow: none !important;
  }
  .nav-active-dot,
  .workspace-dot,
  .banner-label > span,
  .progress-track span {
    background: CanvasText;
  }
  .sidebar .nav-link.is-active,
  .stat-card,
  .panel,
  .accessibility-card {
    border: 1px solid CanvasText;
  }
}

/* Messaging workspace */
.messaging-view {
  min-width: 0;
}
.messaging-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(248px, 292px) minmax(430px, 1fr) minmax(250px, 310px);
  height: calc(100vh - 130px);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid #e1e7e3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(43 67 57 / 8%);
}
.messaging-shell--empty {
  grid-template-columns: minmax(248px, 292px) minmax(430px, 1fr) minmax(250px, 310px);
}
.messaging-kicker {
  color: #789085;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.45px;
}
.messaging-icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #e3e8e5;
  border-radius: 10px;
  background: #fff;
  color: #52645c;
  cursor: pointer;
}
.messaging-icon-button:hover {
  border-color: #bfd1c7;
  background: #f2f7f4;
  color: var(--green);
}
.messaging-icon-button.is-primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.messaging-icon-button i {
  font-size: 16px;
  line-height: 1;
}
.conversation-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #e7ebe8;
  background: #fbfcfb;
}
.conversation-rail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 20px 17px;
}
.conversation-rail__header h1 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -0.45px;
}
.conversation-rail__actions {
  display: flex;
  gap: 7px;
}
.conversation-search {
  position: relative;
  margin: 0 16px 14px;
}
.conversation-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  color: #8b9690;
  font-size: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}
.conversation-search input {
  width: 100%;
  height: 42px;
  padding: 0 13px 0 37px;
  border: 1px solid #e5e9e7;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.conversation-search input::placeholder {
  color: #9ca5a0;
}
.conversation-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 9px;
  color: #69766f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.conversation-filter-row strong {
  display: grid;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #eaf2ed;
  color: var(--green);
  font-size: 10px;
}
.conversation-list {
  min-height: 0;
  padding: 0 9px 18px;
  overflow-y: auto;
  scrollbar-color: #ccd8d1 transparent;
  scrollbar-width: thin;
}
.conversation-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-bottom: 3px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
}
.conversation-row:hover {
  background: #f0f5f2;
  color: var(--ink);
}
.conversation-row.is-active {
  border-color: #dce8e1;
  background: #eaf3ee;
  box-shadow: inset 3px 0 0 var(--green);
}
.messaging-avatar,
.message-avatar {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  outline: 1px solid #dfe6e1;
  background: #e8efe9;
  color: #4b695b;
  font-size: 13px;
  font-weight: 750;
}
.messaging-avatar::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #49a979;
  content: "";
}
.messaging-avatar.is-group {
  border-radius: 14px;
  background: #dfece5;
  color: var(--green);
}
.messaging-avatar.is-group::after {
  display: none;
}
.messaging-avatar img,
.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.conversation-row__copy,
.conversation-row__top,
.conversation-row__preview {
  min-width: 0;
}
.conversation-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.conversation-row__top strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-row__top time {
  flex: 0 0 auto;
  color: #9aa39e;
  font-size: 9px;
}
.conversation-row__preview {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7e8983;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-list-empty,
.conversation-no-results {
  padding: 34px 19px;
  text-align: center;
}
.conversation-list-empty > span {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 14px;
  background: #e9f1ec;
  color: var(--green);
}
.conversation-list-empty strong {
  display: block;
  font-size: 12px;
}
.conversation-list-empty p,
.conversation-no-results {
  margin: 6px 0 0;
  color: #89928d;
  font-size: 10px;
}
.conversation-main {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}
.conversation-header {
  display: flex;
  align-items: center;
  min-height: 82px;
  gap: 13px;
  padding: 15px 21px;
  border-bottom: 1px solid #e8ece9;
  background: rgb(255 255 255 / 94%);
}
.messaging-avatar.is-large {
  width: 46px;
  height: 46px;
}
.conversation-header__copy {
  min-width: 0;
  flex: 1;
}
.conversation-header__copy h1 {
  margin: 0 0 2px;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-header__copy p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #829088;
  font-size: 10px;
}
.conversation-presence {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4aac78;
}
.conversation-header__actions {
  display: flex;
  gap: 7px;
}
.conversation-back,
.inspector-toggle,
.inspector-close {
  display: none;
}
.conversation-history {
  min-height: 0;
  padding: 24px clamp(18px, 4vw, 48px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 10% 18%, rgb(88 129 109 / 5%) 0 2px, transparent 2.5px) 0 0 / 36px 36px,
    linear-gradient(180deg, #fbfcfb 0%, #f7faf8 100%);
  scrollbar-color: #c9d5ce transparent;
  scrollbar-width: thin;
}
.conversation-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0 23px;
  color: #929c97;
  font-size: 9px;
  font-weight: 700;
  text-transform: capitalize;
}
.conversation-date::before,
.conversation-date::after {
  height: 1px;
  flex: 1;
  background: #e3e9e5;
  content: "";
}
.message-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 14px;
}
.message-row.is-own {
  justify-content: flex-end;
}
.message-avatar {
  width: 31px;
  height: 31px;
  border-width: 1px;
  font-size: 10px;
}
.message-avatar.is-own {
  background: #dfeee6;
}
.message-cluster {
  max-width: min(72%, 620px);
}
.message-row.is-own .message-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.message-sender {
  display: block;
  margin: 0 0 5px 4px;
  color: #53675e;
  font-size: 10px;
}
.message-bubble {
  padding: 11px 14px;
  border: 1px solid #e3e8e5;
  border-radius: 6px 17px 17px 17px;
  background: #fff;
  box-shadow: 0 5px 16px rgb(39 65 53 / 5%);
  overflow-wrap: anywhere;
}
.message-row.is-own .message-bubble {
  border-color: #2c715b;
  border-radius: 17px 6px 17px 17px;
  background: linear-gradient(145deg, #2f8064, #24644f);
  color: #fff;
}
.message-bubble p {
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.message-bubble img,
.message-bubble video {
  display: block;
  max-width: min(100%, 430px);
  max-height: 300px;
  margin-top: 8px;
  border-radius: 11px;
  object-fit: contain;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 4px 0;
  color: #929c96;
  font-size: 9px;
}
.message-meta a,
.message-meta button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #74857c;
  font-size: inherit;
}
.message-meta a:hover,
.message-meta button:hover {
  color: var(--green);
  text-decoration: underline;
}
.chat-empty-state {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  padding: 35px;
  text-align: center;
}
.chat-empty-state > span {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 22px;
  background: #e6f0e9;
  color: var(--green);
  font-size: 27px;
  transform: rotate(-4deg);
}
.chat-empty-state h2 {
  margin-bottom: 7px;
  font-size: 18px;
}
.chat-empty-state p {
  max-width: 330px;
  margin: 0;
  font-size: 11px;
}
.conversation-composer {
  padding: 13px 18px 17px;
  border-top: 1px solid #e7ece8;
  background: #fff;
}
.composer-surface {
  overflow: hidden;
  border: 1px solid #cfdad4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(37 74 57 / 5%);
}
.composer-surface:focus-within {
  border-color: #6ca58e;
  box-shadow: 0 0 0 3px rgb(83 145 119 / 12%);
}
.composer-surface textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 132px;
  padding: 13px 15px 8px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px 9px;
}
.composer-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.composer-tool {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  margin: 0;
  place-items: center;
  border-radius: 9px;
  color: #687971;
  cursor: pointer;
}
.composer-tool:hover {
  background: #eef4f0;
  color: var(--green);
}
.attachment-name {
  overflow: hidden;
  color: #939c97;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-send {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.composer-send:hover {
  background: var(--green-dark);
}
.conversation-inspector {
  min-width: 0;
  overflow-y: auto;
  border-left: 1px solid #e7ebe8;
  background: #fcfdfc;
}
.inspector-heading {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e8ece9;
  color: #3f4b45;
  font-size: 12px;
  font-weight: 700;
}
.inspector-profile {
  padding: 28px 20px 23px;
  border-bottom: 1px solid #e8ece9;
  text-align: center;
}
.messaging-avatar.is-profile {
  width: 78px;
  height: 78px;
  margin: 0 auto 15px;
  font-size: 22px;
}
.messaging-avatar.is-profile.is-group {
  border-radius: 25px;
  font-size: 27px;
}
.inspector-profile h2 {
  margin: 0 0 3px;
  overflow-wrap: anywhere;
  font-size: 18px;
}
.inspector-profile p {
  margin: 0;
  color: #849089;
  font-size: 10px;
}
.inspector-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.inspector-section {
  padding: 20px;
  border-bottom: 1px solid #e8ece9;
}
.inspector-section h3,
.inspector-section__title h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: -0.1px;
}
.inspector-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.inspector-section__title > span {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #e9f1ec;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}
.inspector-members {
  display: grid;
  gap: 6px;
}
.inspector-member {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 0;
}
.inspector-member strong,
.inspector-member small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inspector-member strong {
  color: #3f4a45;
  font-size: 10px;
}
.inspector-member small {
  margin-top: 2px;
  color: #8d9691;
  font-size: 9px;
}
.inspector-more {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
}
.inspector-contact-data h3 {
  margin-bottom: 14px;
}
.inspector-contact-data dl,
.inspector-contact-data dl > div {
  margin: 0;
}
.inspector-contact-data dl > div {
  padding: 11px 0;
  border-bottom: 1px solid #edf0ee;
}
.inspector-contact-data dl > div:last-child {
  border-bottom: 0;
}
.inspector-contact-data dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #849089;
  font-size: 9px;
  font-weight: 600;
}
.inspector-contact-data dd {
  margin: 4px 0 0 21px;
  overflow-wrap: anywhere;
  color: #44514b;
  font-size: 10px;
}
.inspector-privacy {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 18px 20px;
  color: #89938e;
  font-size: 9px;
  line-height: 1.55;
}
.conversation-welcome {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px;
  background:
    radial-gradient(circle at 50% 35%, rgb(66 126 99 / 9%), transparent 34%),
    linear-gradient(180deg, #fff, #f8fbf9);
  text-align: center;
}
.conversation-welcome__art {
  position: relative;
  width: 210px;
  height: 190px;
  margin-bottom: 22px;
}
.welcome-orbit {
  position: absolute;
  inset: 28px;
  border: 1px solid #dbe7e0;
  border-radius: 48% 52% 45% 55%;
  transform: rotate(18deg);
}
.welcome-orbit.orbit-two {
  inset: 7px 46px;
  transform: rotate(-27deg);
}
.welcome-chat-card {
  position: absolute;
  display: grid;
  width: 61px;
  height: 61px;
  place-items: center;
  border: 1px solid #dce7e1;
  border-radius: 18px;
  background: #fff;
  color: var(--green);
  box-shadow: 0 13px 32px rgb(43 78 62 / 12%);
  font-size: 23px;
}
.welcome-chat-card.card-one { left: 24px; top: 72px; transform: rotate(-8deg); }
.welcome-chat-card.card-two { left: 82px; top: 25px; width: 72px; height: 72px; background: var(--green); color: #fff; z-index: 2; }
.welcome-chat-card.card-three { right: 7px; bottom: 19px; transform: rotate(7deg); }
.conversation-welcome h2 {
  margin: 8px 0 10px;
  font-size: 27px;
}
.conversation-welcome > p {
  max-width: 480px;
  margin-bottom: 22px;
  font-size: 12px;
}
.conversation-welcome__actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}
.conversation-inspector--guide {
  padding: 29px 22px;
}
.conversation-inspector--guide h2 {
  margin: 7px 0 22px;
  font-size: 19px;
}
.messaging-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.messaging-benefits li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #e8ece9;
}
.messaging-benefits li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #e9f1ec;
  color: var(--green);
}
.messaging-benefits strong {
  display: block;
  margin-bottom: 2px;
  color: #405048;
  font-size: 11px;
}
.messaging-benefits p {
  margin: 0;
  font-size: 9px;
  line-height: 1.55;
}
@media (max-width: 1320px) {
  .messaging-shell,
  .messaging-shell--empty {
    grid-template-columns: 252px minmax(390px, 1fr) 265px;
  }
}
@media (max-width: 1120px) {
  .messaging-shell,
  .messaging-shell--empty {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .conversation-inspector {
    display: none;
  }
  .conversation-inspector--guide {
    display: none;
  }
  .inspector-toggle {
    display: grid;
  }
  .messaging-shell.show-inspector .conversation-inspector:not(.conversation-inspector--guide) {
    position: absolute;
    z-index: 20;
    inset: 0 0 0 auto;
    display: block;
    width: min(330px, 88vw);
    box-shadow: -18px 0 50px rgb(24 55 41 / 14%);
  }
  .messaging-shell.show-inspector::after {
    position: absolute;
    z-index: 19;
    inset: 0;
    background: rgb(20 42 32 / 20%);
    content: "";
  }
  .inspector-close {
    display: grid;
  }
}
@media (max-width: 760px) {
  .app-content:has(.messaging-view) {
    padding: 12px;
  }
  .messaging-shell,
  .messaging-shell--empty {
    height: calc(100vh - 89px);
    min-height: 560px;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 14px;
  }
  .messaging-shell.has-active .conversation-rail {
    display: none;
  }
  .messaging-shell--empty .conversation-welcome,
  .messaging-shell--empty .conversation-inspector {
    display: none;
  }
  .conversation-rail {
    border-right: 0;
  }
  .conversation-rail__header {
    padding: 19px 17px 15px;
  }
  .conversation-list {
    padding-inline: 7px;
  }
  .conversation-row {
    padding: 12px 10px;
  }
  .conversation-back {
    display: grid;
  }
  .conversation-header {
    min-height: 70px;
    padding: 11px 12px;
  }
  .conversation-header__actions .messaging-icon-button:first-child {
    display: none;
  }
  .conversation-header__copy h1 {
    font-size: 15px;
  }
  .messaging-avatar.is-large {
    width: 40px;
    height: 40px;
  }
  .conversation-history {
    padding: 19px 12px;
  }
  .message-cluster {
    max-width: 82%;
  }
  .message-bubble {
    padding: 10px 12px;
  }
  .message-bubble p {
    font-size: 11px;
  }
  .message-avatar {
    width: 28px;
    height: 28px;
  }
  .conversation-composer {
    padding: 9px;
  }
  .attachment-name {
    max-width: 145px;
  }
}
@media (max-width: 430px) {
  .conversation-header {
    gap: 8px;
  }
  .conversation-header .messaging-avatar.is-large {
    display: none;
  }
  .conversation-header__actions {
    gap: 4px;
  }
  .message-cluster {
    max-width: 86%;
  }
  .message-row .message-avatar {
    display: none;
  }
  .composer-send span,
  .attachment-name {
    display: none;
  }
  .composer-send {
    width: 38px;
    padding: 0;
  }
}

/* Notes library */
.notes-library-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}
.notes-library-header h1 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}
.notes-library-header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.notes-library-tools {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 10px 28px rgb(43 67 58 / 5%);
}
.note-library-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  max-width: 720px;
  margin: 18px 20px 12px;
  border: 1px solid #dfe7e2;
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.note-library-search:focus-within {
  border-color: #78a997;
  box-shadow: 0 0 0 3px rgb(49 112 88 / 12%);
}
.note-library-search label {
  display: grid;
  place-items: center;
  padding-left: 15px;
  color: #718078;
}
.note-library-search label svg {
  width: 18px;
  height: 18px;
}
.note-library-search input[type="search"] {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  padding: 0 12px;
}
.note-library-search button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid #edf1ee;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 0 18px;
}
.note-filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 14px;
}
.note-filter-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #596760;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.note-filter-tabs a:hover {
  border-color: #d8e4dd;
  background: #f7faf8;
  color: var(--green);
}
.note-filter-tabs a.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.note-filter-tabs .note-filter-tag {
  border-color: #e3eae6;
  background: #fbfcfb;
  font-weight: 600;
}
.note-filter-tabs .note-filter-tag.is-active {
  border-color: #d7c48b;
  background: #f8efd5;
  color: #685516;
}
.notes-library-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 20px;
  border-top: 1px solid #edf1ee;
  color: #738078;
  font-size: 11px;
}
.notes-library-summary strong {
  color: var(--ink);
  font-size: 13px;
}
.notes-library-summary a {
  color: var(--green);
  font-weight: 700;
}
.notes-library-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  gap: 18px;
  align-items: stretch;
}
.note-library-card {
  position: relative;
  min-height: 286px;
  gap: 0;
  padding: 20px;
  border: 1px solid #e2e8e4;
  border-top: 1px solid #e2e8e4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(41 64 55 / 6%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.note-library-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 10px 10px 0 0;
  background: #8db7a7;
}
.note-library-card:nth-child(4n + 2)::before { background: #dbc16f; }
.note-library-card:nth-child(4n + 3)::before { background: #a6a0cf; }
.note-library-card:nth-child(4n + 4)::before { background: #d49a7c; }
.note-library-card:hover,
.note-library-card:focus-within {
  transform: translateY(-3px);
  border-color: #cbdad2;
  box-shadow: 0 15px 34px rgb(38 67 55 / 11%);
}
.note-library-card.is-pinned {
  border-color: #9ec9b8;
  background: linear-gradient(180deg, #fbfffd 0%, #fff 38%);
}
.note-library-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.note-library-card__header time {
  color: #86928b;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
.note-pin-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8b9690;
}
.note-pin-button:hover,
.note-pin-button.is-active {
  background: #e7f3ed;
  color: #22654f;
}
.note-library-card__title {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
}
.note-library-card__title:hover { color: var(--green); }
.note-library-card__title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}
.note-color-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: #5fa98d;
}
.note-library-card:nth-child(4n + 2) .note-color-dot { background: #d7ad31; }
.note-library-card:nth-child(4n + 3) .note-color-dot { background: #867bc1; }
.note-library-card:nth-child(4n + 4) .note-color-dot { background: #ca7952; }
.note-library-card__preview {
  display: -webkit-box;
  flex: 1;
  margin: 14px 0;
  overflow: hidden;
  color: #59645f;
  font-size: 12px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.note-library-card .note-tags {
  margin: 0 0 10px;
}
.note-library-card .note-tags a {
  padding: 4px 7px;
  border: 1px solid #e1e9e4;
  border-radius: 999px;
  background: #f7faf8;
  color: #587065;
  font-size: 9px;
  font-weight: 650;
}
.note-library-card .note-tags a:hover {
  border-color: #a9c9ba;
  color: var(--green);
}
.note-library-card .note-task-link {
  max-width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f2f7f4;
}
.note-library-card .note-task-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-library-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #edf1ee;
}
.note-open-link {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.note-card-menu {
  position: relative;
}
.note-card-menu summary {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #66736c;
  cursor: pointer;
  list-style: none;
}
.note-card-menu summary::-webkit-details-marker { display: none; }
.note-card-menu summary:hover,
.note-card-menu[open] summary { background: #eef3f0; color: var(--green); }
.note-card-menu > div {
  position: absolute;
  right: 0;
  bottom: 40px;
  z-index: 5;
  display: grid;
  min-width: 142px;
  padding: 6px;
  border: 1px solid #dfe7e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(37 58 49 / 16%);
}
.note-card-menu a,
.note-card-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #46534d;
  font-size: 11px;
  text-align: left;
}
.note-card-menu a:hover,
.note-card-menu button:hover { background: #f3f6f4; color: var(--green); }
.note-card-menu button:last-child { color: #a4493d; }
.notes-empty-state { min-height: 320px; }
.note-editor-form {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 42px);
}
.note-editor-form .note-input + .note-editor,
.note-editor-form .note-editor.note-frame {
  border-color: #dde6e1;
  border-radius: 12px;
  overflow: hidden;
}
.note-document {
  max-width: 920px;
  padding: clamp(26px, 5vw, 56px);
  border-top: 4px solid #93bca9;
}

@media (max-width: 700px) {
  .notes-library-header { align-items: flex-start; }
  .notes-library-header p { font-size: 12px; }
  .note-library-search { margin: 14px 14px 10px; }
  .note-filter-tabs {
    flex-wrap: nowrap;
    padding-inline: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .note-filter-tabs::-webkit-scrollbar { display: none; }
  .notes-library-summary { padding-inline: 14px; }
  .note-library-card { min-height: 250px; }
}
@media (max-width: 480px) {
  .notes-library-header { display: grid; }
  .notes-library-header .btn { width: 100%; }
  .note-library-search button { padding-inline: 12px; font-size: 10px; }
  .note-filter-tabs { margin-right: -14px; }
}

/* Student workflow improvements */
.inline-form { display: inline; margin: 0; }
.note-card { display: flex; flex-direction: column; gap: 10px; }
.note-card.is-pinned { border-color: #9cc9b5; box-shadow: 0 12px 34px rgb(28 88 65 / 10%); }
.note-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note-pin-label, .theme-accessibility-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #e6f3ec; color: #1d664f; font-size: 10px; font-weight: 700; }
.note-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.note-tags span { padding: 5px 9px; border: 1px solid #dfe9e3; border-radius: 999px; background: #f5faf7; color: #416356; font-size: 10px; }
.note-tags--detail { margin: 14px 0; }
.note-task-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: var(--green); font-size: 11px; font-weight: 700; }
.note-pin-control, .theme-motion-control { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 20px; }
.autosave-status { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; margin: 2px 0 18px; padding: 7px 11px; border-radius: 999px; background: #f3f5f4; color: #536159; font-size: 11px; }
.autosave-dot { width: 8px; height: 8px; border-radius: 50%; background: #a4ada8; }
.autosave-status[data-state="saving"] .autosave-dot { background: #d39b35; animation: autosave-pulse 1s infinite; }
.autosave-status[data-state="saved"] { background: #e8f5ee; color: #1f674f; }
.autosave-status[data-state="saved"] .autosave-dot { background: #2f8a67; }
.autosave-status[data-state="error"] { background: #fff0eb; color: #9b432f; }
.autosave-status[data-state="error"] .autosave-dot { background: #c35a3e; }
@keyframes autosave-pulse { 50% { opacity: .35; } }
.linked-task-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.linked-task-panel h2 { margin: 5px 0; font-size: 18px; }
.linked-task-panel p { margin: 0; color: var(--muted); font-size: 11px; }

.quick-task-form, .calendar-editor-form { max-width: 860px; padding: clamp(22px, 4vw, 42px); }
.quick-task-form .form-control-lg { min-height: 56px; font-size: 18px; }
.optional-details { margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.optional-details summary { display: flex; justify-content: space-between; padding: 15px 17px; cursor: pointer; color: var(--green); font-weight: 700; }
.optional-details summary span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.optional-details__body { padding: 0 17px 17px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.task-list-modern { display: grid; gap: 1px; background: var(--line); }
.task-list-card { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 16px 28px; padding: 22px; background: #fff; }
.task-list-card__main h2 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.task-list-card__main p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.task-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #52635a; font-size: 10px; }
.task-card-meta > span:first-child { display: inline-flex; gap: 6px; }
.task-card-progress { align-self: center; }
.task-card-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 10px; }
.task-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e8eeea; }
.task-progress span { display: block; height: 100%; border-radius: inherit; background: #2e8062; }
.task-quick-steps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.task-quick-steps form { margin: 0; }
.quick-step { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #dbe6df; border-radius: 9px; background: #fff; color: #33483e; font-size: 10px; }
.quick-step span, .step-check { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #9db8aa; border-radius: 6px; background: #fff; color: #fff; }
.quick-step.is-complete { color: #78847e; text-decoration: line-through; }
.quick-step.is-complete span, .task-step.is-complete .step-check { background: var(--green); border-color: var(--green); }
.task-list-card > .row-actions { grid-column: 1 / -1; }
.task-detail-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 18px; }
.task-detail-card, .task-steps-panel { padding: 25px; }
.task-detail-status { display: flex; gap: 8px; margin-bottom: 25px; }
.task-detail-card h2 { font-size: 14px; }
.detail-list { display: grid; gap: 12px; margin-top: 24px; }
.detail-list div { display: flex; justify-content: space-between; gap: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-list dt, .detail-list dd { margin: 0; font-size: 11px; }
.task-step-list { display: grid; margin: 18px 0; }
.task-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-step form { margin: 0; }
.step-check { width: 25px; height: 25px; cursor: pointer; }
.task-step.is-complete > span { color: var(--muted); text-decoration: line-through; }
.add-step-form { display: flex; gap: 8px; margin-top: 18px; }
.linked-notes-section { margin-top: 30px; }

.calendar-legend { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 15px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #4d6056; font-size: 10px; }
.calendar-task { border-style: dashed !important; font-weight: 700; }
.calendar-task .fc-time { display: none; }
.overlap-warning { display: flex; gap: 12px; margin-bottom: 20px; padding: 15px; border: 1px solid #edc691; border-radius: 12px; background: #fff8e9; color: #704c19; }
.overlap-warning p { margin: 3px 0 0; font-size: 11px; }
[data-event-end-group][hidden], [data-recurrence-until][hidden] { display: none !important; }

.theme-motion-control span { display: grid; }
.theme-motion-control small { color: var(--muted); font-size: 10px; }
.theme-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.theme-preview-heading > span:last-child { font-size: 9px; color: #54635b; }
.theme-preview-form { display: grid; gap: 7px; margin-top: 14px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(25 60 45 / 8%); }
.theme-preview-form label { font-size: 10px; font-weight: 700; }
.theme-preview-form input { width: 100%; padding: 9px; border: 1px solid #cfdcd4; border-radius: 8px; background: #fff; color: #263a31; }
.theme-preview-form button { width: fit-content; padding: 8px 11px; border: 0; border-radius: 8px; background: #245c4c; color: #fff; }
.theme-preview-calendar { margin-top: 14px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgb(25 60 45 / 8%); }
.theme-preview-calendar div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 9px; text-align: center; }
.theme-preview-calendar span { font-size: 9px; color: #66756d; }
.theme-preview-calendar i { padding: 6px 2px; border-radius: 7px; font-style: normal; font-size: 10px; }
.theme-preview-calendar i.selected { background: #245c4c; color: #fff; }
.theme-live-preview.reduce-motion * { animation: none !important; transition: none !important; }

.academic-alert-row { grid-template-columns: auto minmax(0, 1fr) auto minmax(190px, auto); }
.alert-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.alert-actions form { margin: 0; }
.home-attention { margin-bottom: 18px; padding: 22px; }
.home-attention-list { display: grid; gap: 1px; background: var(--line); }
.home-attention-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 13px; background: #fff; }
.home-attention-list small { display: block; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-attention-list strong { display: block; font-size: 12px; }
.home-attention-list p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.home-attention-list form { margin: 0; }

@media (max-width: 800px) {
  .task-list-card { grid-template-columns: 1fr; }
  .task-card-progress, .task-quick-steps, .task-list-card > .row-actions { grid-column: 1; }
  .task-detail-layout { grid-template-columns: 1fr; }
  .academic-alert-row { grid-template-columns: auto minmax(0, 1fr); }
  .academic-alert-row time, .alert-actions { grid-column: 2; }
  .alert-actions { justify-content: flex-start; flex-wrap: wrap; }
  .home-attention-list article { grid-template-columns: auto minmax(0, 1fr); }
  .home-attention-list article > a, .home-attention-list article > form { grid-column: 2; }
}
@media (max-width: 520px) {
  .linked-task-panel, .add-step-form { align-items: stretch; flex-direction: column; }
  .task-list-card { padding: 17px; }
  .calendar-legend { align-items: stretch; flex-direction: column; }
}

/* Apuntes por área y editor enriquecido */
.note-area-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px 15px;
  overflow-x: auto;
  border-top: 1px solid #edf1ee;
}
.note-area-tabs > span { margin-right: 4px; color: #7a8780; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.note-area-tabs a { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #dfe8e3; border-radius: 999px; color: #52645b; font-size: 10px; font-weight: 700; }
.note-area-tabs a:hover, .note-area-tabs a.is-active { border-color: #8bb9a5; background: #eaf5ef; color: #1d6049; }
.notes-area-list { display: grid; gap: 34px; }
.notes-area-section { min-width: 0; }
.notes-area-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.notes-area-heading > div { display: flex; align-items: center; gap: 11px; }
.notes-area-heading h2, .notes-area-heading p { margin: 0; }
.notes-area-heading h2 { font-size: 16px; }
.notes-area-heading p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.notes-area-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e8f3ed; color: #286a52; }
.notes-drag-hint { display: inline-flex; align-items: center; gap: 5px; color: #748078; font-size: 10px; }
.note-library-card[draggable="true"] { cursor: default; }
.note-library-card.is-dragging { opacity: .42; border-color: #4f9679; box-shadow: 0 18px 42px rgb(29 87 64 / 18%); }
.notes-library-grid.is-saving { opacity: .72; pointer-events: none; }
.note-priority-control { display: flex; align-items: center; gap: 3px; }
.note-drag-handle { display: grid; place-items: center; width: 27px; height: 29px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #849089; cursor: grab; }
.note-drag-handle:hover, .note-drag-handle:focus-visible { background: #edf4f0; color: var(--green); }
.note-drag-handle:active { cursor: grabbing; }
.note-priority-number { min-width: 22px; color: #8b9690; font-size: 9px; font-weight: 800; }
.note-library-card__header { display: grid; grid-template-columns: 1fr auto auto; }
.note-library-card__title h3 { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.35; }
.note-card-menu form { margin: 0; }
.note-card-menu .note-delete-action { color: #a4493d; }
.note-card-menu button:last-child:not(.note-delete-action) { color: #46534d; }
.note-compose-heading { max-width: 1180px; margin-inline: auto; }
.note-editor-form { max-width: 1180px; }
.note-compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: clamp(24px, 4vw, 48px); }
.note-compose-main { min-width: 0; }
.note-compose-aside { align-self: start; padding: 20px; border: 1px solid #e1e9e4; border-radius: 15px; background: #f8faf9; }
.note-compose-aside__heading { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.note-compose-aside__heading > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e5f1eb; color: #26684f; }
.note-compose-aside__heading h2, .note-compose-aside__heading p { margin: 0; }
.note-compose-aside__heading h2 { font-size: 14px; }
.note-compose-aside__heading p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.field-label-row, .field-hint-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label-row > span, .field-hint-row > span { color: #839087; font-size: 9px; }
.note-pin-control { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 0; padding: 12px; border: 1px solid #dde7e1; border-radius: 11px; background: #fff; }
.note-pin-control > span { display: grid; gap: 2px; }
.note-pin-control strong { color: #31463c; font-size: 11px; }
.note-pin-control small { color: var(--muted); font-size: 9px; }
.note-save-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.note-save-row .autosave-status, .note-save-row .form-actions { margin: 0; }
.note-body mark, .note-editable mark { padding: .08em .18em; border-radius: 3px; background: #fff0a6; color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.note-editor-form .note-editor.note-frame { border: 1px solid #dce6e0; border-radius: 12px; box-shadow: none; }
.note-editor-form .note-toolbar { border-bottom-color: #e4ebe7; background: #f8faf9; }
.note-editor-form .note-btn { border-color: transparent; background: transparent; }
.note-editor-form .note-btn:hover { background: #e9f2ed; }

/* Tareas 2026: jerarquía clara, formularios por bloques y progreso visible */
.tasks-page-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: clamp(22px, 4vw, 38px); border-radius: 22px; background: linear-gradient(125deg, #123f31, #276c53); color: #fff; box-shadow: 0 18px 45px rgb(28 76 57 / 16%); }
.tasks-page-hero h1 { margin: 4px 0 7px; color: #fff; font-size: clamp(28px, 4vw, 44px); }
.tasks-page-hero p { max-width: 610px; margin: 0; color: #d8ebe3; }
.tasks-page-hero .eyebrow { color: #a7ddc5; }
.tasks-page-hero .btn { background: #fff; color: #174d3b; box-shadow: none; }
.task-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.task-overview article { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid #e0e8e3; border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgb(32 64 50 / 5%); }
.task-overview__icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; font-size: 16px; }
.task-overview__icon.pending { background: #e8f3ed; color: #267052; }
.task-overview__icon.soon { background: #fff4d9; color: #a36e08; }
.task-overview__icon.done { background: #e9eefb; color: #536ca4; }
.task-overview article div { display: grid; }
.task-overview strong { color: var(--ink); font-size: 22px; line-height: 1; }
.task-overview article div span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.task-category-tabs { display: flex; gap: 7px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-inline: contain; }
.task-category-tabs::-webkit-scrollbar { display: none; }
.task-category-tabs a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 9px 13px; border: 1px solid #dfe7e2; border-radius: 999px; background: #fff; color: #506159; font-size: 10px; font-weight: 700; }
.task-category-tabs a:hover, .task-category-tabs a.is-active { border-color: #2f765b; background: #e8f3ed; color: #1b5a43; }
.task-board-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 15px; }
.task-board-card { position: relative; display: grid; grid-template-columns: 5px minmax(0, 1fr); min-height: 310px; overflow: hidden; border: 1px solid #dfe7e2; border-radius: 17px; background: #fff; box-shadow: 0 9px 26px rgb(35 67 53 / 6%); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.task-board-card:hover, .task-board-card:focus-within { transform: translateY(-3px); border-color: #b8cec2; box-shadow: 0 16px 38px rgb(35 67 53 / 11%); }
.task-board-card__accent { background: #91b4a5; }
.task-board-card__accent.priority-1 { background: #7ea5c9; }
.task-board-card__accent.priority-2 { background: #deb75b; }
.task-board-card__accent.priority-3 { background: #d26f5d; }
.task-board-card__body { display: flex; min-width: 0; flex-direction: column; padding: 19px 19px 16px; }
.task-board-card__body > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-card-menu { z-index: 3; flex: 0 0 auto; }
.task-card-menu > div {
  top: 40px;
  right: 0;
  bottom: auto;
  z-index: 12;
  min-width: 168px;
}
.task-card-menu[open] { z-index: 20; }
.task-card-menu[open] > div { animation: action-menu-in 120ms ease-out; }
.task-card-menu a,
.task-card-menu button { font-size: 11px; font-weight: 650; }
@keyframes action-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.task-card-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.task-category-label { display: inline-flex; align-items: center; gap: 5px; color: #52675d; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.task-board-card__title h2 { margin: 18px 0 7px; color: var(--ink); font-size: 18px; line-height: 1.35; }
.task-board-card__body > p { display: -webkit-box; min-height: 42px; margin: 0 0 13px; overflow: hidden; color: #66736d; font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-board-card__due { display: flex; align-items: center; gap: 6px; width: fit-content; padding: 7px 9px; border-radius: 8px; background: #f1f5f3; color: #486057; font-size: 10px; font-weight: 700; }
.task-board-card__due span { color: #7b8982; font-weight: 500; }
.task-board-card__due.soon { background: #fff5dc; color: #8a5c08; }
.task-board-card__due.overdue { background: #fff0ed; color: #a34132; }
.task-board-card__progress { margin-top: auto; padding-top: 18px; }
.task-board-card__progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; padding-right: 40px; margin-bottom: 7px; color: #6d7973; font-size: 9px; }
.task-board-card__progress strong { color: #405148; }
.task-board-card .task-quick-steps { margin-top: 13px; }
.task-board-card__open { position: absolute; right: 13px; bottom: 13px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #edf4f0; color: #26664e; }
.task-board-card__open:hover { background: #26664e; color: #fff; }
.tasks-empty-state { min-height: 340px; }

.task-editor-heading, .task-editor-form { max-width: 1120px; margin-inline: auto; }
.task-editor-form { overflow: hidden; padding: 0; }
.task-form-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); }
.task-form-main, .task-form-aside { padding: clamp(24px, 4vw, 40px); }
.task-form-aside { border-left: 1px solid #e2e9e5; background: #f7faf8; }
.task-form-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.task-form-section-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: #24684f; color: #fff; font-size: 12px; font-weight: 800; }
.task-form-section-heading h2, .task-form-section-heading p { margin: 0; }
.task-form-section-heading h2 { color: var(--ink); font-size: 17px; }
.task-form-section-heading p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.task-form-section-heading.compact { margin-bottom: 22px; }
.task-next-step-tip { display: flex; gap: 11px; margin-top: 24px; padding: 14px; border: 1px solid #d9e8df; border-radius: 12px; background: #f0f7f3; color: #275c48; }
.task-next-step-tip p, .task-next-step-tip strong { margin: 0; font-size: 10px; }
.task-next-step-tip p { margin-top: 2px; color: #587066; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; top: 50%; left: 13px; z-index: 1; transform: translateY(-50%); color: #75837c; }
.input-with-icon input { padding-left: 38px; }
.task-priority-field, .task-status-field { margin: 18px 0 0; padding: 0; border: 0; }
.task-priority-field legend, .task-status-field legend { margin-bottom: 8px; color: #34483e; font-size: 10px; font-weight: 750; }
.task-choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.task-choice-row input, .task-status-choices input { position: absolute; opacity: 0; }
.task-choice-row label, .task-status-choices label { margin: 0; cursor: pointer; }
.task-choice-row label > span { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 39px; border: 1px solid #dae4de; border-radius: 9px; background: #fff; color: #596860; font-size: 9px; font-weight: 700; }
.task-choice-row label i { width: 7px; height: 7px; border-radius: 50%; background: #7ea5c9; }
.task-choice-row .priority-medium i { background: #d4a943; }
.task-choice-row .priority-high i { background: #cc6453; }
.task-choice-row input:checked + span, .task-choice-row input:focus-visible + span { border-color: #367c60; box-shadow: 0 0 0 2px rgb(54 124 96 / 12%); color: #215c45; }
.task-status-choices { display: grid; gap: 6px; }
.task-status-choices label > span { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 11px; border: 1px solid #dae4de; border-radius: 9px; background: #fff; color: #53645b; font-size: 10px; }
.task-status-choices input:checked + span, .task-status-choices input:focus-visible + span { border-color: #367c60; background: #edf6f1; color: #215c45; box-shadow: 0 0 0 2px rgb(54 124 96 / 10%); }
.task-created-meta { margin-top: 20px; padding-top: 14px; border-top: 1px solid #e0e8e3; color: #76837c; font-size: 9px; }
.task-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(24px, 4vw, 40px); border-top: 1px solid #e1e8e4; background: #fbfcfb; }
.task-form-footer p, .task-form-footer .form-actions { margin: 0; }
.task-form-footer p { color: #6c7972; font-size: 9px; }

.task-detail-hero { margin: -10px 0 22px; padding: clamp(24px, 4vw, 40px); border-radius: 20px; background: linear-gradient(130deg, #f2f8f5, #fff); border: 1px solid #dce8e1; }
.task-back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: #4c665a; font-size: 10px; font-weight: 700; }
.task-detail-hero__content { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.task-detail-hero h1 { max-width: 750px; margin: 13px 0 9px; font-size: clamp(26px, 4vw, 40px); }
.task-detail-hero p { margin: 0; color: #5f6f67; font-size: 11px; }
.task-detail-modern-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); gap: 18px; }
.task-detail-modern-layout main, .task-detail-modern-layout > aside { display: grid; align-content: start; gap: 18px; }
.task-description-panel, .task-steps-panel--modern, .task-progress-summary, .task-metadata-panel { padding: 24px; }
.panel-title-icon { display: flex; align-items: center; gap: 11px; }
.panel-title-icon > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e9f3ee; color: #28664f; }
.panel-title-icon h2, .panel-title-icon p { margin: 0; }
.panel-title-icon h2 { font-size: 15px; }
.panel-title-icon p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.task-description-content { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e7ece9; color: #526159; font-size: 12px; line-height: 1.75; white-space: pre-line; }
.task-steps-panel--modern .panel-heading h2 { margin: 3px 0; }
.task-progress-summary { display: flex; align-items: center; gap: 15px; }
.task-progress-summary h2, .task-progress-summary p { margin: 0; }
.task-progress-summary h2 { font-size: 13px; }
.task-progress-summary p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.task-progress-ring { --progress: 0; position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(#2f8061 calc(var(--progress) * 1%), #e6eee9 0); }
.task-progress-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.task-progress-ring strong { position: relative; z-index: 1; color: #255e48; font-size: 12px; }
.task-metadata-panel h2 { margin: 0 0 12px; font-size: 13px; }
.task-metadata-panel dl { display: grid; gap: 0; margin: 0; }
.task-metadata-panel dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #e7ece9; }
.task-metadata-panel dt, .task-metadata-panel dd { margin: 0; font-size: 9px; }
.task-metadata-panel dt { color: var(--muted); }
.task-metadata-panel dd { color: #364b41; font-weight: 700; }
.linked-notes-section { padding: 24px; border: 1px solid #dfe7e2; border-radius: 16px; background: #fff; }
.linked-notes-empty { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 90px; margin-top: 14px; border: 1px dashed #d7e2dc; border-radius: 12px; color: #77857e; }
.linked-notes-empty p { margin: 0; font-size: 10px; }

@media (max-width: 900px) {
  .note-compose-grid, .task-form-layout, .task-detail-modern-layout { grid-template-columns: 1fr; }
  .note-compose-aside { order: -1; }
  .task-form-aside { border-top: 1px solid #e2e9e5; border-left: 0; }
}
@media (max-width: 700px) {
  .tasks-page-hero, .task-detail-hero__content, .task-form-footer, .note-save-row { align-items: stretch; flex-direction: column; }
  .task-overview { grid-template-columns: 1fr; }
  .task-overview article { padding: 12px 14px; }
  .tasks-page-hero .btn, .task-detail-hero__content .btn { width: 100%; }
  .notes-area-heading { align-items: flex-start; }
  .notes-drag-hint { display: none; }
  .note-compose-main, .note-compose-aside, .task-form-main, .task-form-aside { padding: 21px; }
}
@media (max-width: 480px) {
  .task-choice-row { grid-template-columns: 1fr; }
  .task-category-tabs { margin-right: -14px; }
  .note-library-card__header { grid-template-columns: 1fr auto; }
  .note-library-card__header time { display: none; }
}

/* Reliable pointer and keyboard reordering for apuntes */
.note-drag-handle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #718078;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.note-drag-handle:hover,
.note-drag-handle:focus-visible {
  border-color: #bcd4c8;
  background: #eaf4ef;
  color: var(--green);
}
.note-drag-handle:active,
.notes-dragging .note-drag-handle { cursor: grabbing; }
.notes-dragging {
  cursor: grabbing;
  user-select: none;
}
.notes-dragging .note-library-card:not(.is-dragging) {
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.note-library-card.is-dragging {
  z-index: 6;
  opacity: .7;
  transform: scale(1.018);
  border-color: #4f9679;
  background: #f9fffb;
  box-shadow: 0 20px 46px rgb(29 87 64 / 20%);
}
