
@layer tokens, base, domain, components, overrides;

@font-face{font-family:"PT Sans";src:url("../fonts/PTSans-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"PT Sans";src:url("../fonts/PTSans-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:"PT Sans";src:url("../fonts/PTSans-Italic.ttf") format("truetype");font-style:italic;font-weight:400;font-display:swap}
@font-face{font-family:"Neutral Face";src:url("../fonts/NeutralFace.otf") format("opentype");font-style:normal;font-weight:400;font-display:swap}

@layer tokens{
  :root{--bg:#f2f4f7;--card:#fff;--surface:#fff;--surface-strong:#fff;--surface-soft:#eef4ef;--text:#17211c;--ink:#17211c;--muted:#6d7973;--brand:#0c8f6c;--brand-dark:#087454;--brand-soft:#e7f5f0;--line:#dce3df;--danger:#b42318;--warning:#b7791f;--radius-sm:8px;--radius-md:12px;--radius-lg:18px;--shadow:0 12px 30px #15202b20;--font-body:"PT Sans",Arial,sans-serif;--font-display:"Neutral Face","PT Sans",Arial,sans-serif;--topbar-height:65px}
}

/* Task workspace: list and user-configurable kanban. */
@layer overrides {
  .page-ticket{background-image: url(../pattern.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;}.page-ticket .shell{width:100%;padding:0}.task-shell{display:grid;gap:16px}
  .task-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(23,33,28,.05)}
  .task-page-header h1{font-size:clamp(26px,4vw,36px)}.task-page-header p{color:var(--muted)}.task-page-header>button{width:auto;white-space:nowrap}
  .task-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.task-view-switch{display:flex;padding:4px;border:1px solid var(--line);border-radius:12px;background:#fff}.task-view-switch button{width:auto;min-height:38px;padding:0 14px;background:transparent;color:var(--muted)}.task-view-switch button.is-active{background:var(--brand);color:#fff}
  .task-status-settings{position:relative}.task-status-settings>summary{padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;list-style:none}.task-status-settings__panel{position:absolute;z-index:5;right:0;top:calc(100% + 8px);width:min(520px,calc(100vw - 32px));padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 18px 46px #17211c24}.task-status-list{display:grid;gap:8px;margin-bottom:14px}.task-status-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.task-status-editor>form:first-child{display:grid;grid-template-columns:42px minmax(120px,1fr) auto;gap:7px}.task-status-editor input[type=color]{padding:3px}.task-status-editor button{width:auto;min-height:38px;padding:0 10px}.task-status-editor .task-status-delete{width:38px;padding:0;background:#fff;color:var(--danger);border:1px solid #f2c7c3}.task-new-status{display:grid;grid-template-columns:1fr 46px auto;gap:8px}.task-new-status input[type=color]{padding:3px}
  .task-list{display:grid;gap:12px}.task-card{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(23,33,28,.045)}.task-card__header{display:flex;justify-content:space-between;gap:12px}.task-card__header h3{margin-top:10px}.task-card__header time{color:var(--muted);font-size:13px;white-space:nowrap}.task-card__badges{display:flex;flex-wrap:wrap;gap:7px}.task-status{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:color-mix(in srgb,var(--status-color) 14%,white);color:var(--status-color);font-size:13px}.task-card__description{white-space:pre-wrap;color:#3d4944}.task-card__people{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--line)}.task-card__people small,.avatar-line small{display:block;color:var(--muted)}.task-watchers{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.task-watchers .avatar{width:32px;height:32px;margin-left:-8px}.task-watchers .avatar:first-child{margin-left:0}.task-status-form{max-width:260px}.task-status-form label{display:grid;gap:6px}.task-drag-hint{font-size:12px;color:var(--muted)}
  .task-card__details{padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#f8faf9}.task-card__details>summary{cursor:pointer}.task-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.task-watcher-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.task-watcher-list>span{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#e9f3ef}.task-watcher-list form{display:inline}.task-watcher-list button{width:20px;min-height:20px;padding:0;background:transparent;color:var(--muted)}.task-unwatch{width:auto}
  .task-board{display:flex;align-items:flex-start;gap:14px;overflow-x:auto;padding:2px 2px 18px}.task-column{flex:0 0 310px;border:1px solid var(--line);border-radius:16px;background:#e9eeeb}.task-column>header{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;border-top:4px solid var(--status-color);border-radius:16px 16px 0 0;background:#fff}.task-column>header b{display:grid;place-items:center;min-width:26px;height:26px;border-radius:999px;background:#eef2f0}.task-column__cards{display:grid;gap:10px;min-height:160px;padding:10px}.task-column__cards.is-over{background:color-mix(in srgb,var(--brand) 8%,transparent)}.task-column .task-card{padding:14px;cursor:default}.task-column .task-card[draggable=true]{cursor:grab}.task-column .task-card.is-dragging{opacity:.45}.task-column .task-card__header{display:grid}.task-column .task-card__people{display:grid}.task-column .task-actions{grid-template-columns:1fr}
  .task-dialog{width:min(680px,calc(100% - 24px));max-height:90vh;padding:0;border:0;border-radius:20px;box-shadow:0 24px 70px rgba(15,35,27,.24)}.task-dialog::backdrop{background:#0b1d1773;backdrop-filter:blur(3px)}.task-dialog .calendar-form{padding:24px;overflow:auto;max-height:90vh}.task-dialog header{display:flex;justify-content:space-between;gap:16px}.task-dialog__close{width:38px;min-height:38px;padding:0;border-radius:50%;background:#eef2f0;color:var(--text);font-size:23px}.task-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:190px;overflow:auto}.task-picker label{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid var(--line);border-radius:10px}.task-picker input{width:auto}.task-picker small{display:block;color:var(--muted)}
  @media(max-width:700px){.task-page-header,.task-toolbar,.task-card__people{align-items:stretch;flex-direction:column}.task-page-header>button{width:100%}.task-status-settings__panel{position:fixed;top:76px;right:10px}.task-actions,.task-picker{grid-template-columns:1fr}.task-new-status{grid-template-columns:1fr 46px}.task-new-status button{grid-column:1/-1}.task-card__header{display:grid}.task-view-switch button{width:50%}}
}

/* Avatar images use the adjacent initial only as a load-error fallback. */
.avatar-badge[hidden],
.comment__avatar[hidden],
.wall-item__avatar[hidden] {
  display: none !important;
}

.wall-item__avatar--image {
  object-fit: cover;
}

.wall-item__delete{display:flex;justify-content:flex-end;margin-top:12px}.wall-item__delete button{min-height:auto;padding:7px 10px;border:0;background:transparent;color:#a33;font-size:13px}.wall-item__delete button:hover{background:#fff0f0;color:#7d2020}

@layer base{
  *,*::before,*::after{box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{margin:0;min-height:100vh;background-image:url("../pattern.png");background-repeat:no-repeat;background-position:center;background-size:cover;background-attachment:fixed;color:var(--text);font-family:var(--font-body);font-size:16px;line-height:1.45}
  body,button,input,select,textarea{font-family:var(--font-body)}
  h1,h2,h3,h4,h5,h6{color:var(--text);font-family:var(--font-display);font-weight:400;text-transform:uppercase}
  a{color:inherit}
  img{max-width:100%}
  form{margin:0}
  button,input,select,textarea{font-size:inherit}
  button,a{-webkit-tap-highlight-color:transparent}
  :focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 30%,transparent);outline-offset:2px}
}

@layer overrides{
  .message{padding:12px 16px;border-radius:var(--radius-md)}
  .message--error{background:#fff0ee;color:var(--danger)}
  .message--success{background:var(--brand-soft);color:var(--brand-dark)}
  .button,.primary-button,.secondary-button,.composer-submit,.portal-form__submit{border-radius:var(--radius-sm);font-family:var(--font-body);font-weight:00}
  @media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
}

/* Domain: auth.css */
@layer domain {
@scope (body.page-auth) {










:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --text: #111d2a;
  --muted: #6d7d86;
  --brand: #25b98b;
  --brand-dark: #0c8f6c;
  --blue: #17b3f0;
  --ink: #101b35;
  --line: #dce7e4;
  --stone: #b5c5cd;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 27, 53, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PT Sans";
  color: var(--text);
  background:
    linear-gradient(135deg, var(--brand) 0%, var(--line) 100%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel {
  padding: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 143, 108, 0.1);
  color: var(--brand-dark);
  font-family: "Neutral Face", "PT Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0 0 14px;
  font-family: "Neutral Face", "PT Sans", sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
}

h2 {
  font-size: 28px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.card {
  padding: 24px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(91, 103, 115, 0.22);
  background: var(--surface-soft);
  font: inherit;
}

button,
.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

button:hover,
.button-link:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid rgba(12, 143, 108, 0.22);
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}

.message--light {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(12, 143, 108, 0.08);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

@media (max-width: 860px) {
  .hero,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }
}
body{background-color:#f2f4f7;background-image:url("../pattern.png");background-repeat:no-repeat;background-position:center;background-size:cover;background-attachment:fixed;font-family:"PT Sans",Arial,sans-serif}
}

}

/* Domain: auth-pages.css */
@layer domain {
@scope (body.page-auth) {
body.login-page {
  background: #ffffff;
}

body.login-page .shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.portal-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(380px, 1fr);
}

.portal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  /* background: #f8f8f7; */
}

.portal-brand__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(820px, 100%);
  width: 100%;
}

.portal-brand__copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.portal-brand__logo {
  width: min(640px, 60vw);
  max-width: 100%;
  height: auto;
}

.portal-brand__copy h1 {
  margin: 0;
  font-family: "Neutral Face", "PT Sans", sans-serif;
  font-size: clamp(30px, 3.8vw, 60px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--brand-dark);
  line-height: 0.98;
}

.portal-brand__copy p {
  margin: 0;
  font-family: "PT Sans";
  font-size: clamp(16px, 1.35vw, 22px);
  color: var(--brand-dark);
  line-height: 1.12;
}

.portal-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  /* background: var(--brand); */
}

.portal-pane__content {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 0;
  padding: 32px 0;
}

.portal-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-nav__link {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-family: "PT Sans";
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.portal-nav__link--active {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-dark);
  font-weight: 400;
}

.portal-pane__portal {
  margin: 0;
  font-family: "Neutral Face", "PT Sans", sans-serif;
  font-size: clamp(20px, 1.8vw, 38px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #ffffff;
  text-align: center;
}

.portal-card {
  display: grid;
  gap: 24px;
  padding: clamp(16px, 1.3vw, 24px);
  border-radius: 22px;
  background: rgba(12, 143, 108, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portal-card h2 {
  margin: 0;
  font-family: "Neutral Face", "PT Sans", sans-serif;
  font-size: clamp(22px, 1.7vw, 32px);
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
}

.portal-card p {
  margin: 0;
  font-family: "PT Sans";
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.portal-card p + p {
  margin-top: 8px;
}

.portal-copy {
  margin: 0;
  font-family: "PT Sans";
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.portal-form {
  gap: 12px;
}

.portal-form--compact {
  gap: 8px;
}

.portal-form__field {
  display: block;
}

.portal-form input {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  padding: 12px 16px;
  background: #ffffff;
  font-family: "PT Sans";
  font-size: 16px;
  color: #23313c;
}

.portal-form input::placeholder {
  color: #b2c2cb;
}

.portal-form__submit {
  min-height: 52px;
  margin-top: 16px;
  border-radius: 16px;
  background: var(--stone);
  color: #ffffff;
  font-family: "PT Sans";
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(12, 143, 108, 0.28);
}

.portal-form__submit--small {
  min-height: 46px;
  min-width: 140px;
  margin-top: 0;
  font-size: 16px;
}

.portal-form__submit:hover {
  background: #9caeb9;
  transform: none;
}

.portal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.portal-links__link,
.portal-links__button {
  font-family: "PT Sans";
  color: #ffffff;
}

.portal-links__link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portal-links__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  font-size: 14px;
}

.portal-links__button--ghost {
  background: transparent;
}

.portal-feature-list,
.portal-metrics {
  display: grid;
  gap: 12px;
}

.portal-feature,
.portal-metric {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "PT Sans";
  color: #ffffff;
  font-size: 14px;
}

.portal-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-metric {
  display: grid;
  gap: 4px;
}

.portal-metric strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.portal-metric span {
  font-size: 13px;
  line-height: 1.32;
}

.portal-metric--wide {
  grid-column: 1 / -1;
}

.portal-metric__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.portal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.portal-actions--stacked {
  margin-top: 16px;
}

@media (max-width: 860px) {
  .portal-layout {
    min-height: 100dvh;
    grid-template-columns: 1fr;
  }

  .portal-brand {
    min-height: 34vh;
    padding: 24px 16px;
  }

  .portal-brand__logo {
    width: min(440px, 84vw);
  }

  .portal-pane {
    padding: 24px 16px 32px;
  }

  .portal-pane__content {
    width: 100%;
    padding: 0;
  }

  .portal-card {
    border-radius: 18px;
  }

  .portal-metrics {
    grid-template-columns: 1fr;
  }
}
}

}

/* Domain: user.css */
@layer domain {
@scope (body.page-user) {


/* 2026 unified workspace: social profile */
.profile-shell { --ink:#17231f; --muted:#718079; --brand:#136f54; --mint:#e9f5ef; }
.profile-layout { grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr); align-items:stretch; }
.profile-card { border-radius:26px; overflow:hidden; box-shadow:0 18px 50px rgba(24,58,46,.11); }
.profile-cover { min-height:235px; background:radial-gradient(circle at 78% 25%,rgba(255,255,255,.22),transparent 22%),linear-gradient(125deg,#0f2e25,#167254 62%,#78ad96); }
.profile-status { background:rgba(255,255,255,.16); color:#fff; border:1px solid rgba(255,255,255,.3); backdrop-filter:blur(8px); }
.profile-avatar-wrap { margin-top:-76px; padding-left:38px; position:relative; z-index:2; }
.profile-avatar { width:150px; height:150px; border:6px solid #fff; box-shadow:0 8px 25px rgba(19,43,35,.2); }
.profile-card__body { padding:16px 38px 22px; }.profile-card__body h1 { font-size:clamp(30px,4vw,46px); letter-spacing:-.035em; }
.profile-facts { margin:0 38px 32px; border:1px solid #e2eae6; border-radius:16px; background:#f8faf9; }
.avatar-panel,.content-card { border-radius:24px; box-shadow:0 12px 36px rgba(31,55,46,.07); }
.profile-workspace { grid-template-columns:repeat(2,minmax(0,1fr)); }
.profile-email { color:var(--brand); }.profile-subtitle { display:inline-flex; padding:5px 10px; background:var(--mint); color:var(--brand); border-radius:999px; }
@media(max-width:860px){.profile-layout,.profile-workspace{grid-template-columns:1fr}.profile-cover{min-height:180px}.profile-avatar-wrap{padding-left:22px}.profile-card__body{padding-inline:22px}.profile-facts{margin-inline:22px}}





:root {
  --bg: #f3f7f6;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --text: #111d2a;
  --muted: #6d7d86;
  --brand: #25b98b;
  --brand-dark: #0c8f6c;
  --blue: #17b3f0;
  --ink: #101b35;
  --line: #dce7e4;
  --danger: #b42318;
  --shadow: 0 18px 46px rgba(16, 27, 53, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PT Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(37, 185, 139, 0.16) 0, transparent 360px),
    linear-gradient(135deg, #f3f7f6 0%, #eef5f4 46%, #ffffff 100%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.profile-shell {
  display: grid;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links__form {
  display: contents;
}

.nav-links a,
.secondary-link,
button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-links a {
  background: transparent;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand-dark);
  background: rgba(37, 185, 139, 0.1);
}

button {
  background: var(--brand);
  color: #ffffff;
}

button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

button:disabled {
  background: #c6d6d1;
  color: #ffffff;
  cursor: default;
  transform: none;
}

.secondary-link {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.danger-button {
  width: 100%;
  background: #fff5f4;
  border-color: #ffd8d4;
  color: var(--danger);
}

.danger-button:hover {
  background: #ffe9e6;
}

.message {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
}

.message--error {
  background: #fff0ee;
  border-color: #ffd8d4;
  color: var(--danger);
}

.message--success {
  background: #edfff8;
  border-color: #c7f3e3;
  color: #127355;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.profile-card,
.avatar-panel,
.content-card {
  border: 1px solid rgba(16, 27, 53, 0.1);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.profile-cover {
  min-height: 230px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(16, 27, 53, 0.94), rgba(23, 179, 240, 0.78)),
    linear-gradient(45deg, var(--brand), var(--blue));
}

.profile-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -76px;
}

.profile-avatar {
  width: 152px;
  height: 152px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e9f7f2);
  box-shadow: 0 16px 38px rgba(16, 27, 53, 0.18);
  color: var(--brand-dark);
  font-size: 56px;
  font-weight: 400;
}

.profile-avatar--image {
  display: block;
  object-fit: cover;
}

.profile-card__body {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 36px 24px;
  text-align: center;
}

.profile-subtitle {
  font-weight: 400;
  width: fit-content;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 185, 139, 0.12);
  color: var(--brand-dark);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

.profile-card__body h1,
.section-heading h1 {
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}

.profile-card__body h1 {
  max-width: 620px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}

.profile-card__body p,
.avatar-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.profile-email {
  color: var(--brand-dark);
  font-weight: 400;
  text-decoration: none;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.profile-facts div {
  display: grid;
  gap: 4px;
  padding: 16px;
  text-align: center;
  background: var(--surface-soft);
}

.profile-facts div + div {
  border-left: 1px solid var(--line);
}

.profile-facts strong {
  color: var(--ink);
  font-size: 20px;
}

.profile-facts span {
  color: var(--muted);
  font-size: 13px;
}

.avatar-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.avatar-panel h2,
.content-card h2 {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.1;
}

.panel-note {
  margin: -8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 12px;
}

.avatar-upload {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
  border: 1px dashed rgba(37, 185, 139, 0.55);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fffc, #ffffff);
  color: var(--brand-dark);
  cursor: pointer;
}

.avatar-upload span {
  font-weight: 400;
}

.avatar-upload small {
  color: var(--muted);
  font-size: 13px;
}

.avatar-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.content-card {
  padding: 24px;
}

.content-card--quiet {
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  flex-direction: column;
}

.section-heading {
  margin-bottom: 16px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form label:nth-child(4),
.card-actions {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cad8d5;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

input:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(37, 185, 139, 0.16);
}

input:disabled {
  color: var(--muted);
  background: #f1f5f4;
  cursor: not-allowed;
}

.card-actions {
  display: flex;
  justify-content: flex-start;
}

.account-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.account-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
}

.account-list div + div {
  border-top: 1px solid var(--line);
}

.account-list dt {
  color: var(--muted);
  font-weight: 400;
}

.account-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.directory-shell {
  display: grid;
  gap: 24px;
}

.directory-intro p {
  max-width: 640px;
}

.directory-grid {
  display: grid;
  align-items: start;
  gap: 24px;
}

@media (min-width: 1100px) {
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.department-card {
  display: grid;
  gap: 16px;
}

.department-card--active {
  border-color: rgba(37, 185, 139, 0.45);
  box-shadow: 0 18px 46px rgba(37, 185, 139, 0.14);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  aspect-ratio: 1 / 1;
  padding: 20px;
  border: 1px solid rgba(16, 27, 53, 0.1);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 185, 139, 0.45);
  box-shadow: 0 18px 46px rgba(37, 185, 139, 0.16);
}

.tool-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e9f7f2);
  box-shadow: inset 0 0 0 1px rgba(12, 143, 108, 0.12);
  font-size: 30px;
}

.tool-card__label {
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 940px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tool-card {
    padding: 14px;
  }

  .tool-card__icon {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

.member-list {
  display: grid;
  gap: 12px;
}

.member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.avatar {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e9f7f2);
  color: var(--brand-dark);
  font-weight: 400;
  box-shadow: inset 0 0 0 1px rgba(12, 143, 108, 0.12);
}

.avatar--image {
  object-fit: cover;
}

.avatar[hidden],
.profile-avatar[hidden] {
  display: none;
}

.member-card__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.member-card__meta strong,
.member-card__meta span,
.member-card__meta a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-card__meta span {
  color: var(--muted);
}

.member-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 940px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 14px;
  }

  .profile-layout,
  .profile-workspace,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a,
  .secondary-link {
    flex: 1 1 auto;
  }

  .profile-card {
    min-height: auto;
  }

  .profile-cover {
    min-height: 190px;
  }

  .profile-card__body {
    padding-inline: 24px;
  }

  .member-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .member-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .profile-facts,
  .account-list div {
    grid-template-columns: 1fr;
  }

  .profile-facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .profile-avatar {
    width: 132px;
    height: 132px;
    font-size: 48px;
  }

  .member-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Final social profile overrides */
body .profile-layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr);align-items:start}body .profile-card{border-radius:26px;overflow:hidden;box-shadow:0 18px 50px rgba(24,58,46,.11)}body .profile-cover{min-height:235px;background:radial-gradient(circle at 78% 25%,rgba(255,255,255,.22),transparent 22%),linear-gradient(125deg,#0f2e25,#167254 62%,#78ad96)}body .profile-avatar-wrap{margin-top:-76px;position:relative;z-index:2}body .profile-avatar{width:150px;height:150px;border:6px solid #fff;box-shadow:0 8px 25px rgba(19,43,35,.2)}body .profile-card__body{padding:16px 32px 24px}body .profile-card__body h1{font-size:clamp(30px,4vw,46px);letter-spacing:-.035em}body .profile-facts{margin:0 32px 32px;border:1px solid #e2eae6;border-radius:16px;background:#f8faf9}body .avatar-panel,body .content-card{border-radius:24px;box-shadow:0 12px 36px rgba(31,55,46,.07)}body .profile-workspace{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:860px){body .profile-layout,body .profile-workspace{grid-template-columns:1fr}body .profile-cover{min-height:180px}body .profile-card__body{padding-inline:24px}body .profile-facts{margin-inline:24px}}
.profile-summary__body_body {
  display: grid;
  gap: 10px;
  justify-items: center;
}
/* Profile wall and standalone settings */
.profile-social__grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:start}.profile-summary{position:sticky;top:20px;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow)}.profile-summary__cover{height:112px;background:linear-gradient(135deg,#123b30,#25b98b)}.profile-summary__avatar{margin:-54px 0 0 0; display: grid; justify-content: center;}.profile-summary__avatar .profile-avatar{width:108px;height:108px;font-size:38px}.profile-summary__body{display:grid;gap:10px;padding:16px 24px 24px;}.profile-summary__body h1{font-size:28px; text-align: center;}.profile-summary__stat{display:flex; justify-content: center; align-items:baseline;gap:7px;margin-top:8px;padding-top:16px;border-top:1px solid var(--line)}.profile-summary__stat strong{font-size:24px}.profile-summary__stat span{color:var(--muted)}.profile-wall{display:grid;gap:16px}.wall-composer textarea{width:100%;resize:vertical;min-height:82px;padding:14px;border:1px solid #cad8d5;border-radius:14px;font:inherit}.wall-composer--thanks{background:linear-gradient(135deg,#f2fbf7,#fff)}.wall-feed{display:grid;gap:12px}.wall-item{display:grid;grid-template-columns:48px 1fr;gap:14px;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff}.wall-item--thanks{border-color:#bfe8d9;background:linear-gradient(135deg,#f3fcf8,#fff)}.wall-item__avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#e8f6f0;color:var(--brand-dark);font-size:20px}.wall-item__meta{display:flex;justify-content:space-between;gap:12px}.wall-item__meta a{color:var(--ink);font-weight:700;text-decoration:none}.wall-item__meta time{color:var(--muted);font-size:13px}.wall-item__content p{margin-top:8px;white-space:pre-wrap;line-height:1.55}.wall-item__badge{display:inline-flex;margin-top:8px;padding:4px 9px;border-radius:999px;background:#dff5eb;color:var(--brand-dark);font-size:12px}.wall-empty{padding:42px;text-align:center;border:1px dashed #cad8d5;border-radius:18px;color:var(--muted)}.settings-header{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:22px;        background: white;
        border-radius: 16px;
        padding: 15px;border: 1px solid var(--line);}.settings-header h1{margin:10px 0 6px}.settings-header p{color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:16px}.settings-grid>article:last-child{grid-column:1/-1}.settings-grid .danger-button{margin-top:12px}@media(max-width:860px){.profile-social__grid,.settings-grid{grid-template-columns:1fr}.profile-summary{position:static}.settings-grid>article:last-child{grid-column:auto}.settings-header{align-items:start;flex-direction:column}.wall-item__meta{flex-direction:column;gap:3px}}
}

}

/* Domain: feed.css */
@layer domain {
@scope (body.page-feed) {






:root {
  --bg: #f2f4f7;
  --card: #fff;
  --text: #15191e;
  --muted: #69727d;
  --line: #e2e6ea;
  --brand: #159570;
  --brand-soft: #eaf7f3;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* font-family: "PT Sans", Arial, sans-serif; */
}

.shell {
  min-height: 100vh;
}

.feed-shell {
  padding-top: 65px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
  font-family: "Neutral face";
}

.nav-links>a, .nav-more>summary {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.nav-links>a:hover, .nav-links>a.is-active {
  color: var(--brand);
  border-color: var(--brand);
}

.nav-more {
  position: relative;
  height: 100%;
}

.nav-more>summary {
  list-style: none;
  font-size: 19px;
}

.nav-more>summary::-webkit-details-marker {
  display: none;
}

.nav-more__menu, .post-menu form {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px #15202b20;
}

.nav-more__menu a, .nav-more__menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font: inherit;
}

.nav-more__menu a:hover, .nav-more__menu button:hover {
  background: var(--bg);
}

form {
  margin: 0;
}

.feed-column {
  width: min(680px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.message {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 10px;
}

.message--error {
  background: #fff0ee;
  color: var(--danger);
}

.message--success {
  background: var(--brand-soft);
  color: #087454;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.feed-switch {
  display: flex;
  gap: 20px;
}

.feed-switch a {
  padding: 8px 1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 400;
  font-family: "Neutral face";
  text-decoration: none;
}

.feed-switch a.is-active {
  border-color: var(--brand);
  color: var(--text);
}

.feed-search {
  position: relative;
}

.feed-search input {
  width: 180px;
  height: 38px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  font: inherit;
}

.feed-search a {
  position: absolute;
  right: 13px;
  top: 7px;
  color: var(--muted);
  font-size: 20px;
  text-decoration: none;
}

.composer-panel, .post-card, .empty-state {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.composer-panel {
  padding: 16px;
}

.composer-main {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
}

.composer-main textarea {
  min-height: 58px;
  padding: 10px 4px;
  border: 0;
  outline: 0;
  resize: none;
  font: inherit;
  font-size: 17px;
}

.avatar-badge, .comment__avatar {
  display: flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 400;
  object-fit: cover;
}

.avatar-badge--small {
  width: 42px;
  height: 42px;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.composer-dropzone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.composer-dropzone.is-dragging {
  border-color: var(--brand);
  background: #fff;
}

.composer-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.composer-dropzone__title { font-weight: 400; }
.composer-dropzone__hint { margin-left: auto; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post-card__attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.composer-target {
  display: flex;
  align-items: center;
}

.composer-target span {
  display: none;
}

.composer-target select, .composer-extra summary, .composer-submit {
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.composer-extra {
  position: relative;
}

.composer-extra summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.composer-extra summary::-webkit-details-marker {
  display: none;
}

.composer-extra__body {
  position: absolute;
  z-index: 10;
  top: 46px;
  left: 0;
  width: min(430px, calc(100vw - 56px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 35px #15202b20;
}

.composer-upload {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.composer-extra input, .poll-builder input, .comment-form input {
  height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
}

.poll-builder {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.poll-builder legend {
  font-weight: 400;
}

.poll-builder__options {
  display: grid;
  gap: 7px;
  margin: 8px 0;
}

.poll-builder__option {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px;
}

.poll-builder button {
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
  cursor: pointer;
}

.poll-builder__add {
  height: 36px;
  padding: 0 10px;
}

.composer-submit {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.search-result {
  margin: 14px 2px;
  color: var(--muted);
}

.post-card {
  overflow: visible;
}

.post-card__header {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 16px;
}

.post-card__profile-link {
  text-decoration: none;
}

.post-card__meta {
  display: grid;
  min-width: 0;
}

.post-card__meta strong a, .comment__body a {
  color: var(--text);
  text-decoration: none;
}

.post-card__meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-menu {
  position: relative;
}

.post-menu summary {
  padding: 8px;
  list-style: none;
  color: var(--muted);
  cursor: pointer;
}

.post-menu form {
  top: 30px;
  min-width: 110px;
}

.post-menu button {
  width: 100%;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--danger);
  font: inherit;
}

.post-card__content>p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 17px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.post-card__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
}

.poll-card {
  margin: 0 16px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.poll-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.poll-card header span {
  color: var(--muted);
}

.poll-options {
  display: grid;
  gap: 7px;
}

.poll-option {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.poll-option i {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  background: var(--brand-soft);
}

.poll-option span {
  z-index: 1;
}

.poll-option.is-selected {
  border-color: var(--brand);
}

.post-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.post-actions form {
  display: contents;
}

.post-actions button, .post-actions a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

.post-actions .is-active {
  color: var(--brand);
}

.comments {
  padding: 12px 16px;
}

.comment {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: start;
  margin-bottom: 9px;
}

.comment__avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.comment__body {
  padding: 7px 11px;
  border-radius: 15px;
  background: var(--bg);
}

.comment__body p {
  margin: 2px 0 0;
  line-height: 1.35;
}

.comment form button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.comment-form input {
  border-radius: 21px;
  background: var(--bg);
}

.comment-form button {
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.empty-state {
  padding: 50px 20px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 5px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.mini-chat {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
}

.mini-chat__launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 24px;
  background: var(--brand);
  box-shadow: 0 10px 28px #08745440;
  color: #fff;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.mini-chat__launcher span:first-child {
  font-size: 18px;
}

.mini-chat__window {
  width: min(360px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px #15202b30;
}

.mini-chat__window[hidden], .mini-chat__launcher[hidden] {
  display: none;
}

.mini-chat__header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: "Neutral face";
  font-weight: 400;
}

.mini-chat__header div {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mini-chat__header a, .mini-chat__header button {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
}

.mini-chat__header a:hover, .mini-chat__header button:hover {
  background: var(--bg);
  color: var(--text);
}

.mini-chat iframe {
  display: block;
  width: 100%;
  height: min(520px, calc(100vh - 105px));
  border: 0;
  background: #fff;
}

@media(max-width:700px) {
  .brand span {
    display: none;
  }
  .nav-links>a {
    padding: 0 9px;
    font-size: 14px;
  }
  .nav-links>a:nth-of-type(2), .nav-links>a:nth-of-type(3) {
    display: none;
  }
  .feed-column {
    padding-top: 14px;
  }
  .feed-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .feed-search input {
    width: 100%;
  }
  .composer-actions {
    flex-wrap: wrap;
  }
  .composer-submit {
    margin-left: 0;
  }
  .post-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-actions>a:last-child {
    display: none;
  }
  .mini-chat {
    right: 12px;
    bottom: 12px;
  }
  .mini-chat__window {
    width: calc(100vw - 24px);
  }
  .mini-chat iframe {
    height: calc(100vh - 86px);
  }
}

.company-status {
  position: fixed;
  z-index: 10;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px #15202b14;
  backdrop-filter: blur(12px);
}

.company-status__time {
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.company-status__date {
  color: var(--muted);
  font-size: 14px;
  text-transform: capitalize;
}

.company-status__online {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
}

.company-status__online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19a974;
  box-shadow: 0 0 0 3px #19a97420;
}

@media(min-width:900px) {
  .feed-column {
    width: min(620px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
  }
}

@media(max-width:700px) {
  .company-status {
    position: static;
    width: calc(100% - 24px);
    margin: 0 12px 76px;
  }
}

body {
  background-color: var(--bg);
  background-image: url("../pattern.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

body, body * {
  font-family: "PT Sans", Arial, sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}
}

}

/* Domain: message.css */
@layer domain {
@scope (body.page-message) {






:root {
  --bg: #f3f7f6;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --text: #111d2a;
  --muted: #6d7d86;
  --brand: #25b98b;
  --brand-dark: #0c8f6c;
  --blue: #17b3f0;
  --ink: #101b35;
  --line: #dce7e4;
  --danger: #b42318;
  --shadow: 0 18px 46px rgba(16, 27, 53, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PT Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(37, 185, 139, 0.16) 0, transparent 360px),
    linear-gradient(135deg, #f3f7f6 0%, #eef5f4 46%, #ffffff 100%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.messages-shell {
  display: grid;
  gap: 16px;
}

.brand,
.nav-links a,
.secondary-link,
.conversation-item {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links__form {
  display: contents;
}

.nav-links a,
.secondary-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-links a {
  background: transparent;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand-dark);
  background: rgba(37, 185, 139, 0.1);
}

button {
  background: var(--brand);
  color: #ffffff;
}

button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.secondary-link {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
}

.message--error {
  background: #fff0ee;
  border-color: #ffd8d4;
  color: var(--danger);
}

.messages-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  min-height: 680px;
}

.conversation-panel,
.chat-panel,
.embed-chat {
  border: 1px solid rgba(16, 27, 53, 0.1);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.conversation-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.chat-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-switch__link--active {
  border-color: rgba(37, 185, 139, 0.45);
  background: #f2fffa;
  color: var(--brand-dark);
}

.conversation-panel__meta {
  display: grid;
  gap: 8px;
}

.conversation-panel__meta p {
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 185, 139, 0.12);
  color: var(--brand-dark);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.1;
}

.conversation-list {
  display: grid;
  gap: 8px;
}

.conversation-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface-soft);
}

.conversation-item:hover,
.conversation-item.is-active {
  border-color: rgba(37, 185, 139, 0.45);
  background: #f2fffa;
}

.conversation-item__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.conversation-item__body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Name + presence sit on one line, but only the name should truncate -
   without this, "online"/"offline" used to get clipped mid-word (e.g. "onl...")
   because the whole strong (name + presence) shared one nowrap+ellipsis rule. */
.conversation-item__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.conversation-item__name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.conversation-item__body span,
.empty-note,
.chat-header span,
.chat-message time {
  color: var(--muted);
}


.avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e9f7f2);
  box-shadow: 0 10px 24px rgba(16, 27, 53, 0.12);
  color: var(--brand-dark);
  font-weight: 400;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar--image {
  display: block;
  background: #ffffff;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
}

.avatar--group {
  background: linear-gradient(135deg, #eaf7f3, #cdeee2);
}

.member-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
}

.member-picker-item:hover {
  border-color: var(--brand);
  background: #eaf7f3;
}

.member-picker-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.selected-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf7f3;
  border: 1px solid var(--brand);
  font-size: 13px;
}

.member-chip__remove {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.member-chip__remove:hover {
  color: #c0392b;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 680px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.chat-header__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header__identity div {
  display: grid;
  gap: 4px;
}

.message_header {
  gap: 10px;
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 8px;
  margin-bottom: 8px;
}

.message-list {
  display: grid;
  align-content: end;
  gap: 8px;
  overflow-y: auto;
  padding: 24px;
}

.chat-message {
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: min(560px, 82%);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
  background: var(--surface-soft);
}

.chat-message--mine {
  justify-self: end;
  border-color: rgba(37, 185, 139, 0.42);
  border-radius: 16px 16px 6px 16px;
  background: #edfff8;
}

.chat-message p {
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message__author {
  font-size: 13px;
}

.chat-message time {
  font-size: 12px;
}

.chat-message__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.message-delete {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #a34a4a;
  font-size: 12px;
  font-weight: 400;
}

.message-delete:hover {
  background: transparent;
  box-shadow: none;
  color: #7f2424;
}

.presence {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  flex-shrink: 0;
  white-space: nowrap;
}

.presence--online {
  color: var(--brand-dark);
}

.presence--online::before,
.presence--offline::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #9ba7a4;
}

.presence--online::before {
  background: var(--brand);
}

.message-form {
  display: grid;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

textarea {
  width: 100%;
  min-height: 86px;
  padding: 12px 16px;
  border: 1px solid #cad8d5;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(37, 185, 139, 0.16);
}

.card-actions {
  display: flex;
  justify-content: flex-start;
}

/* Primary CTA needs to read clearly as the main action of the panel,
   distinct from the secondary nav/link buttons that share the base button style. */
.message-form .card-actions button[type="submit"] {
  min-height: 48px;
  padding: 0 24px;
  box-shadow: var(--shadow);
}

.empty-chat {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
}

.empty-chat p {
  color: var(--muted);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.embed-body {
  min-height: 0;
  background: transparent;
}

/* Flexbox column, not CSS grid: a grid-template-rows setup here previously
   relied on there being exactly 3 children in a fixed order (header / switch /
   content), so the middle "1fr" track landed on whichever element happened to
   be second in the DOM. On the "no active chat" state that's the chat-switch
   tab bar, which got stretched to fill the whole viewport height while the
   actual conversation list was squeezed into a sliver at the bottom. Flex with
   an explicit flex:1 only on the two content blocks (.message-list--embed /
   .embed-empty) fixes this regardless of which state is rendered. */
.embed-chat {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.embed-chat > * {
  flex: 0 0 auto;
}

.embed-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.embed-chat__header div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.embed-chat__header .embed-chat__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.embed-chat__back {
  display: inline-flex;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.embed-chat__back span {
  font-size: 19px;
}

.embed-chat__back:hover {
  background: rgba(37, 185, 139, 0.12);
  color: var(--brand-dark);
}

.embed-chat__header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-switch--embed {
  padding: 12px 16px 0;
}

.message-list--embed {
  padding: 16px;
}

.message-form--embed {
  padding: 12px 16px 16px;
}

.message-form--embed textarea {
  min-height: 64px;
}

.conversation-list--embed {
  padding: 16px;
}

.embed-chat > .message-list,
.embed-chat > .embed-empty {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

@media (max-width: 940px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 16px;
  }

  .messages-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a,
  .secondary-link {
    flex: 1 1 auto;
  }

  .messages-layout,
  .chat-panel {
    min-height: 0;
  }

  .chat-switch {
    display: grid;
    grid-auto-flow: column;
  }

  /* Stacked layout puts the conversation list above the open thread, so a
     long list would push the actual conversation far below the fold. Cap the
     list height and let it scroll internally instead, keeping the open chat
     panel reachable without excessive scrolling. */
  .conversation-list {
    max-height: 320px;
    overflow-y: auto;
  }
}

/* Feed-aligned visual system. */
:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-soft: #f2f4f7;
  --text: #15191e;
  --muted: #69727d;
  --brand: #159570;
  --brand-dark: #087454;
  --line: #e2e6ea;
  --shadow: 0 10px 28px rgba(21, 32, 43, 0.08);
}

body {
  background-color: var(--bg);
  background-image: url("../pattern.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.shell { width: auto; min-height: 100vh; margin: 0; padding: 0; }
.messages-shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 89px 0 48px; }
.brand { gap: 9px; color: var(--text); font-family: "PT Sans", Arial, sans-serif; font-size: 20px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { height: 100%; gap: 4px; flex-wrap: nowrap; }
.nav-links > a, .nav-more > summary { display: flex; height: 100%; min-height: 0; align-items: center; padding: 0 15px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); text-decoration: none; cursor: pointer; }
.nav-links > a:hover, .nav-links > a.is-active { border-color: var(--brand); background: transparent; color: var(--brand); }
.nav-more { position: relative; height: 100%; }
.nav-more > summary { list-style: none; font-size: 19px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px #15202b20; }
.nav-more__menu a, .nav-more__menu button { display: block; width: 100%; height: auto; min-height: 0; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; text-decoration: none; font: inherit; }
.nav-more__menu a:hover, .nav-more__menu button:hover { background: var(--bg); color: var(--text); transform: none; }
.conversation-panel, .chat-panel, .embed-chat { border-color: var(--line); border-radius: 12px; box-shadow: none; }
.conversation-panel { padding: 16px; }
.user-search { display: grid; gap: 7px; }
.empty-chat .user-search { width: min(520px, 100%); margin-top: 8px; text-align: left; }
.user-search > label { color: var(--text); font-weight: 400; }
.user-search__field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.user-search__field input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); font: inherit; }
.user-search__field input:focus { border-color: var(--brand); outline: 3px solid rgba(21,149,112,.12); }
.user-search__field button { min-height: 40px; padding: 0 13px; border-radius: 9px; background: var(--brand); }
.user-search-results { display: grid; width: min(520px, 100%); gap: 8px; margin-top: 4px; text-align: left; }
.eyebrow { background: var(--surface-soft); color: var(--brand-dark); font-family: "PT Sans", Arial, sans-serif; font-weight: 400; }
h1 { font-family: "PT Sans", Arial, sans-serif; font-size: 28px; font-weight: 400; text-transform: none; }
.conversation-item { border-radius: 10px; }
.conversation-item:hover, .conversation-item.is-active { border-color: var(--brand); background: #eaf7f3; }
.avatar { border: 0; background: #eaf7f3; box-shadow: none; color: var(--brand); }
.avatar--group { background: #cdeee2; }
.chat-message { border-radius: 12px 12px 12px 4px; }
.chat-message--mine { border-color: #bfe4d8; border-radius: 12px 12px 4px 12px; background: #eaf7f3; }
textarea { border-color: var(--line); border-radius: 9px; }
.message-form .card-actions button[type="submit"], .message-form--embed > button { background: var(--brand); box-shadow: none; }
.embed-body { background: transparent; }
.embed-chat { border-radius: 0; }

@media (max-width: 940px) {
  .messages-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .messages-shell { width: calc(100% - 20px); padding-top: 79px; }
  .brand span { display: none; }
  .nav-links { width: auto; }
  .nav-links > a { flex: none; padding: 0 9px; font-size: 14px; }
  .nav-links > a:nth-of-type(3) { display: none; }
  .conversation-panel, .chat-header, .message-list, .message-form { padding: 14px; }
}
}

}

/* Domain: calendar.css */
@layer domain {
@scope (body.page-calendar) {


:root {
  --bg: #f5f7f4;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: #eef4ef;
  --text: #17211c;
  --muted: #627167;
  --line: #d9e2da;
  --brand: #1f8f62;
  --brand-strong: #0f6b47;
  --accent: #c7ead9;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(23, 33, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 143, 98, 0.18), transparent 32%),
    linear-gradient(180deg, #f5f7f4 0%, #edf2ee 48%, #ffffff 100%);
  color: var(--text);
  font-family: "PT Sans", Arial, sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.calendar-shell {
  display: grid;
  gap: 24px;
}

.hero,
.composer,
.timeline {
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.composer,
.timeline {
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(31, 55, 46, 0.08);
}

.brand,
.nav-links a,
.button,
.participant-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-links__form {
  display: contents;
}

.nav-links a,
.button,
button,
input,
textarea,
select {
  font: inherit;
}

.nav-links a,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand-strong);
  background: rgba(31, 143, 98, 0.1);
}

button {
  background: var(--brand);
  color: #ffffff;
}

button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  color: #ffffff;
}


.button {
  border-color: var(--line);
  background: var(--brand);
  color: var(--text);
}

.hero {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #102b23, #195f4b);
  color: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(15, 57, 44, 0.18);
}

.hero__copy {
  display: grid;
  gap: 10px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(31, 143, 98, 0.12);
  color: var(--brand-strong);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.1;
}

.hero p,
.card-copy p,
.participant-note,
.empty-state p,
.event-meta,
.participant-line {
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.composer,
.timeline {
  padding: 24px;
  min-width: 0;
}

.composer {
  display: grid;
  align-content: start;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.card-copy {
  display: grid;
  gap: 8px;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.message--error {
  background: #fff1ee;
  border-color: #ffd8d2;
  color: var(--danger);
}

.calendar-form {
  display: grid;
  gap: 16px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cad5cc;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(31, 143, 98, 0.16);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Primary CTA: the only submit button in the form gets extra weight. */
.calendar-form > button[type="submit"] {
  min-height: 48px;
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(15, 107, 71, 0.28);
}

.audience-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.participant-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.participant-group {
  display: grid;
  gap: 8px;
}

.participant-group h3 {
  font-size: 14px;
}

.participant-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 12px;
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.participant-option input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  padding: 0;
}

.participant-option strong,
.event-card h3 {
  color: var(--text);
}

.participant-option span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 16px;
  align-content: start;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.event-card__header,
.event-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 400;
}

.badge--department {
  background: #eef0ff;
  color: #3040a0;
}

.badge--company {
  background: #fff6de;
  color: #8d5f00;
}

.badge--users {
  background: #edf9ff;
  color: #006f90;
}

.event-meta {
  display: grid;
  gap: 4px;
}

.avatar-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar,
.avatar-stack img,
.avatar-stack span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #daf0e3);
  color: var(--brand-strong);
  font-weight: 400;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 22px rgba(23, 33, 28, 0.12);
  object-fit: cover;
}

.avatar-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-line {
  display: grid;
  gap: 8px;
}

.empty-state {
  padding: 32px;
  border: 1px dashed #c6d4c8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .workspace,
  .form-grid,
  .hero-stats,
  .timeline-header,
  .event-card__header,
  .event-card__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* Form stays full-width and static once it's no longer beside the feed. */
  .composer {
    position: static;
  }

  button {
    width: 100%;
  }

  /* Nav links stay compact chips that wrap, instead of stacking full-width. */
  .nav-links a,
  .nav-links .button {
    width: auto;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

/* Calendar: toolbar, month grid and agenda list */
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.calendar-toolbar h3 {
  margin: 0 auto 0 0;
  font-size: 24px;
  text-transform: capitalize;
}

.calendar-nav {
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: var(--line);
}

.calendar-weekday {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #f3f7f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 112px;
  padding: 8px;
  background: #ffffff;
}

.calendar-day.is-outside {
  background: #f8faf9;
  color: #aeb8b3;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.calendar-day__number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  font-weight: 400;
}

.is-today .calendar-day__number {
  background: var(--brand);
  color: #ffffff;
  border-radius: 50%;
}

.calendar-event {
  display: flex;
  width: 100%;
  min-height: 0;
  margin: 0 0 4px;
  padding: 4px;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand-strong);
  font-size: 11px;
  text-align: left;
  overflow: hidden;
}

.calendar-event time {
  font-weight: 400;
}

.calendar-event span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Agenda feed: one clean column, grouped visually per audience scope */
.event-list,
.calendar-event-source {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.event-card {
  border-left: 4px solid var(--brand);
}

.event-card[data-audience-scope="department"] {
  border-left-color: #3040a0;
}

.event-card[data-audience-scope="company"] {
  border-left-color: #8d5f00;
}

.event-card[data-audience-scope="users"] {
  border-left-color: #006f90;
}

.event-card h3 {
  font-size: 18px;
}

@media (max-width: 480px) {
  .month-calendar {
    grid-template-columns: repeat(7, minmax(40px, 1fr));
  }

  .calendar-day {
    min-height: 64px;
    padding: 4px;
  }

  .calendar-day__number {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    font-size: 12px;
  }

  .calendar-event {
    padding: 4px;
    font-size: 10px;
  }
}

}

}

/* Domain: notification.css */
@layer domain {
@scope (body.page-notification) {



:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --text: #17211c;
  --muted: #6d7973;
  --brand: #159570;
  --brand-soft: #eaf7f3;
  --brand-dark: #0c8f6c;
  --ink: #101b35;
  --line: #dce3df;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../pattern.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

body, body * { font-family: "PT Sans", Arial, sans-serif; font-weight: 400; }
h1, h2, h3 { text-transform: uppercase; }

button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(21, 149, 112, 0.3); outline-offset: 2px; }

.notifications-shell { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 56px; }

.notifications-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding-bottom: 24px; padding-top: 24px;}
.eyebrow { background: var(--surface-soft); color: var(--brand-dark); font-family: "PT Sans", Arial, sans-serif; font-weight: 400; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 185, 139, 0.12);
  color: var(--brand-dark);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notification-header {
  margin-top:8px;
  margin-bottom:8px;
}
h1, h2, p { margin: 0; }
.notifications-heading h1 { display: flex; align-items: center; gap: 10px; font-family: "Neutral Face", "PT Sans", Arial, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 1.1; }
.notifications-heading__hint { margin-top: 6px; color: var(--muted); }
.unread-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 400; text-transform: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: var(--brand); color: #fff; font: inherit; font-weight: 400; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; flex: 0 0 auto; }
.button:hover { background: var(--brand-dark); }
.button--primary { background: var(--brand); color: #fff; }
.button--secondary { border-color: var(--line); background: #fff; color: var(--text); }
.button--secondary:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.button--ghost { border-color: var(--line); background: var(--bg); color: var(--muted); }
.button--ghost:hover { background: #fff; color: var(--text); }
.button--danger { background: var(--danger); }
.button--danger:hover { background: #8f1b12; }

.list-day-heading { margin: 22px 2px 8px; color: var(--brand-dark); font-family: "Neutral Face", "PT Sans", Arial, sans-serif; font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.list-day-heading:first-child { margin-top: 0; }

.notification-list { display: grid; gap: 10px; }
.notification-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.notification-card--unread { border-color: rgba(21,149,112,.35); background: var(--brand-soft); }
.notification-card__icon { position: relative; display: flex; width: 44px; height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: #fff; font-size: 18px; }
.notification-card__icon .dot { position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.notification-card--unread .notification-card__icon .dot { border-color: var(--brand-soft); }
.notification-card__meta { margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.notification-card h2 { margin: 0 0 4px; color: var(--muted); font-size: 17px; font-weight: 400; }
.notification-card--unread h2 { color: var(--ink); }
.notification-card p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.notification-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.empty-state { margin-top: 8px; padding: 56px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.empty-state__icon { margin-bottom: 14px; color: var(--brand); }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p { color: var(--muted); }

@media (max-width: 620px) {
  .notifications-heading { flex-direction: column; align-items: flex-start; }
  .notification-card { grid-template-columns: 36px 1fr; padding: 14px; }
  .notification-card__icon { width: 36px; height: 36px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
}

}

/* Domain: ticket.css */
@layer domain {
@scope (body.page-ticket) {


:root {
  --bg: #f5f7f4;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: #eef4ef;
  --text: #17211c;
  --muted: #627167;
  --line: #d9e2da;
  --brand: #1f8f62;
  --brand-strong: #0f6b47;
  --accent: #c7ead9;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(23, 33, 28, 0.08);
}

/* Ticket workspace: hero banner + kanban board */
.calendar-shell { --ink:#17231f; --muted:#718079; --brand:#136f54; --mint:#e9f5ef; }
.hero { background:linear-gradient(135deg,#102b23,#195f4b); color:#fff; border-radius:28px; box-shadow:0 20px 50px rgba(15,57,44,.18); }
.composer,.timeline { border-radius:24px; box-shadow:0 14px 40px rgba(31,55,46,.08); }
.timeline { min-width:0; overflow:hidden; }

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 16px;
  align-items: start;
  padding: 4px 4px 16px;
  overflow-x: auto;
  scrollbar-color: var(--line) transparent;
}

/* Make the horizontal scroll affordance obvious — there are 4 status lanes
   (Открытые/В работе/Готово/Отменено) but only ~3 fit next to the composer
   sidebar at desktop widths, so the board scrolls sideways like a normal
   kanban board. A visible thin scrollbar signals that on Chromium browsers. */
.kanban-board::-webkit-scrollbar {
  height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.kanban-column {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-soft);
  min-height: 64px;
}

.kanban-column > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 8px;
  font-weight: 400;
}

.kanban-column > header::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #719a89;
}

.kanban-column[data-kanban-column="in_progress"] > header::before { background: #dfa629; }
.kanban-column[data-kanban-column="done"] > header::before { background: var(--brand-strong); }
.kanban-column[data-kanban-column="cancelled"] > header::before { background: #9ca5a1; }

.kanban-column > header b {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.kanban-column > div { display: grid; gap: 12px; }
.kanban-column > div:empty { display: none; }

.kanban-column:has(> div:empty) { padding-bottom: 12px; }
.kanban-column:has(> div:empty)::after {
  content: "Нет задач";
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.kanban-column .ticket-card { padding:16px; border:1px solid #e1e8e4; border-radius:14px; background:#fff; box-shadow:0 5px 16px rgba(26,52,42,.05); }
.kanban-column .ticket-card h3 { font-size:16px; }
.kanban-column .event-meta { gap:4px; }
.kanban-column .ticket-people { gap:8px; }
.kanban-source { display:none; }

@media (max-width: 960px) {
  .kanban-board {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 143, 98, 0.18), transparent 32%),
    linear-gradient(180deg, #f5f7f4 0%, #edf2ee 48%, #ffffff 100%);
  color: var(--text);
  font-family: "PT Sans", Arial, sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.calendar-shell {
  display: grid;
  gap: 16px;
}

.hero,
.composer,
.timeline {
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links a,
.button,
.participant-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-links__form {
  display: contents;
}

.nav-links a,
.button,
button,
input,
textarea,
select {
  font: inherit;
}

.nav-links a,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand-strong);
  background: rgba(31, 143, 98, 0.1);
}

button {
  background: var(--brand);
  color: #ffffff;
}

button:hover {
  transform: translateY(-1px);
}

.button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.hero {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.hero__copy {
  display: grid;
  gap: 8px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 143, 98, 0.12);
  color: var(--brand-strong);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.1;
}

.hero p,
.card-copy p,
.participant-note,
.empty-state p,
.event-meta,
.participant-line {
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  color: var(--ink);
}

.hero-stats span {
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 16px;
}

.composer,
.timeline {
  padding: 24px;
}

.composer {
  display: grid;
  align-content: start;
  gap: 24px;
}

.card-copy {
  display: grid;
  gap: 8px;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.message--error {
  background: #fff1ee;
  border-color: #ffd8d2;
  color: var(--danger);
}

.calendar-form {
  display: grid;
  gap: 16px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
}

legend {
  padding: 0;
  color: var(--muted);
  font-weight: 400;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cad5cc;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(31, 143, 98, 0.16);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.audience-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.participant-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.participant-group {
  display: grid;
  gap: 8px;
}

.participant-group h3 {
  font-size: 14px;
}

.participant-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 12px;
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.participant-option input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  padding: 0;
}

.participant-option strong,
.event-card h3 {
  color: var(--text);
}

.participant-option span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 16px;
  align-content: start;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.event-card__header,
.event-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 400;
}

.badge--status-open {
  background: #edf9ff;
  color: #006f90;
}

.badge--status-in_progress {
  background: #fff6de;
  color: #8d5f00;
}

.badge--status-done {
  background: #e9f9ee;
  color: var(--brand-strong);
}

.badge--status-cancelled {
  background: #f3f0f5;
  color: #6a6473;
}

.badge--priority-low {
  background: var(--surface-soft);
  color: var(--brand-strong);
}

.badge--priority-medium {
  background: #eef0ff;
  color: #3040a0;
}

.badge--priority-high {
  background: #fff1e6;
  color: #b5560f;
}

.badge--priority-urgent {
  background: #fff1ee;
  color: var(--danger);
}

.badge--relation {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.event-meta {
  display: grid;
  gap: 8px;
}

.avatar-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar,
.avatar-stack img,
.avatar-stack span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #daf0e3);
  color: var(--brand-strong);
  font-weight: 400;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 22px rgba(23, 33, 28, 0.12);
  object-fit: cover;
}

.avatar-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #c6d4c8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.ticket-people {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ticket-history,
.ticket-manage {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--surface-soft);
}

.ticket-history summary,
.ticket-manage summary {
  cursor: pointer;
  font-weight: 400;
}

/* History is a read-only log: kept quiet. */
.ticket-history summary {
  color: var(--muted);
}

/* Management panel holds the actions a manager is most likely to take next
   (change status / reassign / add watchers) — it should read as the primary
   action on the card, so it gets the brand border + accent color. */
.ticket-manage {
  border: 2px solid var(--brand);
  background: #ffffff;
}

.ticket-manage summary {
  color: var(--brand-strong);
}

.ticket-history ul {
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.ticket-history .event-time {
  color: var(--muted);
  font-size: 12px;
}

.ticket-manage__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.inline-form {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .shell {
    width: min(100% - 32px, 1180px);
    padding-top: 16px;
  }

  .workspace,
  .form-grid,
  .hero-stats,
  .timeline-header,
  .event-card__header,
  .event-card__footer,
  .ticket-manage__grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links a,
  .button,
  button {
    width: 100%;
  }
}

}

}

/* Domain: file.css */
@layer domain {
@scope (body.page-file) {

:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --text: #17211c;
  --muted: #6d7973;
  --brand: #0c8f6c;
  --brand-dark: #087454;
  --brand-soft: #e7f5f0;
  --line: #dce3df;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../pattern.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

body, body * { font-family: "PT Sans", Arial, sans-serif; font-weight: 400; }
h1, h2, h3 { margin: 0; font-family: "Neutral Face", "PT Sans", Arial, sans-serif; font-weight: 400; text-transform: uppercase; }
p { margin: 0; color: var(--muted); }

button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(12, 143, 108, .3); outline-offset: 2px; }

.file-shell { display: grid; gap: 16px; width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 89px 0 56px; }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: "Neutral Face", "PT Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button, .button-link, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.button:hover, button:hover { background: var(--brand-dark); }
.button--primary { background: var(--brand); color: #fff; }
.button--secondary { background: #fff; color: var(--text); border-color: var(--line); }
.button--secondary:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }
.button--ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.button--ghost:hover { background: #fff; color: var(--text); }
.button--danger { background: var(--danger); color: #fff; }
.button--danger:hover { background: #8f1b12; }
.button-link { background: transparent; color: var(--brand-dark); border: 0; min-height: auto; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.button-link:hover { background: transparent; color: var(--brand); }

.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 400; white-space: nowrap; }

.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 13px; text-transform: uppercase; }
img.avatar { object-fit: cover; }

.empty-state { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; border: 1px dashed var(--line); border-radius: 18px; background: #fff; text-align: center; }
.empty-state__icon { font-size: 34px; }
.empty-state h2 { font-size: 20px; }
.empty-state p { max-width: 46ch; }

.calendar-form { display: grid; gap: 16px; }
label, fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; color: var(--muted); }
legend { padding: 0; color: var(--muted); }
input, textarea, select { width: 100%; padding: 12px 16px; border: 1px solid #cad5cc; border-radius: 12px; background: #fff; color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); outline: 3px solid rgba(12, 143, 108, .16); }

.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 0; border: 0; background: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Scope tabs (personal / department / company drives) */
.file-scope-switch { display: flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: fit-content; }
.file-scope-switch a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; transition: background .15s ease, color .15s ease; }
.file-scope-switch a:hover { background: var(--brand-soft); color: var(--text); }
.file-scope-switch a.is-active { background: var(--brand); color: #fff; }
@media (max-width: 700px) { .file-scope-switch { width: 100%; overflow-x: auto; } .file-scope-switch a { flex: 1 0 auto; justify-content: center; white-space: nowrap; } }

/* Header + toolbar */
.file-header-actions { display: flex; gap: 10px; }
.file-header-actions > * { width: auto; white-space: nowrap; }
.file-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.file-breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.file-breadcrumbs a { text-decoration: none; }
.file-breadcrumbs a:hover { color: var(--brand-dark); }
.file-breadcrumbs b { color: var(--text); font-weight: 700; }
.file-search { display: flex; align-items: center; gap: 8px; }
.file-search input { min-width: min(260px, 50vw); }
.file-search button { width: auto; min-height: 40px; padding: 0 16px; }

/* Upload dropzone */
.file-dropzone { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.file-dropzone.is-dragging { border-color: var(--brand); background: #fff; }
.file-dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-dropzone__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: 19px; }
.file-dropzone__body { display: grid; gap: 2px; min-width: 0; }
.file-dropzone__title { font-weight: 400; color: var(--text); }
.file-dropzone__hint { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Folder grid */
.file-folder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.file-folder { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 5px 18px rgba(23, 33, 28, .045); }
.file-folder__link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.file-folder__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: 19px; }
.file-folder__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-folder--up .file-folder__icon { background: #eef2f0; color: var(--muted); }
.file-folder__menu, .file-row__menu { position: relative; }
.file-folder__menu > summary, .file-row__menu > summary { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); cursor: pointer; list-style: none; }
.file-folder__menu > summary::-webkit-details-marker, .file-row__menu > summary::-webkit-details-marker { display: none; }
.file-folder__menu > summary:hover, .file-row__menu > summary:hover { background: #eef2f0; }
.file-menu__panel { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); display: grid; gap: 8px; width: min(320px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 46px #17211c24; }
.file-menu__panel .inline-form { grid-template-columns: minmax(0, 1fr) auto; }
.file-menu__panel button { width: auto; min-height: 38px; padding: 0 12px; }

/* File table */
.file-table { display: grid; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(23, 33, 28, .045); }
.file-row { display: grid; grid-template-columns: minmax(0, 2.4fr) auto minmax(0, 1.2fr) 90px 110px auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.file-row:first-child { border-top: 0; border-radius: 16px 16px 0 0; }
.file-row:last-child { border-radius: 0 0 16px 16px; }
.file-row:not(.file-row--head):hover { background: #f8faf9; }
.file-row--head { background: #f4f7f5; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.file-row__name { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.file-row__name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row__owner { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; }
.file-row__owner .avatar { width: 28px; height: 28px; font-size: 11px; }
.file-row__owner > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row time { color: var(--muted); font-size: 14px; }
.file-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.file-ext { display: grid; place-items: center; width: 42px; height: 34px; flex: none; border-radius: 8px; background: #eef2f0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.file-ext--pdf { background: #fdecea; color: #b42318; }
.file-ext--office { background: #e8effc; color: #25479c; }
.file-ext--image { background: #eaf6ee; color: #1f7a45; }
.file-ext--text { background: #fff6de; color: #8d5f00; }

.badge--scope-personal { background: #eef2f0; color: #4c5a54; }
.badge--scope-department { background: #eef0ff; color: #3040a0; }
.badge--scope-company { background: #fff6de; color: #8d5f00; }

/* Viewer */
.file-viewer { position: relative; display: grid; min-height: min(74vh, 760px); border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 5px 18px rgba(23, 33, 28, .045); }
.file-viewer iframe { width: 100%; height: min(74vh, 760px); border: 0; }
.file-viewer--image { place-items: center; padding: 20px; margin: 0; }
.file-viewer--image img { max-height: min(74vh, 760px); object-fit: contain; }
.file-viewer__status { display: grid; place-items: center; gap: 10px; padding: 60px 20px; text-align: center; color: var(--muted); }
.file-viewer__status small { max-width: 44ch; }
.file-viewer__spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: file-spin .9s linear infinite; }
@keyframes file-spin { to { transform: rotate(360deg); } }
.file-viewer-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 10px; }
.file-viewer-header__title {gap: 6px; min-width: 0; }
.file-viewer-header h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(20px, 3vw, 28px); text-transform: none; word-break: break-word; }
.file-viewer-header__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.file-viewer-header__meta .avatar { width: 24px; height: 24px; font-size: 10px; }
.file-viewer-header .button-link { font-size: 14px; text-decoration: none; }

/* Editor */
.file-editor-form { display: grid; gap: 12px; }
.file-editor { width: 100%; min-height: min(74vh, 760px); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(23, 33, 28, .045); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14px; line-height: 1.5; resize: vertical; }
.file-editor:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
@media (max-width: 900px) {
  .file-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name name actions" "scope size date"; }
  .file-row--head { display: none; }
  .file-row__name { grid-area: name; }
  .file-row__actions { grid-area: actions; }
  .file-row__owner { display: none; }
}
@media (max-width: 700px) {
  .file-shell { padding-top: 79px; width: calc(100% - 20px); }
  .file-viewer-header, .file-toolbar { align-items: stretch; flex-direction: column; }
  .file-header-actions > * { flex: 1; }
  .file-search { width: 100%; }
  .file-search input { flex: 1; min-width: 0; }
  .file-menu__panel { position: fixed; right: 10px; top: 76px; }
}

}
}

/* Shared topbar: the only source of topbar layout and appearance. */
@layer components {
.topbar{position:fixed;z-index:20;inset:0 0 auto;height:var(--topbar-height);display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1100px)/2));border:0;border-bottom:1px solid var(--line);border-radius:0;background:rgba(255,255,255,.96);box-shadow:none;backdrop-filter:blur(16px);font-family:"Neutral Face",sans-serif;font-weight:400;text-transform:uppercase}
.topbar .brand{display:flex;align-items:center;gap:9px;color:var(--text);font-family:"Neutral Face",sans-serif;font-size:20px;font-weight:400;text-transform:uppercase;text-decoration:none}
.topbar .brand img{width:auto;height:calc(var(--topbar-height) - 20px);object-fit:contain}
.topbar .nav-links{display:flex;align-items:center;height:100%;gap:4px;flex-wrap:nowrap}
.topbar .nav-links>a,.topbar .nav-more>summary{height:100%;display:flex;align-items:center;padding:0 15px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--muted);font-family:"Neutral Face",sans-serif;font-size:16px;font-weight:400;line-height:1;text-transform:uppercase;text-decoration:none;cursor:pointer}
.topbar .nav-links>a:hover,.topbar .nav-links>a.is-active{color:var(--brand);border-color:var(--brand);background:none}
.topbar .topbar__count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 5px;border-radius:999px;background:var(--brand);color:#fff;font-family:"PT Sans",Arial,sans-serif;font-size:11px;font-weight:700;line-height:1}
.topbar .nav-more{position:relative;height:100%}
.topbar .nav-more>summary{list-style:none;font-size:19px}
.topbar .nav-more>summary::-webkit-details-marker{display:none}
.topbar .nav-more__menu{position:absolute;right:0;top:calc(100% + 8px);min-width:170px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 30px #15202b20}
.topbar .nav-more__menu a,.topbar .nav-more__menu button{display:block;width:100%;height:auto;min-height:0;padding:10px 12px;border:0;border-radius:8px;background:none;color:var(--text);text-align:left;text-transform:none;text-decoration:none;}
.topbar .nav-more__menu a:hover,.topbar .nav-more__menu button:hover{background:var(--bg);color:var(--text);transform:none}

@media(max-width:700px){.topbar{padding:0 10px}.topbar .brand span{display:none}.topbar .nav-links>a{padding:0 9px;font-size:14px}.topbar .nav-links>a:nth-of-type(2),.topbar .nav-links>a:nth-of-type(3){display:none}}
}

.mobile-nav{display:none}
.app-toast{position:fixed;z-index:100;right:20px;bottom:20px;max-width:min(420px,calc(100% - 40px));padding:12px 16px;border-radius:12px;background:#15392e;color:#fff;box-shadow:0 14px 38px rgba(11,29,23,.25)}
.app-toast[data-kind="error"]{background:#9b2c24}
button[aria-busy="true"]{cursor:wait;opacity:.68}
@media(max-width:700px){
  body{padding-bottom:68px}
  .mobile-nav{position:fixed;z-index:50;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));inset:auto 0 0;height:64px;padding:4px max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));border-top:1px solid var(--line);background:rgba(255,255,255,.98);box-shadow:0 -8px 28px rgba(23,33,28,.08);backdrop-filter:blur(14px)}
  .mobile-nav>a,.mobile-nav__more>summary{position:relative;display:flex;min-width:0;height:56px;align-items:center;justify-content:center;flex-direction:column;gap:2px;border:0;background:none;color:var(--muted);text-decoration:none;list-style:none;cursor:pointer}
  .mobile-nav>a>span,.mobile-nav__more>summary>span{font-size:19px;line-height:1}
  .mobile-nav small{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:10px;white-space:nowrap}
  .mobile-nav>a.is-active{color:var(--brand);font-weight:700}
  .mobile-nav__count{position:absolute;top:3px;left:calc(50% + 8px);display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#d5493f;color:#fff;font-size:9px}
  .mobile-nav__more{position:relative}
  .mobile-nav__more>summary::-webkit-details-marker{display:none}
  .mobile-nav__more>div{position:absolute;right:4px;bottom:66px;width:210px;padding:8px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 16px 44px rgba(11,29,23,.2)}
  .mobile-nav__more>div a,.mobile-nav__more>div button{display:block;width:100%;padding:11px 12px;border:0;border-radius:8px;background:none;color:var(--text);text-align:left;text-decoration:none}
  .mobile-nav__more>div a:hover,.mobile-nav__more>div button:hover{background:var(--bg)}
  .app-toast{right:12px;bottom:76px;max-width:calc(100% - 24px)}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
.pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:20px 0;padding:10px}.pagination .button{width:auto;text-decoration:none}.pagination span{color:var(--muted)}
@media(max-width:520px){.pagination{display:grid;grid-template-columns:1fr auto 1fr}.pagination .button{padding-inline:10px;text-align:center}}
.notification-filters{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.notification-filters select{min-height:40px}.notification-filters .button{width:auto}.notification-filters .button-link{margin-left:auto}
@media(max-width:700px){.notification-filters{display:grid;grid-template-columns:1fr}.notification-filters select,.notification-filters .button{width:100%}.notification-filters .button-link{margin:0;text-align:center}}
.message-history-link{display:block;margin:0 auto 12px;padding:8px 12px;border-radius:999px;background:var(--surface-soft);color:var(--brand-dark);font-size:13px;text-align:center;text-decoration:none}
.task-filters{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(130px,1fr)) auto auto auto;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.task-filters input,.task-filters select,.task-filters button{min-height:42px}.task-filter-check{display:flex;align-items:center;gap:6px;white-space:nowrap}.task-filter-check input{min-height:0}.task-card__workspace{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.task-card__workspace>summary{cursor:pointer;color:var(--brand-dark)}.task-workspace-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px}.task-workspace-section{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}.task-workspace-section h4{margin:0 0 10px}.task-checklist-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:5px 0}.task-checklist-item form{margin:0}.task-checklist-item button{min-height:30px;padding:3px 8px;background:transparent;color:var(--brand-dark)}.task-checklist-item.is-done>span{text-decoration:line-through;color:var(--muted)}.task-quick-form{display:flex;gap:7px;margin-top:10px}.task-quick-form input{flex:1;min-width:0}.task-quick-form button{width:auto}.task-comments{display:grid;gap:8px;max-height:260px;overflow:auto}.task-comments article{padding:8px;border-radius:8px;background:#fff}.task-comments time{float:right;color:var(--muted);font-size:12px}.task-comments p{margin:4px 0 0;white-space:pre-wrap}.task-activity{margin-top:12px}.task-activity ol{display:grid;gap:7px;padding-left:22px}.task-activity li small{display:block;color:var(--muted)}.task-edit{margin-top:12px}.task-edit .calendar-form{margin-top:10px}.task-archive{margin-top:12px;width:auto}.task-card[data-ticket-status] time{white-space:nowrap}
@media(max-width:1000px){.task-filters{grid-template-columns:1fr 1fr 1fr}.task-workspace-grid{grid-template-columns:1fr}}
@media(max-width:620px){.task-filters{grid-template-columns:1fr}.task-filters>*{width:100%}.task-filter-check{width:auto}.task-quick-form{display:grid;grid-template-columns:1fr}.task-comments time{float:none;display:block}}
.dashboard-shell,.search-shell{display:grid;gap:16px}.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff}.dashboard-hero h1{margin:5px 0}.global-search{display:flex;gap:8px;width:min(520px,100%)}.global-search input{flex:1;min-width:0}.global-search button{width:auto}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.dashboard-metrics a{display:flex;flex-direction:column;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);text-decoration:none}.dashboard-metrics strong{color:var(--brand);font-size:28px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dashboard-card{min-width:0;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}.dashboard-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.dashboard-card h2{margin:0}.dashboard-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 4px;border-top:1px solid var(--line);color:var(--text);text-decoration:none}.dashboard-row>span{min-width:0}.dashboard-row strong,.dashboard-row small{display:block}.dashboard-row small{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.dashboard-row time{flex:none;color:var(--muted)}.search-results{display:grid;gap:16px}.search-group{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}.search-group h2{margin-top:0}.search-group h2 small{color:var(--muted)}.search-result-row{display:grid;grid-template-columns:minmax(180px,.4fr) 1fr;gap:14px;padding:12px 4px;border-top:1px solid var(--line);color:var(--text);text-decoration:none}.search-result-row span{color:var(--muted)}
@media(max-width:760px){.dashboard-hero{align-items:stretch;flex-direction:column;padding:20px}.dashboard-metrics{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.global-search{width:100%}.search-result-row{grid-template-columns:1fr;gap:3px}}
.directory-search{display:flex;gap:8px;margin:0 0 16px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.directory-search input{flex:1;min-width:0}.directory-search button{width:auto}.directory-search a{align-self:center}@media(max-width:600px){.directory-search{display:grid;grid-template-columns:1fr}.directory-search button{width:100%}}
.calendar-filters{display:grid;grid-template-columns:1fr 220px auto auto;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.calendar-filters button{width:auto}.recurrence-fields[hidden]{display:none}@media(max-width:650px){.calendar-filters{grid-template-columns:1fr}.calendar-filters button{width:100%}}
.mobile-nav__count[hidden],.topbar__count[hidden]{display:none!important}
main h1,main h2,main h3,main h4{text-transform:none;letter-spacing:normal}
body{background-blend-mode:screen}
.task-filter-check{justify-content:flex-start!important;flex-direction:row!important}
.message-attachment{display:inline-flex;align-items:center;gap:6px;margin:4px 0;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--brand-dark);text-decoration:none}.message-attachment-picker{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-direction:row!important;gap:10px;padding:8px 10px;border:1px dashed var(--line);border-radius:9px;color:var(--muted);cursor:pointer}.message-attachment-picker input{max-width:100%}
.calendar-view-switch{display:flex;gap:6px;margin-bottom:10px}.calendar-view-switch button{width:auto;background:#fff;color:var(--muted)}.calendar-view-switch button.is-active{background:var(--brand);color:#fff}.week-calendar{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.week-day{min-height:320px;padding:8px;border-right:1px solid var(--line)}.week-day:last-child{border-right:0}.week-day>header{display:flex;justify-content:space-between;margin-bottom:8px}.week-day.is-today>header{color:var(--brand)}.calendar-event-source.is-visible{display:grid!important}.calendar-event-source.is-visible .event-card{display:block}@media(max-width:700px){.week-calendar{grid-template-columns:repeat(7,180px)}.calendar-view-switch{display:grid;grid-template-columns:repeat(3,1fr)}.calendar-view-switch button{width:100%}}

@layer overrides {
  .page-user .profile-shell,
  .page-calendar .calendar-shell,
  .page-ticket .calendar-shell {width:min(1100px,calc(100% - 32px));margin:0 auto;padding-top:89px}
  .page-notification .notifications-shell {padding-top:89px}
  @media(max-width:700px){
    .page-user .profile-shell,
    .page-calendar .calendar-shell,
    .page-ticket .calendar-shell {width:calc(100% - 20px);padding-top:79px}
    .page-notification .notifications-shell {padding-top:79px}
  }
}

@layer overrides {
  .page-calendar {background-image: url(../pattern.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;}
  .page-calendar .shell {width:100%;padding:0;}
  .page-calendar .calendar-shell {gap:16px;}
  .page-calendar .hero {grid-template-columns:minmax(0,1fr) auto;align-items:end;padding:24px;border:0;border-radius:18px;background:#fff;color:var(--text);box-shadow:0 8px 24px rgba(23,33,28,.06);}
  .page-calendar .hero .eyebrow {background:var(--brand-soft);color:var(--brand-dark);}
  .page-calendar .hero__copy {max-width:700px;}
  .page-calendar .hero__copy h1 {font-size:clamp(25px,4vw,34px);}
  .page-calendar .hero__copy p {color:var(--muted);}
  .page-calendar .hero-stats {min-width:320px;}
  .page-calendar .hero-stats article {padding:12px;border-radius:12px;background:#f7f9f8;}
  .page-calendar .hero-stats strong {font-size:18px;margin-bottom:3px;}
  .page-calendar .workspace {grid-template-columns:minmax(0,1fr);}
  .page-calendar .composer,.page-calendar .timeline {border-radius:18px;border:1px solid var(--line);box-shadow:0 8px 24px rgba(23,33,28,.05);}
  .page-calendar .composer {position:sticky;top:81px;padding:20px;gap:16px;}
  .page-calendar .timeline {padding:20px;}
  .page-calendar .timeline-header {align-items:center;}
  .page-calendar .timeline-header .card-copy {max-width:720px;}
  .page-calendar .calendar-create-button {width:auto;flex:0 0 auto;min-height:44px;padding:0 18px;white-space:nowrap;}
  .page-calendar .calendar-page-error {margin:0;}
  .page-calendar .event-card {border-radius:14px;box-shadow:0 5px 16px rgba(26,52,42,.04);}
  .page-calendar .event-card__actions {display:flex;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid var(--line);}
  .page-calendar .event-card__actions form {margin:0;}
  .page-calendar .event-card__actions .button {width:auto;min-height:38px;padding:0 13px;}
  .page-calendar .button--secondary {background:#fff;color:var(--text);border-color:var(--line);}
  .page-calendar .button--danger {background:#fff;color:var(--danger);border-color:#f2c7c3;}
  .page-calendar .button--danger:hover {background:#fff1ee;color:#8f1b12;}
  .page-calendar .event-dialog {width:min(680px,calc(100% - 24px));max-height:90vh;padding:0;border:0;border-radius:20px;background:#fff;color:var(--text);box-shadow:0 24px 70px rgba(15,35,27,.24);}
  .page-calendar .event-dialog::backdrop {background:rgba(11,29,23,.45);backdrop-filter:blur(3px);}
  .page-calendar .event-edit-form {padding:24px;max-height:90vh;overflow:auto;}
  .page-calendar .event-dialog__header {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
  .page-calendar .event-dialog__close {width:38px;min-height:38px;padding:0;border-radius:50%;background:#f2f4f3;color:var(--text);font-size:24px;}
  .page-calendar .event-dialog__actions {display:flex;justify-content:flex-end;gap:8px;padding-top:8px;}
  .page-calendar .event-dialog__actions button {width:auto;}
  @media(max-width:960px){
    .page-calendar .hero {grid-template-columns:1fr;}
    .page-calendar .hero-stats {min-width:0;}
    .page-calendar .workspace {grid-template-columns:1fr;}
    .page-calendar .composer {position:static;}
    .page-calendar .calendar-create-button {width:100%;}
  }
  @media(max-width:600px){
    .page-calendar .hero-stats {grid-template-columns:1fr;}
    .page-calendar .event-card__actions,.page-calendar .event-dialog__actions {display:grid;grid-template-columns:1fr;}
    .page-calendar .event-card__actions .button,.page-calendar .event-dialog__actions button {width:100%;}
  }
}

