* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans KR", sans-serif;
  background: #f3f6fb;
  color: #172033;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  background: #111b2b;
  color: #fff;
  padding: 24px 18px;
}

.aics-dual-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 22px;
}

.aics-home-btn {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.aics-home-cs {
  background: #2457d7;
}

.aics-home-new {
  background: #17897d;
}

.aics-home-main {
  font-weight: 800;
  font-size: 14px;
}

.aics-home-sub {
  font-size: 12px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav a {
  padding: 11px 12px;
  border-radius: 9px;
  color: #dbe6ff;
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  background: #2a3547;
  color: #fff;
  font-weight: 700;
}

.side-box {
  margin-top: 28px;
  padding: 14px;
  border-radius: 12px;
  background: #202b3d;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #d5deec;
}

.side-box b {
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
}

.main {
  min-width: 0;
  padding: 28px;
}

.hero {
  padding: 28px 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2556d9, #1e3d86);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  margin: 8px 0 10px;
  font-size: 32px;
}

.hero p {
  margin: 0;
  line-height: 1.7;
  color: #e6edff;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
}

.toolbar,
.card {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
}

.toolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
}

.toolbar input {
  flex: 1;
  min-width: 0;
}

input,
textarea {
  width: 100%;
  border: 1px solid #ccd5e2;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #263449;
  border-radius: 9px;
  padding: 10px 15px;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: #f5f7fa;
}

.btn.primary {
  background: #2457d7;
  border-color: #2457d7;
  color: #fff;
}

.btn.danger {
  background: #fff;
  border-color: #e9a6a6;
  color: #c73636;
}

.btn.ghost {
  background: #f7f9fc;
}

.card {
  padding: 20px;
}

.card-head,
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.card-head h2,
.detail-head h2 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  font-size: 14px;
}

th {
  color: #687386;
  background: #f8fafc;
}

tbody tr.data-row {
  cursor: pointer;
}

tbody tr.data-row:hover {
  background: #f7faff;
}

.col-no {
  width: 75px;
  text-align: center;
}

.col-file {
  width: 80px;
  text-align: center;
}

.col-writer {
  width: 130px;
}

.col-date {
  width: 170px;
}

.empty {
  padding: 32px !important;
  color: #8691a2;
  text-align: center !important;
}

.meta {
  margin-top: 7px;
  color: #7a8494;
  font-size: 13px;
}

.actions,
.form-actions {
  display: flex;
  gap: 8px;
}

.post-content {
  min-height: 130px;
  padding: 18px 4px;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.75;
}

.attachments {
  margin-top: 22px;
}

.attachments h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: #f7f9fc;
  border-radius: 9px;
  margin-top: 7px;
}

.file-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-meta {
  color: #8a94a3;
  font-size: 12px;
  margin-left: 7px;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 14px;
}

.field small {
  display: block;
  color: #7e8898;
  margin-top: 7px;
}

.form-actions {
  justify-content: flex-end;
}

.remove-file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #e0e5ee;
  border-radius: 8px;
  margin-top: 6px;
}

.remove-file input {
  width: auto;
}

.hidden {
  display: none !important;
}

footer {
  padding: 24px 4px 8px;
  color: #8a94a3;
  font-size: 12px;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .main {
    padding: 16px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar input {
    flex-basis: 100%;
  }

  .col-writer,
  .col-date {
    display: none;
  }
}
