:root {
  --ink: #152c30;
  --muted: #526567;
  --brand: #164c4c;
  --line: #d7e1dd;
  --paper: #f5f7f4;
  --white: #fff;
  --mint: #e0eee7;
  --coral: #d96f46;
  --error: #a63629;
  font-family: "DM Sans", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--brand);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #117f8b;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: white;
  padding: 10px;
  z-index: 5;
}
.skip:focus {
  top: 8px;
}
.initial {
  padding: 36px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1.6px;
}
.mark svg {
  width: 30px;
  height: 31px;
}
.wordmark {
  line-height: 1.2;
}
.brand-caption {
  display: block;
  font-size: 11px;
  margin-top: 7px;
  letter-spacing: 0.07em;
  color: inherit;
}
.auth {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.2fr);
}
.intro {
  background: #183f42;
  color: white;
  padding: clamp(32px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  background-image: linear-gradient(155deg, #153a3d 16%, #19524d 100%);
}
.intro h1 {
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.28;
  letter-spacing: -0.055em;
  margin: 0 0 22px;
}
.intro p {
  color: #dcece6;
  line-height: 1.9;
  max-width: 32em;
}
.intro .brand-caption {
  color: #c6ded4;
}
.auth-main {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 48px 26px;
}
.auth-card {
  width: min(100%, 405px);
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.04em;
  margin: 0;
}
h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.5;
}
h3 {
  margin: 0;
  font-size: 16px;
}
.muted,
.desc {
  color: var(--muted);
  line-height: 1.75;
}
.desc {
  margin: 8px 0 24px;
}
.fields {
  display: grid;
  gap: 15px;
}
label.field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #9cafaa;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 13px;
  min-height: 46px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.btn {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  font-weight: 700;
  background: var(--brand);
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.alt {
  background: white;
  color: var(--brand);
  border-color: #adbfba;
}
.btn:hover {
  filter: brightness(0.94);
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 19px 0;
}
.links a,
.text-btn {
  color: var(--brand);
  font-weight: 650;
  font-size: 14px;
  text-underline-offset: 3px;
}
.text-btn {
  border: 0;
  background: transparent;
  text-decoration: underline;
  padding: 6px 0;
}
.separator {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
}
.separator:before,
.separator:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.full {
  width: 100%;
}
.feedback:empty {
  display: none;
}
.feedback:not(:empty) {
  margin: 14px 0;
  padding: 10px 13px;
  border-radius: 6px;
  background: var(--mint);
  line-height: 1.6;
}
.feedback.error {
  background: #fae9e5;
  color: var(--error);
}
.shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100svh;
}
.rail {
  background: #163c40;
  color: white;
  padding: 34px 18px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.rail .wordmark {
  padding: 0 12px;
}
.rail .brand-caption {
  color: #bed5cf;
}
.nav {
  display: grid;
  gap: 3px;
}
.nav a {
  display: flex;
  gap: 11px;
  align-items: center;
  border-radius: 7px;
  padding: 11px 13px;
  min-height: 44px;
  text-decoration: none;
  color: #d4e4df;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: #295557;
  color: white;
}
.nav a[aria-current="page"] {
  box-shadow: inset 3px 0 #ec9366;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace {
  min-width: 0;
}
.top {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 58px);
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.identity {
  display: flex;
  gap: 14px;
  align-items: center;
}
.identity span {
  font-weight: 650;
}
.orgpick {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  min-width: 0;
}
.orgpick select {
  padding: 5px 8px;
  min-height: 36px;
  max-width: 260px;
}
.content {
  max-width: 1320px;
  margin: auto;
  padding: clamp(24px, 4vw, 58px);
}
.page-head {
  margin-bottom: 29px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr));
  gap: 15px;
}
.tile,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tile {
  padding: 19px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile:hover {
  border-color: var(--brand);
}
.tile-icon {
  background: var(--mint);
  color: var(--brand);
  border-radius: 9px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.panel {
  padding: clamp(16px, 2.5vw, 28px);
  margin-bottom: 18px;
}
.panel > .fields {
  max-width: 540px;
}
.panel > .fields .btn {
  justify-self: start;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.row > * {
  min-width: 0;
}
.row .btn {
  flex: none;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--mint);
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
}
.empty {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.switch {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
  flex: none;
}
.settings-label {
  flex: 1;
}
.mobile-menu {
  display: none;
}
.guest-org {
  max-width: 640px;
  margin: 8svh auto;
  padding: 25px;
}
.guest-org .wordmark {
  margin-bottom: 32px;
}
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .rail {
    padding: 14px 17px;
    display: block;
  }
  .rail .wordmark {
    display: inline-block;
    padding: 0;
  }
  .rail .brand-caption {
    display: none;
  }
  .rail .mark {
    font-size: 23px;
  }
  .rail .mark svg {
    height: 24px;
    width: 24px;
  }
  .mobile-menu {
    display: block;
    float: right;
    background: transparent;
    color: white;
    border: 1px solid #70908a;
    border-radius: 6px;
    min-height: 36px;
    padding: 5px 12px;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 15px;
  }
  .top {
    min-height: 52px;
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .identity {
    gap: 8px;
  }
  .identity span {
    font-size: 13px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .intro {
    padding: 24px;
    gap: 26px;
  }
  .intro h1 {
    font-size: 29px;
    margin-bottom: 0;
  }
  .intro p {
    margin: 8px 0 0;
    font-size: 14px;
  }
  .intro .brand-caption {
    display: none;
  }
  .auth-main {
    align-content: start;
    padding: 28px 20px 45px;
  }
  .orgpick select {
    max-width: 155px;
  }
  .row {
    flex-wrap: wrap;
  }
  .nav a {
    font-size: 14px;
  }
  .guest-org {
    margin-top: 2svh;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.order-dialog {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  width: min(420px, calc(100% - 30px));
  max-height: 90svh;
  overflow: auto;
}
.order-dialog::backdrop {
  background: #112d32a6;
}
.order-dialog h2,
.order-dialog p {
  margin: 0;
}
.intro h1 span {
  display: inline-block;
  white-space: nowrap;
}
details.panel summary {
  cursor: pointer;
  font-weight: 650;
}
details.panel[open] summary {
  margin-bottom: 17px;
}
