body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #1a1f36;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.subtitle {
  margin-top: -8px;
  color: #4f5b7a;
}

.card {
  background: #fff;
  border: 1px solid #dbe2f0;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

select,
input,
textarea,
button {
  font-size: 14px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #c4d0ea;
}

button {
  width: fit-content;
  cursor: pointer;
  background: #1e5eff;
  color: #fff;
  border: none;
  font-weight: 700;
}

button.secondary-btn {
  background: #fff;
  color: #1e5eff;
  border: 1px solid #1e5eff;
}

.actions a {
  color: #1e5eff;
  font-weight: 700;
  text-decoration: none;
}

.warning {
  color: #7a4f00;
  background: #fff6d8;
  border: 1px solid #f4dd93;
  border-radius: 8px;
  padding: 10px;
  margin: 0;
}

.error {
  color: #c62828;
  font-weight: 700;
}

.success {
  color: #1b5e20;
  font-weight: 600;
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #dbe2f0;
  border-radius: 8px;
  padding: 10px;
}

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

.meta {
  color: #4f5b7a;
  font-size: 13px;
}

.placeholder-note {
  margin-top: 4px;
  color: #965f00;
  font-size: 12px;
}

.hint {
  margin: 0;
  color: #4f5b7a;
  font-size: 13px;
}

.hint code {
  background: #eef2fb;
  padding: 2px 6px;
  border-radius: 4px;
}

.embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.office-frame {
  width: 100%;
  height: 85vh;
  min-height: 640px;
  border: 1px solid #c4d0ea;
  border-radius: 8px;
  background: #fff;
}

.office-frame-holder,
.office-frame-holder iframe {
  width: 100%;
  height: 85vh;
  min-height: 640px;
}

.embed-card {
  padding-bottom: 8px;
}

.upload-label input[type="file"] {
  padding: 12px;
  background: #f8faff;
}

.link-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1e5eff;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

pre {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
}
