:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #243b34;
  background: #f5f6f2;
  line-height: 1.6;
  font-size: 15px;
  --green: #173f35;
  --line: #dce3dc;
  --muted: #69786f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  padding: 11px 17px;
  font-weight: 600;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #dcaa48;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(29px, 3.3vw, 44px);
  letter-spacing: -1.4px;
  line-height: 1.2;
  margin-bottom: 15px;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 8px;
}
h3 {
  font-size: 17px;
}
.topbar {
  height: 86px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 23px;
  align-items: center;
  text-decoration: none;
}
.brand b {
  font-size: 31px;
  letter-spacing: -2px;
  line-height: 1;
}
.brand b span {
  color: #d0a44e;
  font-size: 12px;
  margin-left: 4px;
}
.brand > span {
  border-left: 1px solid var(--line);
  padding-left: 23px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.user-area {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 42px 70px;
  min-height: calc(100vh - 155px);
}
nav {
  display: flex;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
  margin-bottom: 38px;
  overflow: auto;
}
nav button {
  white-space: nowrap;
  background: transparent;
  color: #6a786f;
  font-size: 14px;
}
nav button.active {
  background: #e5ede5;
  color: var(--green);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 35px 0 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: #758878;
  margin-bottom: 14px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.service-tag {
  font-size: 11px;
  color: #5b7963;
  border: 1px solid #d7e3d7;
  padding: 8px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 25px 0 31px;
}
.category {
  background: white;
  border: 1px solid var(--line);
  padding: 20px 10px 15px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 10px;
  color: #3f5147;
  font-size: 12px;
  min-height: 112px;
}
.category .symbol {
  font-size: 24px;
  font-weight: 400;
  color: #72896d;
}
.category.active,
.category:hover {
  border-color: #76967a;
  background: #edf2e9;
}
.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 25px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.section-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 25px;
}
.section-title p {
  margin-bottom: 0;
}
.step {
  background: #edf2e9;
  border-radius: 50%;
  padding: 7px 12px;
  font-size: 12px;
  color: #73856b;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #465c4c;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3dc;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: #273f31;
  font-size: 14px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b0c2a8;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #245d4d;
}
.secondary {
  background: #eef2ec;
  color: var(--green);
  border: 1px solid var(--line);
}
.quiet {
  background: transparent;
  color: var(--green);
}
.form-footer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tip {
  background: #edf1e6;
  border-color: #e0e6d7;
}
.tip h2 {
  font-size: 23px;
}
.tip p:not(.eyebrow) {
  font-size: 13px;
  color: #6b7967;
  margin: 18px 0;
}
.text-button {
  padding: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
}
.sla-note {
  padding: 25px 13px;
  color: #7b8779;
  font-size: 12px;
}
.sla-note b {
  color: #596e59;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 90px;
  align-items: center;
  max-width: 1030px;
  margin: 100px auto 40px;
}
.intro h1 {
  font-size: clamp(35px, 4vw, 55px);
}
.intro > p:not(.eyebrow) {
  color: #748173;
  max-width: 400px;
}
.intro-note {
  margin-top: 45px;
  font-size: 12px;
  color: #889380;
}
.login-card {
  padding: 36px;
}
.login-card .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 5px 0 18px;
}
.narrow {
  max-width: 520px;
  margin: 60px auto;
}
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.filters label {
  flex: 1;
  min-width: 135px;
  margin: 0;
}
.filters label:first-child {
  flex: 2;
  min-width: 210px;
}
.filters .check {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  padding-bottom: 11px;
  white-space: nowrap;
}
.check input {
  width: auto;
}
.ticket-list {
  margin-top: 20px;
}
.ticket {
  width: 100%;
  background: white;
  border-top: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  font-weight: 400;
  color: inherit;
}
.ticket:hover {
  background: #f7f9f4;
}
.ticket h3 {
  margin: 6px 0;
}
.ticket .code {
  font-size: 11px;
  color: #7a8878;
}
.ticket .meta {
  color: var(--muted);
  font-size: 12px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #edf2e9;
  color: #4b6a4d;
  border-radius: 20px;
  padding: 4px 10px;
}
.late {
  background: #fbece6;
  color: #a94c2e;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  font-size: 12px;
}
.kb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.kb-grid li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #65745f;
}
.kb-grid ol {
  padding-left: 20px;
}
.kb-grid button {
  margin-top: 10px;
}
dialog {
  width: min(840px, 95vw);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  color: #243b34;
}
dialog::backdrop {
  background: #142b24a6;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dialog-header .eyebrow {
  margin: 0;
}
.detail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f6f1;
  padding: 18px;
  border-radius: 8px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0;
}
.event {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.event p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 5px 0;
}
.event.internal {
  background: #faf5e8;
  padding: 15px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.action-form {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}
.attachment {
  display: block;
  background: none;
  text-align: left;
  color: var(--green);
  text-decoration: underline;
  font-size: 13px;
  padding-left: 0;
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #173f35;
  color: white;
  border-radius: 8px;
  padding: 16px 23px;
  box-shadow: 0 8px 30px #0002;
  z-index: 5;
  max-width: 90vw;
  white-space: pre-wrap;
}
#notice.error {
  background: #943e2d;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 5%;
  color: #7a8875;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
@media (max-width: 950px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .request-layout {
    grid-template-columns: 1fr 240px;
  }
  .login-layout {
    gap: 40px;
  }
  .brand > span {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  main {
    padding: 0 18px 40px;
  }
  .topbar {
    height: 72px;
    padding: 0 18px;
  }
  .brand {
    gap: 12px;
  }
  .brand > span {
    padding-left: 12px;
    max-width: 130px;
    letter-spacing: 1px;
  }
  .user-area {
    gap: 3px;
  }
  .user-area > span {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-area button {
    padding: 8px;
  }
  nav {
    margin-bottom: 25px;
    gap: 0;
  }
  nav button {
    padding: 10px;
  }
  .page-heading {
    align-items: start;
  }
  .service-tag {
    display: none;
  }
  .category-grid {
    gap: 9px;
  }
  .category {
    padding: 15px 10px;
    min-height: 100px;
  }
  .request-layout,
  .login-layout,
  .kb-grid {
    grid-template-columns: 1fr;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .login-layout {
    margin: 40px auto;
    gap: 25px;
  }
  .intro-note {
    margin-top: 20px;
  }
  .intro h1 {
    font-size: 38px;
  }
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .form-footer button {
    width: 100%;
  }
  aside .tip {
    margin-top: 0;
  }
  .ticket {
    grid-template-columns: 1fr;
  }
  .ticket > div:last-child {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .dialog-header {
    gap: 10px;
  }
  dialog {
    padding: 20px;
  }
  footer span {
    display: none;
  }
  .page-heading > .primary {
    font-size: 12px;
    padding: 10px;
    white-space: nowrap;
  }
  .filters label {
    flex-basis: 100%;
  }
}
