@font-face {
  font-family: Noto;
  src: url(thai-400.ttf);
}
@font-face {
  font-family: Noto;
  src: url(thai-600.ttf);
  font-weight: 600;
}
@font-face {
  font-family: Noto;
  src: url(thai-700.ttf);
  font-weight: 700;
}
:root {
  --ink: #182f31;
  --muted: #586d6e;
  --teal: #007565;
  --edge: #dce5e3;
  --paper: #fff;
  --bg: #f5f8f7;
  --dark: #102f31;
  color-scheme: light;
  font:
    16px/1.5 Noto,
    "Leelawadee UI",
    Tahoma,
    sans-serif;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.52;
  cursor: wait;
}
a {
  color: var(--teal);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e3a635;
  outline-offset: 2px;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex: none;
}
i {
  display: inline-flex;
  vertical-align: middle;
  font-style: normal;
}
.top {
  height: 66px;
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 27px;
  gap: 23px;
  position: relative;
  z-index: 2;
}
.brand {
  font-size: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -1px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #73e3b5;
  color: #143b35;
  display: grid;
  place-items: center;
}
.logo svg {
  height: 25px;
  width: 25px;
  stroke-width: 2;
}
.workspace {
  border-left: 1px solid #50706e;
  padding-left: 23px;
  font-size: 14px;
  color: #d7e7e3;
}
.top-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 19px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid #456361;
  border-radius: 8px;
  background: #213f40;
}
.search svg {
  width: 16px;
  color: #c6d9d4;
}
.search input {
  width: 190px;
  color: white;
  border: 0;
  outline: none;
  background: none;
  font-size: 14px;
}
.search input::placeholder {
  color: #c3d4ce;
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
}
.icon:hover {
  background: #7b978514;
}
.bell {
  position: relative;
}
.bell.has:after {
  content: "";
  position: absolute;
  top: 4px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--dark);
  background: #ffc77c;
  border-radius: 100%;
}
.avatar {
  border-radius: 100%;
  width: 34px;
  height: 34px;
  background: #e5b99a;
  color: #443026;
  font-weight: 700;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100dvh - 66px);
}
aside {
  background: #fff;
  border-right: 1px solid var(--edge);
  padding: 28px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.section-label {
  color: #748581;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.sbody > .section-label {
  padding: 0 12px;
}
nav {
  margin-top: 11px;
}
nav button,
.side-foot > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 500;
  color: #47605d;
}
nav button {
  margin: 3px 0;
}
nav button.active {
  background: #dff1e9;
  color: #006756;
  font-weight: 700;
}
nav button:hover,
.side-foot button:hover,
.region-row:hover {
  background: #eff5f1;
}
.side-divider {
  height: 1px;
  background: var(--edge);
  margin: 25px 10px 18px;
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 9px;
}
.link {
  color: var(--teal);
  font-size: 13px;
}
.region-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.region-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--c);
  margin: 0;
}
.side-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
}
#mode {
  font-size: 12px;
  color: #657873;
  margin: 10px 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cf9a48;
}
.led.live {
  background: #15987a;
}
main {
  padding: 28px clamp(18px, 2.5vw, 46px) 35px;
  min-width: 0;
  max-width: 2000px;
  width: 100%;
  margin: auto;
  align-self: start;
  margin-top: 0;
}
.pagehead,
.side-head,
.bar,
.agendahead,
.row,
.dialog-actions,
.modalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #59726b;
  font-size: 13px;
  font-weight: 600;
}
.line {
  width: 20px;
  height: 2px;
  background: #41ad88;
}
h1 {
  font-size: clamp(28px, 2.7vw, 40px);
  letter-spacing: -1.2px;
  line-height: 1.4;
  margin: 4px 0 0;
}
h2,
h3,
p {
  margin: 0;
}
.primary,
.secondary,
.danger,
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
}
.primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 2px 3px #033e2b12;
}
.primary:hover {
  background: #005d50;
}
.secondary,
.pill-btn {
  background: white;
  border: 1px solid #cfdcd8;
}
.danger {
  background: #fff2ef;
  color: #a13f30;
}
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid #d7e2dd;
  border-radius: 7px;
  padding-left: 10px;
}
.filter > i {
  color: #59746b;
}
.filter svg {
  width: 16px;
  height: 16px;
}
.filter select {
  max-width: 230px;
  border: 0;
}
.filter select,
select.control {
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23566c65' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 9px center;
  appearance: none;
  padding: 7px 30px 7px 7px;
  font-size: 14px;
}
.clear {
  font-size: 13px;
  color: var(--teal);
}
.panel {
  background: white;
  border: 1px solid var(--edge);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 5px #17382804;
}
.bar {
  padding: 15px 18px;
  flex-wrap: wrap;
}
.bar-left,
.bar-right,
.group {
  display: flex;
  align-items: center;
  gap: 9px;
}
.bar-left h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  margin-right: 6px;
}
.arrowset {
  display: flex;
}
.arrowset .icon {
  width: 28px;
  height: 30px;
}
.arrowset svg {
  width: 16px;
}
.today {
  font-size: 13px;
  padding: 4px 11px;
  background: white;
  border: 1px solid var(--edge);
  border-radius: 6px;
}
.seg {
  display: flex;
  padding: 3px;
  background: #f0f4f2;
  border: 1px solid #e4ebe7;
  border-radius: 8px;
}
.seg button {
  padding: 4px 13px;
  font-size: 13px;
  color: #52665f;
  border-radius: 5px;
}
.seg button.on {
  background: white;
  color: var(--teal);
  font-weight: 700;
  box-shadow: 0 1px 4px #123c2923;
}
.weeknames,
.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weeknames {
  background: #f5f8f6;
  border-block: 1px solid var(--edge);
  font-size: 13px;
  color: #62756d;
}
.weeknames span {
  padding: 6px 10px;
  text-align: right;
}
.daycell {
  position: relative;
  min-height: clamp(78px, 9.8vh, 140px);
  border-right: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  padding: 5px 4px 6px;
  overflow: hidden;
  background: white;
  cursor: pointer;
}
.daycell:nth-child(7n) {
  border-right: 0;
}
.daycell:nth-last-child(-n + 7) {
  border-bottom: 0;
}
.daycell.off {
  background: #f8faf9;
}
.off .number {
  color: #9caaa4;
}
.daycell.sel {
  box-shadow: inset 0 0 0 1.5px #5fae91;
  background: #f4fbf7;
}
.number {
  display: flex;
  margin-left: auto;
  font:
    600 13px/1.2 Noto,
    sans-serif;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  color: #52635b;
  border-radius: 50%;
}
.number.now {
  background: var(--teal);
  color: white;
}
.event {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
  background: var(--wash);
  color: var(--fg);
  border-left: 3px solid var(--c);
  border-radius: 4px;
  margin: 3px 0 0;
  padding: 3px 4px;
  text-align: left;
  line-height: 1.45;
  font-size: 12px;
  font-weight: 600;
}
.event b {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.event span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.more {
  font-size: 12px;
  color: var(--teal);
}
.agendahead {
  margin: 21px 1px 9px;
}
.agendahead h2 {
  font-size: 19px;
}
.count {
  font-size: 13px;
  color: var(--muted);
}
.jobrow {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  text-align: left;
  border-bottom: 1px solid var(--edge);
  background: white;
}
.jobrow:last-child {
  border-bottom: 0;
}
.jobrow:hover {
  background: #f7faf8;
}
.swatch {
  height: 36px;
  width: 4px;
  background: var(--c);
  border-radius: 5px;
  flex: none;
}
.time {
  font:
    600 16px/1.35 Arial,
    sans-serif;
  min-width: 50px;
}
.time small {
  display: block;
  font:
    12px/1.6 Noto,
    sans-serif;
  color: var(--muted);
}
.jobname {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.row-main {
  flex: 1;
  min-width: 0;
}
.badge,
.tag {
  font-size: 12px;
  background: #f2f5f3;
  color: #4a6357;
  border-radius: 20px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.badge.s0 {
  background: #fff2d9;
  color: #835c09;
}
.badge.s1 {
  background: #e5f0ff;
  color: #345f99;
}
.badge.s2 {
  background: #e2f3e9;
  color: #22674d;
}
.tag {
  background: var(--wash);
  color: var(--fg);
}
.empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.agenda-day {
  padding: 9px 15px;
  background: #f5f8f6;
  border-block: 1px solid var(--edge);
  font-weight: 600;
  font-size: 14px;
}
.weekstrip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-block: 1px solid var(--edge);
}
.weekstrip button {
  padding: 8px 0;
  text-align: center;
}
.weekstrip button.picked {
  background: #e3f4eb;
  color: var(--teal);
}
.weekstrip small {
  display: block;
  color: var(--muted);
}
.mobile {
  display: none;
}
.scrim[hidden],
[hidden] {
  display: none !important;
}
dialog {
  width: min(580px, 96vw);
  border: 1px solid var(--edge);
  border-radius: 15px;
  box-shadow: 0 15px 75px #163e3c38;
  padding: 0;
  color: var(--ink);
  max-height: 92dvh;
}
dialog::backdrop {
  background: #102f3166;
}
dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 21px;
  border-bottom: 1px solid var(--edge);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.dialog-title {
  font-size: 19px;
  font-weight: 700;
}
#dbody {
  padding: 18px 22px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
.field.full,
.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea,
.control {
  width: 100%;
  min-width: 0;
  background-color: white;
  border: 1px solid #c8d7cf;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
}
.people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.people label {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 14px;
}
.people input {
  width: auto;
  accent-color: var(--teal);
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.dialog-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--edge);
  margin-top: 17px;
  padding-top: 14px;
}
.dialog-actions .danger {
  margin-right: auto;
}
.detail-title {
  margin: 9px 0 13px;
  font-size: 23px;
  overflow-wrap: anywhere;
}
.details {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 9px;
  margin: 16px 0;
  font-size: 15px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.filebtn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  text-align: left;
  overflow-wrap: anywhere;
  padding: 6px 0;
}
.subsec {
  border-top: 1px solid var(--edge);
  margin-top: 15px;
  padding-top: 15px;
}
.subsec h3 {
  font-size: 16px;
  margin-bottom: 7px;
}
.settings-group {
  display: grid;
  gap: 9px;
  margin-bottom: 17px;
}
.settings-group h3 {
  font-size: 16px;
}
.settings-group .group {
  flex-wrap: wrap;
}
.error {
  padding: 9px 12px;
  background: #fff1eb;
  color: #943c28;
  border-radius: 7px;
  font-size: 14px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #163c36;
  color: white;
  border-radius: 9px;
  padding: 10px 17px;
  font-size: 14px;
  z-index: 10;
  max-width: 90vw;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
.historyrow {
  padding: 11px 16px;
  border-bottom: 1px solid var(--edge);
  font-size: 14px;
}
.historyrow:last-child {
  border: 0;
}
.toolrow {
  padding: 15px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.toolrow h2 {
  font-size: 18px;
}
.syncnote {
  color: #8b5a12;
  font-size: 13px;
  margin-top: 7px;
}
.desk-legend {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.desk-legend:before {
  content: "";
  height: 8px;
  width: 8px;
  border-radius: 100%;
  background: var(--teal);
}
.footcal {
  padding: 7px 13px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--edge);
  align-items: center;
}
.footcal .count {
  font-size: 12px;
}
@media (min-width: 1550px) {
  .daycell {
    min-height: 115px;
  }
  .event {
    font-size: 14px;
  }
  .shell {
    grid-template-columns: 245px minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  aside {
    padding-inline: 9px;
  }
  main {
    padding-inline: 16px;
  }
  .event {
    gap: 3px;
  }
  .daycell {
    padding-inline: 2px;
  }
  .bar {
    padding: 12px;
  }
  .seg button {
    padding-inline: 9px;
  }
}
@media (max-width: 760px) {
  .top {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }
  .mobile {
    display: grid;
  }
  .brand {
    font-size: 21px;
    gap: 6px;
  }
  .logo {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .logo svg {
    width: 20px;
  }
  .workspace {
    display: none;
  }
  .top-end {
    gap: 5px;
  }
  .search {
    padding: 5px 7px;
  }
  .search input {
    width: clamp(60px, 22vw, 150px);
    font-size: 12px;
  }
  .bell {
    width: 30px;
  }
  .avatar {
    width: 29px;
    height: 29px;
  }
  .shell {
    display: block;
    min-height: calc(100dvh - 56px);
  }
  aside {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 235px;
    z-index: 4;
    transform: translateX(-102%);
    transition: transform 0.16s;
    overflow: auto;
  }
  .shell.menu aside {
    transform: none;
  }
  .scrim {
    position: fixed;
    inset: 56px 0 0;
    background: #14383155;
    z-index: 3;
  }
  main {
    padding: 18px 11px;
  }
  .eyebrow {
    font-size: 12px;
  }
  h1 {
    font-size: 30px;
  }
  .primary {
    padding: 8px 13px;
  }
  .filters {
    gap: 5px;
    margin: 13px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .filter {
    padding-left: 6px;
    flex: none;
  }
  .filter select {
    max-width: 135px;
    font-size: 12px;
    padding-right: 21px;
    background-position: right 5px center;
  }
  .filter svg {
    width: 14px;
  }
  .bar {
    padding: 9px;
    gap: 6px;
  }
  .bar-left,
  .bar-right {
    gap: 3px;
  }
  .bar-left h2 {
    font-size: 16px;
    margin-right: 0;
  }
  .arrowset .icon {
    width: 22px;
  }
  .seg button {
    font-size: 12px;
    padding: 4px 6px;
  }
  .today {
    padding: 3px 6px;
  }
  .weeknames span {
    padding: 5px 0;
    text-align: center;
    font-size: 12px;
  }
  .daycell {
    min-height: 66px;
    padding: 2px;
  }
  .number {
    font-size: 12px;
    height: 22px;
    min-width: 22px;
  }
  .event {
    font-size: 11px;
    border-left-width: 2px;
    padding: 2px 1px;
  }
  .event b {
    display: none;
  }
  .jobrow {
    gap: 9px;
    padding: 11px 9px;
  }
  .jobname {
    font-size: 14px;
  }
  .meta {
    font-size: 12px;
  }
  .jobrow > .badge {
    font-size: 11px;
    padding: 3px 5px;
  }
  .agendahead {
    margin-top: 16px;
  }
  .agendahead h2 {
    font-size: 17px;
  }
  .time {
    min-width: 40px;
    font-size: 14px;
  }
  #dbody {
    padding: 14px;
  }
  .details {
    grid-template-columns: 86px 1fr;
  }
  .footcal {
    padding: 6px 9px;
  }
  .pagehead {
    gap: 6px;
  }
  .formgrid {
    gap: 9px;
  }
  .group {
    gap: 5px;
  }
}
@media (max-width: 380px) {
  .bar-left h2 {
    font-size: 15px;
  }
  .bar {
    padding: 7px 5px;
  }
  .bar-left .today {
    font-size: 11px;
  }
  .seg button {
    padding-inline: 4px;
  }
  .search input {
    width: 55px;
  }
}
@media(max-width:760px){.brand{font:700 clamp(12px,3.2vw,17px)/1.15 Arial,sans-serif;letter-spacing:0;white-space:nowrap}.top-end{min-width:0}.search input{width:clamp(34px,12vw,85px)}}
