:root {
  --bg: #f5f2ee;
  --panel: #ffffff;
  --muted: #6f6a66;
  --text: #1f1a18;
  --line: rgba(31, 26, 24, 0.08);
  --table-head-bg: #f3f3f3;
  --table-head-line: #eeeeee;
  --table-head-bottom-line: #cccccc;
  --brand: #2b62d9;
  --brand-soft: #edf3ff;
  --badge: #f6ecec;
  --shadow: 0 12px 28px rgba(38, 27, 25, 0.06);
}

.contact-page {
  background: transparent;
  color: var(--text);
}

.contact-page .page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.contact-page .hero-panel,
.contact-page .panel,
.contact-page .form-card,
.contact-page .faq-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-page .hero-panel {
  padding: 42px 32px 0;
  margin-bottom: 0;
}

.contact-page .eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
}

.contact-page h1 {
  margin: 18px 0 10px;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 600;
}

.contact-page .hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-page .inquiry-write {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 34px 0 84px;
}

.contact-page .inquiry-write-title {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.1;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.05em;
}

.contact-page .inquiry-write-rule {
  height: 3px;
  width: 100%;
  margin: 12px 0 0;
  background: #8b4141;
}

.contact-page .inquiry-write-form {
  margin-top: 30px;
}

.contact-page .write-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 18px;
}

.contact-page .write-row label {
  padding-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #111111;
}

.contact-page .required-mark {
  color: #8b4141;
}

.contact-page .write-control {
  min-width: 0;
}

.contact-page .write-row-inline-two {
  align-items: start;
  margin-top: -6px;
}

.contact-page .write-inline-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.contact-page .write-inline-field {
  min-width: 0;
}

.contact-page .write-inline-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  background: #fff;
  color: #1f1a18;
}

.contact-page .write-inline-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  background: #fff;
  color: #1f1a18;
}

.contact-page .write-control-select {
  position: relative;
}

.contact-page .write-control-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #8a8a8a;
  border-bottom: 2px solid #8a8a8a;
  transform: rotate(45deg);
  pointer-events: none;
}

.contact-page .write-control input,
.contact-page .write-control select,
.contact-page .write-control textarea {
  width: 100%;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  background: #fff;
  color: #1f1a18;
  box-shadow: none;
}

.contact-page .write-control input,
.contact-page .write-control select {
  height: 46px;
  padding: 0 14px;
}

.contact-page .write-control-select .write-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
}

.contact-page .write-control textarea {
  min-height: 168px;
  resize: vertical;
  padding: 14px;
}

.contact-page .write-control input::placeholder,
.contact-page .write-control textarea::placeholder,
.contact-page .write-control select:invalid {
  color: #8d96a5;
}

.contact-page .write-row-textarea .write-control textarea {
  min-height: 182px;
}

.contact-page .write-row-file {
  margin-top: 10px;
}

.contact-page .write-control-file {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-page .write-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-page .write-control-file .write-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 100px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(139, 65, 65, 0.12);
  color: #8b4141;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-page .write-control-file .write-file-btn img {
  display: block;
  flex: 0 0 auto;
}

.contact-page .write-control-file .write-file-btn span {
  position: relative;
  top: 1px;
  color: #8b4141;
}

.contact-page .write-control-file .write-file-name {
  font-size: 0.92rem;
  color: #8d96a5;
  line-height: 1.4;
  word-break: break-all;
}

.contact-page .write-control-file .write-file-name.is-selected {
  color: #4f5c71;
  font-weight: 600;
}

.contact-page .write-control-file .write-file-clear {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d7dbe2;
  border-radius: 999px;
  background: #fff;
  color: #636d80;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-page .write-control-file .write-file-clear[hidden] {
  display: none;
}

.contact-page .write-actions {
  margin-top: 26px;
  justify-content: flex-start;
  padding-left: 168px;
  gap: 14px;
}

.contact-page .write-actions .btn {
  min-width: 92px;
  height: 42px;
  border-radius: 10px;
}

.contact-page .write-actions .btn-secondary {
  height: 48px;
  border-color: #d7dbe2;
}

.contact-page .write-actions .btn-primary {
  background: rgba(139, 65, 65, 0.12);
  color: #8b4141;
  box-shadow: none;
}

.contact-page .write-actions .btn-primary.is-form-invalid {
  background: rgba(139, 65, 65, 0.12);
  color: #8b4141;
  transform: none;
  box-shadow: none;
}

.contact-page .write-actions .btn-primary.is-form-complete {
  background: #8b4141;
  color: #fff;
}

.contact-page .form-card {
  padding: 0;
}

.contact-page .hero-panel {
  display: none;
}

.contact-page .top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-page .btn,
.contact-page button,
.contact-page input,
.contact-page textarea,
.contact-page select {
  font: inherit;
}

.contact-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .btn:hover {
  transform: translateY(-1px);
}

.contact-page .btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 22px rgba(43, 98, 217, 0.2);
}

.contact-page .btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.contact-page .panel {
  padding: 28px 24px;
}

.contact-page .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-page .panel-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.contact-page .count-badge {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--badge);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-page .inquiry-panel {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.contact-page .inquiry-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 20px 0 18px;
  border: 0;
}

.contact-page .inquiry-list-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin: 0 0 12px;
  padding-left: 0;
}

.contact-page .inquiry-count {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.contact-page .inquiry-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.contact-page .inquiry-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 300px;
  height: 52px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 26px;
  padding: 0 18px 0 16px;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.025);
}

.contact-page .inquiry-create-btn {
  min-width: 150px;
  height: 52px;
  border-radius: 26px;
  background: #8b4141;
  color: #fff;
  box-shadow: none;
}

.contact-page .inquiry-search {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'%3E%3C/circle%3E%3Cpath d='M16 16L21 21'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 center;
  background-size: 22px 22px;
  padding-left: 32px;
  font-size: 0.96rem;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

.contact-page .inquiry-search::-webkit-search-decoration,
.contact-page .inquiry-search::-webkit-search-cancel-button,
.contact-page .inquiry-search::-webkit-search-results-button,
.contact-page .inquiry-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.contact-page .inquiry-search::placeholder {
  color: #8a8a8a;
}

.contact-page .inquiry-list {
  display: block;
  width: 100%;
  background: transparent;
}

.contact-page .inquiry-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: transparent;
  border: 0;
  border-radius: 12px;
  overflow: visible;
}

.contact-page .inquiry-table thead th {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d1d1d;
  text-align: left;
  padding: 16px 18px;
  border-top: 1px solid var(--table-head-line);
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid var(--table-head-bottom-line);
  background: var(--table-head-bg);
}

.contact-page .inquiry-table thead th:first-child {
  text-align: center;
  text-indent: 0;
  border-top-left-radius: 12px;
}

.contact-page .inquiry-table thead th:last-child {
  border-top-right-radius: 12px;
}

.contact-page .inquiry-table thead th:nth-child(1) {
  width: 10%;
}

.contact-page .inquiry-table thead th:nth-child(2) {
  width: 51%;
}

.contact-page .inquiry-table thead th:nth-child(3) {
  width: 11%;
}

.contact-page .inquiry-table thead th:nth-child(4) {
  width: 11%;
}

.contact-page .inquiry-table thead th:nth-child(5) {
  width: 10%;
}

.contact-page .inquiry-table thead th:nth-child(6) {
  width: 7%;
}

.contact-page .inquiry-table tbody td {
  height: 58px;
  padding: 0 18px;
  border-bottom: 0;
  font-size: 0.98rem;
  vertical-align: middle;
  background: #fff;
}

.contact-page .inquiry-table tbody td:first-child,
.contact-page .inquiry-table tbody td:nth-child(5),
.contact-page .inquiry-table tbody td:nth-child(6),
.contact-page .inquiry-table thead th:nth-child(1),
.contact-page .inquiry-table thead th:nth-child(5),
.contact-page .inquiry-table thead th:nth-child(6) {
  text-align: center;
  text-indent: 0;
}

.contact-page .inquiry-table tbody td:nth-child(3),
.contact-page .inquiry-table thead th:nth-child(3) {
  text-align: center;
  text-indent: 0;
}

.contact-page .inquiry-table tbody td:nth-child(3) .inquiry-author {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  text-align: center;
  border: 0;
  border-radius: 0;
}

.contact-page .status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.03);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #1d1d1d;
}

.contact-page .status-tag.pending {
  background: rgba(17, 17, 17, 0.03);
  border-color: rgba(17, 17, 17, 0.08);
  color: #1d1d1d;
}

.contact-page .status-tag.done {
  background: rgba(139, 65, 65, 0.1);
  border-color: rgba(139, 65, 65, 0.22);
  color: #8b4141;
}

.contact-page .status-tag.review {
  background: rgba(17, 17, 17, 0.03);
  border-color: rgba(17, 17, 17, 0.08);
  color: #1d1d1d;
}

.contact-page .inquiry-table .status-tag {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-page .inquiry-table .status-tag.pending,
.contact-page .inquiry-table .status-tag.review {
  background: none;
  border: 0;
  color: #1d1d1d;
}

.contact-page .inquiry-table .status-tag.done {
  background: none;
  border: 0;
  color: #8b4141;
}

.contact-page .inquiry-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 0 4px;
}

.contact-page .inquiry-page-btn {
  min-width: 0;
  height: auto;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6f6a66;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

.contact-page .inquiry-page-btn.is-active {
  color: #8b4141;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.contact-page .inquiry-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.contact-page .inquiry-page-btn:not(:disabled):hover {
  color: #8b4141;
}

.contact-page .inquiry-table tbody td:nth-child(1) {
  border-left: 1px solid #eeeeee;
}

.contact-page .inquiry-table tbody td:nth-child(2),
.contact-page .inquiry-table tbody td:nth-child(3),
.contact-page .inquiry-table tbody td:nth-child(4) {
  border-left: 0;
  border-right: 0;
}

.contact-page .inquiry-table tbody td:nth-child(5) {
  border-right: 0;
}

.contact-page .inquiry-table tbody td:nth-child(6) {
  border-right: 1px solid #eeeeee;
}

.contact-page .inquiry-table tbody tr:last-child td:nth-child(1),
.contact-page .inquiry-table tbody tr:last-child td:nth-child(2),
.contact-page .inquiry-table tbody tr:last-child td:nth-child(3),
.contact-page .inquiry-table tbody tr:last-child td:nth-child(4),
.contact-page .inquiry-table tbody tr:last-child td:nth-child(5),
.contact-page .inquiry-table tbody tr:last-child td:nth-child(6) {
  border-bottom: 1px solid #eeeeee;
}

.contact-page .inquiry-table tbody tr:last-child td:nth-child(1) {
  border-radius: 0 0 0 12px;
}

.contact-page .inquiry-table tbody tr:last-child td:nth-child(6) {
  border-radius: 0 0 12px 0;
}

.contact-page .inquiry-table tbody td:nth-child(4),
.contact-page .inquiry-table thead th:nth-child(4) {
  text-align: center;
  text-indent: 20px;
}

.contact-page .inquiry-table tbody tr:not(:last-child):hover td {
  background: rgba(17, 17, 17, 0.01);
  box-shadow: inset 0 1px 0 #eeeeee, inset 0 -1px 0 #eeeeee;
}

.contact-page .inquiry-table tbody tr:last-child:hover td {
  background: rgba(17, 17, 17, 0.01);
  box-shadow: inset 0 1px 0 #eeeeee;
}

.contact-page .inquiry-title-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
}

.contact-page .inquiry-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}

.contact-page .inquiry-lock img {
  display: block;
  width: 20px;
  height: 20px;
}

.contact-page .inquiry-title-link {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

.contact-page .inquiry-title-link:hover,
.contact-page .inquiry-title-link:focus-visible {
  color: #8b4141;
}

.contact-page .inquiry-title-link:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-page .inquiry-category {
  display: none;
}

.contact-page .inquiry-work-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 65, 65, 0.25);
  background: rgba(139, 65, 65, 0.08);
  color: #8b4141;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.contact-page .inquiry-action-cell {
  position: relative;
}

.contact-page .inquiry-row-menu-btn {
  border: 0;
  background: transparent;
  color: #495e7c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.contact-page .inquiry-row-menu-btn:hover {
  color: #1f3350;
}

.contact-page .inquiry-row-menu-btn.is-disabled,
.contact-page .inquiry-row-menu-btn:disabled {
  color: #aeb8c5;
  cursor: default;
}

.contact-page .inquiry-row-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 12px;
  display: none;
  z-index: 10;
  min-width: 92px;
  border: 1px solid #d6dce6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(16, 28, 51, 0.12);
  padding: 4px;
}

.contact-page .inquiry-row-menu.is-open {
  display: block;
}

.contact-page .inquiry-row-menu-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #495e7c;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.contact-page .inquiry-row-menu-item:hover {
  background: #eef3ff;
}

.contact-page .inquiry-row-menu-item.is-danger {
  color: #b34033;
}

.contact-page .inquiry-row-menu-item.is-danger:hover {
  background: #ffeceb;
}

.contact-page .inquiry-author {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #1d1d1d;
  font-weight: 600;
}

.contact-page .inquiry-author .dot {
  display: none;
}

.contact-page .inquiry-date,
.contact-page .inquiry-view {
  color: #2e2e2e;
}

.contact-page .inquiry-empty {
  padding: 26px 18px;
  background: #fff;
}

.contact-page .faq-shell {
  padding: 0 0 8px;
  margin-bottom: 50px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-page .faq-footer-note {
  margin: 0 0 20px;
  padding: 0;
}

.contact-page .faq-footer-label {
  display: inline-block;
  margin: 0 0 7px;
  font-size: 2.6rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: 0;
}

.contact-page .faq-footer-note p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.contact-page .faq-list,
.contact-page .inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-page .faq-item {
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-top: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.contact-page .faq-question {
  width: 100%;
  background: #fff;
  border: 0;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  gap: 14px;
  border-radius: 12px;
}

.contact-page .faq-question .q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  color: #8b4141;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  transform: none;
}

.contact-page .faq-question .label {
  flex: 1;
  min-width: 0;
}

.contact-page .faq-question .mark {
  min-width: 22px;
  width: 22px;
  height: 22px;
  text-align: center;
  font-size: 0;
  line-height: 1;
  color: transparent;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
}

.contact-page .faq-question .mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #8a8a8a;
  border-bottom: 2px solid #8a8a8a;
  transform: rotate(45deg);
  transform-origin: center;
}

.contact-page .faq-item.open .faq-question .mark {
  transform: rotate(180deg);
}

.contact-page .faq-answer {
  display: none;
  padding: 0 20px 18px 52px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.97rem;
  background: #fff;
  border-top: 0;
}

.contact-page .faq-item.open .faq-answer {
  display: block;
}

.contact-page .inquiry-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.contact-page .inquiry-main {
  min-width: 0;
  flex: 1;
}

.contact-page .inquiry-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}

.contact-page .inquiry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-page .status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(17, 17, 17, 0.03);
  color: #1d1d1d;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.contact-page .status-tag.pending {
  background: rgba(17, 17, 17, 0.03);
  color: #1d1d1d;
}

.contact-page .status-tag.review {
  background: rgba(17, 17, 17, 0.03);
  color: #1d1d1d;
}

.contact-page .status-tag.done {
  background: rgba(139, 65, 65, 0.1);
  color: #8b4141;
  border-color: rgba(139, 65, 65, 0.22);
}

.contact-page .inquiry-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.contact-page .form-card {
  margin-top: 26px;
  padding: 28px 24px;
}

.contact-page .form-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-page .field,
.contact-page .field.full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-page .field.full {
  grid-column: 1 / -1;
}

.contact-page label {
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-page input,
.contact-page textarea,
.contact-page select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: var(--text);
}

.contact-page textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-page .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.contact-page .detail-headerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  width: 100%;
}

.contact-page .detail-kicker {
  margin: 0;
  color: #111111;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.contact-page .detail-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.contact-page .detail-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  min-height: 36px;
  padding: 0 12px;
  background: #8b4141;
  border: 1px solid #8b4141;
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.contact-page .detail-answer-btn,
.contact-page .detail-edit-btn,
.contact-page .detail-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  min-height: 36px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.24);
  border-radius: 26px;
  color: #111111;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: none;
}

.contact-page .detail-answer {
  margin-top: 20px;
}

.contact-page .admin-answer-panel {
  padding: 20px 0 0;
}

.contact-page .admin-answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-page .admin-answer-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-page .admin-answer-input {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  box-sizing: border-box;
}

.contact-page .detail-wrap {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  padding: 34px;
  box-shadow: none;
}

.contact-page.detail-page main {
  visibility: hidden;
}

.contact-page.detail-page.is-detail-ready main {
  visibility: visible;
}

.contact-page .detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 0;
  border-top: 0;
  padding-top: 0;
}

.contact-page .detail-title-row h1 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.contact-page .detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 20px 0 20px;
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-page .detail-role-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}

.contact-page .detail-role-switch-label {
  color: #6f6a66;
  font-size: 0.84rem;
  font-weight: 700;
}

.contact-page .detail-role-switch-btn {
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
}

.contact-page .detail-role-switch-btn.is-active {
  background: #8b4141;
  border-color: #8b4141;
  color: #fff;
}

.contact-page .detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.contact-page .meta-label {
  color: #111111;
  font-weight: 600;
}

.contact-page .detail-status-text {
  color: var(--muted);
  font-weight: 400;
}

.contact-page .detail-status-text.is-done {
  color: #8b4141;
  font-weight: 600;
}

.contact-page .detail-body {
  padding-top: 18px;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-line;
  background: transparent;
}

.contact-page .detail-attachment-files {
  margin: -6px 0 10px;
  color: #4f5c71;
  font-size: 0.92rem;
  line-height: 1.6;
  word-break: break-all;
}

.contact-page .detail-attachment-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 8px 0 14px;
}

.contact-page .detail-attachment-image-item {
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.contact-page .detail-attachment-image-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.contact-page .detail-attachment-image-item figcaption {
  padding: 6px 2px 0;
  font-size: 0.84rem;
  color: #4f5c71;
  line-height: 1.4;
  word-break: break-all;
}

.contact-page .detail-image-preview-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 20, 30, 0.5);
  z-index: 9999;
  pointer-events: none;
}

.contact-page .detail-image-preview-popup.is-open {
  display: flex;
}

.contact-page .detail-image-preview-popup-inner {
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(12, 20, 34, 0.24);
  padding: 10px 10px 12px;
}

.contact-page .detail-image-preview-popup-inner img {
  display: block;
  width: auto;
  max-width: min(90vw, 1180px);
  height: auto;
  max-height: calc(90vh - 56px);
  border-radius: 10px;
}

.contact-page .detail-image-preview-popup-caption {
  margin: 6px 4px 0;
  font-size: 0.82rem;
  color: #4f5c71;
  line-height: 1.3;
  word-break: break-all;
}

.contact-page .detail-answer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px solid rgba(17, 17, 17, 0.08);
}

.contact-page .detail-answer h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #111111;
}

.contact-page .detail-answer-box {
  background: #f8f4f2;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-page .detail-answer-readonly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.contact-page .detail-answer-readonly-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-page .detail-answer-inline-btn {
  border: 1px solid rgba(17, 17, 17, 0.2);
  background: #fff;
  color: #2b3240;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.contact-page .detail-answer-inline-btn.is-danger {
  border-color: rgba(179, 64, 51, 0.3);
  color: #b34033;
}

.contact-page .detail-answer-readonly-text {
  white-space: pre-line;
}

.contact-page .detail-answer-readonly + .detail-answer-readonly {
  margin-top: 15px;
}

.contact-page .btn-secondary {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: var(--text);
  border-radius: 12px;
  min-height: 44px;
}

@media (max-width: 900px) {
  .contact-page .grid,
  .contact-page .form-layout {
    grid-template-columns: 1fr;
  }

  .contact-page .inquiry-item {
    flex-direction: column;
  }
}
