:root {
  font-family: "Noto Sans", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  color: #19362e;
  background: #f6f8f6;
  font-synthesis: none;
  --green: #146348;
  --light: #e8f2ec;
  --muted: #687b72;
  --line: #dce5df;
  --red: #a53532;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 11px 17px;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}
button:hover,
.button:hover {
  background: #edf4ef;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #0f5039;
}
.danger {
  color: var(--red);
  border-color: #e3c4c2;
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.link {
  padding: 0;
  background: none;
  border: 0;
  min-height: 36px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
small,
.small {
  font-size: 12px;
  line-height: 1.5;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
}
.brand {
  width: 164px;
  max-width: 100%;
  background: white;
  text-align: center;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.brand-caption {
  display: block;
  padding: 0 8px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.6;
  color: var(--green);
}
.brand-note {
  font-size: 10px;
  color: #81948a;
  margin-top: 15px;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.login-wrap {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: white;
}
.login-story {
  padding: 66px max(40px, 9vw);
  padding-right: 70px;
  background: #edf3ef;
  display: flex;
  flex-direction: column;
  position: relative;
}
.login-story .brand {
  width: 200px;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}
.login-story h1 {
  font-size: 47px;
  line-height: 1.16;
  max-width: 450px;
  margin-bottom: 25px;
}
.login-story p {
  max-width: 370px;
  font-size: 15px;
}
.story-bottom {
  margin-top: auto;
  padding-top: 60px;
  color: #6d8477;
  font-size: 12px;
  display: flex;
  gap: 22px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 30px;
}
.login-panel {
  width: 100%;
  max-width: 390px;
}
.login-panel > h1 {
  margin: 13px 0;
}
.login-panel > .muted {
  font-size: 14px;
  margin-bottom: 30px;
}
.login-panel .mobile-brand {
  display: none;
}

.login-panel form {
  display: grid;
  gap: 20px;
}
.field {
  display: grid;
  gap: 8px;
  text-align: left;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: #415d50;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #ccd9d0;
  border-radius: 8px;
  padding: 12px 13px;
  min-height: 46px;
  width: 100%;
  background: #fff;
  color: #17382a;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #a3cdb5;
  outline-offset: 2px;
}
.password-control {
  position: relative;
  min-width: 0;
}
.password-control input {
  padding-right: 108px;
}
.password-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  min-height: 40px;
  padding: 8px;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
}
.password-toggle svg {
  width: 20px;
  height: 20px;
}
.password-toggle:focus-visible {
  outline: 2px solid #146348;
  outline-offset: 1px;
}
.field textarea {
  min-height: 135px;
  font-family: monospace;
  font-size: 13px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
}
.checkbox input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
.form-error {
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}
.login-help {
  padding: 21px 0;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  display: grid;
  gap: 7px;
}
.login-help p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.login-switch {
  font-size: 13px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 30px;
  padding: 6px 10px;
  background: var(--light);
  color: var(--green);
}
.pill.gray {
  background: #f0f2f0;
  color: #728076;
}
.pill.warning {
  background: #fff4df;
  color: #865b16;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 232px 1fr;
}
.sidebar {
  padding: 36px 22px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
}
.sidebar .brand {
  margin: 0 auto;
}
.sidebar nav {
  margin-top: 24px;
  display: grid;
  gap: 6px;
}
.nav-button {
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  padding: 13px 14px;
  color: #6b7e74;
}
.nav-button.active {
  background: var(--light);
  color: var(--green);
  font-weight: 650;
}
.nav-label {
  margin: 22px 12px 9px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #879a8e;
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid var(--line);
}
.sidebar-footer p {
  font-size: 11px;
  color: #839489;
  margin: 10px 0 0;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  min-height: 82px;
  padding: 18px 42px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 12px;
  color: #8a9a91;
}
.breadcrumb strong {
  color: #355c47;
  font-weight: 500;
}
.account-button {
  font-size: 12px;
  border: 0;
  padding: 0;
  background: transparent;
}
.avatar {
  border-radius: 50%;
  background: #e3eee6;
  color: #426950;
  font-size: 12px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
}
.content {
  max-width: 1260px;
  padding: 42px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  margin: 11px 0;
}
.page-heading p {
  font-size: 14px;
  margin-bottom: 0;
}
.date-chip {
  color: var(--muted);
  font-size: 12px;
  margin-top: 28px;
}
.welcome {
  padding: 26px 30px;
  border: 1px solid #cfdfd3;
  background: #eef4ee;
  border-radius: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}
.welcome h2 {
  font-size: 20px;
  margin: 0 0 7px;
}
.welcome p {
  font-size: 13px;
  margin: 0;
  color: #647d6d;
}
.welcome-icon {
  width: 50px;
  height: 50px;
  border: 1px solid #b9d0bf;
  background: #f7faf7;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.welcome-icon svg {
  width: 26px;
  height: 26px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 17px;
  margin: 0;
}
.section-heading span {
  font-size: 11px;
  color: var(--muted);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.app-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 23px;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s;
}
.app-card:hover {
  transform: translateY(-2px);
}
.app-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
}
.app-symbol {
  width: 45px;
  height: 45px;
  background: #edf4ed;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #458259;
}
.app-symbol.blue {
  color: #4e7790;
  background: #edf2f6;
}
.app-symbol.gold {
  color: #9b8543;
  background: #faf5e9;
}
.app-symbol.purple {
  color: #84729d;
  background: #f1eef6;
}
.app-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.app-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 17px;
}
.app-card .app-action {
  margin-top: auto;
  font-size: 12px;
  justify-content: space-between;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: var(--green);
}
.app-card .app-action:disabled {
  color: #7d8b82;
  opacity: 1;
}
.app-card .app-action svg {
  width: 16px;
}
.bottom-note {
  margin-top: 27px;
  color: #86958c;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bottom-note svg {
  width: 14px;
}
.panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 200px;
  flex: 1;
}
.toolbar select {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 11px;
  color: #7a8e80;
  font-weight: 500;
  background: #f8faf8;
}
td,
th {
  padding: 14px 13px;
  border-bottom: 1px solid #edf1ec;
}
td strong {
  font-weight: 550;
}
td button {
  font-size: 12px;
  min-height: 34px;
  padding: 5px 9px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: #73897a;
}
.empty svg {
  width: 35px;
  height: 35px;
  margin-bottom: 12px;
}
.empty p {
  font-size: 13px;
  max-width: 420px;
  margin: 10px auto;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.catalog {
  justify-content: flex-start;
  padding: 23px;
  text-align: left;
  gap: 18px;
  background: white;
  border-radius: 12px;
}
.catalog h3 {
  margin: 0 0 6px;
}
.catalog p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  width: min(560px, calc(100% - 28px));
  max-height: 90svh;
  color: inherit;
  box-shadow: 0 25px 70px #13351e25;
}
dialog::backdrop {
  background: #142c2566;
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.dialog-head button {
  border: 0;
  padding: 0;
  width: 30px;
  min-height: 30px;
  margin-top: -7px;
}
.form-grid {
  display: grid;
  gap: 17px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.code-box {
  padding: 16px;
  background: #eef4ee;
  border-radius: 9px;
  font-family: monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.permissions-group {
  display: grid;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  gap: 10px;
}
.permission-row select {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.import-steps {
  display: flex;
  gap: 15px;
  color: #758f7c;
  font-size: 11px;
  margin-bottom: 25px;
}
.import-steps strong {
  color: var(--green);
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 13px 22px;
  background: #234f3c;
  color: white;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 5px 30px #0002;
  z-index: 200;
}
#notice:empty {
  display: none;
}
.offline {
  margin: 40px auto;
  max-width: 500px;
  padding: 25px;
  background: white;
  border-radius: 12px;
}
.offline .brand {
  margin: 0 auto 32px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.account-grid p {
  font-size: 13px;
}
.account-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 25px 0;
}
.account-details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.account-details dd {
  margin: 0;
  font-size: 14px;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.dev-banner {
  padding: 9px 15px;
  background: #fff6df;
  font-size: 11px;
  text-align: center;
  color: #81631c;
}
.error-panel {
  border-left: 3px solid var(--red);
  padding: 20px;
  background: white;
}
.error-panel p {
  color: var(--red);
}
.hidden {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #70a98a;
  outline-offset: 3px;
}
@media (min-width: 1450px) {
  .content {
    padding-top: 55px;
  }
  .app-card {
    min-height: 235px;
  }
}
@media (max-width: 1150px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content {
    padding: 32px;
  }
  .topbar {
    padding: 18px 32px;
  }
  .sidebar {
    width: 205px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .layout {
    grid-template-columns: 205px 1fr;
  }
  .login-story {
    padding: 50px;
  }
  .login-story h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  .login-wrap {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-form-wrap {
    min-height: 100svh;
    padding: 32px 25px;
  }
  .login-panel .mobile-brand {
    display: block;
    margin-bottom: 24px;
  }
  .mobile-brand .brand {
    width: 140px;
    margin: 0 auto;
  }
  .login-panel > h1 {
    font-size: 28px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 23px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    width: 100px;
    margin: 0 auto;
  }
  .sidebar .brand-caption {
    font-size: 8px;
    letter-spacing: 0.8px;
    padding: 0 0 4px;
  }
  .sidebar nav {
    margin-top: 12px;
    display: flex;
    overflow: auto;
    gap: 3px;
    padding-bottom: 10px;
  }
  .nav-button {
    white-space: nowrap;
    width: auto;
    font-size: 11px;
    padding: 10px;
    min-height: 40px;
    gap: 7px;
  }
  .nav-button svg {
    width: 17px;
    height: 17px;
  }
  .sidebar .nav-label,
  .sidebar-footer {
    display: none;
  }
  .topbar {
    min-height: 58px;
    padding: 10px 21px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .content {
    padding: 25px 20px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 26px;
    margin-top: 8px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .date-chip {
    display: none;
  }
  .welcome {
    padding: 20px;
    margin-bottom: 26px;
    gap: 10px;
  }
  .welcome h2 {
    font-size: 16px;
  }
  .welcome p {
    font-size: 12px;
  }
  .welcome-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .app-grid {
    gap: 12px;
  }
  .app-card {
    padding: 17px;
    min-height: 202px;
  }
  .app-card-head {
    margin-bottom: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .app-symbol {
    width: 37px;
    height: 37px;
  }
  .app-card h3 {
    font-size: 13px;
  }
  .app-card p {
    font-size: 11px;
    line-height: 1.5;
  }
  .app-card .pill {
    font-size: 9px;
    padding: 4px 8px;
  }
  .app-card .app-action {
    font-size: 11px;
  }
  .catalog-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .toolbar button {
    font-size: 12px;
  }
  .toolbar input {
    width: 100%;
    min-width: 0;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 22px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .account-button > span:last-child {
    display: none;
  }
  .form-grid {
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
