/* PowerCore drop tools — shared chrome for PowerPaste / PowerShare */
:root {
  --pc-bg: #0a0a0b;
  --pc-bg-elevated: #121214;
  --pc-bg-overlay: #1a1a1e;
  --pc-chrome: #2a2a30;
  --pc-fg: #f4f4f5;
  --pc-fg-muted: #a1a1aa;
  --pc-fg-subtle: #71717a;
  --pc-accent-cyan: #22d3ee;
  --pc-accent-emerald: #34d399;
  --pc-accent-amber: #fbbf24;
  --pc-product-accent: var(--pc-accent-cyan);
  --pc-font-ui: Inter, "DM Sans", Roboto, system-ui, sans-serif;
  --pc-font-mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --pc-radius: 10px;
  --pc-radius-control: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--pc-font-ui);
  background:
    radial-gradient(900px 480px at 12% -8%, color-mix(in srgb, var(--pc-product-accent) 18%, transparent), transparent),
    radial-gradient(700px 420px at 92% 0%, #1a1a22 0%, transparent 55%),
    var(--pc-bg);
  color: var(--pc-fg);
}

body.is-embed {
  background: var(--pc-bg);
}

a {
  color: var(--pc-product-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--pc-fg);
  text-decoration: none;
}
.brand span {
  color: var(--pc-product-accent);
}
.brand:hover {
  text-decoration: none;
}

.cross {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}
.cross a {
  color: var(--pc-fg-muted);
}
.cross a:hover {
  color: var(--pc-fg);
}

.shell-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.shell-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.4rem;
}

.lede {
  color: var(--pc-fg-muted);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}
.field label {
  font-size: 0.8rem;
  color: var(--pc-fg-subtle);
  font-weight: 600;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 560px) {
  .row {
    grid-template-columns: 1fr;
  }
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--pc-radius-control);
  border: 1px solid var(--pc-chrome);
  background: var(--pc-bg-elevated);
  color: var(--pc-fg);
  font-family: var(--pc-font-ui);
  font-size: 0.95rem;
}
textarea {
  min-height: 16rem;
  font-family: var(--pc-font-mono);
  font-size: 0.88rem;
  line-height: 1.45;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--pc-product-accent) 55%, transparent);
  outline-offset: 1px;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.5rem 0 1.1rem;
  color: var(--pc-fg-muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pc-font-ui);
  font-weight: 600;
  background: var(--pc-product-accent);
  color: #061018;
  border: 0;
  border-radius: var(--pc-radius-control);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.btn.ghost {
  background: transparent;
  color: var(--pc-fg);
  border: 1px solid var(--pc-chrome);
}

.dropzone {
  position: relative;
  border: 1px dashed var(--pc-chrome);
  border-radius: var(--pc-radius);
  background: color-mix(in srgb, var(--pc-bg-elevated) 88%, transparent);
  padding: 2.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
  margin: 0 0 1rem;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--pc-product-accent);
  background: color-mix(in srgb, var(--pc-product-accent) 8%, var(--pc-bg-elevated));
}
.dropzone strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.dropzone span {
  color: var(--pc-fg-muted);
  font-size: 0.9rem;
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.meter {
  height: 6px;
  border-radius: 99px;
  background: var(--pc-bg-overlay);
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}
.meter > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--pc-product-accent);
  transition: width 120ms linear;
}

.result {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--pc-radius-control);
  border: 1px solid var(--pc-chrome);
  background: var(--pc-bg-elevated);
  font-size: 0.9rem;
  color: var(--pc-fg-muted);
  display: none;
}
.result.is-on {
  display: block;
}
.result a {
  word-break: break-all;
}
.result .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.upgrade-strip {
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--pc-chrome);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  color: var(--pc-fg-subtle);
  font-size: 0.85rem;
}
.upgrade-strip a {
  font-weight: 600;
}

.shell-foot {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--pc-fg-subtle);
  font-size: 0.8rem;
}

.viewer .paste-body {
  margin: 0;
  padding: 1rem;
  border-radius: var(--pc-radius);
  border: 1px solid var(--pc-chrome);
  background: var(--pc-bg-elevated);
  font-family: var(--pc-font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 70vh;
}

.toolbar {
  margin: 0 0 0.75rem;
}

.expiry-banner,
.meta.warn {
  color: var(--pc-accent-amber);
  font-size: 0.9rem;
}

.caps {
  font-size: 0.8rem;
  color: var(--pc-fg-subtle);
  margin-top: 0.35rem;
}
