:root {
  color-scheme: light;
  --ink: #17201a;
  --muted: #5d6b61;
  --line: #d9e2dc;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --green: #0c7a43;
  --green-dark: #07592f;
  --gold: #ffcb45;
  --blue: #2f6fed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
}

button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

button:hover {
  border-color: var(--green-dark);
}

.app {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  gap: 18px;
  align-items: start;
}

.panel,
.preview,
.calendar-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(23, 32, 26, 0.06);
}

.composer,
.preview,
.calendar-section {
  padding: 18px;
}

.panel-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(47, 111, 237, 0.16);
  border-color: var(--blue);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.asset {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f3f7f4;
}

.asset svg {
  display: block;
  width: 100%;
  height: auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tabs button.active {
  border-color: var(--green);
  background: #e9f6ef;
}

#postText {
  min-height: 230px;
}

.posting-panel {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.posting-head,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#copyStatus,
.card-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.check-item {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--ink);
  font-size: 13px;
}

.check-item input {
  width: 16px;
  height: 16px;
}

.check-item button,
.check-item a,
.card-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 5px 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.calendar-section {
  margin-top: 18px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.card time {
  color: var(--muted);
  font-size: 12px;
}

.card p {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.4;
}

.card-actions {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .workspace,
  .grid {
    grid-template-columns: 1fr;
  }
}
