:root {
  --portal-ink: #152c29;
  --portal-pine: #1d3d39;
  --portal-teal: #477b79;
  --portal-mist: #e7efeb;
  --portal-paper: #f7f6f2;
  --portal-card: #fff;
  --portal-warm: #9a664d;
  --portal-gold: #d8a95b;
  --portal-line: rgba(22, 48, 44, 0.13);
  --portal-muted: #63726f;
  --portal-shadow: 0 18px 55px rgba(17, 43, 39, 0.1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--portal-paper);
  color: var(--portal-ink);
  font:
    16px/1.55 Arial,
    Helvetica,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.portal-shell {
  display: grid;
  grid-template-columns: 266px minmax(0, 1fr);
  min-height: 100vh;
}
.portal-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 29px 18px 20px;
  background: #162e2b;
  color: #e6f0ec;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
}
.portal-brand img {
  display: block;
  width: 185px;
  max-height: 41px;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.portal-brand span {
  display: block;
  margin-top: 2px;
  color: #b8d2cd;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.portal-side-label {
  margin: 49px 11px 10px;
  color: #9dbbb5;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.portal-nav {
  display: grid;
  gap: 4px;
}
.portal-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 47px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d9e7e3;
  text-align: left;
  font-size: 0.87rem;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.portal-nav button span {
  display: grid;
  place-items: center;
  width: 19px;
  color: #afcbc5;
  font-size: 1.08rem;
}
.portal-nav button b {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  border-radius: 50%;
  background: #d8a95b;
  color: #172725;
  font-size: 0.62rem;
}
.portal-nav button:hover {
  background: rgba(208, 232, 225, 0.07);
  transform: translateX(2px);
}
.portal-nav button.is-active {
  background: #edf4f1;
  color: #18322f;
  font-weight: 700;
}
.portal-nav button.is-active span {
  color: #9a664d;
}
.portal-side-note {
  display: flex;
  gap: 10px;
  margin: auto 8px 20px;
  padding: 14px 13px;
  border: 1px solid rgba(224, 241, 236, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.portal-side-note i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: #d8a95b;
  box-shadow: 0 0 0 4px rgba(216, 169, 91, 0.11);
}
.portal-side-note p {
  margin: 0;
  color: #e8f2ef;
  font-size: 0.75rem;
  line-height: 1.45;
}
.portal-side-note small {
  color: #a9c2bd;
  font-size: 0.68rem;
}
.portal-back {
  padding: 9px 11px;
  color: #b9cfca;
  font-size: 0.76rem;
}
.portal-back:hover {
  color: #fff;
}
.portal-content {
  min-width: 0;
}
.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 123px;
  padding: 27px clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--portal-line);
  background: rgba(255, 255, 255, 0.78);
}
.portal-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--portal-teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.portal-topbar h1,
.portal-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.portal-topbar h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1;
}
.portal-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-user > span,
.request-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2c795, #a86d52);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.portal-user b,
.portal-user small {
  display: block;
}
.portal-user b {
  font-size: 0.78rem;
}
.portal-user small {
  color: var(--portal-muted);
  font-size: 0.68rem;
}
.portal-main {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 35px clamp(28px, 5vw, 72px) 70px;
}
.portal-demo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 35px;
  padding: 13px 16px;
  border: 1px solid rgba(216, 169, 91, 0.35);
  border-radius: 12px;
  background: #fffaf0;
  color: #5b625f;
}
.portal-demo-banner span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 99px;
  background: #f1d499;
  color: #423520;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.portal-demo-banner p {
  margin: 0;
  font-size: 0.8rem;
}
.portal-tour-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #315b55;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.portal-tour-replay:hover { color: #9a664d; }
.portal-panel[hidden] {
  display: none;
}
.portal-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 25px;
}
.portal-heading h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.98;
}
.outline-action,
.primary-action,
.quiet-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 42px;
  border: 1px solid var(--portal-pine);
  padding: 0 15px;
  background: #fff;
  color: var(--portal-pine);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.outline-action:hover {
  background: #edf4f1;
}
.primary-action {
  border-color: var(--portal-pine);
  background: var(--portal-pine);
  color: #fff;
}
.primary-action:hover {
  background: var(--portal-teal);
  border-color: var(--portal-teal);
}
.quiet-action {
  min-height: auto;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #876451;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.metric-card {
  min-height: 158px;
  padding: 22px 22px 17px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: var(--portal-card);
  box-shadow: 0 10px 28px rgba(16, 44, 39, 0.035);
}
.metric-card span,
.metric-card small {
  display: block;
}
.metric-card span {
  color: #546763;
  font-size: 0.76rem;
}
.metric-card strong {
  display: block;
  margin: 13px 0 11px;
  font:
    500 2.55rem/1 Georgia,
    "Times New Roman",
    serif;
  color: var(--portal-pine);
}
.metric-card small {
  color: #8a7770;
  font-size: 0.67rem;
}
.metric-card--warm {
  background: #28423e;
  color: #fff;
}
.metric-card--warm span,
.metric-card--warm strong {
  color: #fff;
}
.metric-card--warm small {
  color: #c6d6d1;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(285px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}
.activity-card,
.site-card {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 44, 39, 0.035);
}
.activity-card {
  padding: 25px;
}
.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--portal-line);
}
.card-title h3,
.site-card h3,
.request-detail h3,
.article-side h3,
.calendar-side h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.card-title button {
  border: 0;
  background: transparent;
  color: #477b79;
  font-size: 0.67rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.activity-list {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.activity-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
}
.activity-list li > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(71, 123, 121, 0.35);
  border-radius: 50%;
  color: #8d6646;
  font-size: 0.65rem;
  font-weight: 700;
}
.activity-list p {
  margin: 0;
}
.activity-list b,
.activity-list small {
  display: block;
}
.activity-list b {
  font-size: 0.83rem;
}
.activity-list small {
  color: var(--portal-muted);
  font-size: 0.74rem;
}
.site-card {
  position: relative;
  overflow: hidden;
  padding: 27px;
  background: linear-gradient(145deg, #234441, #477b79);
  color: #fff;
}
.site-card:after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  bottom: -125px;
  border: 1px solid rgba(220, 239, 233, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(220, 239, 233, 0.06);
}
.site-card > * {
  position: relative;
  z-index: 1;
}
.site-card .portal-eyebrow {
  color: #c1ddd8;
}
.site-card h3 {
  font-size: 1.85rem;
}
.site-card p:not(.portal-eyebrow) {
  max-width: 290px;
  color: #e1edeb;
  font-size: 0.84rem;
}
.site-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  color: #f4cf83;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.soft-status {
  padding: 6px 10px;
  border-radius: 99px;
  background: #e7efeb;
  color: #39605a;
  font-size: 0.67rem;
  font-weight: 700;
}
.request-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  min-height: 510px;
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.request-list {
  padding: 10px;
  border-right: 1px solid var(--portal-line);
  background: #fbfcfb;
}
.request-row {
  display: grid;
  grid-template-columns: 37px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.request-row:hover,
.request-row.is-selected {
  background: #edf4f1;
}
.request-row b,
.request-row small {
  display: block;
}
.request-row b {
  font-size: 0.78rem;
}
.request-row small {
  margin-top: 2px;
  color: #6a7c77;
  font-size: 0.66rem;
  line-height: 1.4;
}
.request-row i {
  color: #8d623b;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}
.empty-inbox {
  margin: 19px 11px;
  color: #72817d;
  font-size: 0.72rem;
  line-height: 1.55;
}
.request-detail {
  padding: 31px 34px;
}
.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.detail-top h3 {
  font-size: 2rem;
}
.detail-top span {
  display: block;
  margin-top: 5px;
  color: #6d7e79;
  font-size: 0.73rem;
}
.detail-menu {
  border: 0;
  background: transparent;
  color: #536a64;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}
.request-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
}
.request-data div {
  padding: 13px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
}
.request-data dt {
  margin-bottom: 5px;
  color: #6d7e79;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.request-data dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
}
.request-message {
  padding: 18px 19px;
  border-left: 3px solid var(--portal-gold);
  border-radius: 0 11px 11px 0;
  background: #f6f3ed;
}
.request-message b {
  font-size: 0.75rem;
}
.request-message p {
  max-width: 600px;
  margin: 7px 0 0;
  color: #52635f;
  font-size: 0.86rem;
}
.detail-actions {
  display: flex;
  gap: 9px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.article-state {
  display: flex;
  align-items: center;
  gap: 17px;
}
.article-state > span {
  color: #63736f;
  font-size: 0.72rem;
}
.article-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.55fr);
  gap: 16px;
}
.editor-card,
.article-side .side-block {
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 44, 39, 0.03);
}
.editor-card {
  padding: 27px;
}
.field-label {
  display: block;
  margin: 0 0 7px;
  color: #506761;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-title-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--portal-line);
  padding: 6px 0 18px;
  outline: 0;
  color: var(--portal-ink);
  font:
    500 clamp(1.8rem, 4vw, 3.1rem)/1.05 Georgia,
    "Times New Roman",
    serif;
}
.article-title-input::placeholder {
  color: #9eaaa6;
}
.editor-options {
  display: flex;
  gap: 19px;
  padding: 19px 0 14px;
}
.editor-options label {
  color: #536963;
  font-size: 0.72rem;
}
.editor-options select,
.editor-options input {
  display: block;
  max-width: 175px;
  margin-top: 5px;
  border: 1px solid var(--portal-line);
  padding: 7px 8px;
  background: #fcfcfa;
  color: #314541;
  font-size: 0.75rem;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid var(--portal-line);
  border-bottom: 1px solid var(--portal-line);
}
.editor-toolbar button {
  min-width: 31px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #274541;
  font-size: 0.72rem;
}
.editor-toolbar button:hover {
  background: #edf4f1;
}
.editor-toolbar span {
  height: 19px;
  border-left: 1px solid var(--portal-line);
}
.article-editor {
  min-height: 310px;
  padding: 25px 4px 10px;
  outline: 0;
  color: #344c47;
  font-size: 1rem;
  line-height: 1.8;
}
.article-editor:empty:before {
  content: attr(data-placeholder);
  color: #9aa7a3;
  pointer-events: none;
}
.article-editor.font-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}
.article-editor.font-classic {
  font-family: "Times New Roman", serif;
}
.article-editor h2 {
  color: #193b36;
  font-family: Georgia, "Times New Roman", serif;
}
.image-preview {
  position: relative;
  margin-top: 20px;
}
.image-preview img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  object-fit: cover;
}
.image-preview button {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  background: rgba(20, 42, 39, 0.88);
  color: #fff;
  font-size: 0.66rem;
}
.article-side {
  display: grid;
  align-content: start;
  gap: 16px;
}
.article-side .side-block {
  padding: 21px;
}
.article-side h3 {
  margin-bottom: 20px;
}
.article-side input {
  width: 100%;
  margin-bottom: 19px;
  border: 1px solid var(--portal-line);
  padding: 10px;
  background: #fbfcfa;
  color: #304743;
  font-size: 0.79rem;
}
.article-actions {
  display: grid;
  gap: 8px;
}
.article-actions button {
  width: 100%;
}
.draft-list {
  display: grid;
  gap: 8px;
}
.draft-list > p {
  margin: 0;
  color: #6d7e79;
  font-size: 0.74rem;
}
.draft-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
}
.draft-item b,
.draft-item small {
  display: block;
}
.draft-item b {
  max-width: 165px;
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-item small {
  color: #6d7e79;
  font-size: 0.61rem;
}
.draft-item button {
  border: 0;
  background: transparent;
  color: #477b79;
  font-size: 0.65rem;
  text-decoration: underline;
}
.calendar-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.52fr);
  gap: 16px;
}
.calendar-card,
.calendar-side {
  border: 1px solid var(--portal-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 44, 39, 0.03);
}
.calendar-card {
  padding: 25px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}
.calendar-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}
.calendar-header button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--portal-line);
  border-radius: 50%;
  background: #fff;
  color: #274541;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.calendar-weekdays {
  margin-bottom: 7px;
}
.calendar-weekdays span {
  color: #667a74;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.calendar-day {
  position: relative;
  min-height: 82px;
  padding: 8px;
  border: 1px solid rgba(22, 48, 44, 0.07);
  border-radius: 9px;
  background: #fbfcfa;
  color: #274541;
  text-align: left;
  transition:
    border 0.16s,
    background 0.16s;
}
.calendar-day:hover,
.calendar-day.is-selected {
  border-color: #d8a95b;
  background: #fff9ed;
}
.calendar-day.is-muted {
  opacity: 0.36;
}
.calendar-day .day-number {
  font-size: 0.73rem;
  font-weight: 700;
}
.calendar-day .day-event {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  padding: 3px 4px;
  border-radius: 4px;
  background: #dfeeea;
  color: #315a53;
  font-size: 0.56rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-side {
  padding: 25px;
}
.calendar-side h3 {
  margin-bottom: 24px;
}
.calendar-side input {
  width: 100%;
  margin-bottom: 18px;
  border: 1px solid var(--portal-line);
  padding: 10px;
  background: #fbfcfa;
  color: #304743;
  font-size: 0.8rem;
}
.calendar-side .primary-action {
  width: 100%;
}
.calendar-side > p:last-child {
  margin: 18px 0 0;
  color: #75837f;
  font-size: 0.72rem;
  line-height: 1.55;
}
.range-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
  background: #fff;
}
.range-switch button {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: transparent;
  color: #526963;
  font-size: 0.67rem;
  font-weight: 700;
}
.range-switch button.is-active {
  background: #1d3d39;
  color: #fff;
}
.stat-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 30px;
  min-height: 320px;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 44, 39, 0.03);
}
.stat-main {
  padding-top: 16px;
}
.stat-main p {
  margin: 0;
  color: #546963;
  font-size: 0.79rem;
}
.stat-main strong {
  display: block;
  margin: 13px 0 6px;
  font:
    500 3.5rem/1 Georgia,
    "Times New Roman",
    serif;
}
.stat-main span {
  color: #8a7770;
  font-size: 0.68rem;
}
.chart-wrap {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 230px;
}
.chart-bars {
  display: flex;
  align-items: end;
  gap: clamp(7px, 1.8vw, 18px);
  padding: 20px 12px 0;
  border-bottom: 1px solid var(--portal-line);
}
.chart-bar {
  position: relative;
  flex: 1;
  min-width: 14px;
  border-radius: 7px 7px 1px 1px;
  background: linear-gradient(#78a49d, #1d3d39);
  transition: height 0.35s ease;
}
.chart-bar:hover:after {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  top: -25px;
  transform: translateX(-50%);
  padding: 3px 5px;
  border-radius: 4px;
  background: #172725;
  color: #fff;
  font-size: 0.61rem;
  white-space: nowrap;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 8px 3px 0;
  color: #72827e;
  font-size: 0.62rem;
}
.stat-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 16px;
}
.stat-insights article {
  padding: 18px;
  border: 1px solid var(--portal-line);
  border-radius: 13px;
  background: #fff;
}
.stat-insights span,
.stat-insights b,
.stat-insights small {
  display: block;
}
.stat-insights span {
  color: #617570;
  font-size: 0.68rem;
}
.stat-insights b {
  margin: 7px 0;
  color: #1d3d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}
.stat-insights small {
  color: #7c8985;
  font-size: 0.67rem;
}
.portal-toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: 11px;
  background: #16322f;
  color: #fff;
  box-shadow: 0 16px 42px rgba(12, 32, 29, 0.22);
  font-size: 0.77rem;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.portal-toast.is-visible {
  opacity: 1;
  transform: none;
}
.portal-presentation-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 31, 28, 0.72);
  backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.portal-presentation-modal.is-open { opacity: 1; visibility: visible; }
.portal-presentation-modal__card {
  position: relative;
  width: min(620px, 100%);
  overflow: hidden;
  border-radius: 26px;
  background: #fbfaf7;
  color: var(--portal-ink);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
  transform: translateY(15px) scale(0.985);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.portal-presentation-modal.is-open .portal-presentation-modal__card { transform: none; }
.portal-oyha-presents {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 63px;
  padding: 14px 30px;
  background: #142b28;
  color: #f2bd38;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}
.portal-oyha-presents img { width: 31px; height: 31px; object-fit: contain; }
.portal-oyha-presents strong { font-size: 0.76rem; }
.portal-oyha-presents i {
  color: #dbe6e1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0;
}
.portal-modal-close,
.portal-tour-close {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(22, 48, 44, 0.16);
  border-radius: 50%;
  background: #fff;
  color: #274541;
  font-size: 1.3rem;
  line-height: 1;
}
.portal-modal-close { position: absolute; z-index: 1; top: 80px; right: 25px; }
.portal-modal-intro { padding: 50px 54px 22px; }
.portal-modal-label,
.portal-tour-label {
  margin: 0 0 17px;
  color: var(--portal-teal);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.portal-modal-intro h2,
.portal-tour-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.portal-modal-intro h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 0.96; }
.portal-modal-intro > p:last-child {
  max-width: 475px;
  margin: 23px 0 0;
  color: #52635f;
  font-size: 1rem;
  line-height: 1.55;
}
.portal-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  padding: 12px 54px 48px;
}
.portal-primary-action,
.portal-secondary-action,
.portal-tour-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  border: 1px solid var(--portal-pine);
  padding: 0 19px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.portal-primary-action,
.portal-tour-next { background: var(--portal-pine); color: #fff; }
.portal-primary-action:hover,
.portal-tour-next:hover { background: var(--portal-teal); border-color: var(--portal-teal); }
.portal-secondary-action { background: transparent; color: var(--portal-pine); }
.portal-secondary-action:hover { background: #edf4f1; }
.portal-tour-card {
  position: fixed;
  z-index: 55;
  width: min(368px, calc(100% - 38px));
  padding: 22px 23px;
  border: 1px solid rgba(22, 48, 44, 0.14);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--portal-ink);
  box-shadow: 0 23px 65px rgba(8, 28, 25, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(21px);
  transition: opacity 0.28s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.4s ease, right 0.4s ease, bottom 0.4s ease, left 0.4s ease;
}
.portal-tour-card.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.portal-tour-card.tour-at-overview,
.portal-tour-card.tour-at-articles { right: 28px; bottom: 27px; }
.portal-tour-card.tour-at-requests { left: 294px; bottom: 27px; }
.portal-tour-card.tour-at-calendar { right: 50%; bottom: 27px; transform: translate(50%, 21px); }
.portal-tour-card.tour-at-calendar.is-visible { transform: translate(50%, 0); }
.portal-tour-card.tour-at-stats { top: 145px; right: 28px; }
.portal-tour-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.portal-tour-count { color: #9a664d; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.portal-tour-close { width: 28px; height: 28px; font-size: 1.05rem; }
.portal-tour-card h2 { font-size: 1.75rem; line-height: 1.02; }
.portal-tour-copy { margin: 14px 0 21px; color: #52635f; font-size: 0.88rem; line-height: 1.55; }
.portal-tour-next { min-height: 42px; }
.portal-nav button.is-tour-active {
  background: #f7e9c5;
  color: #18322f;
  box-shadow: 0 0 0 3px rgba(216, 169, 91, 0.2);
}
.portal-panel.is-tour-active { animation: portal-panel-focus 1.25s ease both; }
@keyframes portal-panel-focus {
  0% { opacity: 0.45; transform: translateY(10px); }
  45% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 1050px) {
  .portal-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .portal-brand img {
    width: 160px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid,
  .article-workspace,
  .calendar-workspace {
    grid-template-columns: 1fr;
  }
  .article-side {
    grid-template-columns: 1fr 1fr;
  }
  .article-side .side-block {
    height: 100%;
  }
  .request-layout {
    grid-template-columns: 1fr;
  }
  .request-list {
    border-right: 0;
    border-bottom: 1px solid var(--portal-line);
  }
}
@media (max-width: 760px) {
  .portal-shell {
    display: block;
  }
  .portal-sidebar {
    position: static;
    min-height: 0;
    padding: 18px;
  }
  .portal-brand {
    padding: 0;
  }
  .portal-side-label,
  .portal-side-note,
  .portal-back {
    display: none;
  }
  .portal-nav {
    display: flex;
    overflow: auto;
    margin-top: 19px;
    padding-bottom: 1px;
  }
  .portal-nav button {
    width: auto;
    min-width: max-content;
    min-height: 39px;
    padding: 0 10px;
    font-size: 0.75rem;
  }
  .portal-nav button b {
    display: none;
  }
  .portal-topbar {
    min-height: 93px;
    padding: 20px 22px;
  }
  .portal-user {
    display: none;
  }
  .portal-main {
    padding: 25px 18px 48px;
  }
  .portal-demo-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 26px;
  }
  .portal-tour-replay { margin-left: 0; }
  .portal-presentation-modal { padding: 12px; }
  .portal-presentation-modal__card { border-radius: 22px; }
  .portal-oyha-presents { min-height: 55px; padding: 12px 22px; }
  .portal-modal-close { top: 65px; right: 18px; }
  .portal-modal-intro { padding: 38px 24px 18px; }
  .portal-modal-intro h2 { font-size: 2.65rem; }
  .portal-modal-intro > p:last-child { margin-top: 17px; font-size: 0.92rem; }
  .portal-modal-actions { display: grid; padding: 10px 24px 28px; }
  .portal-primary-action,
  .portal-secondary-action { width: 100%; }
  .portal-tour-card,
  .portal-tour-card.tour-at-overview,
  .portal-tour-card.tour-at-articles,
  .portal-tour-card.tour-at-requests,
  .portal-tour-card.tour-at-calendar,
  .portal-tour-card.tour-at-stats { top: auto; right: 16px; bottom: 16px; left: 16px; width: auto; transform: translateY(21px); }
  .portal-tour-card.is-visible,
  .portal-tour-card.tour-at-calendar.is-visible { transform: none; }
  .portal-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card {
    min-height: 132px;
    padding: 16px;
  }
  .metric-card strong {
    font-size: 2.1rem;
  }
  .overview-grid {
    gap: 10px;
    margin-top: 10px;
  }
  .activity-card,
  .site-card,
  .request-detail,
  .editor-card,
  .article-side .side-block,
  .calendar-card,
  .calendar-side,
  .stat-card {
    padding: 19px;
  }
  .request-row {
    grid-template-columns: 31px 1fr auto;
  }
  .request-avatar {
    width: 31px;
    height: 31px;
  }
  .detail-top h3 {
    font-size: 1.55rem;
  }
  .request-data,
  .stat-insights {
    grid-template-columns: 1fr;
  }
  .detail-actions {
    display: grid;
  }
  .detail-actions button {
    width: 100%;
  }
  .editor-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .editor-options label {
    width: 100%;
  }
  .editor-options select,
  .editor-options input {
    max-width: none;
    width: 100%;
  }
  .article-side {
    grid-template-columns: 1fr;
  }
  .article-editor {
    min-height: 235px;
  }
  .calendar-day {
    min-height: 58px;
    padding: 6px;
  }
  .calendar-day .day-event {
    display: none;
  }
  .calendar-weekdays,
  .calendar-grid {
    gap: 3px;
  }
  .calendar-weekdays span {
    font-size: 0.52rem;
  }
  .calendar-header h3 {
    font-size: 1.35rem;
  }
  .range-switch {
    width: 100%;
  }
  .range-switch button {
    flex: 1;
  }
  .stat-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-main {
    padding: 0;
  }
  .stat-main strong {
    font-size: 2.7rem;
  }
  .chart-wrap {
    min-height: 190px;
  }
  .portal-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}
