/* ── Daysheet Pro ── */
* { box-sizing: border-box; }

.dst-app {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  max-width: 960px;
  margin: 0 auto;
}

.dst-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.dst-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 20px 0;
  padding: 0 0 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.dst-notice {
  padding: 20px;
  background: #fffbee;
  border: 1px solid #f0e0a0;
  border-radius: 8px;
  color: #666;
  text-align: center;
}

/* ── Forms ── */
.dst-form { display: flex; flex-direction: column; gap: 16px; }

.dst-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4a832;
  padding-bottom: 6px;
  border-bottom: 1px solid #f5f0e0;
  margin-top: 4px;
}

.dst-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dst-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.dst-grid-5 { display: grid; grid-template-columns: 1.2fr 1.2fr 1.5fr 1.2fr 0.8fr; gap: 8px; align-items: end; }

.dst-field { display: flex; flex-direction: column; gap: 4px; }

.dst-field label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
}

.dst-field input,
.dst-field select,
.dst-field textarea {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #222;
  background: #fafafa;
  outline: none;
  transition: border-color 0.12s;
  width: 100%;
}

.dst-field input:focus,
.dst-field textarea:focus,
.dst-field select:focus {
  border-color: #c4a832;
  background: #fff;
}

/* ── Crew rows ── */
.dst-crew-row {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  position: relative;
}

.dst-crew-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.dst-crew-remove:hover { color: #e05555; }

/* ── Buttons ── */
.dst-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  border: none;
  transition: background 0.12s;
  font-family: 'Courier New', monospace;
  text-decoration: none;
  align-self: flex-start;
}

.dst-btn-primary { background: #c4a832; color: #fff !important; }
.dst-btn-primary:hover { background: #a88e25; }
.dst-btn-secondary { background: #f0f0f0; color: #555; border: 1px solid #ddd; }
.dst-btn-secondary:hover { background: #e5e5e5; }
.dst-btn-add { background: #f0f8f0; color: #388e3c; border: 1px dashed #81c784; font-size: 11px; padding: 7px 14px; }
.dst-btn-add:hover { background: #e8f5e9; }
.dst-btn-small { padding: 4px 10px; font-size: 10px; border-radius: 4px; }
.dst-btn-export { background: #e8f5e9; color: #388e3c; border: none; }
.dst-btn-export:hover { background: #c8e6c9; }
.dst-btn-link { background: #e8f0ff; color: #3355bb; border: none; }
.dst-btn-link:hover { background: #d0e0ff; }

/* ── Project List ── */
.dst-project-item {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fafafa;
}

.dst-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.dst-project-title { font-weight: 700; font-size: 13px; color: #111; }
.dst-project-meta  { font-size: 11px; color: #888; margin-top: 2px; }

.dst-project-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.dst-url-box {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 11px;
  color: #555;
  word-break: break-all;
  margin-top: 6px;
}

.dst-url-box a { color: #c4a832; }

/* ── Duration preview ── */
.dst-duration-preview {
  background: #fffbee;
  border: 1px solid #f0e0a0;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
  color: #c4a832;
  font-weight: 700;
  display: none;
}
.dst-duration-preview.visible { display: block; }

/* ── Messages ── */
#dst-time-message {
  margin-top: 10px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 5px;
  display: none;
}
#dst-time-message.success { background: #e8f5e9; color: #388e3c; display: block; }
#dst-time-message.error   { background: #ffebee; color: #c62828; display: block; }

/* ── Filter row ── */
.dst-filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.dst-filter-row select {
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  flex: 1;
  min-width: 180px;
  background: #fafafa;
  outline: none;
}

/* ── Tables ── */
.dst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.dst-table th {
  text-align: left;
  padding: 6px 8px;
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}
.dst-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}
.dst-table tr:last-child td { border-bottom: none; }
.dst-table tr:hover td { background: #fafafa; }
.dst-net { font-weight: 700; color: #c4a832; }
.dst-tag { background: #f0f0f0; border-radius: 3px; padding: 1px 5px; font-size: 10px; color: #666; }
.dst-empty { color: #bbb; font-size: 12px; text-align: center; padding: 20px 0; }

/* ── Export area ── */
#dst-export-area { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.dst-export-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ── Call Sheet view ── */
.dst-callsheet {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.dst-cs-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e5e5;
  gap: 16px;
}

.dst-cs-date     { font-size: 11px; color: #999; margin-bottom: 2px; }
.dst-cs-calltime { font-size: 36px; font-weight: 700; color: #111; line-height: 1; }
.dst-cs-center   { text-align: center; }
.dst-cs-title    { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 4px; }
.dst-cs-project  { font-size: 12px; color: #888; }
.dst-cs-right    { text-align: right; }
.dst-cs-contact-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #bbb; margin-bottom: 4px; }
.dst-cs-contact-name  { font-size: 12px; font-weight: 700; color: #333; }
.dst-cs-contact-info  { font-size: 11px; color: #888; }

.dst-cs-section { padding: 16px 24px; border-bottom: 1px solid #f5f5f5; }
.dst-cs-section:last-child { border-bottom: none; }
.dst-cs-section-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #c4a832; margin-bottom: 10px; }
.dst-cs-loc-name { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 2px; }
.dst-cs-loc-addr { font-size: 12px; color: #777; }

.dst-cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.dst-cs-table th {
  text-align: left;
  padding: 6px 8px;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #aaa;
}
.dst-cs-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}
.dst-cs-table tr:last-child td { border-bottom: none; }

.dst-cs-briefing {
  font-size: 12px;
  color: #555;
  line-height: 1.7;
  white-space: pre-wrap;
}

.dst-cs-actions {
  padding: 16px 24px;
  background: #fafafa;
  display: flex;
  gap: 10px;
}

/* ── Settings box ── */
.dst-settings-box {
  background: #fffbee;
  border: 1px solid #f0e0a0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .dst-grid-2, .dst-grid-3 { grid-template-columns: 1fr; }
  .dst-grid-5 { grid-template-columns: 1fr 1fr; }
  .dst-cs-header { grid-template-columns: 1fr; }
  .dst-cs-center, .dst-cs-right { text-align: left; }
}

/* ── Day type tags ── */
.dst-day-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.dst-day-shoot  { background: #f0f8f0; border-color: #b8d8b8; color: #3a6e3a; }
.dst-day-travel { background: #e8f0ff; border-color: #b0c8f0; color: #2244aa; }
.dst-day-rest   { background: #f8f5ff; border-color: #d0b8e8; color: #6633aa; }

/* Inline in project list */
.dst-day-tag-inline {
  display: inline;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}

/* ── Day type tags ── */
.dst-day-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}
.dst-day-tag-inline {
  display: inline;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}
.dst-day-shoot  { background:#f0f8f0; border-color:#b8d8b8; color:#3a6e3a; }
.dst-day-travel { background:#e8f0ff; border-color:#b0c8f0; color:#2244aa; }
.dst-day-rest   { background:#f8f5ff; border-color:#d0b8e8; color:#6633aa; }

/* Grid 4 columns */
.dst-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: start; }

/* Day rows */
.dst-day-row {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
}
