:root {
  font-family:
    "Golos Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #232b2a;
  background: #f5f6f3;
  font-synthesis: none;
  --line: #dce0d9;
  --muted: #66716b;
  --accent: #17694e;
  --paper: #fff;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 15px;
  background: #fff;
  color: #232b2a;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #edf1eb;
  border-color: #a7b8ab;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button.primary:hover {
  background: #10513b;
}
.danger {
  color: #9d302c;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login form {
  width: 100%;
  max-width: 340px;
}
.brand {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin-bottom: 32px;
}
.brand span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-left: 8px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 28px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
}
h3 {
  font-size: 15px;
  margin: 0;
}
p {
  margin: 8px 0 18px;
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #b8c2ba;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  color: inherit;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100dvh;
}
.sidebar {
  padding: 30px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fafbf8;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidebar .brand {
  padding: 0 12px;
  margin-bottom: 34px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav button {
  text-align: left;
  border-color: transparent;
  background: transparent;
  padding: 10px 12px;
  color: var(--muted);
}
.sidebar nav button.active {
  background: #e5ece2;
  color: #174b36;
}
.profile {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.profile button {
  text-align: left;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
}
main {
  padding: 48px clamp(24px, 5vw, 80px);
  max-width: 1230px;
  width: 100%;
  margin: 0 auto;
}
.topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.topline h1 {
  margin-bottom: 30px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 24px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.row.wrap {
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 18px;
}
.summary {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0 0 28px;
}
.summary div {
  display: grid;
  gap: 3px;
}
.summary strong {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1px;
}
.summary small {
  font-size: 13px;
}
.empty {
  color: var(--muted);
  padding: 20px 0;
}
.list-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.list-item:first-child {
  padding-top: 0;
}
.account-title {
  font-weight: 550;
}
.tag {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid #bfd0c3;
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  white-space: nowrap;
}
.quota {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
.quota-line {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(90px, 180px) 48px;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.quota-line span {
  overflow-wrap: anywhere;
}
meter {
  width: 100%;
  height: 8px;
  border: 0;
  background: #e8ece6;
  border-radius: 4px;
}
meter::-webkit-meter-bar {
  background: #e8ece6;
  border: 0;
}
meter::-webkit-meter-optimum-value {
  background: #26755b;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.calendar-toolbar h2 {
  margin: 0;
  text-transform: capitalize;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.weekday {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
}
.day {
  min-height: 64px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  padding: 9px;
  border-color: transparent;
  background: #f1f3ee;
  font-variant-numeric: tabular-nums;
}
.day small {
  font-size: 11px;
}
.day.used {
  background: #d9e8d7;
}
.day.busy {
  background: #accfb6;
}
.day.selected {
  border: 2px solid var(--accent);
  padding: 8px;
}
.day-detail {
  min-height: 40px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
pre {
  margin: 16px 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
  background: #f3f5f0;
  padding: 18px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.code-key {
  background: #eef4eb;
  border: 1px solid #b9d1bb;
}
.inline-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.inline-form .wide {
  grid-column: 1/-1;
}
.narrow {
  max-width: 480px;
}
.checkbox {
  display: flex;
  align-items: start;
  gap: 10px;
}
.checkbox input {
  width: auto;
  margin-top: 5px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
td,
th {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow-x: auto;
}
.error {
  color: #9d302c;
  margin: 0;
  font-size: 14px;
}
.note {
  border-left: 3px solid #b8c7ad;
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  width: min(540px, calc(100% - 32px));
  max-height: 85dvh;
  overflow: auto;
  background: white;
  color: inherit;
}
dialog::backdrop {
  background: #1f292855;
  backdrop-filter: blur(2px);
}
dialog h2 {
  margin-bottom: 22px;
}
dialog form {
  margin-top: 18px;
}
.dialog-close {
  float: right;
  border: 0;
  padding: 0 4px;
  font-size: 24px;
  line-height: 1;
}
.client-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.client-tabs .active {
  border-color: var(--accent);
  color: var(--accent);
  background: #eef4eb;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #243b31;
  color: #fff;
  padding: 12px 20px;
  border-radius: 7px;
  max-width: calc(100% - 32px);
  box-shadow: 0 6px 20px #243b311c;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#notice.visible {
  opacity: 1;
}
.role {
  font-size: 12px;
  color: var(--muted);
}
.skeleton {
  padding: 40px 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    gap: 14px;
  }
  .sidebar .brand {
    margin: 0;
    padding: 0;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow: auto;
    white-space: nowrap;
  }
  .sidebar nav button {
    padding: 7px 10px;
    font-size: 13px;
  }
  .profile {
    display: none;
  }
  main {
    padding: 28px 20px;
  }
  .panel {
    padding: 18px;
  }
  .summary {
    gap: 24px;
  }
  .summary strong {
    font-size: 25px;
  }
  h1 {
    font-size: 26px;
  }
  .day {
    min-height: 51px;
    padding: 6px;
  }
  .day.selected {
    padding: 5px;
  }
  .day small {
    font-size: 9px;
  }
  .inline-form {
    grid-template-columns: 1fr;
  }
  .quota-line {
    grid-template-columns: 1fr 80px 40px;
    gap: 8px;
  }
  .row {
    align-items: start;
  }
  .topline {
    align-items: center;
  }
  .topline h1 {
    margin: 0 0 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
